mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 17:27:22 +08:00
- Prefer the modern comma-free CSS color function syntax over the legacy syntax. [1] - Explicitly use the `deg` suffix for angle values in colors, to clarify the range. - Explicitly use the `%` suffix for percentages instead of formatting the value as a number, again to clarify the range. [1]: https://twitter.com/mathias/status/1253242715304857601 [2]: https://goo.gle/devtools-css-color Bug: chromium:1083142 Fixed: chromium:1073885 Change-Id: I8e1582a2dee3553a61df88564051ea84c2011d76 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2209091 Reviewed-by: Alex Rudenko <alexrudenko@chromium.org> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Auto-Submit: Mathias Bynens <mathias@chromium.org>
127 lines
2.7 KiB
CSS
127 lines
2.7 KiB
CSS
/*
|
|
* Copyright 2015 The Chromium Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
.object-value-scientific-notation-exponent {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.object-value-scientific-notation-mantissa {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
flex-shrink: 1;
|
|
min-width: 1ex;
|
|
}
|
|
|
|
.object-value-scientific-notation-number {
|
|
display: flex !important;
|
|
}
|
|
|
|
.value.object-value-node:hover {
|
|
background-color: var(--item-hover-color);
|
|
}
|
|
|
|
.object-value-function-prefix,
|
|
.object-value-boolean {
|
|
color: rgb(13 34 170);
|
|
}
|
|
|
|
.object-value-function {
|
|
font-style: italic;
|
|
}
|
|
|
|
.object-value-function.linkified:hover {
|
|
background-color: rgb(0 0 0 / 10%);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.object-value-number {
|
|
color: rgb(28 0 207);
|
|
}
|
|
|
|
.object-value-bigint {
|
|
color: rgb(0 93 0);
|
|
}
|
|
|
|
.object-value-string,
|
|
.object-value-regexp,
|
|
.object-value-symbol {
|
|
white-space: pre;
|
|
unicode-bidi: -webkit-isolate;
|
|
color: rgb(196 26 22);
|
|
}
|
|
|
|
.-theme-with-dark-background .object-value-string,
|
|
:host-context(.-theme-with-dark-background) .object-value-string,
|
|
.-theme-with-dark-background .object-value-regexp,
|
|
:host-context(.-theme-with-dark-background) .object-value-regexp,
|
|
.-theme-with-dark-background .object-value-symbol,
|
|
:host-context(.-theme-with-dark-background) .object-value-symbol {
|
|
color: rgb(242 139 84);
|
|
}
|
|
|
|
.object-value-string-quote {
|
|
color: #222;
|
|
}
|
|
|
|
.object-value-node {
|
|
position: relative;
|
|
vertical-align: baseline;
|
|
color: rgb(48 57 66);
|
|
display: inline-block;
|
|
}
|
|
|
|
.object-value-null,
|
|
.object-value-undefined {
|
|
color: rgb(94 94 94);
|
|
}
|
|
|
|
.-theme-with-dark-background .object-value-null,
|
|
:host-context(.-theme-with-dark-background) .object-value-null,
|
|
.-theme-with-dark-background .object-value-undefined,
|
|
:host-context(.-theme-with-dark-background) .object-value-undefined {
|
|
color: rgb(161 161 161);
|
|
}
|
|
|
|
.object-value-calculate-value-button:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.object-properties-section-custom-section {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.-theme-with-dark-background .object-value-number,
|
|
:host-context(.-theme-with-dark-background) .object-value-number,
|
|
.-theme-with-dark-background .object-value-boolean,
|
|
:host-context(.-theme-with-dark-background) .object-value-boolean {
|
|
color: hsl(252deg 100% 75%);
|
|
}
|
|
|
|
.object-properties-section .object-description {
|
|
color: gray;
|
|
}
|
|
|
|
.value .object-properties-preview {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.name {
|
|
color: rgb(136 19 145);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.object-properties-preview .name {
|
|
color: #565656;
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.object-value-calculate-value-button:hover {
|
|
forced-color-adjust: none;
|
|
color: Highlight;
|
|
}
|
|
}
|