Files
react-native-devtools-frontend/front_end/browser_debugger/categorizedBreakpointsSidebarPane.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

57 lines
1.3 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.
*/
:host {
margin: 0;
padding: 2px 4px;
min-height: 18px;
}
.tree-outline {
padding: 0;
}
.tree-outline li {
margin-left: 14px;
user-select: text;
cursor: default;
}
.tree-outline li.parent {
margin-left: 1px;
}
.tree-outline li:not(.parent)::before {
display: none;
}
.breakpoint-hit {
background-color: rgb(255 255 194); /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
}
:host-context(.-theme-with-dark-background) .breakpoint-hit {
background-color: hsl(46deg 98% 22%);
color: #ccc;
}
.breakpoint-hit .breakpoint-hit-marker {
background-color: rgb(255 255 194); /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
border-right: 3px solid rgb(107 97 48); /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
height: 18px;
left: 0;
margin-left: -30px;
position: absolute;
right: -4px;
z-index: -1;
}
:host-context(.-theme-with-dark-background) .breakpoint-hit .breakpoint-hit-marker {
background-color: hsl(46deg 98% 22%);
}