| /* | |
| * 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. | |
| */ | |
| :host { | |
| padding: var(--sys-size-6); | |
| display: flex; | |
| flex-direction: column; | |
| overflow: auto; | |
| } | |
| .ads-view-container { | |
| display: flex; | |
| flex-direction: column; | |
| flex: auto; | |
| } | |
| .metrics-container { | |
| flex: 0 0 auto; | |
| margin: 0; | |
| border: var(--sys-size-1) solid var(--sys-color-divider); | |
| display: grid; | |
| grid-template-columns: repeat(2, 1fr); | |
| gap: var(--sys-size-1); | |
| background-color: var(--sys-color-divider); | |
| } | |
| .metric-box { | |
| background-color: var(--sys-color-surface); | |
| padding: var(--sys-size-4); | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| position: relative; | |
| } | |
| .metric-title { | |
| font-size: var(--sys-typescale-body4-size); | |
| color: var(--sys-color-on-surface-subtle); | |
| margin: 0 0 var(--sys-size-3); | |
| padding: 0 var(--sys-size-8); | |
| text-align: center; | |
| } | |
| .metric-value { | |
| font-size: var(--sys-typescale-headline3-size); | |
| font-weight: bold; | |
| color: var(--sys-color-on-surface); | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| margin: 0; | |
| gap: var(--sys-size-2); | |
| } | |
| .metric-average { | |
| font-size: var(--sys-typescale-body4-size); | |
| font-weight: normal; | |
| color: var(--sys-color-on-surface-subtle); | |
| } | |
| .metric-info-icon { | |
| position: absolute; | |
| top: var(--sys-size-4); | |
| right: var(--sys-size-4); | |
| cursor: pointer; | |
| } | |
| .metrics-title, | |
| .ad-frames-title, | |
| .ad-scripts-title, | |
| .settings-title { | |
| color: var(--sys-color-on-surface); | |
| flex: 0 0 auto; | |
| font-weight: bold; | |
| margin-bottom: var(--sys-size-5); | |
| } | |
| .ad-frames-data-grid, | |
| .ad-scripts-data-grid { | |
| flex: auto; | |
| } | |
| .ad-frames-container, | |
| .ad-scripts-container { | |
| border: var(--sys-size-1) solid var(--sys-color-divider); | |
| display: flex; | |
| flex: 1; /* Takes up remaining space */ | |
| flex-direction: column; | |
| margin-bottom: 0; | |
| min-height: var(--sys-size-22); /* 144px */ | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .divider { | |
| border: none; | |
| border-top: var(--sys-size-1) solid var(--sys-color-divider); | |
| margin: var(--sys-size-8) 0 var(--sys-size-6); | |
| } | |
| .setting-text-container { | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .setting-explanation { | |
| color: var(--sys-color-token-subtle); | |
| white-space: break-spaces; | |
| margin-top: 0; | |
| } | |
| .footer-text { | |
| margin-bottom: var(--sys-size-6); | |
| } | |
| .inline-icon { | |
| width: var(--sys-size-8); | |
| height: var(--sys-size-8); | |
| vertical-align: text-bottom; | |
| } |