Files
react-native-devtools-frontend/front_end/object_ui/objectValue.css
T
Kalon Hinds 237b8541c1 Fix color contrast for string, symbol, and regex object values
This patch changes string, symbol, and regex object values to match the
syntax highligher color for these values.

Before: https://imgur.com/a/7vrwhap
After: https://imgur.com/a/jcopGaN
Bug: 1066549
Change-Id: I96e26cdfd2b5ffc24defc3bd93583190adc5fc29
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2140677
Reviewed-by: Jack Lynch <jalyn@microsoft.com>
Reviewed-by: Brandon Goddard <brgoddar@microsoft.com>
Commit-Queue: Kalon Hinds <kahinds@microsoft.com>
2020-04-08 18:34:11 +00:00

120 lines
2.5 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: rgba(0, 0, 0, 0.1);
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(128, 128, 128);
}
.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(252, 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;
}
}