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>
132 lines
2.4 KiB
CSS
132 lines
2.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.
|
|
*/
|
|
|
|
.blackboxed-message {
|
|
text-align: center;
|
|
font-style: italic;
|
|
padding: 4px;
|
|
color: #888;
|
|
background-color: #ffffc2;
|
|
}
|
|
|
|
.blackboxed-message > .link {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.blackboxed-message > .link:focus {
|
|
outline-width: unset;
|
|
}
|
|
|
|
.show-more-message {
|
|
text-align: center;
|
|
font-style: italic;
|
|
padding: 4px;
|
|
border-top: 1px solid #d8d8d8;
|
|
}
|
|
|
|
.show-more-message > .link {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.call-frame-item {
|
|
padding: 3px 8px 3px 20px;
|
|
position: relative;
|
|
min-height: 18px;
|
|
line-height: 15px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.call-frame-title-text {
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.call-frame-item:not(.async-header) {
|
|
border-top: 1px solid #efefef;
|
|
}
|
|
|
|
.call-frame-item:not(.async-header):hover {
|
|
background-color: #eee;
|
|
}
|
|
|
|
.call-frame-item[data-keyboard-focus="true"]:focus,
|
|
.call-frame-item.async-header[data-keyboard-focus="true"]:focus .call-frame-item-title {
|
|
background-color: var(--focus-bg-color);
|
|
}
|
|
|
|
.async-header + .call-frame-item {
|
|
border-top: 0;
|
|
}
|
|
|
|
.call-frame-item-title,
|
|
.call-frame-location {
|
|
display: flex;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.call-frame-location {
|
|
color: #888;
|
|
margin-left: auto;
|
|
padding: 0 10px 0 10px;
|
|
}
|
|
|
|
.async-header::before {
|
|
content: " ";
|
|
width: 100%;
|
|
border-top: 1px solid #d8d8d8;
|
|
margin-top: 8px;
|
|
position: absolute;
|
|
left: 0;
|
|
}
|
|
|
|
.async-header .call-frame-item-title {
|
|
font-weight: bold;
|
|
color: #999;
|
|
background-color: white;
|
|
margin-left: -5px;
|
|
padding: 0 5px;
|
|
z-index: 1;
|
|
}
|
|
|
|
.blackboxed-call-frame {
|
|
opacity: 60%;
|
|
font-style: italic;
|
|
}
|
|
|
|
.selected-call-frame-icon {
|
|
display: none;
|
|
position: absolute;
|
|
top: 5px;
|
|
left: 4px;
|
|
}
|
|
|
|
.call-frame-item.selected .selected-call-frame-icon {
|
|
display: block;
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) .blackboxed-message {
|
|
background-color: hsl(46deg 98% 22%);
|
|
color: #aaa;
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) .blackboxed-message > .link {
|
|
color: hsl(0deg 0% 67%);
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.call-frame-item:not(.async-header):hover,
|
|
.call-frame-item[data-keyboard-focus="true"]:focus {
|
|
forced-color-adjust: none;
|
|
background-color: Highlight;
|
|
}
|
|
|
|
.call-frame-item:not(.async-header):hover *,
|
|
.call-frame-item[data-keyboard-focus="true"]:focus * {
|
|
color: HighlightText;
|
|
}
|
|
}
|