Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
File size: 1,423 Bytes
816fa8a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | /* S72-T65: the Sheet status bar (Average, Count, Sum), imported by `sheet/SheetStatusBar.tsx`.
Its look matches the Data grid's `.cg-sum-bar` (styles/wave50/grid.css): 30px high, 2xs type,
a muted label and a tabular ink value. */
/* The strip's own geometry, declared once. 30px is `SUMMARY_BAR_PX`, the Data grid bar's height. */
.sheet-grid-wrap {
--sheet-status-h: 30px;
--sheet-status-gap: 16px;
--sheet-status-pad: 12px;
--sheet-status-label-gap: 6px;
}
/* A flex child of the `.sheet-grid-wrap` column under the grid surface. `flex: 0 0 auto` and a
fixed height keep the canvas the same size whether the strip shows numbers or not. */
.sheet-status {
flex: 0 0 auto;
box-sizing: border-box;
height: var(--sheet-status-h);
display: flex;
align-items: center;
justify-content: safe flex-end;
gap: var(--sheet-status-gap);
padding: 0 var(--sheet-status-pad);
overflow: hidden;
white-space: nowrap;
border-top: var(--lp-hairline-width) solid var(--lp-line);
background: var(--lp-wash);
font-size: var(--lp-fs-2xs);
color: var(--lp-muted);
}
.sheet-status-item {
display: inline-flex;
align-items: baseline;
gap: var(--sheet-status-label-gap);
}
.sheet-status-value {
color: var(--lp-ink);
font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
.sheet-status {
--sheet-status-gap: 8px;
--sheet-status-pad: 8px;
overflow-x: auto;
}
}
|