mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-09 13:18:29 +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>
136 lines
3.0 KiB
CSS
136 lines
3.0 KiB
CSS
/*
|
|
* Copyright 2015 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.
|
|
*/
|
|
|
|
.list {
|
|
flex: auto 0 1;
|
|
overflow-y: auto;
|
|
border: 1px solid rgb(231 231 231); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
flex-direction: column;
|
|
}
|
|
|
|
.list-separator {
|
|
background: rgb(231 231 231); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
height: 1px;
|
|
}
|
|
|
|
.list-item {
|
|
flex: none;
|
|
min-height: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.list-item:focus-within,
|
|
.list-item:hover {
|
|
background: hsl(0deg 0% 96%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.list-widget-input-validation-error {
|
|
color: var(--input-validation-error);
|
|
margin: 0 5px;
|
|
}
|
|
|
|
.controls-container {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: flex-end;
|
|
align-items: stretch;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.controls-gradient {
|
|
flex: 0 1 50px;
|
|
}
|
|
|
|
.list-item:focus-within .controls-gradient,
|
|
.list-item:hover .controls-gradient {
|
|
background-image: linear-gradient(90deg, transparent, hsl(0deg 0% 96%)); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.controls-buttons {
|
|
flex: none;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
pointer-events: auto;
|
|
visibility: hidden;
|
|
}
|
|
|
|
.list-item:focus-within .controls-buttons,
|
|
.list-item:hover .controls-buttons {
|
|
background-color: hsl(0deg 0% 96%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
visibility: visible;
|
|
}
|
|
|
|
.editor-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
flex: none;
|
|
background: hsl(0deg 0% 96%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
overflow: hidden;
|
|
}
|
|
|
|
.editor-content {
|
|
flex: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.editor-buttons {
|
|
flex: none;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
padding: 5px;
|
|
}
|
|
|
|
.editor-buttons > button {
|
|
flex: none;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.editor-content input {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.editor-content input.error-input {
|
|
background-color: var(--color-background);
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.list-item:focus-within .controls-buttons,
|
|
.list-item:hover .controls-buttons {
|
|
background-color: canvas;
|
|
}
|
|
|
|
.list-item:focus-within,
|
|
.list-item:hover {
|
|
forced-color-adjust: none;
|
|
background: Highlight;
|
|
}
|
|
|
|
.list-item:focus-within *,
|
|
.list-item:hover * {
|
|
color: HighlightText;
|
|
}
|
|
|
|
.list-item:focus-within .controls-gradient,
|
|
.list-item:hover .controls-gradient {
|
|
background-image: unset;
|
|
}
|
|
}
|