UNPKG

chrome-devtools-frontend

Version:
157 lines (129 loc) 2.99 kB
/* * 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; /* 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 { white-space: normal; } .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; }