UNPKG

chrome-devtools-frontend

Version:
201 lines (165 loc) 3.83 kB
/* * Copyright 2015 The Chromium Authors * 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; /* The status string can be long, allow this line of the report to wrap. */ align-items: center; flex-wrap: wrap; devtools-button { margin-left: var(--sys-size-3); } } .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(--sys-color-divider); z-index: 0; } .service-worker-version:not(:last-child) { margin-bottom: 7px; } .service-worker-version-string { /* This label contains important information that needs to be legible at all times. Don't shrink it. */ flex-shrink: 0; } .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(--sys-color-token-subtle); align-self: center; /* The circle should not shrink, to avoid risking becoming invisible. */ flex-shrink: 0; } .service-worker-active-circle { background-color: var(--sys-color-green-bright); } .service-worker-waiting-circle { background-color: var(--sys-color-yellow-bright); } .service-worker-installing-circle { background-color: var(--sys-color-cdt-base-container); } .service-worker-redundant-circle { background-color: var(--sys-color-neutral-bright); } .service-worker-subtitle { padding-left: 14px; line-height: 14px; color: var(--sys-color-state-disabled); } .link { margin-left: 7px; } .service-worker-editor-with-button { align-items: baseline; display: flex; } .service-worker-notification-editor { border: 1px solid var(--sys-color-divider); 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 { display: contents; } .report-field-value-subtitle { overflow: hidden; text-overflow: ellipsis; } .service-worker-client { display: flex; } .service-worker-client-focus-link { flex: none; margin-left: 2px; align-self: center; } .service-worker-notification-editor.source-code { /** Simulate CodeMirror that is shown above */ padding: 4px; } .service-worker-list { background-color: var(--sys-color-cdt-base-container); overflow: auto; } .service-workers-this-origin { flex-shrink: 0; flex-grow: 0; } .devtools-link { line-height: 14px; align-self: center; padding: 1px; } button.link { padding: 1px; } button.link:focus-visible { background-color: inherit; } devtools-icon.error-icon { color: var(--sys-color-error-bright); height: var(--sys-size-7); margin-right: var(--sys-size-2); vertical-align: bottom; width: var(--sys-size-7); } .service-worker-toolbar { margin-left: var(--sys-size-4); } .report-field { display: flex; padding: var(--sys-size-3) 0; } .report-field-name { font: var(--sys-typescale-body5-medium); color: var(--sys-color-on-surface-subtle); flex: 0 0 128px; text-align: left; white-space: pre-wrap; } .report-field-value { font: var(--sys-typescale-body4-regular); flex: auto; padding: 0 var(--sys-size-6); white-space: normal; user-select: text; } .service-worker-section { border-bottom: 1px solid var(--sys-color-divider); grid-column: 1 / 3; padding: 0 var(--sys-size-9) 11px var(--sys-size-9); } .service-worker-section-container { display: contents; } devtools-widget { display: block; }