mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 17:57:36 +08:00
This patch drops unnecessary -webkit- prefixes in CSS and enables a lint check to enforce that prevent such properties from being added in the future. Note that the use of vendor-prefixed CSS properties is still accepted in cases where there is no standardized and browser-supported alternative. TBR=changhaohan@chromium.org No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: chromium:1104187 Change-Id: Ibf36fe5a3802b5f3ac663b7ac873a4758e0fda14 Fixed: chromium:1031475 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2297386 Reviewed-by: Changhao Han <changhaohan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2297393 Commit-Queue: Mathias Bynens <mathias@chromium.org> Auto-Submit: Mathias Bynens <mathias@chromium.org> Reviewed-by: Mathias Bynens <mathias@chromium.org>
62 lines
1.7 KiB
CSS
62 lines
1.7 KiB
CSS
/*
|
|
* Copyright (c) 2014 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.
|
|
*/
|
|
|
|
::slotted(input.dt-radio-button) {
|
|
--gradient-start: #fcfcfc;
|
|
--gradient-end: #dfdfdf;
|
|
--radio-dot: url(Images/radioDot.png);
|
|
|
|
height: 17px;
|
|
width: 17px;
|
|
min-width: 17px;
|
|
border: 1px solid #a5a5a5;
|
|
background-image: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
|
|
border-radius: 8px;
|
|
appearance: none;
|
|
vertical-align: middle;
|
|
margin: 0 5px 5px 0;
|
|
}
|
|
|
|
::slotted(input.dt-radio-button:checked) {
|
|
background:
|
|
var(--radio-dot) center no-repeat,
|
|
linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
|
|
}
|
|
|
|
::slotted(input.dt-radio-button:focus) {
|
|
box-shadow: var(--focus-ring-active-shadow);
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) ::slotted(input.dt-radio-button) {
|
|
--gradient-start: #030303;
|
|
--gradient-end: #202020;
|
|
--radio-dot: url(Images/radioDot-dark-theme.png);
|
|
}
|
|
|
|
::slotted(input.dt-radio-button:checked:active),
|
|
::slotted(input.dt-radio-button:active:not(:disabled)) {
|
|
--gradient-start: #c2c2c2;
|
|
--gradient-end: #efefef;
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) ::slotted(input.dt-radio-button:checked:active),
|
|
:host-context(.-theme-with-dark-background) ::slotted(input.dt-radio-button:active:not(:disabled)) {
|
|
--gradient-start: #3d3d3d;
|
|
--gradient-end: #101010;
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
::slotted(input.dt-radio-button) {
|
|
--gradient-start: ButtonFace;
|
|
--gradient-end: ButtonFace;
|
|
}
|
|
|
|
::slotted(input.dt-radio-button:checked) {
|
|
--gradient-start: Highlight;
|
|
--gradient-end: Highlight;
|
|
}
|
|
}
|