Files
react-native-devtools-frontend/front_end/security/sidebar.css
T
Jack Franklin 49a9481a74 Lint color usage in background and border-* properties.
The list of CSS properties we check for colors wasn't thorough and
didn't include `border-left/right/top/bottom` or `background` on its
own. This CL fixes that and disables the rule for any current
violations.

Bug: 1152736
Change-Id: Ic732d653fdfab0462a04dc891bcece1f44e5d471
No-Presubmit: true
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2676157
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
2021-02-05 15:39:39 +00:00

90 lines
2.2 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 .lock-icon,
.tree-outline .security-property {
margin-right: 4px;
flex: none;
}
.tree-outline li.selected:focus .lock-icon,
.tree-outline .security-sidebar-tree-item.selected:focus .icon {
background-color: var(--selection-fg-color);
}
@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;
}
}
.tree-outline .security-main-view-sidebar-tree-item {
border-bottom: 1px solid rgb(230 230 230); /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
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); /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
border-top: none;
line-height: 16px;
text-shadow: rgb(255 255 255 / 75%) 0 1px 0; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
}
.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;
}
.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%); /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
padding-left: 8px;
}