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>
140 lines
3.3 KiB
CSS
140 lines
3.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.
|
|
*/
|
|
|
|
.ignore-listed-message {
|
|
text-align: center;
|
|
font-style: italic;
|
|
padding: 4px;
|
|
color: #888; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
background-color: #ffffc2; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.show-more-message > .link {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.ignore-listed-message > .link {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.ignore-listed-message > .link:focus {
|
|
outline-width: unset;
|
|
}
|
|
|
|
.show-more-message {
|
|
text-align: center;
|
|
font-style: italic;
|
|
padding: 4px;
|
|
border-top: 1px solid #d8d8d8; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.call-frame-item {
|
|
padding: 3px 8px 3px 20px;
|
|
position: relative;
|
|
min-height: 18px;
|
|
line-height: 15px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.call-frame-title-text {
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.async-header + .call-frame-item {
|
|
border-top: 0;
|
|
}
|
|
|
|
.call-frame-item:not(.async-header) {
|
|
border-top: 1px solid #efefef; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.call-frame-item-title,
|
|
.call-frame-location {
|
|
display: flex;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.async-header .call-frame-item-title {
|
|
font-weight: bold;
|
|
color: #999; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
background-color: var(--color-background);
|
|
margin-left: -5px;
|
|
padding: 0 5px;
|
|
z-index: 1;
|
|
}
|
|
|
|
.call-frame-item:focus-visible,
|
|
.call-frame-item.async-header:focus-visible .call-frame-item-title {
|
|
background-color: var(--focus-bg-color);
|
|
}
|
|
|
|
.call-frame-item:not(.async-header):hover {
|
|
background-color: #eee; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.call-frame-location {
|
|
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;
|
|
}
|
|
|
|
.async-header::before {
|
|
content: " ";
|
|
width: 100%;
|
|
border-top: 1px solid #d8d8d8; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
margin-top: 8px;
|
|
position: absolute;
|
|
left: 0;
|
|
}
|
|
|
|
.ignore-listed-call-frame {
|
|
opacity: 60%;
|
|
font-style: italic;
|
|
}
|
|
|
|
.selected-call-frame-icon {
|
|
display: none;
|
|
position: absolute;
|
|
top: 5px;
|
|
left: 4px;
|
|
}
|
|
|
|
.call-frame-item.selected .selected-call-frame-icon {
|
|
display: block;
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) .ignore-listed-message {
|
|
background-color: hsl(46deg 98% 22%);
|
|
color: #aaa;
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) .ignore-listed-message > .link {
|
|
color: hsl(0deg 0% 67%);
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.call-frame-item:focus-visible,
|
|
.call-frame-item:not(.async-header):hover {
|
|
forced-color-adjust: none;
|
|
background-color: Highlight;
|
|
}
|
|
|
|
.call-frame-item:focus-visible *,
|
|
.call-frame-item:not(.async-header):hover * {
|
|
color: HighlightText;
|
|
}
|
|
}
|