mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 20:39:31 +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>
256 lines
6.4 KiB
CSS
256 lines
6.4 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.
|
|
*/
|
|
|
|
.network-timing-table {
|
|
width: 380px;
|
|
border-spacing: 0;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
line-height: initial;
|
|
table-layout: fixed;
|
|
}
|
|
|
|
.network-timing-start {
|
|
border-top: 5px solid transparent;
|
|
}
|
|
|
|
.network-timing-start th span.network-timing-hidden-header {
|
|
height: 1px;
|
|
width: 1px;
|
|
position: absolute;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.network-timing-table-header td,
|
|
.network-timing-footer td {
|
|
border-top: 10px solid transparent;
|
|
}
|
|
|
|
.network-timing-table-header td {
|
|
color: #737373; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-timing-table td {
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.network-timing-table-header td:last-child {
|
|
text-align: right;
|
|
}
|
|
|
|
.network-timing-footer td:last-child {
|
|
font-weight: bold;
|
|
text-align: right;
|
|
}
|
|
|
|
table.network-timing-table > tr:not(.network-timing-table-header):not(.network-timing-footer) > td:first-child {
|
|
padding-left: 12px;
|
|
}
|
|
|
|
.network-timing-table col.labels {
|
|
width: 156px;
|
|
}
|
|
|
|
.network-timing-table col.duration {
|
|
width: 80px;
|
|
}
|
|
|
|
.network-timing-table td.caution {
|
|
font-weight: bold;
|
|
color: rgb(255 128 0); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.network-timing-table hr.break {
|
|
border: 0;
|
|
height: 1px;
|
|
background-image: linear-gradient(to right, #eee, #bbb, #eee); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-timing-row {
|
|
position: relative;
|
|
height: 15px;
|
|
}
|
|
|
|
.network-timing-bar {
|
|
position: absolute;
|
|
min-width: 1px;
|
|
top: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.network-timing-bar-title {
|
|
color: #222; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
white-space: nowrap;
|
|
text-align: right;
|
|
}
|
|
|
|
.network-timing-bar.queueing,
|
|
.network-timing-bar.total {
|
|
border: 1px solid rgb(0 0 0 / 10%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-timing-bar.blocking,
|
|
.-theme-preserve {
|
|
background-color: #aaa; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-timing-bar.proxy,
|
|
.-theme-preserve {
|
|
background-color: #a1887f; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-timing-bar.dns,
|
|
.-theme-preserve {
|
|
background-color: #009688; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-timing-bar.connecting,
|
|
.network-timing-bar.serviceworker,
|
|
.network-timing-bar.serviceworker-preparation,
|
|
.-theme-preserve {
|
|
background-color: #ff9800; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-timing-bar.ssl,
|
|
.-theme-preserve {
|
|
background-color: #9c27b0; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-timing-bar.serviceworker-respondwith,
|
|
.-theme-preserve {
|
|
background-color: #a8a3ff; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-fetch-timing-bar-clickable::before {
|
|
user-select: none;
|
|
-webkit-mask-image: url(Images/treeoutlineTriangles.svg);
|
|
-webkit-mask-position: 0 0;
|
|
-webkit-mask-size: 32px 24px;
|
|
float: left;
|
|
width: 8px;
|
|
height: 12px;
|
|
margin-right: 2px;
|
|
content: "";
|
|
position: relative;
|
|
top: 3px;
|
|
background-color: rgb(110 110 110); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-fetch-timing-bar-clickable {
|
|
position: relative;
|
|
left: -12px;
|
|
}
|
|
|
|
.network-fetch-timing-bar-clickable:focus-visible {
|
|
background-color: var(--toolbar-bg-color);
|
|
}
|
|
|
|
.network-fetch-timing-bar-clickable[aria-checked="true"]::before {
|
|
-webkit-mask-position: -16px 0;
|
|
}
|
|
|
|
.network-fetch-timing-bar-details-collapsed {
|
|
display: none;
|
|
}
|
|
|
|
.network-fetch-timing-bar-details-expanded {
|
|
display: block;
|
|
}
|
|
|
|
.network-fetch-timing-bar-details {
|
|
padding-left: 11px;
|
|
width: fit-content;
|
|
}
|
|
|
|
.network-fetch-details-treeitem {
|
|
width: max-content;
|
|
}
|
|
|
|
.network-timing-bar.sending,
|
|
.-theme-preserve {
|
|
background-color: #b0bec5; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-timing-bar.waiting,
|
|
.-theme-preserve {
|
|
background-color: #00c853; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-timing-bar.receiving,
|
|
.network-timing-bar.receiving-push,
|
|
.-theme-preserve {
|
|
background-color: #03a9f4; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-timing-bar.push,
|
|
.-theme-preserve {
|
|
background-color: #8cdbff; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-timing-bar.server-timing,
|
|
.-theme-preserve {
|
|
background-color: #ddd; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.network-timing-table td.network-timing-metric {
|
|
white-space: nowrap;
|
|
max-width: 150px;
|
|
overflow-x: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.network-timing-bar.proxy,
|
|
.network-timing-bar.dns,
|
|
.network-timing-bar.ssl,
|
|
.network-timing-bar.connecting,
|
|
.network-timing-bar.blocking {
|
|
height: 10px;
|
|
margin: auto;
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.network-timing-bar.blocking,
|
|
.network-timing-bar.proxy,
|
|
.network-timing-bar.dns,
|
|
.network-timing-bar.connecting,
|
|
.network-timing-bar.serviceworker,
|
|
.network-timing-bar.serviceworker-preparation,
|
|
.network-timing-bar.ssl,
|
|
.network-timing-bar.sending,
|
|
.network-timing-bar.waiting,
|
|
.network-timing-bar.receiving,
|
|
.network-timing-bar.receiving-push,
|
|
.network-timing-bar.push,
|
|
.network-timing-bar.server-timing,
|
|
.-theme-preserve {
|
|
forced-color-adjust: none;
|
|
}
|
|
|
|
.network-timing-table-header td,
|
|
.network-timing-footer td {
|
|
forced-color-adjust: none;
|
|
color: ButtonText;
|
|
}
|
|
}
|