mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-09 05:08:28 +08:00
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>
189 lines
4.5 KiB
CSS
189 lines
4.5 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.
|
|
*/
|
|
|
|
.devtools-link {
|
|
display: inline-block;
|
|
}
|
|
|
|
.security-main-view {
|
|
user-select: text;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
background-color: var(--toolbar-bg-color);
|
|
}
|
|
|
|
.security-main-view > div {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.security-summary-section-title {
|
|
font-size: 15px;
|
|
margin: 12px 16px;
|
|
}
|
|
|
|
.lock-spectrum {
|
|
margin: 8px 16px;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.security-summary .lock-icon {
|
|
flex: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
margin: 0 0;
|
|
}
|
|
/* Separate the middle icon from the other two. */
|
|
|
|
.security-summary .lock-icon-neutral {
|
|
margin: 0 16px;
|
|
}
|
|
|
|
.security-summary:not(.security-summary-secure) .lock-icon-secure,
|
|
.security-summary:not(.security-summary-neutral) .lock-icon-neutral,
|
|
.security-summary:not(.security-summary-insecure) .lock-icon-insecure,
|
|
.security-summary:not(.security-summary-insecure-broken) .lock-icon-insecure-broken {
|
|
background-color: rgb(90 90 90 / 25%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.security-summary-neutral .lock-icon-neutral {
|
|
background-color: Highlight;
|
|
}
|
|
|
|
.security-summary:not(.security-summary-secure) .lock-icon-secure,
|
|
.security-summary:not(.security-summary-neutral) .lock-icon-neutral,
|
|
.security-summary:not(.security-summary-insecure) .lock-icon-insecure,
|
|
.security-summary:not(.security-summary-insecure-broken) .lock-icon-insecure-broken {
|
|
background-color: canvastext;
|
|
}
|
|
}
|
|
|
|
.triangle-pointer-container {
|
|
margin: 8px 24px 0;
|
|
padding: 0 0;
|
|
}
|
|
|
|
.triangle-pointer-wrapper {
|
|
/* Defaults for dynamic properties. */
|
|
transform: translateX(0);
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.triangle-pointer {
|
|
width: 12px;
|
|
height: 12px;
|
|
margin-bottom: -6px;
|
|
margin-left: -6px;
|
|
transform: rotate(-45deg);
|
|
border-style: solid;
|
|
border-width: 1px 1px 0 0;
|
|
background: var(--color-background);
|
|
border-color: rgb(217 217 217);
|
|
}
|
|
|
|
.security-summary-secure .triangle-pointer-wrapper {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.security-summary-neutral .triangle-pointer-wrapper {
|
|
transform: translateX(32px);
|
|
}
|
|
|
|
.security-summary-insecure .triangle-pointer-wrapper {
|
|
transform: translateX(64px);
|
|
}
|
|
|
|
.security-summary-insecure-broken .triangle-pointer-wrapper {
|
|
transform: translateX(64px);
|
|
}
|
|
|
|
.security-summary-text {
|
|
padding: 16px 24px;
|
|
border-style: solid;
|
|
border-width: 1px 0;
|
|
font-size: 15px;
|
|
background: var(--color-background);
|
|
border-color: rgb(217 217 217);
|
|
}
|
|
|
|
.security-summary-secure .triangle-pointer,
|
|
.security-summary-secure .security-summary-text,
|
|
.security-explanation-title-secure {
|
|
color: #0b8043; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.security-summary-insecure-broken .triangle-pointer,
|
|
.security-summary-insecure-broken .security-summary-text,
|
|
.security-explanation-title-neutral,
|
|
.security-explanation-title-insecure,
|
|
.security-explanation-title-insecure-broken {
|
|
color: #cb3626; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.security-explanation-list {
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
.security-explanation-list:empty {
|
|
border-bottom: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.security-explanations-main {
|
|
margin-top: -5px;
|
|
background-color: var(--color-background);
|
|
border-bottom: 1px solid rgb(230 230 230); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.security-explanations-extra {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.security-explanation {
|
|
padding: 11px;
|
|
display: flex;
|
|
white-space: nowrap;
|
|
border: none;
|
|
color: rgb(90 90 90); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.security-explanation-text {
|
|
flex: auto;
|
|
white-space: normal;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.security-explanation .security-property {
|
|
flex: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.security-explanation-title {
|
|
color: rgb(48 57 66); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
margin-top: 1px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.security-mixed-content {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.security-explanation-recommendations {
|
|
padding-inline-start: 16px;
|
|
}
|
|
|
|
.security-explanation-recommendations > li {
|
|
margin-bottom: 4px;
|
|
}
|