| // Copyright (C) 2026 The Android Open Source Project |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| .pf-memscope-billboard { |
| padding: 14px 16px; |
| border-radius: 8px; |
| border: 0.5px solid var(--pf-col-border); |
| background: var(--pf-col-surface); |
| box-shadow: |
| 0 1px 3px rgba(0, 0, 0, 0.08), |
| 0 1px 2px rgba(0, 0, 0, 0.04); |
| } |
| |
| // A card holding Billboard.Sections lays them out as equal-width columns. |
| .pf-memscope-billboard:has(> .pf-memscope-billboard__section) { |
| display: flex; |
| gap: 24px; |
| } |
| |
| .pf-memscope-billboard__section { |
| flex: 1 1 0; |
| min-width: 0; |
| |
| // Thin divider between adjacent sections. |
| & + & { |
| border-left: 1px solid var(--pf-col-border); |
| padding-left: 24px; |
| } |
| } |
| |
| // Muted caption beneath a section's value. |
| .pf-memscope-billboard__sub { |
| font-size: var(--pf-font-size-s); |
| color: var(--pf-color-text-muted); |
| margin-top: 2px; |
| } |
| |
| .pf-memscope-billboard__value { |
| display: flex; |
| align-items: baseline; |
| gap: 4px; |
| font-size: 24px; |
| font-weight: 300; |
| color: var(--pf-color-text); |
| line-height: 1.2; |
| |
| .pf-memscope-billboard__unit { |
| font-size: 13px; |
| font-weight: 500; |
| } |
| } |
| |
| .pf-memscope-billboard__label { |
| font-size: var(--pf-font-size-s); |
| font-weight: 600; |
| color: var(--pf-color-text); |
| margin-top: 2px; |
| text-transform: uppercase; |
| } |
| |
| .pf-memscope-billboard__desc { |
| font-size: var(--pf-font-size-s); |
| color: var(--pf-color-text-muted); |
| margin-top: 2px; |
| } |
| |
| .pf-memscope-billboard__delta { |
| font-size: var(--pf-font-size-s); |
| font-weight: 600; |
| margin-left: 6px; |
| color: var(--pf-color-text-muted); |
| &--up { |
| color: var(--pf-color-danger); |
| } |
| &--down { |
| color: var(--pf-color-success); |
| } |
| } |
| |
| .pf-billboard-strip { |
| display: flex; |
| flex-direction: row; |
| gap: 12px; |
| |
| & > * { |
| flex-grow: 1; |
| } |
| } |
| |
| // Style billboards inside a panel differently |
| .pf-memscope-panel { |
| .pf-memscope-billboard { |
| background: var(--pf-col-inset); |
| box-shadow: none; |
| } |
| } |