mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-09 05:08:28 +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>
61 lines
1.7 KiB
CSS
61 lines
1.7 KiB
CSS
/*
|
|
* Copyright 2016 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.
|
|
*/
|
|
|
|
.paused-status {
|
|
padding: 6px;
|
|
border-bottom: 1px solid transparent;
|
|
border-top: 1px solid rgb(189 189 189); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
background-color: hsl(50deg 100% 95%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
color: rgb(107 97 48); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.-theme-with-dark-background .paused-status {
|
|
background-color: hsl(46deg 98% 22%);
|
|
color: #ccc;
|
|
}
|
|
|
|
.paused-status.error-reason {
|
|
background-color: hsl(0deg 100% 97%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
color: #6b3b3b; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.status-main {
|
|
font-weight: bold;
|
|
padding-left: 15px;
|
|
position: relative;
|
|
}
|
|
|
|
.status-sub:not(:empty) {
|
|
padding-left: 15px;
|
|
padding-top: 5px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.paused-status.error-reason .status-sub {
|
|
color: #f00; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
line-height: 11px;
|
|
max-height: 27px;
|
|
user-select: text;
|
|
}
|
|
|
|
.status-icon {
|
|
filter: hue-rotate(190deg);
|
|
position: absolute;
|
|
left: 0;
|
|
top: calc(50% - 5px);
|
|
}
|
|
|
|
.paused-status.error-reason .status-icon {
|
|
filter: none;
|
|
}
|