Files
react-native-devtools-frontend/front_end/resources/serviceWorkersView.css
T
Jack Franklin 8064d3ba7a Lint against non-theme-color variables
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>
2021-02-03 11:02:09 +00:00

158 lines
3.2 KiB
CSS

/*
* Copyright 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.
*/
.service-worker-version {
display: flex;
}
.service-worker-version-stack {
position: relative;
}
.service-worker-version-stack-bar {
position: absolute;
top: 10px;
bottom: 20px;
left: 4px;
content: "";
border-left: 1px solid var(--color-details-hairline);
z-index: 0;
}
.service-worker-version:not(:last-child) {
margin-bottom: 7px;
}
.service-worker-version-string {
overflow: hidden;
text-overflow: ellipsis;
}
.service-worker-active-circle,
.service-worker-redundant-circle,
.service-worker-waiting-circle,
.service-worker-installing-circle {
position: relative;
display: inline-block;
width: 10px;
height: 10px;
z-index: 10;
margin-right: 5px;
border-radius: 50%;
border: 1px solid var(--color-text-secondary);
align-self: center;
}
/* The circle's color does not change for light/dark mode on purpose */
.service-worker-active-circle {
background-color: #50b04f; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
}
.service-worker-waiting-circle {
background-color: #f38e24; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
}
.service-worker-installing-circle {
background-color: var(--color-background);
}
.service-worker-redundant-circle {
background-color: #808080; /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
}
.service-worker-subtitle {
padding-left: 14px;
line-height: 14px;
color: var(--color-text-disabled);
}
.link {
margin-left: 7px;
}
.service-worker-editor-with-button {
align-items: baseline;
display: flex;
}
.service-worker-notification-editor {
border: 1px solid var(--color-details-hairline);
display: flex;
flex: auto;
margin-right: 4px;
max-width: 400px;
min-width: 80px;
}
.report-field-value-filename,
.service-worker-client-string {
max-width: 400px;
overflow: hidden;
text-overflow: ellipsis;
}
.report-field-value-filename {
/* hack to prevent focus-ring from being cut off on the left */
padding-left: 2px;
margin-left: -2px;
}
.report-field-value-subtitle {
overflow: hidden;
text-overflow: ellipsis;
}
.service-worker-client {
display: flex;
}
.service-worker-client-focus-link {
flex: none;
margin-right: 2px;
align-self: center;
}
.service-worker-notification-editor.source-code {
/** Simulate CodeMirror that is shown above */
padding: 4px;
}
.service-worker-list {
background-color: var(--color-background-elevation-1);
overflow: auto;
}
.service-workers-this-origin {
flex-shrink: 0;
flex-grow: 0;
}
.service-workers-this-origin,
.service-workers-other-origin {
min-width: 400px;
}
.service-worker-has-current .service-workers-other-origin {
margin-top: 16px;
border-top: 1px solid var(--color-details-hairline);
}
.devtools-link {
line-height: 14px;
align-self: center;
padding: 1px;
}
button.link {
padding: 1px;
}
button.link:focus-visible {
background-color: inherit;
}