UNPKG

chrome-devtools-frontend

Version:
169 lines (137 loc) • 3.88 kB
/* * Copyright 2017 The Chromium Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ .watch-expression-delete-button { position: absolute; opacity: 0%; right: 0; background-color: var(--watch-expression-delete-button-background-color); /* stylelint-disable-line plugin/use_theme_colors */ border-radius: var(--sys-shape-corner-full); .watch-expression-title:hover & { opacity: 100%; } .watch-expression-title:focus-within & { opacity: 100%; } } @container watch-expression (max-width: 31px) { .watch-expression-delete-button { visibility: hidden; } } :host-context(.theme-with-dark-background) .watch-expression-delete-button { /* This is a workaround due to a sprite with hardcoded color. It should no longer be necessary after we update icons. */ filter: brightness(1.5); } .watch-expressions { min-height: 26px; } .watch-expression-title { white-space: nowrap; line-height: var(--sys-typescale-body3-line-height); display: flex; } li.watch-expression-tree-item > span.tree-element-title { display: block; width: 100%; } .watch-expression-title:hover, .watch-expression-title:focus-within { padding-right: 26px; } .watch-expression-object-header .watch-expression-title { margin-left: var(--sys-size-1); } .watch-expression { position: relative; flex: auto; min-height: var(--sys-size-9); display: block; width: 100%; } .watch-expression .name { color: var(--sys-color-purple); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; flex-shrink: 1000000; min-width: 2em; } .watch-expression-error { color: var(--sys-color-error); } .watch-expressions-separator { flex-shrink: 0; flex-grow: 0; } .watch-expression .value { white-space: nowrap; display: inline; overflow: hidden; padding-left: var(--sys-size-3); text-overflow: ellipsis; flex-shrink: 1; } .watch-expression .text-prompt { text-overflow: clip; overflow: hidden; white-space: nowrap; padding-left: var(--sys-size-3); min-height: 18px; line-height: 18px; user-select: text; } .watch-expression-text-prompt-proxy { margin: var(--sys-size-2) var(--sys-size-6) var(--sys-size-2) calc(-1 * var(--sys-size-3)); padding-bottom: 3px; } .watch-expression-header { flex: auto; margin-left: calc(-1 * var(--sys-size-8)); padding-left: 15px; } li.watch-expression-tree-item { container-type: inline-size; container-name: watch-expression; padding-left: var(--sys-size-3); --watch-expression-delete-button-background-color: var(--sys-color-cdt-base); } .theme-with-dark-background li.watch-expression-tree-item { --watch-expression-delete-button-background-color: var(--sys-color-cdt-base-container); } li.watch-expression-tree-item.selected { background: var(--sys-color-neutral-container); --watch-expression-delete-button-background-color: var(--sys-color-neutral-container); } li.watch-expression-tree-item.selected:focus, li.watch-expression-tree-item.selected:focus-within:focus-visible, .watch-expression-header:focus-visible { background: var(--sys-color-tonal-container); --watch-expression-delete-button-background-color: var(--sys-color-tonal-container); } li.watch-expression-editing::before { background-color: transparent; } @media (forced-colors: active) { .watch-expression-title:hover .watch-expression-delete-button, .watch-expressions .dimmed { opacity: 100%; } li.watch-expression-tree-item * { forced-color-adjust: none; color: ButtonText; } li.watch-expression-tree-item:hover { forced-color-adjust: none; background-color: Highlight; } li.watch-expression-tree-item:hover * { color: HighlightText; } li.watch-expression-tree-item:hover .watch-expression-delete-button { background-color: HighlightText; } }