mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-12 17:45:49 +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>
86 lines
1.8 KiB
CSS
86 lines
1.8 KiB
CSS
/* Copyright (c) 2015 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.
|
|
*/
|
|
|
|
.tree-outline {
|
|
padding: 0;
|
|
}
|
|
|
|
.tree-outline li {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
padding: 2px 5px;
|
|
overflow: hidden;
|
|
margin: 2px 0;
|
|
border-top: 1px solid transparent;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tree-outline li.selected:focus .lock-icon,
|
|
.tree-outline .security-sidebar-tree-item.selected:focus .icon {
|
|
background-color: var(--selection-fg-color);
|
|
}
|
|
|
|
.tree-outline .security-main-view-sidebar-tree-item {
|
|
border-bottom: 1px solid rgb(230 230 230);
|
|
padding: 16px 0;
|
|
}
|
|
|
|
.tree-outline li.security-sidebar-origins {
|
|
padding: 1px 8px 1px 13px;
|
|
margin-top: 1em;
|
|
margin-bottom: 0.5em;
|
|
color: rgb(90 90 90);
|
|
border-top: none;
|
|
line-height: 16px;
|
|
text-shadow: rgb(255 255 255 / 75%) 0 1px 0;
|
|
}
|
|
|
|
.tree-outline ol {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.tree-outline li::before {
|
|
content: none;
|
|
}
|
|
|
|
.tree-outline .security-main-view-sidebar-tree-item,
|
|
.tree-outline .security-sidebar-origins,
|
|
.tree-outline li.security-sidebar-origins + .children > li {
|
|
padding-left: 16px;
|
|
}
|
|
|
|
.tree-outline .lock-icon,
|
|
.tree-outline .security-property {
|
|
margin-right: 4px;
|
|
flex: none;
|
|
}
|
|
|
|
.security-sidebar-tree-item {
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.security-sidebar-tree-item .title {
|
|
overflow: hidden;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.security-main-view-reload-message .tree-element-title {
|
|
color: rgb(0 0 0 / 60%);
|
|
padding-left: 8px;
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.tree-outline .lock-icon,
|
|
.tree-outline .security-property {
|
|
forced-color-adjust: none;
|
|
}
|
|
|
|
.tree-outline li.selected:focus .lock-icon,
|
|
.tree-outline .security-sidebar-tree-item.selected:focus .icon {
|
|
background-color: HighlightText;
|
|
}
|
|
}
|