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

67 lines
1.4 KiB
CSS

/*
* Copyright 2017 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.
*/
.thread-item {
padding: 3px 8px 3px 20px;
position: relative;
min-height: 18px;
line-height: 15px;
display: flex;
flex-wrap: wrap;
}
.thread-item + .thread-item {
border-top: 1px solid #efefef; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
}
.thread-item:hover {
background-color: #eee; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
}
.thread-item:focus-visible {
background-color: var(--focus-bg-color);
}
.thread-item-title,
.thread-item-paused-state {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.thread-item-paused-state {
color: #888; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
margin-left: auto;
padding: 0 10px 0 10px;
}
.selected-thread-icon {
display: none;
position: absolute;
top: 5px;
left: 4px;
}
.thread-item.selected .selected-thread-icon {
display: block;
}
@media (forced-colors: active) {
.thread-item:hover,
.thread-item:focus-visible {
forced-color-adjust: none;
background-color: Highlight;
}
.thread-item:hover > div,
.thread-item:focus-visible > div {
color: HighlightText;
}
}