Files
react-native-devtools-frontend/front_end/coverage/coverageListView.css
T
Jack Franklin 49a9481a74 Lint color usage in background and border-* properties.
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>
2021-02-05 15:39:39 +00:00

103 lines
2.5 KiB
CSS

.data-grid {
border: none;
}
.data-grid td .url-outer {
width: 100%;
display: inline-flex;
justify-content: flex-start;
}
.data-grid td .url-outer .filter-highlight {
font-weight: bold;
}
.data-grid td .url-prefix {
overflow-x: hidden;
text-overflow: ellipsis;
}
.data-grid td .url-suffix {
flex: none;
}
.data-grid td .bar {
display: inline-block;
height: 8px;
border: 1px solid transparent;
}
.data-grid .selected td .bar {
border-top: 1px #fff solid; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
border-bottom: 1px #fff solid; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
}
.data-grid .selected td .bar:last-child {
border-right: 1px #fff solid; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
}
.data-grid .selected td .bar:first-child {
border-left: 1px #fff solid; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
}
.data-grid td .bar-unused-size {
background-color: #ee442f; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
}
.data-grid td .bar-used-size {
background-color: #63acbe; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
}
.data-grid td .percent-value {
color: #888; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
width: 45px;
display: inline-block;
}
.data-grid:focus tr.selected span.percent-value {
color: #eee; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
}
@media (forced-colors: active) {
.data-grid td .bar-container {
forced-color-adjust: none;
}
.data-grid td .bar-unused-size {
background-color: ButtonText;
}
.data-grid td .bar-used-size {
background-color: ButtonFace;
}
.data-grid td .bar {
border-color: ButtonText;
}
.data-grid .selected td .bar {
border-top-color: HighlightText;
border-bottom-color: HighlightText;
}
.data-grid .selected td .bar:last-child {
border-right-color: HighlightText;
}
.data-grid .selected td .bar:first-child {
border-left-color: HighlightText;
}
.data-grid:focus tr.selected span.percent-value {
color: HighlightText;
}
}