@pretable/ui 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/grid.css +29 -2
- package/dist/themes/excel.css +7 -3
- package/dist/themes/material.css +8 -3
- package/package.json +1 -1
package/dist/grid.css
CHANGED
|
@@ -219,18 +219,45 @@
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
/* Pinned cells (sticky left) — an opaque fill so scrolled columns pass
|
|
222
|
-
underneath, on their own token rather than the header's.
|
|
222
|
+
underneath, on their own token rather than the header's.
|
|
223
|
+
The seam shadow marks the frozen edge for themes that do not mark it any
|
|
224
|
+
other way. A theme that drops the vertical rule AND gives --pretable-bg-pinned
|
|
225
|
+
no tone step has no boundary at all otherwise: unpinned cells scroll under
|
|
226
|
+
these at z-index 1, so text would appear clipped mid-glyph at an invisible
|
|
227
|
+
line. The spread is <= -blur/2 on purpose — any less negative and the blur
|
|
228
|
+
bleeds above and below each cell and paints a dark band at every row
|
|
229
|
+
boundary inside the pinned region.
|
|
230
|
+
Known interaction: the focus ring below is also a `box-shadow`, and
|
|
231
|
+
box-shadow is not additive, so a FOCUSED pinned cell shows the ring and
|
|
232
|
+
loses its seam for as long as it holds focus. Accepted rather than worked
|
|
233
|
+
around — the ring is the stronger signal in that moment, it is one cell,
|
|
234
|
+
and both shipped themes opt out of the seam entirely. Revisit if the house
|
|
235
|
+
theme makes it visible. */
|
|
223
236
|
:where([data-pretable-cell][data-pretable-pinned="left"]) {
|
|
224
237
|
background: var(--pretable-bg-pinned);
|
|
238
|
+
box-shadow: 8px 0 8px -8px var(--pretable-seam-color);
|
|
225
239
|
z-index: 1;
|
|
226
240
|
}
|
|
227
241
|
|
|
228
|
-
/* Pinned cells (sticky right) — mirror of the left rule
|
|
242
|
+
/* Pinned cells (sticky right) — mirror of the left rule, including the seam,
|
|
243
|
+
whose offset has to flip. That mirroring is why --pretable-seam-color holds
|
|
244
|
+
a COLOUR and not a whole shadow: one shadow value cannot be reversed. */
|
|
229
245
|
:where([data-pretable-cell][data-pretable-pinned="right"]) {
|
|
230
246
|
background: var(--pretable-bg-pinned);
|
|
247
|
+
box-shadow: -8px 0 8px -8px var(--pretable-seam-color);
|
|
231
248
|
z-index: 1;
|
|
232
249
|
}
|
|
233
250
|
|
|
251
|
+
/* A pinned cell inside a group row is still part of the band. Both pinned
|
|
252
|
+
rules above follow the group-row rule at equal (0,0,0) specificity, so
|
|
253
|
+
without this a frozen column punches a visible notch straight through every
|
|
254
|
+
group band the moment a theme stops aliasing the two surface tokens
|
|
255
|
+
together — which is exactly what the house theme does. Excel and Material
|
|
256
|
+
are immune only by accident. */
|
|
257
|
+
:where([data-pretable-group-row] [data-pretable-cell][data-pretable-pinned]) {
|
|
258
|
+
background: var(--pretable-bg-group-row);
|
|
259
|
+
}
|
|
260
|
+
|
|
234
261
|
/* The left-pinned group is bounded by the base cell's border-right; the
|
|
235
262
|
right-pinned group's boundary is its LEADING edge, so draw the rule on the
|
|
236
263
|
first right-pinned cell only (avoids doubling up with the previous cell's
|
package/dist/themes/excel.css
CHANGED
|
@@ -70,9 +70,13 @@
|
|
|
70
70
|
--pretable-shadow-overlay: 0 4px 12px rgb(0 0 0 / 0.12);
|
|
71
71
|
/* No card shadow: this theme draws a frame instead. pretable.css uses it. */
|
|
72
72
|
--pretable-shadow-card: none;
|
|
73
|
-
/* The frozen-column edge
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
/* The frozen-column edge, as a COLOUR rather than a whole shadow: the right
|
|
74
|
+
edge needs the mirror of the left one's offset, and a single shadow value
|
|
75
|
+
cannot be flipped. grid.css owns the geometry — which is structural — and
|
|
76
|
+
the theme owns the strength. `transparent` opts out.
|
|
77
|
+
Excel opts out: it already marks the frozen edge twice over, with a tone
|
|
78
|
+
step on --pretable-bg-pinned and a vertical rule. */
|
|
79
|
+
--pretable-seam-color: transparent;
|
|
76
80
|
|
|
77
81
|
/* Density — natural default = compact (Excel "Compact" tier) */
|
|
78
82
|
--pretable-row-height: 20px; /* 15pt at 96 DPI */
|
package/dist/themes/material.css
CHANGED
|
@@ -77,9 +77,14 @@
|
|
|
77
77
|
--pretable-shadow-overlay: 0 4px 12px rgb(0 0 0 / 0.12);
|
|
78
78
|
/* No card shadow: this theme draws a frame instead. pretable.css uses it. */
|
|
79
79
|
--pretable-shadow-card: none;
|
|
80
|
-
/* The frozen-column edge
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
/* The frozen-column edge, as a COLOUR rather than a whole shadow: the right
|
|
81
|
+
edge needs the mirror of the left one's offset, and a single shadow value
|
|
82
|
+
cannot be flipped. grid.css owns the geometry — which is structural — and
|
|
83
|
+
the theme owns the strength. `transparent` opts out.
|
|
84
|
+
Material opts out: like Excel it marks the frozen edge with a tone step on
|
|
85
|
+
--pretable-bg-pinned plus a vertical rule, so a shadow would be a third
|
|
86
|
+
signal and a change to a compatibility skin's look. */
|
|
87
|
+
--pretable-seam-color: transparent;
|
|
83
88
|
|
|
84
89
|
/* Density — natural default = standard */
|
|
85
90
|
--pretable-row-height: 48px;
|