mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-09 05:08:28 +08:00
This CL turns on the use_theme_colors stylelint rule which enforces that any colors use variables defined in our codebase. There are many, many violations, unsurprisingly (about 1500), so for now I have disabled every single violation. The goal of the dark mode migration will be in part to remove all violations of this rule. Additionally, new code going forwards should adhere to the rule and not add the comment to disable the warning. Bug: 1152736 Change-Id: I51372724ea51485daef3d4f75b7d3f60a7c8016f No-Presubmit: true Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2671323 Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Paul Lewis <aerotwist@chromium.org>
133 lines
3.3 KiB
CSS
133 lines
3.3 KiB
CSS
/*
|
|
* Copyright 2020 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.
|
|
*/
|
|
.resource-service-worker-update-view {
|
|
display: block;
|
|
margin: 6px;
|
|
color: rgb(30% 30% 30%); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
overflow: auto;
|
|
}
|
|
|
|
.service-worker-update-timing-table {
|
|
width: 380px;
|
|
border-spacing: 0;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
line-height: initial;
|
|
table-layout: fixed;
|
|
}
|
|
|
|
.service-worker-update-timing-start {
|
|
border-top: 5px solid transparent;
|
|
}
|
|
|
|
.service-worker-update-timing-start th span.service-worker-update-timing-hidden-header {
|
|
height: 1px;
|
|
width: 1px;
|
|
position: absolute;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.service-worker-update-timing-row {
|
|
position: relative;
|
|
height: 20px;
|
|
}
|
|
|
|
.service-worker-update-timing-bar {
|
|
position: absolute;
|
|
min-width: 1px;
|
|
top: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.service-worker-update-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;
|
|
}
|
|
|
|
.service-worker-update-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. */
|
|
}
|
|
|
|
.service-worker-update-timing-bar-clickable {
|
|
position: relative;
|
|
left: -12px;
|
|
}
|
|
|
|
.service-worker-update-timing-bar-clickable:focus-visible {
|
|
background-color: var(--toolbar-bg-color);
|
|
}
|
|
|
|
.service-worker-update-timing-bar-clickable[aria-checked="true"]::before {
|
|
-webkit-mask-position: -16px 0;
|
|
}
|
|
|
|
.service-worker-update-timing-bar-details-collapsed {
|
|
display: none;
|
|
}
|
|
|
|
.service-worker-update-timing-bar-details-expanded {
|
|
display: block;
|
|
}
|
|
|
|
.service-worker-update-timing-bar-details {
|
|
padding-left: 11px;
|
|
width: fit-content;
|
|
}
|
|
|
|
.service-worker-update-timing-bar.activate {
|
|
top: 5px;
|
|
height: 10px;
|
|
background-color: #ff9800; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.service-worker-update-timing-bar.wait {
|
|
top: 5px;
|
|
height: 10px;
|
|
background-color: #9c27b0; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.service-worker-update-timing-bar.install {
|
|
top: 5px;
|
|
height: 10px;
|
|
background-color: #009688; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.service-worker-update-details-treeitem {
|
|
width: max-content;
|
|
}
|
|
|
|
.service-worker-update-timing-table-header td {
|
|
border-top: 5px solid transparent;
|
|
color: #737373; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
}
|
|
|
|
.service-worker-update-timing-table td {
|
|
padding: 4px 0;
|
|
}
|
|
|
|
table.service-worker-update-timing-table > tr:not(.service-worker-update-timing-table-header) > td:first-child {
|
|
padding-left: 12px;
|
|
}
|