runloopable / web /src /styles /wave61 /sheet-grid.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
2e7e617 verified
Raw History Blame Contribute Delete
4.74 kB
/* W61-T10 / R12: the editor is portalled to body, so scope through its own root.
These selectors beat the earlier single-class rules regardless of chunk load order. */
.sheet-formula-editor .sheet-formula-editor-input-wrap {
flex: 0 0 100%;
}
.sheet-formula-editor .sheet-formula-editor-input,
.sheet-formula-editor .sheet-formula-editor-backdrop,
.sheet-formula-editor .sheet-formula-editor-sizer {
box-sizing: border-box;
font: inherit;
font-size: var(--lp-fs-xs);
line-height: inherit;
padding: 0 7px;
border-width: 1px;
border-style: solid;
white-space: pre-wrap;
overflow-wrap: anywhere;
word-break: normal;
letter-spacing: normal;
}
.sheet-formula-editor .sheet-formula-editor-input {
display: block;
margin: 0;
min-width: 0;
min-height: 0;
resize: none;
overflow: hidden;
}
/* A line is the cell's inner height, so one line stays vertically centred without a
separate padding mode. Block text flow keeps coloured spans on the textarea's lines;
flex would wrap each reference independently and detach the colour from its glyphs. */
.sheet-formula-editor .sheet-formula-editor-backdrop {
display: block;
align-items: flex-start;
border-color: transparent;
}
.sheet-formula-editor .sheet-formula-editor-sizer {
display: block;
position: absolute;
left: 0;
top: 0;
visibility: hidden;
pointer-events: none;
width: max-content;
border: 1px solid transparent;
}
.sheet-formula-editor .sheet-formula-mode,
.sheet-formula-editor .formula-assist {
line-height: 1.5;
}
/* Reference colour is preserved; a different weight would measure different glyph widths
from the native textarea, and the two layers would diverge with every reference. */
.sheet-formula-editor .formula-assist-ref,
.sheet-fx .formula-assist-backdrop-bar .formula-assist-ref {
font-weight: inherit;
}
.formula-assist--caret .formula-assist-list {
min-width: min(260px, calc(100vw - 8px));
max-width: calc(100vw - 8px);
box-sizing: border-box;
}
.formula-assist--caret .formula-assist-tip {
min-width: min(220px, calc(100vw - 8px));
max-width: min(360px, calc(100vw - 8px));
box-sizing: border-box;
}
.sheet-fx[role="group"] {
height: auto;
min-height: 32px;
padding-block: 3px;
}
.sheet-fx .sheet-fx-input,
.sheet-fx .formula-assist-backdrop-bar {
display: block;
box-sizing: border-box;
width: 100%;
font: inherit;
font-size: var(--lp-fs-xs);
line-height: 1.5;
padding: 3px 8px;
border-width: 1px;
border-style: solid;
white-space: pre-wrap;
overflow-wrap: anywhere;
word-break: normal;
letter-spacing: normal;
scrollbar-gutter: stable;
}
.sheet-fx .sheet-fx-input {
margin: 0;
resize: none;
overflow-x: hidden;
overflow-y: auto;
}
.sheet-fx .formula-assist-backdrop-bar {
align-items: flex-start;
border-color: transparent;
}
.sheet-fx .sheet-fx-input.formula-assist-input-bar--colored {
color: transparent;
caret-color: var(--lp-ink);
}
/* W61-T11 / R13: only the body's bottom scrollbar is visible. Hide the band's
scrollbar, never its overflow: scrollOffsetX writes this scroller's scrollLeft,
and overflow-x: hidden risks breaking lockstep in another browser version.
The gate pins Glide's installed dvn-scroller class so a rename fails loudly. */
.sheet-grid-canvas > .sheet-frozen-rows .dvn-scroller {
scrollbar-width: none;
-ms-overflow-style: none;
}
.sheet-grid-canvas > .sheet-frozen-rows .dvn-scroller::-webkit-scrollbar {
width: 0;
height: 0;
display: none;
}
/* Both dividers use the existing var(--lp-line) hairline with gridlines on.
Glide makes its borderColor transparent with gridlines off; the band must follow.
The attribute beats the older two-class border rule regardless of load order. */
.sheet-grid-canvas > .sheet-frozen-rows[data-gridlines="false"] {
border-bottom-color: transparent;
}
/* S63-T24: row markers are Glide-internal cells and never reach the public drawCell callback.
Paint the C6 selection's row projection above that marker only; pointer-events stay with the
real canvas, so the visual layer cannot become a second row-selection surface. */
.sheet-grid-canvas > .sheet-active-row-header {
position: absolute;
z-index: 2;
flex: none;
pointer-events: none;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
color: var(--lp-blue-deep);
background: var(--lp-blue-tint);
border-bottom: 1px solid var(--lp-blue-deep);
/* Highlight with background and border only; face and weight deliberately mirror
lightTheme so an active row's glyphs do not move. */
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-weight: 400;
line-height: 1;
}