mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 09:47:56 +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>
109 lines
2.3 KiB
CSS
109 lines
2.3 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.
|
|
*/
|
|
|
|
:host {
|
|
padding: 0;
|
|
margin: 0;
|
|
display: inline-flex;
|
|
flex-shrink: 0;
|
|
align-items: center !important;
|
|
}
|
|
|
|
input {
|
|
height: 12px;
|
|
width: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
input.inside-datagrid {
|
|
height: 10px;
|
|
width: 10px;
|
|
}
|
|
|
|
input:focus {
|
|
outline: auto 5px -webkit-focus-ring-color;
|
|
}
|
|
|
|
input.dt-checkbox-themed {
|
|
appearance: none;
|
|
margin: auto 5px auto 2px;
|
|
border: 1px solid rgb(45 45 45);
|
|
border-radius: 3px;
|
|
background-color: rgb(102 102 102);
|
|
}
|
|
|
|
input.dt-checkbox-themed::after {
|
|
content: '';
|
|
line-height: 10px;
|
|
position: absolute;
|
|
cursor: pointer;
|
|
width: 12px;
|
|
height: 12px;
|
|
background: none;
|
|
-webkit-mask-image: url(Images/checkboxCheckmark.svg);
|
|
-webkit-mask-size: 11px 11px;
|
|
-webkit-mask-position: 0 0;
|
|
}
|
|
|
|
input.dt-checkbox-themed:checked::after {
|
|
background-color: #333;
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) input:not(.dt-checkbox-themed) {
|
|
filter: invert(80%);
|
|
}
|
|
|
|
.dt-checkbox-text {
|
|
margin-left: 3px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.dt-checkbox-subtitle {
|
|
color: gray;
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
input.dt-checkbox-theme-preserve {
|
|
forced-color-adjust: none;
|
|
}
|
|
|
|
input.dt-checkbox-theme-preserve:active {
|
|
background: HighlightText;
|
|
}
|
|
|
|
input.dt-checkbox-theme-preserve:checked,
|
|
input.dt-checkbox-theme-preserve:active:checked {
|
|
background: Highlight;
|
|
border-color: Highlight;
|
|
}
|
|
|
|
input.dt-checkbox-theme-preserve:hover:enabled {
|
|
border-color: Highlight;
|
|
}
|
|
|
|
input.dt-checkbox-theme-preserve:active::before,
|
|
input.dt-checkbox-theme-preserve:active::after {
|
|
background-color: Highlight;
|
|
}
|
|
|
|
input.dt-checkbox-theme-preserve:checked::before,
|
|
input.dt-checkbox-theme-preserve:checked::after,
|
|
input.dt-checkbox-theme-preserve:active:checked::before,
|
|
input.dt-checkbox-theme-preserve:active:checked::after {
|
|
background-color: HighlightText;
|
|
}
|
|
|
|
input.dt-checkbox-theme-preserve:hover:checked::before,
|
|
input.dt-checkbox-theme-preserve:hover:checked::after {
|
|
background-color: Highlight !important;
|
|
}
|
|
|
|
input.dt-checkbox-theme-preserve:hover:checked {
|
|
background: HighlightText;
|
|
}
|
|
}
|