mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 05:35:05 +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>
57 lines
1.4 KiB
CSS
57 lines
1.4 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.
|
|
*/
|
|
|
|
.dt-range-input {
|
|
appearance: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 10px;
|
|
width: 88px;
|
|
outline: none;
|
|
background: none;
|
|
}
|
|
|
|
.dt-range-input::-webkit-slider-thumb,
|
|
.-theme-preserve {
|
|
appearance: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
width: 12px;
|
|
height: 12px;
|
|
margin-top: -5px;
|
|
border-radius: 50%;
|
|
background-color: #4285f4; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.dt-range-input::-webkit-slider-runnable-track {
|
|
appearance: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 2px;
|
|
background-color: rgb(0 0 0 / 26%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.dt-range-input:focus::-webkit-slider-thumb,
|
|
.-theme-preserve {
|
|
box-shadow: 0 0 0 2px rgb(66 133 244 / 40%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.dt-range-input:disabled::-webkit-slider-thumb {
|
|
background-color: #bdbdbd; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.dt-range-input {
|
|
forced-color-adjust: none;
|
|
}
|
|
}
|