| /* | |
| * Copyright 2026 The Chromium Authors | |
| * Use of this source code is governed by a BSD-style license that can be | |
| * found in the LICENSE file. | |
| */ | |
| * { | |
| box-sizing: border-box; | |
| min-width: 0; | |
| min-height: 0; | |
| } | |
| :host { | |
| display: flex; | |
| flex-direction: column; | |
| flex: none; | |
| position: relative; | |
| } | |
| #container { | |
| position: relative; | |
| flex: auto; | |
| contain: style; | |
| } | |
| .expandable-view-title { | |
| display: flex; | |
| align-items: center; | |
| background-color: var(--sys-color-surface2); | |
| height: var(--sys-size-10); | |
| padding: 0 var(--sys-size-3); | |
| white-space: nowrap; | |
| overflow: hidden; | |
| position: relative; | |
| border-bottom: var(--sys-size-1) solid transparent; | |
| } | |
| .expandable-view-title:focus { | |
| outline-style: none; | |
| } | |
| .expandable-view-title.expanded { | |
| border-bottom: var(--sys-size-1) solid var(--sys-color-divider); | |
| } | |
| slot[name="actions"]::slotted(*) { | |
| position: absolute; | |
| right: 0; | |
| top: 0; | |
| } | |
| slot[name="actions"]::slotted(devtools-toolbar) { | |
| /* Center the 26px (--toolbar-height) toolbar in the 22px (--sys-size-10) header: (22px - 26px) / 2 = -2px. */ | |
| margin-top: calc(-1 * var(--sys-size-2)); | |
| } | |
| .expandable-view-title:not(.expanded) slot[name="actions"], | |
| :host(:not([open])) #content { | |
| display: none; | |
| } | |
| .title-expand-icon { | |
| margin-right: var(--sys-size-2); | |
| margin-bottom: calc(-1 * var(--sys-size-2)); | |
| } | |
| .expandable-view-title:focus-visible { | |
| background-color: var(--override-expandable-section-focus-background-color, var(--sys-color-state-focus-highlight)); | |
| } | |
| @media (forced-colors: active) { | |
| .expandable-view-title:focus-visible { | |
| forced-color-adjust: none; | |
| color: HighlightText; | |
| background-color: Highlight; | |
| box-shadow: 0 0 0 var(--sys-size-2) Highlight inset; | |
| } | |
| .expandable-view-title:focus-visible .title-expand-icon { | |
| color: HighlightText; | |
| } | |
| } |