runloopable / web /src /styles /sdlc72 /sheet-status.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
816fa8a verified
Raw History Blame Contribute Delete
1.42 kB
/* 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;
}
}