@gridkitjs/theme-tailwind 0.6.0 → 0.7.0
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/package.json +1 -1
- package/src/styles.css +52 -3
package/package.json
CHANGED
package/src/styles.css
CHANGED
|
@@ -120,12 +120,34 @@
|
|
|
120
120
|
@layer base {
|
|
121
121
|
/*
|
|
122
122
|
* The table is exactly as wide as its columns, so anything wider than the
|
|
123
|
-
* space available scrolls here rather than squashing the columns.
|
|
123
|
+
* space available scrolls here rather than squashing the columns. Scrolls
|
|
124
|
+
* the header, body, and footer tables together, since all three are
|
|
125
|
+
* descendants of this one viewport.
|
|
124
126
|
*/
|
|
125
127
|
.gridkit-data-grid-viewport {
|
|
126
128
|
overflow-x: auto;
|
|
127
129
|
}
|
|
128
130
|
|
|
131
|
+
/*
|
|
132
|
+
* The row area alone. `height` unset leaves this `auto` — exactly the
|
|
133
|
+
* content-driven height the single-table layout had before the
|
|
134
|
+
* header/body/footer split — and a consumer-set `height` bounds only this
|
|
135
|
+
* div, so the group-by bar, header, footer, and pager stay outside it and
|
|
136
|
+
* always visible while the rows scroll independently.
|
|
137
|
+
*
|
|
138
|
+
* No `position: sticky` here or anywhere else in this file for the header/
|
|
139
|
+
* footer: they don't need it. Splitting header, body, and footer into
|
|
140
|
+
* sibling `<table>`s already keeps the header and footer out of the region
|
|
141
|
+
* that scrolls — there's nothing to "stick," since they were never going
|
|
142
|
+
* to scroll away. A consumer wanting a divider or shadow at the seam adds
|
|
143
|
+
* their own CSS targeting `.gridkit-data-grid-header`/
|
|
144
|
+
* `.gridkit-data-grid-footer`.
|
|
145
|
+
*/
|
|
146
|
+
.gridkit-data-grid-body {
|
|
147
|
+
overflow-y: auto;
|
|
148
|
+
height: var(--gridkit-body-height, auto);
|
|
149
|
+
}
|
|
150
|
+
|
|
129
151
|
/*
|
|
130
152
|
* Read but not seen — the grid's live region, which reports a reorder or a
|
|
131
153
|
* resize that only a sighted user could otherwise notice.
|
|
@@ -546,6 +568,17 @@
|
|
|
546
568
|
font-weight: 600;
|
|
547
569
|
}
|
|
548
570
|
|
|
571
|
+
/*
|
|
572
|
+
* `infiniteScroll`'s built-in loading row — aria-hidden and outside
|
|
573
|
+
* `aria-rowcount` (see `GridBody`), so this is a purely visual cue, not an
|
|
574
|
+
* announced one.
|
|
575
|
+
*/
|
|
576
|
+
.gridkit-data-grid .grid-loading-cell {
|
|
577
|
+
padding: 0.5rem;
|
|
578
|
+
color: var(--gridkit-fg-muted);
|
|
579
|
+
text-align: center;
|
|
580
|
+
}
|
|
581
|
+
|
|
549
582
|
/*
|
|
550
583
|
* Indents only the first cell, matching how `GridGroupRow`'s own
|
|
551
584
|
* `paddingInlineStart` indents just the one spanning cell it has — an
|
|
@@ -608,7 +641,23 @@
|
|
|
608
641
|
user-select: none;
|
|
609
642
|
}
|
|
610
643
|
|
|
611
|
-
/*
|
|
644
|
+
/*
|
|
645
|
+
* Horizontal borders.
|
|
646
|
+
*
|
|
647
|
+
* Header, body, and footer are three separate `<table>`s, so
|
|
648
|
+
* `border-collapse` only ever merges borders within one of them — it
|
|
649
|
+
* cannot merge a header border against a body border the way it would
|
|
650
|
+
* merge two adjacent body rows' borders in one shared `<tbody>`. Each seam
|
|
651
|
+
* below is therefore deliberately defined from one side only, never both,
|
|
652
|
+
* or the two tables' independent borders would render as a doubled line
|
|
653
|
+
* instead of collapsing into one:
|
|
654
|
+
* - header/body seam: the header's own `border-bottom` here. The body's
|
|
655
|
+
* first row never sets a `border-top` of its own.
|
|
656
|
+
* - body/footer seam: the footer's own `border-top` (below, alongside
|
|
657
|
+
* `.grid-footer-cell`). The body's last row has its `border-bottom`
|
|
658
|
+
* stripped (below, `.grid-row:last-child`) specifically so it never
|
|
659
|
+
* supplies the other half of this seam.
|
|
660
|
+
*/
|
|
612
661
|
.gridkit-data-grid.borders-horizontal .grid-header .header-cell,
|
|
613
662
|
.gridkit-data-grid.borders-horizontal .grid-cell,
|
|
614
663
|
.gridkit-data-grid.borders-horizontal .grid-group-cell,
|
|
@@ -619,7 +668,7 @@
|
|
|
619
668
|
/*
|
|
620
669
|
* The footer's own top border, echoing the header's bottom-anchored one —
|
|
621
670
|
* a `border-top` rather than a `border-bottom` on the last body row, since
|
|
622
|
-
* the footer sits in its own `<
|
|
671
|
+
* the footer sits in its own `<table>` entirely, sibling to the body's.
|
|
623
672
|
*/
|
|
624
673
|
.gridkit-data-grid.borders-horizontal .grid-footer-cell,
|
|
625
674
|
.gridkit-data-grid.borders-all .grid-footer-cell {
|