loopable / web /src /styles /wave56 /charts.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
e13472e verified
Raw History Blame Contribute Delete
2.47 kB
/*
* Wave 56, lane B, W56-T08, ruling R6.
* This file exists because `.sheet-chart-anchor` has `pointer-events: none` in a stylesheet this
* lane may not edit.
*/
/*
* R6 overrides the documented pointer transparency: the chart is now a real click target. The
* anchor handlers never take DOM focus, so the keyboard path to the cells underneath survives.
*/
.sheet-chart-anchor.sheet-chart-hit {
pointer-events: auto;
}
.sheet-chart.is-selected {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 1px;
}
.sheet-chart.is-selected .sheet-chart-tool {
opacity: 1;
}
/*
* W56-T10, and this rule was written by the LANE LEAD after looking at the frame rather than by
* the ticket's worker. `.sheet-chart-fields` is a two column grid, `116px minmax(0, 1fr)`, in a
* stylesheet this lane may not edit, so the caption W56-T10 added under the Data range input
* landed in the 116px LABEL column and wrapped to five lines beside the field. A caption belongs
* under the control it describes, across the whole row. This also straightens the pre-existing
* "Enter a cell range such as B2:E8." error caption, which had the same latent placement and was
* simply rarer to see.
*/
.sheet-chart-fields .sheet-chart-caption {
grid-column: 1 / -1;
}
/* R6 gives deletion its destructive colour while keeping it on the dialog's ordinary surface. */
.sheet-chart-delete {
margin-right: auto;
color: var(--lp-red-deep);
background: var(--lp-surface);
}
.sheet-chart-delete:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 1px;
}
/*
* W56-T12, R6: category labels keep compensating for the chart draw scale, but end-anchored
* values must fit the 46-unit gutter set by `viz/SeriesChart`'s `PAD_L`. No lane owns that file
* this wave, so the value label is capped by the space it has rather than by taste: a clipped
* number is worse than a small one. Once the draw scale reaches 1, both labels land at the same
* size anyway. These rules stay scoped because `.pg-ax-lab` also belongs to Dashboard charts.
*/
.sheet-chart .pg-ax-lab {
font-size: calc(var(--lp-fs-2xs) / var(--sheet-chart-scale, 1));
}
.sheet-chart .pg-ax-lab[text-anchor="end"] {
font-size: var(--lp-fs-2xs);
}
.sheet-chart .sheet-chart-cat {
font-size: calc(var(--lp-fs-2xs) / var(--sheet-chart-scale, 1));
}
.sheet-chart .pg-legend {
font-size: var(--lp-fs-xs);
}
.sheet-chart .sheet-chart-foot {
font-size: var(--lp-fs-2xs);
}