mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 05:35:05 +08:00
- Prefer the modern comma-free CSS color function syntax over the legacy syntax. [1] - Explicitly use the `deg` suffix for angle values in colors, to clarify the range. - Explicitly use the `%` suffix for percentages instead of formatting the value as a number, again to clarify the range. [1]: https://twitter.com/mathias/status/1253242715304857601 [2]: https://goo.gle/devtools-css-color Bug: chromium:1083142 Fixed: chromium:1073885 Change-Id: I8e1582a2dee3553a61df88564051ea84c2011d76 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2209091 Reviewed-by: Alex Rudenko <alexrudenko@chromium.org> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Auto-Submit: Mathias Bynens <mathias@chromium.org>
62 lines
1.3 KiB
CSS
62 lines
1.3 KiB
CSS
/*
|
|
* Copyright 2017 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.
|
|
*/
|
|
|
|
.breakpoint-entry {
|
|
padding: 3px 8px 3px 8px;
|
|
min-height: 18px;
|
|
line-height: 15px;
|
|
border-top: 1px solid #efefef;
|
|
}
|
|
|
|
.breakpoint-entry:focus {
|
|
background-color: var(--focus-bg-color);
|
|
}
|
|
|
|
.breakpoint-entry [is=dt-checkbox] {
|
|
max-width: 100%;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
:not(.breakpoints-list-deactivated) > .breakpoint-entry:hover {
|
|
background-color: #eee;
|
|
}
|
|
|
|
.breakpoint-entry > .source-text {
|
|
cursor: pointer;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
margin-left: 22px;
|
|
}
|
|
|
|
.breakpoints-list-deactivated {
|
|
background-color: #eee;
|
|
opacity: 30%;
|
|
}
|
|
|
|
.breakpoint-hit {
|
|
background-color: rgb(255 255 194);
|
|
border-right: 3px solid rgb(107 97 48);
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) .breakpoint-hit {
|
|
background-color: hsl(46deg 98% 22%);
|
|
color: #ccc;
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
:not(.breakpoints-list-deactivated) > .breakpoint-entry:hover,
|
|
.breakpoint-entry:focus {
|
|
forced-color-adjust: none;
|
|
background-color: Highlight;
|
|
}
|
|
|
|
:not(.breakpoints-list-deactivated) > .breakpoint-entry:hover > *,
|
|
.breakpoint-entry:focus > * {
|
|
color: HighlightText;
|
|
}
|
|
}
|