@gridkitjs/theme-css 0.2.0 → 0.4.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 +534 -70
package/package.json
CHANGED
package/src/styles.css
CHANGED
|
@@ -275,10 +275,10 @@
|
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
/*
|
|
278
|
-
* The
|
|
279
|
-
*
|
|
280
|
-
*
|
|
281
|
-
*
|
|
278
|
+
* The grid's root. The tables scroll inside it, in
|
|
279
|
+
* `.gridkit-data-grid-tables`, so the toolbar, the group-by bar and the
|
|
280
|
+
* pager stay where they are; it scrolls sideways itself only when one of
|
|
281
|
+
* those is wider than it.
|
|
282
282
|
*/
|
|
283
283
|
.gridkit-data-grid-viewport {
|
|
284
284
|
overflow-x: auto;
|
|
@@ -301,35 +301,83 @@
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
/*
|
|
304
|
-
* The
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
304
|
+
* The one scroll area for the header, the rows and the footer, on both
|
|
305
|
+
* axes. The tables are exactly as wide as their columns, so columns wider
|
|
306
|
+
* than the space available scroll here rather than squash. The header and
|
|
307
|
+
* footer stick to its top and bottom and stay in view while the rows
|
|
308
|
+
* scroll under them; with one element scrolling sideways they cannot fall
|
|
309
|
+
* out of line with the rows, and a cell made to stick sideways sticks in
|
|
310
|
+
* all three tables alike.
|
|
309
311
|
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
|
|
312
|
+
* `height` bounds the rows alone: the grid sets `--gridkit-body-height`
|
|
313
|
+
* here from it, and `--gridkit-header-height` and
|
|
314
|
+
* `--gridkit-footer-height` from the two tables' measured heights, and
|
|
315
|
+
* the area grows by both. Without `height` the area is as tall as its
|
|
316
|
+
* content and scrolls only sideways, and the header, with nothing
|
|
317
|
+
* scrolling under it, never sticks.
|
|
318
|
+
*/
|
|
319
|
+
.gridkit-data-grid-tables {
|
|
320
|
+
overflow: auto;
|
|
321
|
+
height: calc(
|
|
322
|
+
var(--gridkit-body-height) + var(--gridkit-header-height, 0px) +
|
|
323
|
+
var(--gridkit-footer-height, 0px)
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/*
|
|
328
|
+
* Above the rows scrolled under them. A consumer wanting a divider or
|
|
329
|
+
* shadow at the seam adds their own CSS targeting
|
|
330
|
+
* `.gridkit-data-grid-header`/`.gridkit-data-grid-footer`.
|
|
331
|
+
*/
|
|
332
|
+
.gridkit-data-grid-header {
|
|
333
|
+
position: sticky;
|
|
334
|
+
inset-block-start: 0;
|
|
335
|
+
z-index: 2;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.gridkit-data-grid-footer {
|
|
339
|
+
position: sticky;
|
|
340
|
+
inset-block-end: 0;
|
|
341
|
+
z-index: 2;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/*
|
|
345
|
+
* The rows' rowgroup. As wide as its table, and never narrower than the
|
|
346
|
+
* scroll area, so its box covers every row however far the area scrolls
|
|
347
|
+
* sideways; and at least `height` tall, so under a few rows the space
|
|
348
|
+
* down to the footer is the body's. Positioned, as the box the loading
|
|
349
|
+
* overlay covers.
|
|
317
350
|
*/
|
|
318
351
|
.gridkit-data-grid-body {
|
|
319
|
-
|
|
320
|
-
|
|
352
|
+
position: relative;
|
|
353
|
+
width: max-content;
|
|
354
|
+
min-width: 100%;
|
|
355
|
+
min-height: var(--gridkit-body-height, 0);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/*
|
|
359
|
+
* Keeps a row or cell that keyboard focus or `scrollToRow` scrolls into
|
|
360
|
+
* view clear of the header and footer stuck over the rows. A margin on the
|
|
361
|
+
* rows rather than padding on the scroll area: a header cell, stuck at the
|
|
362
|
+
* area's top, would sit inside that padding, and focusing it would scroll
|
|
363
|
+
* the rows to make room.
|
|
364
|
+
*/
|
|
365
|
+
.gridkit-data-grid-body tr,
|
|
366
|
+
.gridkit-data-grid-body td {
|
|
367
|
+
scroll-margin-block: var(--gridkit-header-height, 0px)
|
|
368
|
+
var(--gridkit-footer-height, 0px);
|
|
321
369
|
}
|
|
322
370
|
|
|
323
371
|
/*
|
|
324
372
|
* Slim scrollbars on the grid's own scroll regions, never on the page: the
|
|
325
|
-
* viewport, the
|
|
326
|
-
* checklist lists. Chromium and Firefox honour
|
|
373
|
+
* viewport, the tables' scroll area, the menus, and the column chooser and
|
|
374
|
+
* filter checklist lists. Chromium and Firefox honour
|
|
327
375
|
* `scrollbar-width`/`scrollbar-color`; the `::-webkit-scrollbar` rules are
|
|
328
376
|
* only for engines that do not, since a browser that supports the standard
|
|
329
377
|
* properties ignores them anyway.
|
|
330
378
|
*/
|
|
331
379
|
.gridkit-data-grid-viewport,
|
|
332
|
-
.gridkit-data-grid-
|
|
380
|
+
.gridkit-data-grid-tables,
|
|
333
381
|
.gridkit-menu,
|
|
334
382
|
.gridkit-column-chooser-list,
|
|
335
383
|
.gridkit-filter-menu-checklist {
|
|
@@ -339,7 +387,7 @@
|
|
|
339
387
|
|
|
340
388
|
@supports not (scrollbar-color: auto) {
|
|
341
389
|
.gridkit-data-grid-viewport::-webkit-scrollbar,
|
|
342
|
-
.gridkit-data-grid-
|
|
390
|
+
.gridkit-data-grid-tables::-webkit-scrollbar,
|
|
343
391
|
.gridkit-menu::-webkit-scrollbar,
|
|
344
392
|
.gridkit-column-chooser-list::-webkit-scrollbar,
|
|
345
393
|
.gridkit-filter-menu-checklist::-webkit-scrollbar {
|
|
@@ -348,7 +396,7 @@
|
|
|
348
396
|
}
|
|
349
397
|
|
|
350
398
|
.gridkit-data-grid-viewport::-webkit-scrollbar-track,
|
|
351
|
-
.gridkit-data-grid-
|
|
399
|
+
.gridkit-data-grid-tables::-webkit-scrollbar-track,
|
|
352
400
|
.gridkit-menu::-webkit-scrollbar-track,
|
|
353
401
|
.gridkit-column-chooser-list::-webkit-scrollbar-track,
|
|
354
402
|
.gridkit-filter-menu-checklist::-webkit-scrollbar-track {
|
|
@@ -356,7 +404,7 @@
|
|
|
356
404
|
}
|
|
357
405
|
|
|
358
406
|
.gridkit-data-grid-viewport::-webkit-scrollbar-thumb,
|
|
359
|
-
.gridkit-data-grid-
|
|
407
|
+
.gridkit-data-grid-tables::-webkit-scrollbar-thumb,
|
|
360
408
|
.gridkit-menu::-webkit-scrollbar-thumb,
|
|
361
409
|
.gridkit-column-chooser-list::-webkit-scrollbar-thumb,
|
|
362
410
|
.gridkit-filter-menu-checklist::-webkit-scrollbar-thumb {
|
|
@@ -389,9 +437,15 @@
|
|
|
389
437
|
* `fixed` is what makes a width a width. Under the default `auto` layout the
|
|
390
438
|
* browser treats the colgroup as a hint and re-apportions space by content,
|
|
391
439
|
* so dragging one column visibly shifts its neighbours.
|
|
440
|
+
*
|
|
441
|
+
* Separate borders, so each cell owns its lines: a cell made to stick
|
|
442
|
+
* sideways carries them along, where a collapsed table would paint them at
|
|
443
|
+
* the cell's unstuck place. Each seam is drawn by one of its two cells
|
|
444
|
+
* only, as the borders section below explains.
|
|
392
445
|
*/
|
|
393
446
|
.gridkit-data-grid {
|
|
394
|
-
border-collapse:
|
|
447
|
+
border-collapse: separate;
|
|
448
|
+
border-spacing: 0;
|
|
395
449
|
table-layout: fixed;
|
|
396
450
|
}
|
|
397
451
|
|
|
@@ -444,7 +498,7 @@
|
|
|
444
498
|
.gridkit-data-grid .gridkit-header-resize-handle {
|
|
445
499
|
position: absolute;
|
|
446
500
|
top: 0;
|
|
447
|
-
|
|
501
|
+
inset-inline-end: 0;
|
|
448
502
|
bottom: 0;
|
|
449
503
|
width: 6px;
|
|
450
504
|
cursor: col-resize;
|
|
@@ -456,7 +510,7 @@
|
|
|
456
510
|
/*
|
|
457
511
|
* A resize colours the edge being dragged on every cell in the column, so it
|
|
458
512
|
* reads as one line down the grid rather than a stack of outlined cells.
|
|
459
|
-
* `box-shadow` rather than
|
|
513
|
+
* `box-shadow` rather than a border: under `borders="none"` there is no
|
|
460
514
|
* border to recolour, and adding one would shift the cell's content by a
|
|
461
515
|
* pixel mid-drag.
|
|
462
516
|
*/
|
|
@@ -466,13 +520,20 @@
|
|
|
466
520
|
var(--gridkit-hover-line);
|
|
467
521
|
}
|
|
468
522
|
|
|
523
|
+
/* A shadow's offset is physical, so right-to-left moves it to the left edge. */
|
|
524
|
+
.gridkit-data-grid .gridkit-header-cell.is-resizing:dir(rtl),
|
|
525
|
+
.gridkit-data-grid .gridkit-grid-cell.is-resizing:dir(rtl) {
|
|
526
|
+
box-shadow: inset var(--gridkit-indicator-width) 0 0 0
|
|
527
|
+
var(--gridkit-hover-line);
|
|
528
|
+
}
|
|
529
|
+
|
|
469
530
|
/*
|
|
470
531
|
* The grid is one tab stop and the arrow keys move within it, so the focused
|
|
471
532
|
* cell is the only sign of where that stop currently is — without this ring a
|
|
472
533
|
* keyboard user is navigating blind.
|
|
473
534
|
*
|
|
474
|
-
* Inset because the
|
|
475
|
-
* would be cut off on the first and last columns.
|
|
535
|
+
* Inset because the scroll area clips its overflow: an outline drawn
|
|
536
|
+
* outwards would be cut off on the first and last columns.
|
|
476
537
|
*/
|
|
477
538
|
.gridkit-data-grid .gridkit-header-cell:focus-visible,
|
|
478
539
|
.gridkit-data-grid .gridkit-grid-cell:focus-visible {
|
|
@@ -497,6 +558,17 @@
|
|
|
497
558
|
opacity: 0.5;
|
|
498
559
|
}
|
|
499
560
|
|
|
561
|
+
/*
|
|
562
|
+
* The headers of the other pin groups while a header is dragged: a column
|
|
563
|
+
* stays in its own group, so they take no drop. Muted rather than faded,
|
|
564
|
+
* since a pinned header's background must stay opaque over the cells
|
|
565
|
+
* scrolled under it.
|
|
566
|
+
*/
|
|
567
|
+
.gridkit-data-grid .gridkit-header-cell.is-drag-blocked {
|
|
568
|
+
cursor: not-allowed;
|
|
569
|
+
color: var(--gridkit-fg-muted);
|
|
570
|
+
}
|
|
571
|
+
|
|
500
572
|
/*
|
|
501
573
|
* A header, cell or group row that opens the grid's context menu — its
|
|
502
574
|
* `aria-keyshortcuts` names Shift+F10 then — takes a long-press for that
|
|
@@ -525,6 +597,7 @@
|
|
|
525
597
|
.gridkit-data-grid.gridkit-drag-ghost {
|
|
526
598
|
position: fixed;
|
|
527
599
|
top: 0;
|
|
600
|
+
/* Physical in either direction: the transform is a viewport x from the left. */
|
|
528
601
|
left: 0;
|
|
529
602
|
z-index: 50;
|
|
530
603
|
padding: var(--gridkit-header-padding-y) var(--gridkit-header-padding-x);
|
|
@@ -567,14 +640,24 @@
|
|
|
567
640
|
var(--gridkit-accent);
|
|
568
641
|
}
|
|
569
642
|
|
|
643
|
+
/* Mirrored for the resize line's reason: a shadow's offset is physical. */
|
|
644
|
+
.gridkit-data-grid .gridkit-header-cell.is-drop-before:dir(rtl) {
|
|
645
|
+
box-shadow: inset calc(var(--gridkit-indicator-width) * -1) 0 0 0
|
|
646
|
+
var(--gridkit-accent);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.gridkit-data-grid .gridkit-header-cell.is-drop-after:dir(rtl) {
|
|
650
|
+
box-shadow: inset var(--gridkit-indicator-width) 0 0 0 var(--gridkit-accent);
|
|
651
|
+
}
|
|
652
|
+
|
|
570
653
|
/*
|
|
571
|
-
* Docked to the header's own
|
|
654
|
+
* Docked to the header's own inline-end edge, absolutely — like the resize
|
|
572
655
|
* handle, and for the same reason: sitting in the label's normal flow, a
|
|
573
656
|
* long label under `text-overflow: ellipsis` pushes the toggle out past
|
|
574
657
|
* where `overflow: hidden` clips it, leaving it unclickable (a real click
|
|
575
658
|
* there lands on the header cell instead and selects the column). Docked
|
|
576
659
|
* to a fixed offset, it stays inside the clipped area — and clear of the
|
|
577
|
-
* resize handle's own 6px strip at
|
|
660
|
+
* resize handle's own 6px strip at the inline end, so a resizable, sortable
|
|
578
661
|
* column keeps two independent hit targets rather than one shadowing the
|
|
579
662
|
* other.
|
|
580
663
|
*/
|
|
@@ -582,7 +665,7 @@
|
|
|
582
665
|
display: inline-flex;
|
|
583
666
|
position: absolute;
|
|
584
667
|
top: 50%;
|
|
585
|
-
|
|
668
|
+
inset-inline-end: calc(var(--gridkit-spacing) * 3);
|
|
586
669
|
transform: translateY(-50%);
|
|
587
670
|
align-items: center;
|
|
588
671
|
gap: calc(var(--gridkit-spacing) * 0.5);
|
|
@@ -647,7 +730,7 @@
|
|
|
647
730
|
display: inline-flex;
|
|
648
731
|
align-items: center;
|
|
649
732
|
vertical-align: middle;
|
|
650
|
-
margin-
|
|
733
|
+
margin-inline-end: calc(var(--gridkit-spacing) * 1.5);
|
|
651
734
|
cursor: pointer;
|
|
652
735
|
color: var(--gridkit-fg-muted);
|
|
653
736
|
}
|
|
@@ -689,7 +772,7 @@
|
|
|
689
772
|
display: inline-flex;
|
|
690
773
|
position: absolute;
|
|
691
774
|
top: 50%;
|
|
692
|
-
|
|
775
|
+
inset-inline-end: calc(var(--gridkit-spacing) * 3);
|
|
693
776
|
transform: translateY(-50%);
|
|
694
777
|
align-items: center;
|
|
695
778
|
cursor: pointer;
|
|
@@ -728,7 +811,96 @@
|
|
|
728
811
|
.gridkit-header-cell:has(> .gridkit-header-filter-toggle)
|
|
729
812
|
.gridkit-header-sort-toggle {
|
|
730
813
|
/* The filter button's offset and width, then a gap. */
|
|
731
|
-
|
|
814
|
+
inset-inline-end: calc(
|
|
815
|
+
var(--gridkit-spacing) * 4.5 + var(--gridkit-header-icon-size)
|
|
816
|
+
);
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/*
|
|
820
|
+
* A screen that cannot hover never brings the header's toggles out, so
|
|
821
|
+
* there they show at rest, still told apart by colour and fill once the
|
|
822
|
+
* column is sorted, filtered or grouped.
|
|
823
|
+
*/
|
|
824
|
+
@media (hover: none) {
|
|
825
|
+
.gridkit-data-grid
|
|
826
|
+
.gridkit-header-sort-toggle:not(.is-sorted-asc):not(.is-sorted-desc),
|
|
827
|
+
.gridkit-data-grid .gridkit-header-filter-toggle:not(.is-filtered),
|
|
828
|
+
.gridkit-data-grid .gridkit-header-group-toggle:not(.is-grouped) {
|
|
829
|
+
opacity: 1;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
/*
|
|
834
|
+
* A finger needs 24 by 24 pixels to land on, WCAG 2.2's minimum target.
|
|
835
|
+
* Each toggle grows its box by padding around an unchanged icon, and the
|
|
836
|
+
* ones docked to the inline end move inward to sit side by side, clear of
|
|
837
|
+
* the resize handle, which widens to the same 24 pixels. The handle draws
|
|
838
|
+
* nothing of its own, so the line a resize colours stays on the column's
|
|
839
|
+
* edge.
|
|
840
|
+
*/
|
|
841
|
+
@media (pointer: coarse) {
|
|
842
|
+
.gridkit-data-grid .gridkit-header-resize-handle {
|
|
843
|
+
width: 24px;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
.gridkit-data-grid .gridkit-header-sort-toggle,
|
|
847
|
+
.gridkit-data-grid .gridkit-header-filter-toggle,
|
|
848
|
+
.gridkit-data-grid .gridkit-header-group-toggle {
|
|
849
|
+
box-sizing: border-box;
|
|
850
|
+
min-width: 24px;
|
|
851
|
+
min-height: 24px;
|
|
852
|
+
justify-content: center;
|
|
853
|
+
padding: max(0px, calc((24px - var(--gridkit-header-icon-size)) / 2));
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.gridkit-data-grid .gridkit-header-sort-toggle,
|
|
857
|
+
.gridkit-data-grid .gridkit-header-filter-toggle {
|
|
858
|
+
inset-inline-end: 24px;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
.gridkit-data-grid
|
|
862
|
+
.gridkit-header-cell:has(> .gridkit-header-filter-toggle)
|
|
863
|
+
.gridkit-header-sort-toggle {
|
|
864
|
+
inset-inline-end: 48px;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
/*
|
|
868
|
+
* A touch screen shows the docked toggles at rest, where they would sit
|
|
869
|
+
* over the label, so the label keeps clear of them and is cut short
|
|
870
|
+
* instead.
|
|
871
|
+
*/
|
|
872
|
+
.gridkit-data-grid
|
|
873
|
+
.gridkit-grid-header
|
|
874
|
+
.gridkit-header-cell:has(> .gridkit-header-sort-toggle),
|
|
875
|
+
.gridkit-data-grid
|
|
876
|
+
.gridkit-grid-header
|
|
877
|
+
.gridkit-header-cell:has(> .gridkit-header-filter-toggle) {
|
|
878
|
+
padding-inline-end: 48px;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.gridkit-data-grid
|
|
882
|
+
.gridkit-grid-header
|
|
883
|
+
.gridkit-header-cell:has(> .gridkit-header-sort-toggle):has(
|
|
884
|
+
> .gridkit-header-filter-toggle
|
|
885
|
+
) {
|
|
886
|
+
padding-inline-end: 72px;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/* Grown into the header's padding, so the label stays where it was. */
|
|
890
|
+
.gridkit-data-grid .gridkit-header-group-toggle {
|
|
891
|
+
margin-block: min(
|
|
892
|
+
0px,
|
|
893
|
+
calc((var(--gridkit-header-icon-size) - 24px) / 2)
|
|
894
|
+
);
|
|
895
|
+
margin-inline-start: min(
|
|
896
|
+
0px,
|
|
897
|
+
calc((var(--gridkit-header-icon-size) - 24px) / 2)
|
|
898
|
+
);
|
|
899
|
+
margin-inline-end: calc(
|
|
900
|
+
var(--gridkit-spacing) * 1.5 +
|
|
901
|
+
min(0px, calc((var(--gridkit-header-icon-size) - 24px) / 2))
|
|
902
|
+
);
|
|
903
|
+
}
|
|
732
904
|
}
|
|
733
905
|
|
|
734
906
|
.gridkit-data-grid .gridkit-grid-cell {
|
|
@@ -789,7 +961,16 @@
|
|
|
789
961
|
outline-offset: calc(var(--gridkit-focus-ring-width) * -1);
|
|
790
962
|
}
|
|
791
963
|
|
|
964
|
+
/*
|
|
965
|
+
* Sticks to the scroll area's start edge, so a group's label stays in view
|
|
966
|
+
* however far a wide grid scrolls sideways; as wide as its content, so it
|
|
967
|
+
* has room to move along its row. It sticks only while the group cell does
|
|
968
|
+
* not clip: `overflow: clip`, unlike `hidden`, would keep it working.
|
|
969
|
+
*/
|
|
792
970
|
.gridkit-data-grid .gridkit-grid-group-cell-content {
|
|
971
|
+
position: sticky;
|
|
972
|
+
inset-inline-start: 0;
|
|
973
|
+
width: max-content;
|
|
793
974
|
display: flex;
|
|
794
975
|
align-items: center;
|
|
795
976
|
gap: calc(var(--gridkit-spacing) * 2);
|
|
@@ -797,16 +978,17 @@
|
|
|
797
978
|
font-weight: var(--gridkit-group-font-weight);
|
|
798
979
|
}
|
|
799
980
|
|
|
800
|
-
/* A
|
|
981
|
+
/* A triangle pointing to the inline end that rotates open on expand. */
|
|
801
982
|
.gridkit-data-grid .gridkit-grid-group-row .gridkit-group-toggle {
|
|
802
983
|
display: inline-block;
|
|
803
984
|
flex-shrink: 0;
|
|
804
985
|
width: 0;
|
|
805
986
|
height: 0;
|
|
806
987
|
border-style: solid;
|
|
807
|
-
border-width: calc(var(--gridkit-icon-size) / 4)
|
|
808
|
-
|
|
809
|
-
border-color: transparent
|
|
988
|
+
border-block-width: calc(var(--gridkit-icon-size) / 4);
|
|
989
|
+
border-inline-width: calc(var(--gridkit-icon-size) * 0.4) 0;
|
|
990
|
+
border-color: transparent;
|
|
991
|
+
border-inline-start-color: var(--gridkit-fg-muted);
|
|
810
992
|
transition: transform var(--gridkit-transition-duration) ease;
|
|
811
993
|
}
|
|
812
994
|
|
|
@@ -814,6 +996,13 @@
|
|
|
814
996
|
transform: rotate(90deg);
|
|
815
997
|
}
|
|
816
998
|
|
|
999
|
+
/* Pointing left, the triangle turns the other way to point down. */
|
|
1000
|
+
.gridkit-data-grid
|
|
1001
|
+
.gridkit-grid-group-row
|
|
1002
|
+
.gridkit-group-toggle.is-expanded:dir(rtl) {
|
|
1003
|
+
transform: rotate(-90deg);
|
|
1004
|
+
}
|
|
1005
|
+
|
|
817
1006
|
/*
|
|
818
1007
|
* Set on the rule rather than on `--gridkit-transition-duration`, so a
|
|
819
1008
|
* theme's own duration can't bring the motion back.
|
|
@@ -888,6 +1077,86 @@
|
|
|
888
1077
|
text-align: center;
|
|
889
1078
|
}
|
|
890
1079
|
|
|
1080
|
+
/*
|
|
1081
|
+
* The message standing in for the rows of an empty grid. Padding lives on
|
|
1082
|
+
* the content rather than the cell, as the group label's does. The content
|
|
1083
|
+
* sticks to the start edge and is as wide as the scroll area's inside
|
|
1084
|
+
* (`--gridkit-empty-width`, set by the grid), or the cell if that is
|
|
1085
|
+
* narrower, so it stays in view and centred however far a wide grid
|
|
1086
|
+
* scrolls sideways.
|
|
1087
|
+
*/
|
|
1088
|
+
.gridkit-data-grid .gridkit-grid-empty-cell {
|
|
1089
|
+
padding: 0;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
.gridkit-data-grid .gridkit-grid-empty-content {
|
|
1093
|
+
position: sticky;
|
|
1094
|
+
inset-inline-start: 0;
|
|
1095
|
+
width: min(100%, var(--gridkit-empty-width, 100%));
|
|
1096
|
+
min-height: calc(var(--gridkit-spacing) * 24);
|
|
1097
|
+
display: flex;
|
|
1098
|
+
flex-direction: column;
|
|
1099
|
+
align-items: center;
|
|
1100
|
+
justify-content: center;
|
|
1101
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
1102
|
+
padding: calc(var(--gridkit-spacing) * 4) var(--gridkit-cell-padding-x);
|
|
1103
|
+
color: var(--gridkit-fg-muted);
|
|
1104
|
+
text-align: center;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/*
|
|
1108
|
+
* The layer over the body while the grid is loading: translucent, so the
|
|
1109
|
+
* rows beneath stay in view and in place, and catching the pointer, so
|
|
1110
|
+
* they take no clicks. Above the pinned cells (1, and before it in the
|
|
1111
|
+
* document) and under the header and footer (2), which the rows scroll
|
|
1112
|
+
* under.
|
|
1113
|
+
*
|
|
1114
|
+
* The content sticks under the header at the start edge, as wide as the
|
|
1115
|
+
* scroll area's inside (`--gridkit-loading-width`, set by the grid) and,
|
|
1116
|
+
* with `height`, as tall as the rows' part of it, so the message stays
|
|
1117
|
+
* centred in the rows in view however the body scrolls. Over a body with
|
|
1118
|
+
* no rows (`.is-empty`) the layer is in the flow instead, as tall as the
|
|
1119
|
+
* empty message, which takes its place when loading ends.
|
|
1120
|
+
*/
|
|
1121
|
+
.gridkit-data-grid-body .gridkit-grid-loading-overlay {
|
|
1122
|
+
position: absolute;
|
|
1123
|
+
inset: 0;
|
|
1124
|
+
z-index: 1;
|
|
1125
|
+
background-color: color-mix(
|
|
1126
|
+
in oklab,
|
|
1127
|
+
var(--gridkit-surface) 70%,
|
|
1128
|
+
transparent
|
|
1129
|
+
);
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
.gridkit-data-grid-body .gridkit-grid-loading-overlay.is-empty {
|
|
1133
|
+
position: relative;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
.gridkit-data-grid-body .gridkit-grid-loading-overlay-content {
|
|
1137
|
+
position: sticky;
|
|
1138
|
+
inset-block-start: var(--gridkit-header-height, 0px);
|
|
1139
|
+
inset-inline-start: 0;
|
|
1140
|
+
width: min(100%, var(--gridkit-loading-width, 100%));
|
|
1141
|
+
height: min(100%, var(--gridkit-body-height, 100%));
|
|
1142
|
+
display: flex;
|
|
1143
|
+
flex-direction: column;
|
|
1144
|
+
align-items: center;
|
|
1145
|
+
justify-content: center;
|
|
1146
|
+
gap: calc(var(--gridkit-spacing) * 2);
|
|
1147
|
+
padding: calc(var(--gridkit-spacing) * 4) var(--gridkit-cell-padding-x);
|
|
1148
|
+
color: var(--gridkit-fg);
|
|
1149
|
+
font-weight: 500;
|
|
1150
|
+
text-align: center;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
.gridkit-data-grid-body
|
|
1154
|
+
.gridkit-grid-loading-overlay.is-empty
|
|
1155
|
+
.gridkit-grid-loading-overlay-content {
|
|
1156
|
+
height: auto;
|
|
1157
|
+
min-height: calc(var(--gridkit-spacing) * 24);
|
|
1158
|
+
}
|
|
1159
|
+
|
|
891
1160
|
/*
|
|
892
1161
|
* Indents only the first cell, matching how `GridGroupRow`'s own
|
|
893
1162
|
* `paddingInlineStart` indents just the one spanning cell it has — an
|
|
@@ -955,13 +1224,12 @@
|
|
|
955
1224
|
/*
|
|
956
1225
|
* Horizontal borders.
|
|
957
1226
|
*
|
|
958
|
-
*
|
|
959
|
-
*
|
|
960
|
-
*
|
|
961
|
-
*
|
|
962
|
-
*
|
|
963
|
-
*
|
|
964
|
-
* instead of collapsing into one:
|
|
1227
|
+
* Each cell owns its borders, so every seam is drawn by one of its two
|
|
1228
|
+
* cells only, never both, or the two lines would sit side by side as a
|
|
1229
|
+
* doubled one: a seam between rows is the upper cell's `border-bottom`,
|
|
1230
|
+
* and one between columns (in the vertical variants below) the earlier
|
|
1231
|
+
* cell's `border-inline-end`. The seams between the header, body and
|
|
1232
|
+
* footer tables follow the same rule:
|
|
965
1233
|
* - header/body seam: the header's own `border-bottom` here. The body's
|
|
966
1234
|
* first row never sets a `border-top` of its own.
|
|
967
1235
|
* - body/footer seam: the footer's own `border-top` (below, alongside
|
|
@@ -992,9 +1260,10 @@
|
|
|
992
1260
|
}
|
|
993
1261
|
|
|
994
1262
|
/*
|
|
995
|
-
* The last row's bottom edge
|
|
996
|
-
*
|
|
997
|
-
*
|
|
1263
|
+
* The last row's bottom edge is no seam between two rows, so it draws no
|
|
1264
|
+
* line: the footer draws its own, and without a footer the line would be
|
|
1265
|
+
* one more than the rows have seams — the same reason
|
|
1266
|
+
* `gridkit-borders-vertical` drops its `:last-child` end border below.
|
|
998
1267
|
* Matched against both row kinds: the last rendered row can just as well
|
|
999
1268
|
* be a collapsed group header as a data row.
|
|
1000
1269
|
*/
|
|
@@ -1017,8 +1286,8 @@
|
|
|
1017
1286
|
.gridkit-data-grid.gridkit-borders-vertical .gridkit-grid-cell,
|
|
1018
1287
|
.gridkit-data-grid.gridkit-borders-vertical .gridkit-grid-footer-cell,
|
|
1019
1288
|
.gridkit-data-grid.gridkit-borders-vertical .gridkit-grid-group-summary-cell {
|
|
1020
|
-
border-
|
|
1021
|
-
var(--gridkit-line);
|
|
1289
|
+
border-inline-end: var(--gridkit-column-line-width)
|
|
1290
|
+
var(--gridkit-border-style) var(--gridkit-line);
|
|
1022
1291
|
}
|
|
1023
1292
|
|
|
1024
1293
|
.gridkit-data-grid.gridkit-borders-vertical
|
|
@@ -1029,7 +1298,7 @@
|
|
|
1029
1298
|
.gridkit-grid-footer-cell:last-child,
|
|
1030
1299
|
.gridkit-data-grid.gridkit-borders-vertical
|
|
1031
1300
|
.gridkit-grid-group-summary-cell:last-child {
|
|
1032
|
-
border-
|
|
1301
|
+
border-inline-end: none;
|
|
1033
1302
|
}
|
|
1034
1303
|
|
|
1035
1304
|
/* Borders on all sides */
|
|
@@ -1041,21 +1310,21 @@
|
|
|
1041
1310
|
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-group-summary-cell {
|
|
1042
1311
|
border-bottom: var(--gridkit-row-line-width) var(--gridkit-border-style)
|
|
1043
1312
|
var(--gridkit-line);
|
|
1044
|
-
border-
|
|
1045
|
-
var(--gridkit-line);
|
|
1313
|
+
border-inline-end: var(--gridkit-column-line-width)
|
|
1314
|
+
var(--gridkit-border-style) var(--gridkit-line);
|
|
1046
1315
|
}
|
|
1047
1316
|
|
|
1048
1317
|
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-footer-cell {
|
|
1049
|
-
border-
|
|
1050
|
-
var(--gridkit-line);
|
|
1318
|
+
border-inline-end: var(--gridkit-column-line-width)
|
|
1319
|
+
var(--gridkit-border-style) var(--gridkit-line);
|
|
1051
1320
|
}
|
|
1052
1321
|
|
|
1053
1322
|
/*
|
|
1054
|
-
* The outer
|
|
1055
|
-
*
|
|
1056
|
-
*
|
|
1057
|
-
*
|
|
1058
|
-
*
|
|
1323
|
+
* The outer start and end edges are no seam between two columns, so they
|
|
1324
|
+
* draw no line: one there would sit against the scroll area's edge, or
|
|
1325
|
+
* double the grid's outer border when it has one. A group cell is both its
|
|
1326
|
+
* row's first and last child at once (it is the only cell), so it takes
|
|
1327
|
+
* both exceptions.
|
|
1059
1328
|
*/
|
|
1060
1329
|
.gridkit-data-grid.gridkit-borders-all
|
|
1061
1330
|
.gridkit-grid-header
|
|
@@ -1065,7 +1334,7 @@
|
|
|
1065
1334
|
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-footer-cell:first-child,
|
|
1066
1335
|
.gridkit-data-grid.gridkit-borders-all
|
|
1067
1336
|
.gridkit-grid-group-summary-cell:first-child {
|
|
1068
|
-
border-
|
|
1337
|
+
border-inline-start: none;
|
|
1069
1338
|
}
|
|
1070
1339
|
|
|
1071
1340
|
.gridkit-data-grid.gridkit-borders-all
|
|
@@ -1076,7 +1345,7 @@
|
|
|
1076
1345
|
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-footer-cell:last-child,
|
|
1077
1346
|
.gridkit-data-grid.gridkit-borders-all
|
|
1078
1347
|
.gridkit-grid-group-summary-cell:last-child {
|
|
1079
|
-
border-
|
|
1348
|
+
border-inline-end: none;
|
|
1080
1349
|
}
|
|
1081
1350
|
|
|
1082
1351
|
.gridkit-data-grid.gridkit-borders-all
|
|
@@ -1091,11 +1360,169 @@
|
|
|
1091
1360
|
border-bottom: none;
|
|
1092
1361
|
}
|
|
1093
1362
|
|
|
1363
|
+
/*
|
|
1364
|
+
* Pinned columns. A pinned column's header, body, footer and summary cells
|
|
1365
|
+
* stick to the scroll area's start or end edge, at the
|
|
1366
|
+
* `--gridkit-pin-offset` the grid sets on each: the summed widths of the
|
|
1367
|
+
* columns pinned between it and that edge. The other columns scroll under
|
|
1368
|
+
* them.
|
|
1369
|
+
*
|
|
1370
|
+
* After the header cell's `position: relative`, which this replaces at the
|
|
1371
|
+
* same specificity; sticky is a containing block too, so the resize handle
|
|
1372
|
+
* and the toggles stay inside the cell. `z-index: 1` lifts them over the
|
|
1373
|
+
* scrolling cells, whose positioned header cells would otherwise paint
|
|
1374
|
+
* over a start-pinned one that comes before them, and keeps them under the
|
|
1375
|
+
* header and footer tables (2), which pinned body cells scroll under like
|
|
1376
|
+
* any row.
|
|
1377
|
+
*/
|
|
1378
|
+
.gridkit-data-grid
|
|
1379
|
+
:is(
|
|
1380
|
+
.gridkit-header-cell,
|
|
1381
|
+
.gridkit-grid-cell,
|
|
1382
|
+
.gridkit-grid-footer-cell,
|
|
1383
|
+
.gridkit-grid-group-summary-cell
|
|
1384
|
+
).is-pinned-start {
|
|
1385
|
+
position: sticky;
|
|
1386
|
+
inset-inline-start: var(--gridkit-pin-offset);
|
|
1387
|
+
z-index: 1;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
.gridkit-data-grid
|
|
1391
|
+
:is(
|
|
1392
|
+
.gridkit-header-cell,
|
|
1393
|
+
.gridkit-grid-cell,
|
|
1394
|
+
.gridkit-grid-footer-cell,
|
|
1395
|
+
.gridkit-grid-group-summary-cell
|
|
1396
|
+
).is-pinned-end {
|
|
1397
|
+
position: sticky;
|
|
1398
|
+
inset-inline-end: var(--gridkit-pin-offset);
|
|
1399
|
+
z-index: 1;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
/*
|
|
1403
|
+
* Keeps a cell that keyboard focus or `scrollToColumn` scrolls into view
|
|
1404
|
+
* clear of the pinned columns at both edges. A margin on the scrolling
|
|
1405
|
+
* cells rather than padding on the scroll area: a pinned cell, stuck in
|
|
1406
|
+
* that padding, would scroll the area to make room when focused, as the
|
|
1407
|
+
* header would for `scroll-margin-block` above.
|
|
1408
|
+
*/
|
|
1409
|
+
.gridkit-data-grid
|
|
1410
|
+
:is(.gridkit-header-cell, .gridkit-grid-cell):not(
|
|
1411
|
+
.is-pinned-start,
|
|
1412
|
+
.is-pinned-end
|
|
1413
|
+
) {
|
|
1414
|
+
scroll-margin-inline: var(--gridkit-pinned-start-width, 0px)
|
|
1415
|
+
var(--gridkit-pinned-end-width, 0px);
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
/*
|
|
1419
|
+
* Opaque in every row state, without restating a row rule. The cell takes
|
|
1420
|
+
* its row's colour, at no specificity, so a cell's own hover or selection
|
|
1421
|
+
* wins over it. A sticky cell is a stacking context, so its negative-z
|
|
1422
|
+
* pseudo-elements paint above its own background and below its content:
|
|
1423
|
+
* `::before` lays the surface over it and `::after` its colour again on
|
|
1424
|
+
* top. A transparent row shows the surface, a translucent one its colour
|
|
1425
|
+
* over the surface, and neither the cells scrolled underneath. `inset: 0`
|
|
1426
|
+
* covers the padding box, so the borders stay visible; `box-shadow:
|
|
1427
|
+
* inherit` repeats the resize and drop lines `::after` would cover.
|
|
1428
|
+
*/
|
|
1429
|
+
.gridkit-data-grid :where(.is-pinned-start, .is-pinned-end) {
|
|
1430
|
+
background-color: inherit;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
.gridkit-data-grid
|
|
1434
|
+
:is(
|
|
1435
|
+
.gridkit-header-cell,
|
|
1436
|
+
.gridkit-grid-cell,
|
|
1437
|
+
.gridkit-grid-footer-cell,
|
|
1438
|
+
.gridkit-grid-group-summary-cell
|
|
1439
|
+
):is(.is-pinned-start, .is-pinned-end)::before,
|
|
1440
|
+
.gridkit-data-grid
|
|
1441
|
+
:is(
|
|
1442
|
+
.gridkit-header-cell,
|
|
1443
|
+
.gridkit-grid-cell,
|
|
1444
|
+
.gridkit-grid-footer-cell,
|
|
1445
|
+
.gridkit-grid-group-summary-cell
|
|
1446
|
+
):is(.is-pinned-start, .is-pinned-end)::after {
|
|
1447
|
+
content: "";
|
|
1448
|
+
position: absolute;
|
|
1449
|
+
inset: 0;
|
|
1450
|
+
pointer-events: none;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
.gridkit-data-grid
|
|
1454
|
+
:is(
|
|
1455
|
+
.gridkit-header-cell,
|
|
1456
|
+
.gridkit-grid-cell,
|
|
1457
|
+
.gridkit-grid-footer-cell,
|
|
1458
|
+
.gridkit-grid-group-summary-cell
|
|
1459
|
+
):is(.is-pinned-start, .is-pinned-end)::before {
|
|
1460
|
+
z-index: -2;
|
|
1461
|
+
background-color: var(--gridkit-surface);
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
.gridkit-data-grid
|
|
1465
|
+
:is(
|
|
1466
|
+
.gridkit-header-cell,
|
|
1467
|
+
.gridkit-grid-cell,
|
|
1468
|
+
.gridkit-grid-footer-cell,
|
|
1469
|
+
.gridkit-grid-group-summary-cell
|
|
1470
|
+
):is(.is-pinned-start, .is-pinned-end)::after {
|
|
1471
|
+
z-index: -1;
|
|
1472
|
+
background-color: inherit;
|
|
1473
|
+
box-shadow: inherit;
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
/*
|
|
1477
|
+
* The divider between the pinned columns and the scrolling ones, in every
|
|
1478
|
+
* `borders` setting: the edge cell's own border on the scrolling side,
|
|
1479
|
+
* outranking the column lines above. None where the edge cell ends the
|
|
1480
|
+
* row, which is no seam, and none at the start edge when the end edge cell
|
|
1481
|
+
* comes straight after it, whose divider is then the one line between them.
|
|
1482
|
+
*/
|
|
1483
|
+
.gridkit-data-grid
|
|
1484
|
+
:is(
|
|
1485
|
+
.gridkit-header-cell,
|
|
1486
|
+
.gridkit-grid-cell,
|
|
1487
|
+
.gridkit-grid-footer-cell,
|
|
1488
|
+
.gridkit-grid-group-summary-cell
|
|
1489
|
+
).is-pinned-start.is-pinned-edge:not(:last-child, :has(+ .is-pinned-end)) {
|
|
1490
|
+
border-inline-end: var(--gridkit-border-width) var(--gridkit-border-style)
|
|
1491
|
+
var(--gridkit-line);
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
.gridkit-data-grid
|
|
1495
|
+
:is(
|
|
1496
|
+
.gridkit-header-cell,
|
|
1497
|
+
.gridkit-grid-cell,
|
|
1498
|
+
.gridkit-grid-footer-cell,
|
|
1499
|
+
.gridkit-grid-group-summary-cell
|
|
1500
|
+
).is-pinned-end.is-pinned-edge:not(:first-child) {
|
|
1501
|
+
border-inline-start: var(--gridkit-border-width) var(--gridkit-border-style)
|
|
1502
|
+
var(--gridkit-line);
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
/*
|
|
1506
|
+
* The cell before the end divider leaves out its own column line, which
|
|
1507
|
+
* would sit beside the divider as a doubled one wherever the two meet:
|
|
1508
|
+
* scrolled to the end, and in a grid with nothing to scroll.
|
|
1509
|
+
*/
|
|
1510
|
+
.gridkit-data-grid
|
|
1511
|
+
:is(
|
|
1512
|
+
.gridkit-header-cell,
|
|
1513
|
+
.gridkit-grid-cell,
|
|
1514
|
+
.gridkit-grid-footer-cell,
|
|
1515
|
+
.gridkit-grid-group-summary-cell
|
|
1516
|
+
):has(+ .is-pinned-end.is-pinned-edge) {
|
|
1517
|
+
border-inline-end: none;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1094
1520
|
/*
|
|
1095
1521
|
* The toolbar: the grid's first child, above the group-by bar, and unscoped
|
|
1096
|
-
* by `.gridkit-data-grid` for the same reason that bar is.
|
|
1097
|
-
*
|
|
1098
|
-
*
|
|
1522
|
+
* by `.gridkit-data-grid` for the same reason that bar is. It sits outside
|
|
1523
|
+
* the tables' scroll area, so it stays in view while they scroll, and it
|
|
1524
|
+
* sticks to the viewport's start edge for the rare grid whose viewport
|
|
1525
|
+
* scrolls sideways itself, under a group-by bar wider than it.
|
|
1099
1526
|
*
|
|
1100
1527
|
* Its entries keep to one row at their own widths, which is what the
|
|
1101
1528
|
* overflow measures: what does not fit goes into "More", and `overflow:
|
|
@@ -1326,13 +1753,13 @@
|
|
|
1326
1753
|
}
|
|
1327
1754
|
|
|
1328
1755
|
.gridkit-group-by-chip.is-drop-before::before {
|
|
1329
|
-
|
|
1756
|
+
inset-inline-start: calc(
|
|
1330
1757
|
var(--gridkit-spacing) * -1 - var(--gridkit-indicator-width) / 2
|
|
1331
1758
|
);
|
|
1332
1759
|
}
|
|
1333
1760
|
|
|
1334
1761
|
.gridkit-group-by-chip.is-drop-after::after {
|
|
1335
|
-
|
|
1762
|
+
inset-inline-end: calc(
|
|
1336
1763
|
var(--gridkit-spacing) * -1 - var(--gridkit-indicator-width) / 2
|
|
1337
1764
|
);
|
|
1338
1765
|
}
|
|
@@ -1346,6 +1773,7 @@
|
|
|
1346
1773
|
.gridkit-group-by-chip.gridkit-drag-ghost {
|
|
1347
1774
|
position: fixed;
|
|
1348
1775
|
top: 0;
|
|
1776
|
+
/* Physical for the header ghost's reason. */
|
|
1349
1777
|
left: 0;
|
|
1350
1778
|
z-index: 50;
|
|
1351
1779
|
border: var(--gridkit-border-width) dashed var(--gridkit-accent);
|
|
@@ -1678,6 +2106,10 @@
|
|
|
1678
2106
|
color: var(--gridkit-fg-muted);
|
|
1679
2107
|
}
|
|
1680
2108
|
|
|
2109
|
+
.gridkit-menu-submenu-indicator:dir(rtl) svg {
|
|
2110
|
+
transform: scaleX(-1);
|
|
2111
|
+
}
|
|
2112
|
+
|
|
1681
2113
|
.gridkit-menu-separator {
|
|
1682
2114
|
height: var(--gridkit-border-width);
|
|
1683
2115
|
margin: var(--gridkit-spacing) 0;
|
|
@@ -2030,6 +2462,11 @@
|
|
|
2030
2462
|
margin-inline-start: auto;
|
|
2031
2463
|
}
|
|
2032
2464
|
|
|
2465
|
+
.gridkit-filter-menu-submenu-indicator:dir(rtl) svg,
|
|
2466
|
+
.gridkit-filter-menu-back-icon:dir(rtl) svg {
|
|
2467
|
+
transform: scaleX(-1);
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2033
2470
|
.gridkit-filter-menu-search {
|
|
2034
2471
|
box-sizing: border-box;
|
|
2035
2472
|
width: 100%;
|
|
@@ -2250,13 +2687,40 @@
|
|
|
2250
2687
|
display: none;
|
|
2251
2688
|
}
|
|
2252
2689
|
|
|
2253
|
-
/*
|
|
2690
|
+
/*
|
|
2691
|
+
* No height bound, and nothing scrolls or sticks, so no row is cut off
|
|
2692
|
+
* or printed over, and the footer follows the last row.
|
|
2693
|
+
*/
|
|
2254
2694
|
.gridkit-data-grid-viewport,
|
|
2255
|
-
.gridkit-data-grid-viewport .gridkit-data-grid-
|
|
2695
|
+
.gridkit-data-grid-viewport .gridkit-data-grid-tables {
|
|
2256
2696
|
height: auto;
|
|
2257
2697
|
overflow: visible;
|
|
2258
2698
|
}
|
|
2259
2699
|
|
|
2700
|
+
.gridkit-data-grid-viewport .gridkit-data-grid-header,
|
|
2701
|
+
.gridkit-data-grid-viewport .gridkit-data-grid-footer,
|
|
2702
|
+
.gridkit-data-grid-viewport .gridkit-grid-group-cell-content,
|
|
2703
|
+
.gridkit-data-grid-viewport .gridkit-grid-empty-content,
|
|
2704
|
+
.gridkit-data-grid-viewport .gridkit-grid-loading-overlay-content {
|
|
2705
|
+
position: static;
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
/*
|
|
2709
|
+
* Pinned columns print in their own places. Relative rather than
|
|
2710
|
+
* static: a cell stays the containing block of its background layers
|
|
2711
|
+
* and its header's toggles, as an unpinned header cell is.
|
|
2712
|
+
*/
|
|
2713
|
+
.gridkit-data-grid-viewport
|
|
2714
|
+
.gridkit-data-grid
|
|
2715
|
+
:is(.is-pinned-start, .is-pinned-end) {
|
|
2716
|
+
position: relative;
|
|
2717
|
+
inset-inline: auto;
|
|
2718
|
+
}
|
|
2719
|
+
|
|
2720
|
+
.gridkit-data-grid-viewport .gridkit-data-grid-body {
|
|
2721
|
+
min-height: 0;
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2260
2724
|
.gridkit-data-grid-viewport :focus-visible {
|
|
2261
2725
|
outline: none;
|
|
2262
2726
|
}
|