mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-08 20:58:24 +08:00
The list of CSS properties we check for colors wasn't thorough and didn't include `border-left/right/top/bottom` or `background` on its own. This CL fixes that and disables the rule for any current violations. Bug: 1152736 Change-Id: Ic732d653fdfab0462a04dc891bcece1f44e5d471 No-Presubmit: true Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2676157 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Paul Lewis <aerotwist@chromium.org> Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
99 lines
2.3 KiB
CSS
99 lines
2.3 KiB
CSS
/*
|
|
* Copyright 2018 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.
|
|
*/
|
|
|
|
.tree-outline {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.tree-outline > ol {
|
|
padding-bottom: 5px;
|
|
border-bottom: solid 1px #e0e0e0; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.tree-outline > .parent {
|
|
user-select: none;
|
|
font-weight: bold;
|
|
color: #616161; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
margin-top: -1px;
|
|
display: flex;
|
|
align-items: center;
|
|
height: 26px;
|
|
}
|
|
|
|
.tree-outline li {
|
|
padding-left: 5px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.tree-outline li:not(.parent) {
|
|
display: block;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.tree-outline li:not(.parent)::before {
|
|
display: none;
|
|
}
|
|
|
|
.tree-outline .header-name {
|
|
color: rgb(33% 33% 33%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
display: inline-block;
|
|
margin-right: 0.25em;
|
|
font-weight: bold;
|
|
vertical-align: top;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.tree-outline .header-separator {
|
|
user-select: none;
|
|
}
|
|
|
|
.tree-outline .header-value {
|
|
display: inline;
|
|
margin-right: 1em;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.tree-outline .header-toggle {
|
|
display: inline;
|
|
margin-left: 30px;
|
|
font-weight: normal;
|
|
color: rgb(45% 45% 45%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.tree-outline .header-toggle:hover {
|
|
color: rgb(20% 20% 45%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tree-outline .error-log {
|
|
color: #f00; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
display: inline-block;
|
|
margin-right: 0.25em;
|
|
margin-left: 0.25em;
|
|
font-weight: bold;
|
|
vertical-align: top;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.tree-outline .hex-data {
|
|
display: block;
|
|
word-break: break-word;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
.tree-outline .error-field {
|
|
color: #f00; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|