UNPKG

chrome-devtools-frontend

Version:
181 lines (150 loc) 3.23 kB
/* * Copyright 2022 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. */ .header { background-color: var(--sys-color-surface1); border-bottom: 1px solid var(--sys-color-divider); border-top: 1px solid var(--sys-color-divider); line-height: 25px; padding: 0 5px; } .header::marker { font-size: 11px; line-height: 1; } .header:focus { background-color: var(--sys-color-state-header-hover); } details[open] .header-count { display: none; } details .hide-when-closed { display: none; } details[open] .hide-when-closed { display: block; } details summary input { vertical-align: middle; } .row { display: flex; line-height: 18px; padding-left: 8px; gap: var(--sys-size-6); user-select: text; margin: var(--sys-size-3) 0; } div.raw-headers-row { display: block; } .row:first-of-type { margin-top: var(--sys-size-5); } .row:last-child { margin-bottom: var(--sys-size-5); } .header-name { color: var(--sys-color-on-surface-subtle); font: var(--sys-typescale-body5-medium); width: 30%; min-width: 160px; max-width: 240px; flex-shrink: 0; text-transform: capitalize; } .header-value { word-break: break-all; display: flex; align-items: center; gap: 2px; font: var(--sys-typescale-body4-regular); } .header-name, .header-value { &::selection { color: var(--sys-color-on-tonal-container); background-color: var(--sys-color-tonal-container); } } .green-circle::before, .red-circle::before, .yellow-circle::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 6px; vertical-align: text-top; margin-right: 2px; } .green-circle::before { background-color: var(--sys-color-green-bright); } .red-circle::before { background-color: var(--sys-color-error-bright); } .yellow-circle::before { background-color: var(--issue-color-yellow); } .status-with-comment { color: var(--sys-color-token-subtle); } .raw-headers { font-family: var(--source-code-font-family); font-size: var(--source-code-font-size); white-space: pre-wrap; word-break: break-all; } .link, .devtools-link { color: var(--sys-color-primary); text-decoration: underline; cursor: pointer; outline-offset: 2px; } .inline-icon { vertical-align: middle; } .header-grid-container { display: inline-grid; grid-template-columns: 156px 50px 1fr; grid-gap: 4px; /* Make this fit into the same line as the summary marker */ width: calc(100% - 15px); } .header-grid-container div:last-child { text-align: right; } .header .devtools-link { color: var(--sys-color-on-surface); } x-link { position: relative; } x-link .inline-icon { padding-right: 3px; } .purple.dot::before { background-color: var(--sys-color-purple-bright); content: var(--image-file-empty); width: 6px; height: 6px; border-radius: 50%; outline: 1px solid var(--icon-gap-toolbar); left: 9px; position: absolute; top: 11px; z-index: 1; } summary label { display: inline-flex; align-items: center; vertical-align: middle; gap: var(--sys-size-3); } summary label input[type="checkbox"] { margin-top: 1px; }