@gridkitjs/theme-css 0.1.0 → 0.3.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/README.md +1 -1
- package/package.json +1 -1
- package/src/styles.css +797 -369
package/src/styles.css
CHANGED
|
@@ -255,10 +255,12 @@
|
|
|
255
255
|
* draw the same in an app without Preflight, and in theme-css's plain
|
|
256
256
|
* CSS. `:where()` keeps each at no specificity, as Preflight's are.
|
|
257
257
|
*/
|
|
258
|
-
:where(.gridkit-data-grid-viewport, .drag-ghost, .gridkit-overlay),
|
|
259
|
-
:where(.gridkit-data-grid-viewport, .drag-ghost, .gridkit-overlay) *,
|
|
260
|
-
:where(.gridkit-data-grid-viewport, .drag-ghost, .gridkit-overlay)
|
|
261
|
-
|
|
258
|
+
:where(.gridkit-data-grid-viewport, .gridkit-drag-ghost, .gridkit-overlay),
|
|
259
|
+
:where(.gridkit-data-grid-viewport, .gridkit-drag-ghost, .gridkit-overlay) *,
|
|
260
|
+
:where(.gridkit-data-grid-viewport, .gridkit-drag-ghost, .gridkit-overlay)
|
|
261
|
+
::before,
|
|
262
|
+
:where(.gridkit-data-grid-viewport, .gridkit-drag-ghost, .gridkit-overlay)
|
|
263
|
+
::after {
|
|
262
264
|
box-sizing: border-box;
|
|
263
265
|
}
|
|
264
266
|
|
|
@@ -273,10 +275,10 @@
|
|
|
273
275
|
}
|
|
274
276
|
|
|
275
277
|
/*
|
|
276
|
-
* The
|
|
277
|
-
*
|
|
278
|
-
*
|
|
279
|
-
*
|
|
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.
|
|
280
282
|
*/
|
|
281
283
|
.gridkit-data-grid-viewport {
|
|
282
284
|
overflow-x: auto;
|
|
@@ -291,73 +293,119 @@
|
|
|
291
293
|
* `document.body`, which sits outside that root.
|
|
292
294
|
*/
|
|
293
295
|
.gridkit-data-grid-viewport,
|
|
294
|
-
.gridkit-data-grid.drag-ghost,
|
|
295
|
-
.group-by-chip.drag-ghost,
|
|
296
|
+
.gridkit-data-grid.gridkit-drag-ghost,
|
|
297
|
+
.gridkit-group-by-chip.gridkit-drag-ghost,
|
|
296
298
|
.gridkit-overlay {
|
|
297
299
|
font-family: var(--gridkit-font-family);
|
|
298
300
|
font-variant-numeric: var(--gridkit-font-variant-numeric);
|
|
299
301
|
}
|
|
300
302
|
|
|
301
303
|
/*
|
|
302
|
-
* The
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
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.
|
|
307
311
|
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
|
|
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.
|
|
315
349
|
*/
|
|
316
350
|
.gridkit-data-grid-body {
|
|
317
|
-
|
|
318
|
-
|
|
351
|
+
width: max-content;
|
|
352
|
+
min-width: 100%;
|
|
353
|
+
min-height: var(--gridkit-body-height, 0);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/*
|
|
357
|
+
* Keeps a row or cell that keyboard focus or `scrollToRow` scrolls into
|
|
358
|
+
* view clear of the header and footer stuck over the rows. A margin on the
|
|
359
|
+
* rows rather than padding on the scroll area: a header cell, stuck at the
|
|
360
|
+
* area's top, would sit inside that padding, and focusing it would scroll
|
|
361
|
+
* the rows to make room.
|
|
362
|
+
*/
|
|
363
|
+
.gridkit-data-grid-body tr,
|
|
364
|
+
.gridkit-data-grid-body td {
|
|
365
|
+
scroll-margin-block: var(--gridkit-header-height, 0px)
|
|
366
|
+
var(--gridkit-footer-height, 0px);
|
|
319
367
|
}
|
|
320
368
|
|
|
321
369
|
/*
|
|
322
370
|
* Slim scrollbars on the grid's own scroll regions, never on the page: the
|
|
323
|
-
* viewport, the
|
|
324
|
-
* checklist lists. Chromium and Firefox honour
|
|
371
|
+
* viewport, the tables' scroll area, the menus, and the column chooser and
|
|
372
|
+
* filter checklist lists. Chromium and Firefox honour
|
|
325
373
|
* `scrollbar-width`/`scrollbar-color`; the `::-webkit-scrollbar` rules are
|
|
326
374
|
* only for engines that do not, since a browser that supports the standard
|
|
327
375
|
* properties ignores them anyway.
|
|
328
376
|
*/
|
|
329
377
|
.gridkit-data-grid-viewport,
|
|
330
|
-
.gridkit-data-grid-
|
|
378
|
+
.gridkit-data-grid-tables,
|
|
331
379
|
.gridkit-menu,
|
|
332
|
-
.column-chooser-list,
|
|
333
|
-
.filter-menu-checklist {
|
|
380
|
+
.gridkit-column-chooser-list,
|
|
381
|
+
.gridkit-filter-menu-checklist {
|
|
334
382
|
scrollbar-width: thin;
|
|
335
383
|
scrollbar-color: var(--gridkit-scrollbar-thumb) transparent;
|
|
336
384
|
}
|
|
337
385
|
|
|
338
386
|
@supports not (scrollbar-color: auto) {
|
|
339
387
|
.gridkit-data-grid-viewport::-webkit-scrollbar,
|
|
340
|
-
.gridkit-data-grid-
|
|
388
|
+
.gridkit-data-grid-tables::-webkit-scrollbar,
|
|
341
389
|
.gridkit-menu::-webkit-scrollbar,
|
|
342
|
-
.column-chooser-list::-webkit-scrollbar,
|
|
343
|
-
.filter-menu-checklist::-webkit-scrollbar {
|
|
390
|
+
.gridkit-column-chooser-list::-webkit-scrollbar,
|
|
391
|
+
.gridkit-filter-menu-checklist::-webkit-scrollbar {
|
|
344
392
|
width: 8px;
|
|
345
393
|
height: 8px;
|
|
346
394
|
}
|
|
347
395
|
|
|
348
396
|
.gridkit-data-grid-viewport::-webkit-scrollbar-track,
|
|
349
|
-
.gridkit-data-grid-
|
|
397
|
+
.gridkit-data-grid-tables::-webkit-scrollbar-track,
|
|
350
398
|
.gridkit-menu::-webkit-scrollbar-track,
|
|
351
|
-
.column-chooser-list::-webkit-scrollbar-track,
|
|
352
|
-
.filter-menu-checklist::-webkit-scrollbar-track {
|
|
399
|
+
.gridkit-column-chooser-list::-webkit-scrollbar-track,
|
|
400
|
+
.gridkit-filter-menu-checklist::-webkit-scrollbar-track {
|
|
353
401
|
background: transparent;
|
|
354
402
|
}
|
|
355
403
|
|
|
356
404
|
.gridkit-data-grid-viewport::-webkit-scrollbar-thumb,
|
|
357
|
-
.gridkit-data-grid-
|
|
405
|
+
.gridkit-data-grid-tables::-webkit-scrollbar-thumb,
|
|
358
406
|
.gridkit-menu::-webkit-scrollbar-thumb,
|
|
359
|
-
.column-chooser-list::-webkit-scrollbar-thumb,
|
|
360
|
-
.filter-menu-checklist::-webkit-scrollbar-thumb {
|
|
407
|
+
.gridkit-column-chooser-list::-webkit-scrollbar-thumb,
|
|
408
|
+
.gridkit-filter-menu-checklist::-webkit-scrollbar-thumb {
|
|
361
409
|
background-color: var(--gridkit-scrollbar-thumb);
|
|
362
410
|
border-radius: 4px;
|
|
363
411
|
}
|
|
@@ -387,9 +435,15 @@
|
|
|
387
435
|
* `fixed` is what makes a width a width. Under the default `auto` layout the
|
|
388
436
|
* browser treats the colgroup as a hint and re-apportions space by content,
|
|
389
437
|
* so dragging one column visibly shifts its neighbours.
|
|
438
|
+
*
|
|
439
|
+
* Separate borders, so each cell owns its lines: a cell made to stick
|
|
440
|
+
* sideways carries them along, where a collapsed table would paint them at
|
|
441
|
+
* the cell's unstuck place. Each seam is drawn by one of its two cells
|
|
442
|
+
* only, as the borders section below explains.
|
|
390
443
|
*/
|
|
391
444
|
.gridkit-data-grid {
|
|
392
|
-
border-collapse:
|
|
445
|
+
border-collapse: separate;
|
|
446
|
+
border-spacing: 0;
|
|
393
447
|
table-layout: fixed;
|
|
394
448
|
}
|
|
395
449
|
|
|
@@ -398,8 +452,8 @@
|
|
|
398
452
|
* do when it does not. Keeping it on one line is also what lets a column be
|
|
399
453
|
* measured against its content.
|
|
400
454
|
*/
|
|
401
|
-
.gridkit-data-grid .header-cell,
|
|
402
|
-
.gridkit-data-grid .grid-cell {
|
|
455
|
+
.gridkit-data-grid .gridkit-header-cell,
|
|
456
|
+
.gridkit-data-grid .gridkit-grid-cell {
|
|
403
457
|
overflow: hidden;
|
|
404
458
|
text-overflow: ellipsis;
|
|
405
459
|
white-space: nowrap;
|
|
@@ -418,20 +472,20 @@
|
|
|
418
472
|
* clips it. `overflow-wrap: anywhere` lets it break mid-word as a last
|
|
419
473
|
* resort, after normal word breaks are exhausted.
|
|
420
474
|
*/
|
|
421
|
-
.gridkit-data-grid .header-cell.is-wrapped,
|
|
422
|
-
.gridkit-data-grid .grid-cell.is-wrapped {
|
|
475
|
+
.gridkit-data-grid .gridkit-header-cell.is-wrapped,
|
|
476
|
+
.gridkit-data-grid .gridkit-grid-cell.is-wrapped {
|
|
423
477
|
overflow: visible;
|
|
424
478
|
text-overflow: clip;
|
|
425
479
|
white-space: normal;
|
|
426
480
|
overflow-wrap: anywhere;
|
|
427
481
|
}
|
|
428
482
|
|
|
429
|
-
.gridkit-data-grid .grid-header {
|
|
483
|
+
.gridkit-data-grid .gridkit-grid-header {
|
|
430
484
|
color: var(--gridkit-header-fg);
|
|
431
485
|
background-color: var(--gridkit-header-bg);
|
|
432
486
|
}
|
|
433
487
|
|
|
434
|
-
.gridkit-data-grid .grid-header .header-cell {
|
|
488
|
+
.gridkit-data-grid .gridkit-grid-header .gridkit-header-cell {
|
|
435
489
|
padding: var(--gridkit-header-padding-y) var(--gridkit-header-padding-x);
|
|
436
490
|
position: relative;
|
|
437
491
|
font-weight: var(--gridkit-header-font-weight);
|
|
@@ -439,10 +493,10 @@
|
|
|
439
493
|
text-transform: var(--gridkit-header-text-transform);
|
|
440
494
|
}
|
|
441
495
|
|
|
442
|
-
.gridkit-data-grid .header-resize-handle {
|
|
496
|
+
.gridkit-data-grid .gridkit-header-resize-handle {
|
|
443
497
|
position: absolute;
|
|
444
498
|
top: 0;
|
|
445
|
-
|
|
499
|
+
inset-inline-end: 0;
|
|
446
500
|
bottom: 0;
|
|
447
501
|
width: 6px;
|
|
448
502
|
cursor: col-resize;
|
|
@@ -454,26 +508,33 @@
|
|
|
454
508
|
/*
|
|
455
509
|
* A resize colours the edge being dragged on every cell in the column, so it
|
|
456
510
|
* reads as one line down the grid rather than a stack of outlined cells.
|
|
457
|
-
* `box-shadow` rather than
|
|
511
|
+
* `box-shadow` rather than a border: under `borders="none"` there is no
|
|
458
512
|
* border to recolour, and adding one would shift the cell's content by a
|
|
459
513
|
* pixel mid-drag.
|
|
460
514
|
*/
|
|
461
|
-
.gridkit-data-grid .header-cell.is-resizing,
|
|
462
|
-
.gridkit-data-grid .grid-cell.is-resizing {
|
|
515
|
+
.gridkit-data-grid .gridkit-header-cell.is-resizing,
|
|
516
|
+
.gridkit-data-grid .gridkit-grid-cell.is-resizing {
|
|
463
517
|
box-shadow: inset calc(var(--gridkit-indicator-width) * -1) 0 0 0
|
|
464
518
|
var(--gridkit-hover-line);
|
|
465
519
|
}
|
|
466
520
|
|
|
521
|
+
/* A shadow's offset is physical, so right-to-left moves it to the left edge. */
|
|
522
|
+
.gridkit-data-grid .gridkit-header-cell.is-resizing:dir(rtl),
|
|
523
|
+
.gridkit-data-grid .gridkit-grid-cell.is-resizing:dir(rtl) {
|
|
524
|
+
box-shadow: inset var(--gridkit-indicator-width) 0 0 0
|
|
525
|
+
var(--gridkit-hover-line);
|
|
526
|
+
}
|
|
527
|
+
|
|
467
528
|
/*
|
|
468
529
|
* The grid is one tab stop and the arrow keys move within it, so the focused
|
|
469
530
|
* cell is the only sign of where that stop currently is — without this ring a
|
|
470
531
|
* keyboard user is navigating blind.
|
|
471
532
|
*
|
|
472
|
-
* Inset because the
|
|
473
|
-
* would be cut off on the first and last columns.
|
|
533
|
+
* Inset because the scroll area clips its overflow: an outline drawn
|
|
534
|
+
* outwards would be cut off on the first and last columns.
|
|
474
535
|
*/
|
|
475
|
-
.gridkit-data-grid .header-cell:focus-visible,
|
|
476
|
-
.gridkit-data-grid .grid-cell:focus-visible {
|
|
536
|
+
.gridkit-data-grid .gridkit-header-cell:focus-visible,
|
|
537
|
+
.gridkit-data-grid .gridkit-grid-cell:focus-visible {
|
|
477
538
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
478
539
|
outline-offset: calc(var(--gridkit-focus-ring-width) * -1);
|
|
479
540
|
}
|
|
@@ -484,17 +545,28 @@
|
|
|
484
545
|
* focusable now that the grid roves one tab stop, so a `tabindex` no longer
|
|
485
546
|
* distinguishes the ones that drag.
|
|
486
547
|
*/
|
|
487
|
-
.gridkit-data-grid .header-cell.is-reorderable {
|
|
548
|
+
.gridkit-data-grid .gridkit-header-cell.is-reorderable {
|
|
488
549
|
cursor: grab;
|
|
489
550
|
touch-action: none;
|
|
490
551
|
user-select: none;
|
|
491
552
|
}
|
|
492
553
|
|
|
493
|
-
.gridkit-data-grid .header-cell.is-dragging {
|
|
554
|
+
.gridkit-data-grid .gridkit-header-cell.is-dragging {
|
|
494
555
|
cursor: grabbing;
|
|
495
556
|
opacity: 0.5;
|
|
496
557
|
}
|
|
497
558
|
|
|
559
|
+
/*
|
|
560
|
+
* The headers of the other pin groups while a header is dragged: a column
|
|
561
|
+
* stays in its own group, so they take no drop. Muted rather than faded,
|
|
562
|
+
* since a pinned header's background must stay opaque over the cells
|
|
563
|
+
* scrolled under it.
|
|
564
|
+
*/
|
|
565
|
+
.gridkit-data-grid .gridkit-header-cell.is-drag-blocked {
|
|
566
|
+
cursor: not-allowed;
|
|
567
|
+
color: var(--gridkit-fg-muted);
|
|
568
|
+
}
|
|
569
|
+
|
|
498
570
|
/*
|
|
499
571
|
* A header, cell or group row that opens the grid's context menu — its
|
|
500
572
|
* `aria-keyshortcuts` names Shift+F10 then — takes a long-press for that
|
|
@@ -520,9 +592,10 @@
|
|
|
520
592
|
* otherwise mask every header it passes over and there would be no drop
|
|
521
593
|
* target at all.
|
|
522
594
|
*/
|
|
523
|
-
.gridkit-data-grid.drag-ghost {
|
|
595
|
+
.gridkit-data-grid.gridkit-drag-ghost {
|
|
524
596
|
position: fixed;
|
|
525
597
|
top: 0;
|
|
598
|
+
/* Physical in either direction: the transform is a viewport x from the left. */
|
|
526
599
|
left: 0;
|
|
527
600
|
z-index: 50;
|
|
528
601
|
padding: var(--gridkit-header-padding-y) var(--gridkit-header-padding-x);
|
|
@@ -538,7 +611,7 @@
|
|
|
538
611
|
pointer-events: none;
|
|
539
612
|
/*
|
|
540
613
|
* Restated because the rule that clips a header's text is scoped to a
|
|
541
|
-
* `.header-cell` inside the grid, and the ghost carries that class while
|
|
614
|
+
* `.gridkit-header-cell` inside the grid, and the ghost carries that class while
|
|
542
615
|
* being the grid element itself.
|
|
543
616
|
*/
|
|
544
617
|
overflow: hidden;
|
|
@@ -553,34 +626,44 @@
|
|
|
553
626
|
* between two columns reads as one line.
|
|
554
627
|
*
|
|
555
628
|
* `box-shadow` for the reason the resize line uses it, and because a
|
|
556
|
-
* recoloured `borders-vertical` border would land on the neighbour and read
|
|
629
|
+
* recoloured `gridkit-borders-vertical` border would land on the neighbour and read
|
|
557
630
|
* as a column out.
|
|
558
631
|
*/
|
|
559
|
-
.gridkit-data-grid .header-cell.is-drop-before {
|
|
632
|
+
.gridkit-data-grid .gridkit-header-cell.is-drop-before {
|
|
560
633
|
box-shadow: inset var(--gridkit-indicator-width) 0 0 0 var(--gridkit-accent);
|
|
561
634
|
}
|
|
562
635
|
|
|
563
|
-
.gridkit-data-grid .header-cell.is-drop-after {
|
|
636
|
+
.gridkit-data-grid .gridkit-header-cell.is-drop-after {
|
|
564
637
|
box-shadow: inset calc(var(--gridkit-indicator-width) * -1) 0 0 0
|
|
565
638
|
var(--gridkit-accent);
|
|
566
639
|
}
|
|
567
640
|
|
|
641
|
+
/* Mirrored for the resize line's reason: a shadow's offset is physical. */
|
|
642
|
+
.gridkit-data-grid .gridkit-header-cell.is-drop-before:dir(rtl) {
|
|
643
|
+
box-shadow: inset calc(var(--gridkit-indicator-width) * -1) 0 0 0
|
|
644
|
+
var(--gridkit-accent);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.gridkit-data-grid .gridkit-header-cell.is-drop-after:dir(rtl) {
|
|
648
|
+
box-shadow: inset var(--gridkit-indicator-width) 0 0 0 var(--gridkit-accent);
|
|
649
|
+
}
|
|
650
|
+
|
|
568
651
|
/*
|
|
569
|
-
* Docked to the header's own
|
|
652
|
+
* Docked to the header's own inline-end edge, absolutely — like the resize
|
|
570
653
|
* handle, and for the same reason: sitting in the label's normal flow, a
|
|
571
654
|
* long label under `text-overflow: ellipsis` pushes the toggle out past
|
|
572
655
|
* where `overflow: hidden` clips it, leaving it unclickable (a real click
|
|
573
656
|
* there lands on the header cell instead and selects the column). Docked
|
|
574
657
|
* to a fixed offset, it stays inside the clipped area — and clear of the
|
|
575
|
-
* resize handle's own 6px strip at
|
|
658
|
+
* resize handle's own 6px strip at the inline end, so a resizable, sortable
|
|
576
659
|
* column keeps two independent hit targets rather than one shadowing the
|
|
577
660
|
* other.
|
|
578
661
|
*/
|
|
579
|
-
.gridkit-data-grid .header-sort-toggle {
|
|
662
|
+
.gridkit-data-grid .gridkit-header-sort-toggle {
|
|
580
663
|
display: inline-flex;
|
|
581
664
|
position: absolute;
|
|
582
665
|
top: 50%;
|
|
583
|
-
|
|
666
|
+
inset-inline-end: calc(var(--gridkit-spacing) * 3);
|
|
584
667
|
transform: translateY(-50%);
|
|
585
668
|
align-items: center;
|
|
586
669
|
gap: calc(var(--gridkit-spacing) * 0.5);
|
|
@@ -588,7 +671,7 @@
|
|
|
588
671
|
color: var(--gridkit-fg-muted);
|
|
589
672
|
}
|
|
590
673
|
|
|
591
|
-
.gridkit-data-grid .header-sort-toggle svg {
|
|
674
|
+
.gridkit-data-grid .gridkit-header-sort-toggle svg {
|
|
592
675
|
width: var(--gridkit-header-icon-size);
|
|
593
676
|
height: var(--gridkit-header-icon-size);
|
|
594
677
|
flex-shrink: 0;
|
|
@@ -599,32 +682,39 @@
|
|
|
599
682
|
* focused — an unsorted, un-hovered header stays quiet.
|
|
600
683
|
*/
|
|
601
684
|
.gridkit-data-grid
|
|
602
|
-
.header-sort-toggle:not(.is-sorted-asc):not(.is-sorted-desc) {
|
|
685
|
+
.gridkit-header-sort-toggle:not(.is-sorted-asc):not(.is-sorted-desc) {
|
|
603
686
|
opacity: 0;
|
|
604
687
|
}
|
|
605
688
|
|
|
606
|
-
.gridkit-data-grid
|
|
607
|
-
|
|
689
|
+
.gridkit-data-grid
|
|
690
|
+
.gridkit-grid-header
|
|
691
|
+
.gridkit-header-cell:hover
|
|
692
|
+
.gridkit-header-sort-toggle,
|
|
693
|
+
.gridkit-data-grid
|
|
694
|
+
.gridkit-header-cell:focus-visible
|
|
695
|
+
.gridkit-header-sort-toggle {
|
|
608
696
|
opacity: 1;
|
|
609
697
|
}
|
|
610
698
|
|
|
611
|
-
.gridkit-data-grid .header-sort-toggle.is-sorted-asc,
|
|
612
|
-
.gridkit-data-grid .header-sort-toggle.is-sorted-desc {
|
|
699
|
+
.gridkit-data-grid .gridkit-header-sort-toggle.is-sorted-asc,
|
|
700
|
+
.gridkit-data-grid .gridkit-header-sort-toggle.is-sorted-desc {
|
|
613
701
|
opacity: 1;
|
|
614
702
|
color: var(--gridkit-accent);
|
|
615
703
|
}
|
|
616
704
|
|
|
617
705
|
/* One chevron covers both directions; `desc` is `asc` turned upside down. */
|
|
618
|
-
.gridkit-data-grid .header-sort-toggle.is-sorted-desc svg {
|
|
706
|
+
.gridkit-data-grid .gridkit-header-sort-toggle.is-sorted-desc svg {
|
|
619
707
|
transform: rotate(180deg);
|
|
620
708
|
}
|
|
621
709
|
|
|
622
|
-
.gridkit-data-grid .header-sort-priority {
|
|
710
|
+
.gridkit-data-grid .gridkit-header-sort-priority {
|
|
623
711
|
font-size: calc(var(--gridkit-hint-font-size) * 5 / 6);
|
|
624
712
|
line-height: 1;
|
|
625
713
|
}
|
|
626
714
|
|
|
627
|
-
.gridkit-data-grid:not(.no-hover-columns)
|
|
715
|
+
.gridkit-data-grid:not(.gridkit-no-hover-columns)
|
|
716
|
+
.gridkit-grid-header
|
|
717
|
+
.gridkit-header-cell:hover {
|
|
628
718
|
background-color: var(--gridkit-surface-muted);
|
|
629
719
|
}
|
|
630
720
|
|
|
@@ -632,33 +722,38 @@
|
|
|
632
722
|
* Docked before the label, in normal flow rather than absolutely
|
|
633
723
|
* positioned like the sort toggle and resize handle — see the component's
|
|
634
724
|
* own note on why. Faint until grouped, hovered, or focused, the same
|
|
635
|
-
* restraint `.header-sort-toggle` uses for an unsorted header.
|
|
725
|
+
* restraint `.gridkit-header-sort-toggle` uses for an unsorted header.
|
|
636
726
|
*/
|
|
637
|
-
.gridkit-data-grid .header-group-toggle {
|
|
727
|
+
.gridkit-data-grid .gridkit-header-group-toggle {
|
|
638
728
|
display: inline-flex;
|
|
639
729
|
align-items: center;
|
|
640
730
|
vertical-align: middle;
|
|
641
|
-
margin-
|
|
731
|
+
margin-inline-end: calc(var(--gridkit-spacing) * 1.5);
|
|
642
732
|
cursor: pointer;
|
|
643
733
|
color: var(--gridkit-fg-muted);
|
|
644
734
|
}
|
|
645
735
|
|
|
646
|
-
.gridkit-data-grid .header-group-toggle svg {
|
|
736
|
+
.gridkit-data-grid .gridkit-header-group-toggle svg {
|
|
647
737
|
width: var(--gridkit-header-icon-size);
|
|
648
738
|
height: var(--gridkit-header-icon-size);
|
|
649
739
|
flex-shrink: 0;
|
|
650
740
|
}
|
|
651
741
|
|
|
652
|
-
.gridkit-data-grid .header-group-toggle:not(.is-grouped) {
|
|
742
|
+
.gridkit-data-grid .gridkit-header-group-toggle:not(.is-grouped) {
|
|
653
743
|
opacity: 0.35;
|
|
654
744
|
}
|
|
655
745
|
|
|
656
|
-
.gridkit-data-grid
|
|
657
|
-
|
|
746
|
+
.gridkit-data-grid
|
|
747
|
+
.gridkit-grid-header
|
|
748
|
+
.gridkit-header-cell:hover
|
|
749
|
+
.gridkit-header-group-toggle,
|
|
750
|
+
.gridkit-data-grid
|
|
751
|
+
.gridkit-header-cell:focus-visible
|
|
752
|
+
.gridkit-header-group-toggle {
|
|
658
753
|
opacity: 1;
|
|
659
754
|
}
|
|
660
755
|
|
|
661
|
-
.gridkit-data-grid .header-group-toggle.is-grouped {
|
|
756
|
+
.gridkit-data-grid .gridkit-header-group-toggle.is-grouped {
|
|
662
757
|
opacity: 1;
|
|
663
758
|
color: var(--gridkit-accent);
|
|
664
759
|
}
|
|
@@ -671,52 +766,146 @@
|
|
|
671
766
|
* filled in accent, while the column is filtered: the one sign of it on
|
|
672
767
|
* screen.
|
|
673
768
|
*/
|
|
674
|
-
.gridkit-data-grid .header-filter-toggle {
|
|
769
|
+
.gridkit-data-grid .gridkit-header-filter-toggle {
|
|
675
770
|
display: inline-flex;
|
|
676
771
|
position: absolute;
|
|
677
772
|
top: 50%;
|
|
678
|
-
|
|
773
|
+
inset-inline-end: calc(var(--gridkit-spacing) * 3);
|
|
679
774
|
transform: translateY(-50%);
|
|
680
775
|
align-items: center;
|
|
681
776
|
cursor: pointer;
|
|
682
777
|
color: var(--gridkit-fg-muted);
|
|
683
778
|
}
|
|
684
779
|
|
|
685
|
-
.gridkit-data-grid .header-filter-toggle svg {
|
|
780
|
+
.gridkit-data-grid .gridkit-header-filter-toggle svg {
|
|
686
781
|
width: var(--gridkit-header-icon-size);
|
|
687
782
|
height: var(--gridkit-header-icon-size);
|
|
688
783
|
flex-shrink: 0;
|
|
689
784
|
}
|
|
690
785
|
|
|
691
|
-
.gridkit-data-grid .header-filter-toggle:not(.is-filtered) {
|
|
786
|
+
.gridkit-data-grid .gridkit-header-filter-toggle:not(.is-filtered) {
|
|
692
787
|
opacity: 0;
|
|
693
788
|
}
|
|
694
789
|
|
|
695
|
-
.gridkit-data-grid
|
|
696
|
-
|
|
790
|
+
.gridkit-data-grid
|
|
791
|
+
.gridkit-grid-header
|
|
792
|
+
.gridkit-header-cell:hover
|
|
793
|
+
.gridkit-header-filter-toggle,
|
|
794
|
+
.gridkit-data-grid
|
|
795
|
+
.gridkit-header-cell:focus-visible
|
|
796
|
+
.gridkit-header-filter-toggle {
|
|
697
797
|
opacity: 1;
|
|
698
798
|
}
|
|
699
799
|
|
|
700
|
-
.gridkit-data-grid .header-filter-toggle.is-filtered {
|
|
800
|
+
.gridkit-data-grid .gridkit-header-filter-toggle.is-filtered {
|
|
701
801
|
color: var(--gridkit-accent);
|
|
702
802
|
}
|
|
703
803
|
|
|
704
|
-
.gridkit-data-grid .header-filter-toggle.is-filtered svg {
|
|
804
|
+
.gridkit-data-grid .gridkit-header-filter-toggle.is-filtered svg {
|
|
705
805
|
fill: currentColor;
|
|
706
806
|
}
|
|
707
807
|
|
|
708
808
|
.gridkit-data-grid
|
|
709
|
-
.header-cell:has(> .header-filter-toggle)
|
|
710
|
-
.header-sort-toggle {
|
|
809
|
+
.gridkit-header-cell:has(> .gridkit-header-filter-toggle)
|
|
810
|
+
.gridkit-header-sort-toggle {
|
|
711
811
|
/* The filter button's offset and width, then a gap. */
|
|
712
|
-
|
|
812
|
+
inset-inline-end: calc(
|
|
813
|
+
var(--gridkit-spacing) * 4.5 + var(--gridkit-header-icon-size)
|
|
814
|
+
);
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/*
|
|
818
|
+
* A screen that cannot hover never brings the header's toggles out, so
|
|
819
|
+
* there they show at rest, still told apart by colour and fill once the
|
|
820
|
+
* column is sorted, filtered or grouped.
|
|
821
|
+
*/
|
|
822
|
+
@media (hover: none) {
|
|
823
|
+
.gridkit-data-grid
|
|
824
|
+
.gridkit-header-sort-toggle:not(.is-sorted-asc):not(.is-sorted-desc),
|
|
825
|
+
.gridkit-data-grid .gridkit-header-filter-toggle:not(.is-filtered),
|
|
826
|
+
.gridkit-data-grid .gridkit-header-group-toggle:not(.is-grouped) {
|
|
827
|
+
opacity: 1;
|
|
828
|
+
}
|
|
713
829
|
}
|
|
714
830
|
|
|
715
|
-
|
|
831
|
+
/*
|
|
832
|
+
* A finger needs 24 by 24 pixels to land on, WCAG 2.2's minimum target.
|
|
833
|
+
* Each toggle grows its box by padding around an unchanged icon, and the
|
|
834
|
+
* ones docked to the inline end move inward to sit side by side, clear of
|
|
835
|
+
* the resize handle, which widens to the same 24 pixels. The handle draws
|
|
836
|
+
* nothing of its own, so the line a resize colours stays on the column's
|
|
837
|
+
* edge.
|
|
838
|
+
*/
|
|
839
|
+
@media (pointer: coarse) {
|
|
840
|
+
.gridkit-data-grid .gridkit-header-resize-handle {
|
|
841
|
+
width: 24px;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.gridkit-data-grid .gridkit-header-sort-toggle,
|
|
845
|
+
.gridkit-data-grid .gridkit-header-filter-toggle,
|
|
846
|
+
.gridkit-data-grid .gridkit-header-group-toggle {
|
|
847
|
+
box-sizing: border-box;
|
|
848
|
+
min-width: 24px;
|
|
849
|
+
min-height: 24px;
|
|
850
|
+
justify-content: center;
|
|
851
|
+
padding: max(0px, calc((24px - var(--gridkit-header-icon-size)) / 2));
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.gridkit-data-grid .gridkit-header-sort-toggle,
|
|
855
|
+
.gridkit-data-grid .gridkit-header-filter-toggle {
|
|
856
|
+
inset-inline-end: 24px;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.gridkit-data-grid
|
|
860
|
+
.gridkit-header-cell:has(> .gridkit-header-filter-toggle)
|
|
861
|
+
.gridkit-header-sort-toggle {
|
|
862
|
+
inset-inline-end: 48px;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
/*
|
|
866
|
+
* A touch screen shows the docked toggles at rest, where they would sit
|
|
867
|
+
* over the label, so the label keeps clear of them and is cut short
|
|
868
|
+
* instead.
|
|
869
|
+
*/
|
|
870
|
+
.gridkit-data-grid
|
|
871
|
+
.gridkit-grid-header
|
|
872
|
+
.gridkit-header-cell:has(> .gridkit-header-sort-toggle),
|
|
873
|
+
.gridkit-data-grid
|
|
874
|
+
.gridkit-grid-header
|
|
875
|
+
.gridkit-header-cell:has(> .gridkit-header-filter-toggle) {
|
|
876
|
+
padding-inline-end: 48px;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
.gridkit-data-grid
|
|
880
|
+
.gridkit-grid-header
|
|
881
|
+
.gridkit-header-cell:has(> .gridkit-header-sort-toggle):has(
|
|
882
|
+
> .gridkit-header-filter-toggle
|
|
883
|
+
) {
|
|
884
|
+
padding-inline-end: 72px;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
/* Grown into the header's padding, so the label stays where it was. */
|
|
888
|
+
.gridkit-data-grid .gridkit-header-group-toggle {
|
|
889
|
+
margin-block: min(
|
|
890
|
+
0px,
|
|
891
|
+
calc((var(--gridkit-header-icon-size) - 24px) / 2)
|
|
892
|
+
);
|
|
893
|
+
margin-inline-start: min(
|
|
894
|
+
0px,
|
|
895
|
+
calc((var(--gridkit-header-icon-size) - 24px) / 2)
|
|
896
|
+
);
|
|
897
|
+
margin-inline-end: calc(
|
|
898
|
+
var(--gridkit-spacing) * 1.5 +
|
|
899
|
+
min(0px, calc((var(--gridkit-header-icon-size) - 24px) / 2))
|
|
900
|
+
);
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.gridkit-data-grid .gridkit-grid-cell {
|
|
716
905
|
padding: var(--gridkit-cell-padding-y) var(--gridkit-cell-padding-x);
|
|
717
906
|
}
|
|
718
907
|
|
|
719
|
-
.gridkit-data-grid:not(.no-hover-cells) .grid-cell:hover {
|
|
908
|
+
.gridkit-data-grid:not(.gridkit-no-hover-cells) .gridkit-grid-cell:hover {
|
|
720
909
|
outline: var(--gridkit-border-width) solid var(--gridkit-hover-line);
|
|
721
910
|
background-color: var(--gridkit-surface-muted);
|
|
722
911
|
}
|
|
@@ -729,7 +918,7 @@
|
|
|
729
918
|
* selection rules, which win over it.
|
|
730
919
|
*/
|
|
731
920
|
.gridkit-data-grid
|
|
732
|
-
.grid-row:where(
|
|
921
|
+
.gridkit-grid-row:where(
|
|
733
922
|
[data-gridkit-row-index$="1"],
|
|
734
923
|
[data-gridkit-row-index$="3"],
|
|
735
924
|
[data-gridkit-row-index$="5"],
|
|
@@ -739,38 +928,47 @@
|
|
|
739
928
|
background-color: var(--gridkit-row-stripe-bg);
|
|
740
929
|
}
|
|
741
930
|
|
|
742
|
-
.gridkit-data-grid:not(.no-hover-rows) .grid-row:hover {
|
|
931
|
+
.gridkit-data-grid:not(.gridkit-no-hover-rows) .gridkit-grid-row:hover {
|
|
743
932
|
background-color: var(--gridkit-row-hover-bg);
|
|
744
933
|
}
|
|
745
934
|
|
|
746
935
|
/*
|
|
747
|
-
* A group header — one cell spanning every column, not a `.grid-cell` — so
|
|
936
|
+
* A group header — one cell spanning every column, not a `.gridkit-grid-cell` — so
|
|
748
937
|
* it gets its own rules rather than sharing the data-cell ones above.
|
|
749
938
|
*/
|
|
750
|
-
.gridkit-data-grid .grid-group-row {
|
|
939
|
+
.gridkit-data-grid .gridkit-grid-group-row {
|
|
751
940
|
cursor: pointer;
|
|
752
941
|
background-color: var(--gridkit-group-row-bg);
|
|
753
942
|
}
|
|
754
943
|
|
|
755
|
-
.gridkit-data-grid .grid-group-row:hover {
|
|
944
|
+
.gridkit-data-grid .gridkit-grid-group-row:hover {
|
|
756
945
|
background-color: var(--gridkit-selected);
|
|
757
946
|
}
|
|
758
947
|
|
|
759
948
|
/*
|
|
760
|
-
* Padding lives on `.grid-group-cell-content` (the inner `div`), not here:
|
|
949
|
+
* Padding lives on `.gridkit-grid-group-cell-content` (the inner `div`), not here:
|
|
761
950
|
* see that component's own note on why the flex layout is one level in
|
|
762
951
|
* rather than on the `<td>` itself.
|
|
763
952
|
*/
|
|
764
|
-
.gridkit-data-grid .grid-group-cell {
|
|
953
|
+
.gridkit-data-grid .gridkit-grid-group-cell {
|
|
765
954
|
padding: 0;
|
|
766
955
|
}
|
|
767
956
|
|
|
768
|
-
.gridkit-data-grid .grid-group-cell:focus-visible {
|
|
957
|
+
.gridkit-data-grid .gridkit-grid-group-cell:focus-visible {
|
|
769
958
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
770
959
|
outline-offset: calc(var(--gridkit-focus-ring-width) * -1);
|
|
771
960
|
}
|
|
772
961
|
|
|
773
|
-
|
|
962
|
+
/*
|
|
963
|
+
* Sticks to the scroll area's start edge, so a group's label stays in view
|
|
964
|
+
* however far a wide grid scrolls sideways; as wide as its content, so it
|
|
965
|
+
* has room to move along its row. It sticks only while the group cell does
|
|
966
|
+
* not clip: `overflow: clip`, unlike `hidden`, would keep it working.
|
|
967
|
+
*/
|
|
968
|
+
.gridkit-data-grid .gridkit-grid-group-cell-content {
|
|
969
|
+
position: sticky;
|
|
970
|
+
inset-inline-start: 0;
|
|
971
|
+
width: max-content;
|
|
774
972
|
display: flex;
|
|
775
973
|
align-items: center;
|
|
776
974
|
gap: calc(var(--gridkit-spacing) * 2);
|
|
@@ -778,51 +976,59 @@
|
|
|
778
976
|
font-weight: var(--gridkit-group-font-weight);
|
|
779
977
|
}
|
|
780
978
|
|
|
781
|
-
/* A
|
|
782
|
-
.gridkit-data-grid .grid-group-row .group-toggle {
|
|
979
|
+
/* A triangle pointing to the inline end that rotates open on expand. */
|
|
980
|
+
.gridkit-data-grid .gridkit-grid-group-row .gridkit-group-toggle {
|
|
783
981
|
display: inline-block;
|
|
784
982
|
flex-shrink: 0;
|
|
785
983
|
width: 0;
|
|
786
984
|
height: 0;
|
|
787
985
|
border-style: solid;
|
|
788
|
-
border-width: calc(var(--gridkit-icon-size) / 4)
|
|
789
|
-
|
|
790
|
-
border-color: transparent
|
|
986
|
+
border-block-width: calc(var(--gridkit-icon-size) / 4);
|
|
987
|
+
border-inline-width: calc(var(--gridkit-icon-size) * 0.4) 0;
|
|
988
|
+
border-color: transparent;
|
|
989
|
+
border-inline-start-color: var(--gridkit-fg-muted);
|
|
791
990
|
transition: transform var(--gridkit-transition-duration) ease;
|
|
792
991
|
}
|
|
793
992
|
|
|
794
|
-
.gridkit-data-grid .grid-group-row .group-toggle.is-expanded {
|
|
993
|
+
.gridkit-data-grid .gridkit-grid-group-row .gridkit-group-toggle.is-expanded {
|
|
795
994
|
transform: rotate(90deg);
|
|
796
995
|
}
|
|
797
996
|
|
|
997
|
+
/* Pointing left, the triangle turns the other way to point down. */
|
|
998
|
+
.gridkit-data-grid
|
|
999
|
+
.gridkit-grid-group-row
|
|
1000
|
+
.gridkit-group-toggle.is-expanded:dir(rtl) {
|
|
1001
|
+
transform: rotate(-90deg);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
798
1004
|
/*
|
|
799
1005
|
* Set on the rule rather than on `--gridkit-transition-duration`, so a
|
|
800
1006
|
* theme's own duration can't bring the motion back.
|
|
801
1007
|
*/
|
|
802
1008
|
@media (prefers-reduced-motion: reduce) {
|
|
803
|
-
.gridkit-data-grid .grid-group-row .group-toggle {
|
|
1009
|
+
.gridkit-data-grid .gridkit-grid-group-row .gridkit-group-toggle {
|
|
804
1010
|
transition: none;
|
|
805
1011
|
}
|
|
806
1012
|
}
|
|
807
1013
|
|
|
808
|
-
.gridkit-data-grid .grid-group-row .group-count {
|
|
1014
|
+
.gridkit-data-grid .gridkit-grid-group-row .gridkit-group-count {
|
|
809
1015
|
font-weight: 400;
|
|
810
1016
|
color: var(--gridkit-fg-muted);
|
|
811
1017
|
}
|
|
812
1018
|
|
|
813
1019
|
/*
|
|
814
1020
|
* A group's own subtotals, inline after its count — `gap` on the parent
|
|
815
|
-
* `.grid-group-cell-content` already spaces every child, this just keeps
|
|
1021
|
+
* `.gridkit-grid-group-cell-content` already spaces every child, this just keeps
|
|
816
1022
|
* multiple aggregates readable as a list rather than running together.
|
|
817
1023
|
*/
|
|
818
|
-
.gridkit-data-grid .grid-group-row .group-aggregates {
|
|
1024
|
+
.gridkit-data-grid .gridkit-grid-group-row .gridkit-group-aggregates {
|
|
819
1025
|
display: flex;
|
|
820
1026
|
gap: calc(var(--gridkit-spacing) * 3);
|
|
821
1027
|
margin-inline-start: calc(var(--gridkit-spacing) * 2);
|
|
822
1028
|
font-weight: 400;
|
|
823
1029
|
}
|
|
824
1030
|
|
|
825
|
-
.gridkit-data-grid .grid-group-row .group-aggregate {
|
|
1031
|
+
.gridkit-data-grid .gridkit-grid-group-row .gridkit-group-aggregate {
|
|
826
1032
|
color: var(--gridkit-fg-muted);
|
|
827
1033
|
}
|
|
828
1034
|
|
|
@@ -830,30 +1036,30 @@
|
|
|
830
1036
|
* The grand-total footer, styled as the header's counterpart: the
|
|
831
1037
|
* surface the header has by default, the same cell padding, and the weight
|
|
832
1038
|
* of the group rows' totals. No border by default, matching the
|
|
833
|
-
* header's own `.header-cell` — see the `borders-*` variants below for
|
|
1039
|
+
* header's own `.gridkit-header-cell` — see the `gridkit-borders-*` variants below for
|
|
834
1040
|
* the opt-in top border that echoes the header's bottom one.
|
|
835
1041
|
*/
|
|
836
|
-
.gridkit-data-grid .grid-footer {
|
|
1042
|
+
.gridkit-data-grid .gridkit-grid-footer {
|
|
837
1043
|
background-color: var(--gridkit-surface);
|
|
838
1044
|
}
|
|
839
1045
|
|
|
840
|
-
.gridkit-data-grid .grid-footer-cell {
|
|
1046
|
+
.gridkit-data-grid .gridkit-grid-footer-cell {
|
|
841
1047
|
padding: var(--gridkit-cell-padding-y) var(--gridkit-cell-padding-x);
|
|
842
1048
|
font-weight: var(--gridkit-group-font-weight);
|
|
843
1049
|
}
|
|
844
1050
|
|
|
845
1051
|
/*
|
|
846
1052
|
* A group's own summary row (`groupAggregateDisplay: "row"`) — the
|
|
847
|
-
* per-column-cell alternative to `.group-aggregates`' inline text.
|
|
1053
|
+
* per-column-cell alternative to `.gridkit-group-aggregates`' inline text.
|
|
848
1054
|
* Shares the group header's background so the pair read as one unit,
|
|
849
1055
|
* but is presentational: no hover state, no pointer cursor, matching
|
|
850
1056
|
* `GridGroupSummaryRow`'s own lack of any click/focus handling.
|
|
851
1057
|
*/
|
|
852
|
-
.gridkit-data-grid .grid-group-summary-row {
|
|
1058
|
+
.gridkit-data-grid .gridkit-grid-group-summary-row {
|
|
853
1059
|
background-color: var(--gridkit-group-row-bg);
|
|
854
1060
|
}
|
|
855
1061
|
|
|
856
|
-
.gridkit-data-grid .grid-group-summary-cell {
|
|
1062
|
+
.gridkit-data-grid .gridkit-grid-group-summary-cell {
|
|
857
1063
|
padding: var(--gridkit-cell-padding-y) var(--gridkit-cell-padding-x);
|
|
858
1064
|
font-weight: var(--gridkit-group-font-weight);
|
|
859
1065
|
}
|
|
@@ -863,7 +1069,7 @@
|
|
|
863
1069
|
* `aria-rowcount` (see `GridBody`), so this is a purely visual cue, not an
|
|
864
1070
|
* announced one.
|
|
865
1071
|
*/
|
|
866
|
-
.gridkit-data-grid .grid-loading-cell {
|
|
1072
|
+
.gridkit-data-grid .gridkit-grid-loading-cell {
|
|
867
1073
|
padding: var(--gridkit-cell-padding-y) var(--gridkit-cell-padding-x);
|
|
868
1074
|
color: var(--gridkit-fg-muted);
|
|
869
1075
|
text-align: center;
|
|
@@ -876,7 +1082,7 @@
|
|
|
876
1082
|
* itself, so the cell's own content still aligns flush with the column
|
|
877
1083
|
* above and below it once the indent's width is accounted for.
|
|
878
1084
|
*/
|
|
879
|
-
.gridkit-data-grid .grid-group-summary-indent {
|
|
1085
|
+
.gridkit-data-grid .gridkit-grid-group-summary-indent {
|
|
880
1086
|
display: inline-block;
|
|
881
1087
|
}
|
|
882
1088
|
|
|
@@ -888,17 +1094,19 @@
|
|
|
888
1094
|
* A selected cell wins over its row and its column: it is the more specific
|
|
889
1095
|
* thing the user pointed at, and the rule below it says so by ordering.
|
|
890
1096
|
*/
|
|
891
|
-
.gridkit-data-grid .grid-row.is-selected,
|
|
892
|
-
.gridkit-data-grid .header-cell.is-selected,
|
|
893
|
-
.gridkit-data-grid .grid-cell.is-selected {
|
|
1097
|
+
.gridkit-data-grid .gridkit-grid-row.is-selected,
|
|
1098
|
+
.gridkit-data-grid .gridkit-header-cell.is-selected,
|
|
1099
|
+
.gridkit-data-grid .gridkit-grid-cell.is-selected {
|
|
894
1100
|
background-color: var(--gridkit-selected);
|
|
895
1101
|
}
|
|
896
1102
|
|
|
897
|
-
.gridkit-data-grid:not(.no-hover-rows)
|
|
898
|
-
|
|
899
|
-
.gridkit-data-grid:not(.no-hover-
|
|
900
|
-
.grid-
|
|
901
|
-
|
|
1103
|
+
.gridkit-data-grid:not(.gridkit-no-hover-rows)
|
|
1104
|
+
.gridkit-grid-row.is-selected:hover,
|
|
1105
|
+
.gridkit-data-grid:not(.gridkit-no-hover-cells)
|
|
1106
|
+
.gridkit-grid-cell.is-selected:hover,
|
|
1107
|
+
.gridkit-data-grid:not(.gridkit-no-hover-columns)
|
|
1108
|
+
.gridkit-grid-header
|
|
1109
|
+
.gridkit-header-cell.is-selected:hover {
|
|
902
1110
|
background-color: var(--gridkit-selected-strong);
|
|
903
1111
|
}
|
|
904
1112
|
|
|
@@ -909,11 +1117,11 @@
|
|
|
909
1117
|
* A reorderable header keeps its `grab`: it is the rarer affordance and the
|
|
910
1118
|
* one a user would not otherwise guess, and its header still selects.
|
|
911
1119
|
*/
|
|
912
|
-
.gridkit-data-grid.selectable-rows .grid-row,
|
|
913
|
-
.gridkit-data-grid.selectable-cells .grid-cell,
|
|
914
|
-
.gridkit-data-grid.selectable-columns
|
|
915
|
-
.grid-header
|
|
916
|
-
.header-cell:not(.is-reorderable) {
|
|
1120
|
+
.gridkit-data-grid.gridkit-selectable-rows .gridkit-grid-row,
|
|
1121
|
+
.gridkit-data-grid.gridkit-selectable-cells .gridkit-grid-cell,
|
|
1122
|
+
.gridkit-data-grid.gridkit-selectable-columns
|
|
1123
|
+
.gridkit-grid-header
|
|
1124
|
+
.gridkit-header-cell:not(.is-reorderable) {
|
|
917
1125
|
cursor: pointer;
|
|
918
1126
|
}
|
|
919
1127
|
|
|
@@ -926,32 +1134,34 @@
|
|
|
926
1134
|
* this is scoped to a grid that asked for selection rather than applied to
|
|
927
1135
|
* all of them.
|
|
928
1136
|
*/
|
|
929
|
-
.gridkit-data-grid.selectable-rows .grid-row,
|
|
930
|
-
.gridkit-data-grid.selectable-cells .grid-cell {
|
|
1137
|
+
.gridkit-data-grid.gridkit-selectable-rows .gridkit-grid-row,
|
|
1138
|
+
.gridkit-data-grid.gridkit-selectable-cells .gridkit-grid-cell {
|
|
931
1139
|
user-select: none;
|
|
932
1140
|
}
|
|
933
1141
|
|
|
934
1142
|
/*
|
|
935
1143
|
* Horizontal borders.
|
|
936
1144
|
*
|
|
937
|
-
*
|
|
938
|
-
*
|
|
939
|
-
*
|
|
940
|
-
*
|
|
941
|
-
*
|
|
942
|
-
*
|
|
943
|
-
* instead of collapsing into one:
|
|
1145
|
+
* Each cell owns its borders, so every seam is drawn by one of its two
|
|
1146
|
+
* cells only, never both, or the two lines would sit side by side as a
|
|
1147
|
+
* doubled one: a seam between rows is the upper cell's `border-bottom`,
|
|
1148
|
+
* and one between columns (in the vertical variants below) the earlier
|
|
1149
|
+
* cell's `border-inline-end`. The seams between the header, body and
|
|
1150
|
+
* footer tables follow the same rule:
|
|
944
1151
|
* - header/body seam: the header's own `border-bottom` here. The body's
|
|
945
1152
|
* first row never sets a `border-top` of its own.
|
|
946
1153
|
* - body/footer seam: the footer's own `border-top` (below, alongside
|
|
947
|
-
* `.grid-footer-cell`). The body's last row has its `border-bottom`
|
|
948
|
-
* stripped (below, `.grid-row:last-child`) specifically so it never
|
|
1154
|
+
* `.gridkit-grid-footer-cell`). The body's last row has its `border-bottom`
|
|
1155
|
+
* stripped (below, `.gridkit-grid-row:last-child`) specifically so it never
|
|
949
1156
|
* supplies the other half of this seam.
|
|
950
1157
|
*/
|
|
951
|
-
.gridkit-data-grid.borders-horizontal
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
.gridkit-data-grid.borders-horizontal .grid-
|
|
1158
|
+
.gridkit-data-grid.gridkit-borders-horizontal
|
|
1159
|
+
.gridkit-grid-header
|
|
1160
|
+
.gridkit-header-cell,
|
|
1161
|
+
.gridkit-data-grid.gridkit-borders-horizontal .gridkit-grid-cell,
|
|
1162
|
+
.gridkit-data-grid.gridkit-borders-horizontal .gridkit-grid-group-cell,
|
|
1163
|
+
.gridkit-data-grid.gridkit-borders-horizontal
|
|
1164
|
+
.gridkit-grid-group-summary-cell {
|
|
955
1165
|
border-bottom: var(--gridkit-row-line-width) var(--gridkit-border-style)
|
|
956
1166
|
var(--gridkit-line);
|
|
957
1167
|
}
|
|
@@ -961,97 +1171,276 @@
|
|
|
961
1171
|
* a `border-top` rather than a `border-bottom` on the last body row, since
|
|
962
1172
|
* the footer sits in its own `<table>` entirely, sibling to the body's.
|
|
963
1173
|
*/
|
|
964
|
-
.gridkit-data-grid.borders-horizontal .grid-footer-cell,
|
|
965
|
-
.gridkit-data-grid.borders-all .grid-footer-cell {
|
|
1174
|
+
.gridkit-data-grid.gridkit-borders-horizontal .gridkit-grid-footer-cell,
|
|
1175
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-footer-cell {
|
|
966
1176
|
border-top: var(--gridkit-row-line-width) var(--gridkit-border-style)
|
|
967
1177
|
var(--gridkit-line);
|
|
968
1178
|
}
|
|
969
1179
|
|
|
970
1180
|
/*
|
|
971
|
-
* The last row's bottom edge
|
|
972
|
-
*
|
|
973
|
-
*
|
|
1181
|
+
* The last row's bottom edge is no seam between two rows, so it draws no
|
|
1182
|
+
* line: the footer draws its own, and without a footer the line would be
|
|
1183
|
+
* one more than the rows have seams — the same reason
|
|
1184
|
+
* `gridkit-borders-vertical` drops its `:last-child` end border below.
|
|
974
1185
|
* Matched against both row kinds: the last rendered row can just as well
|
|
975
1186
|
* be a collapsed group header as a data row.
|
|
976
1187
|
*/
|
|
977
|
-
.gridkit-data-grid.borders-horizontal
|
|
978
|
-
|
|
979
|
-
.grid-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
.grid-group-
|
|
983
|
-
|
|
1188
|
+
.gridkit-data-grid.gridkit-borders-horizontal
|
|
1189
|
+
.gridkit-grid-row:last-child
|
|
1190
|
+
.gridkit-grid-cell,
|
|
1191
|
+
.gridkit-data-grid.gridkit-borders-horizontal
|
|
1192
|
+
.gridkit-grid-group-row:last-child
|
|
1193
|
+
.gridkit-grid-group-cell,
|
|
1194
|
+
.gridkit-data-grid.gridkit-borders-horizontal
|
|
1195
|
+
.gridkit-grid-group-summary-row:last-child
|
|
1196
|
+
.gridkit-grid-group-summary-cell {
|
|
984
1197
|
border-bottom: none;
|
|
985
1198
|
}
|
|
986
1199
|
|
|
987
1200
|
/* Vertical borders */
|
|
988
|
-
.gridkit-data-grid.borders-vertical
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
.gridkit-data-grid.borders-vertical .grid-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
.gridkit-data-grid.borders-vertical
|
|
999
|
-
|
|
1000
|
-
|
|
1201
|
+
.gridkit-data-grid.gridkit-borders-vertical
|
|
1202
|
+
.gridkit-grid-header
|
|
1203
|
+
.gridkit-header-cell,
|
|
1204
|
+
.gridkit-data-grid.gridkit-borders-vertical .gridkit-grid-cell,
|
|
1205
|
+
.gridkit-data-grid.gridkit-borders-vertical .gridkit-grid-footer-cell,
|
|
1206
|
+
.gridkit-data-grid.gridkit-borders-vertical .gridkit-grid-group-summary-cell {
|
|
1207
|
+
border-inline-end: var(--gridkit-column-line-width)
|
|
1208
|
+
var(--gridkit-border-style) var(--gridkit-line);
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
.gridkit-data-grid.gridkit-borders-vertical
|
|
1212
|
+
.gridkit-grid-header
|
|
1213
|
+
.gridkit-header-cell:last-child,
|
|
1214
|
+
.gridkit-data-grid.gridkit-borders-vertical .gridkit-grid-cell:last-child,
|
|
1215
|
+
.gridkit-data-grid.gridkit-borders-vertical
|
|
1216
|
+
.gridkit-grid-footer-cell:last-child,
|
|
1217
|
+
.gridkit-data-grid.gridkit-borders-vertical
|
|
1218
|
+
.gridkit-grid-group-summary-cell:last-child {
|
|
1219
|
+
border-inline-end: none;
|
|
1001
1220
|
}
|
|
1002
1221
|
|
|
1003
1222
|
/* Borders on all sides */
|
|
1004
|
-
.gridkit-data-grid.borders-all
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
.gridkit-data-grid.borders-all .grid-
|
|
1223
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1224
|
+
.gridkit-grid-header
|
|
1225
|
+
.gridkit-header-cell,
|
|
1226
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-cell,
|
|
1227
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-group-cell,
|
|
1228
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-group-summary-cell {
|
|
1008
1229
|
border-bottom: var(--gridkit-row-line-width) var(--gridkit-border-style)
|
|
1009
1230
|
var(--gridkit-line);
|
|
1010
|
-
border-
|
|
1011
|
-
var(--gridkit-line);
|
|
1231
|
+
border-inline-end: var(--gridkit-column-line-width)
|
|
1232
|
+
var(--gridkit-border-style) var(--gridkit-line);
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-footer-cell {
|
|
1236
|
+
border-inline-end: var(--gridkit-column-line-width)
|
|
1237
|
+
var(--gridkit-border-style) var(--gridkit-line);
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
/*
|
|
1241
|
+
* The outer start and end edges are no seam between two columns, so they
|
|
1242
|
+
* draw no line: one there would sit against the scroll area's edge, or
|
|
1243
|
+
* double the grid's outer border when it has one. A group cell is both its
|
|
1244
|
+
* row's first and last child at once (it is the only cell), so it takes
|
|
1245
|
+
* both exceptions.
|
|
1246
|
+
*/
|
|
1247
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1248
|
+
.gridkit-grid-header
|
|
1249
|
+
.gridkit-header-cell:first-child,
|
|
1250
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-cell:first-child,
|
|
1251
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-group-cell,
|
|
1252
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-footer-cell:first-child,
|
|
1253
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1254
|
+
.gridkit-grid-group-summary-cell:first-child {
|
|
1255
|
+
border-inline-start: none;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1259
|
+
.gridkit-grid-header
|
|
1260
|
+
.gridkit-header-cell:last-child,
|
|
1261
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-cell:last-child,
|
|
1262
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-group-cell,
|
|
1263
|
+
.gridkit-data-grid.gridkit-borders-all .gridkit-grid-footer-cell:last-child,
|
|
1264
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1265
|
+
.gridkit-grid-group-summary-cell:last-child {
|
|
1266
|
+
border-inline-end: none;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1270
|
+
.gridkit-grid-row:last-child
|
|
1271
|
+
.gridkit-grid-cell,
|
|
1272
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1273
|
+
.gridkit-grid-group-row:last-child
|
|
1274
|
+
.gridkit-grid-group-cell,
|
|
1275
|
+
.gridkit-data-grid.gridkit-borders-all
|
|
1276
|
+
.gridkit-grid-group-summary-row:last-child
|
|
1277
|
+
.gridkit-grid-group-summary-cell {
|
|
1278
|
+
border-bottom: none;
|
|
1012
1279
|
}
|
|
1013
1280
|
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1281
|
+
/*
|
|
1282
|
+
* Pinned columns. A pinned column's header, body, footer and summary cells
|
|
1283
|
+
* stick to the scroll area's start or end edge, at the
|
|
1284
|
+
* `--gridkit-pin-offset` the grid sets on each: the summed widths of the
|
|
1285
|
+
* columns pinned between it and that edge. The other columns scroll under
|
|
1286
|
+
* them.
|
|
1287
|
+
*
|
|
1288
|
+
* After the header cell's `position: relative`, which this replaces at the
|
|
1289
|
+
* same specificity; sticky is a containing block too, so the resize handle
|
|
1290
|
+
* and the toggles stay inside the cell. `z-index: 1` lifts them over the
|
|
1291
|
+
* scrolling cells, whose positioned header cells would otherwise paint
|
|
1292
|
+
* over a start-pinned one that comes before them, and keeps them under the
|
|
1293
|
+
* header and footer tables (2), which pinned body cells scroll under like
|
|
1294
|
+
* any row.
|
|
1295
|
+
*/
|
|
1296
|
+
.gridkit-data-grid
|
|
1297
|
+
:is(
|
|
1298
|
+
.gridkit-header-cell,
|
|
1299
|
+
.gridkit-grid-cell,
|
|
1300
|
+
.gridkit-grid-footer-cell,
|
|
1301
|
+
.gridkit-grid-group-summary-cell
|
|
1302
|
+
).is-pinned-start {
|
|
1303
|
+
position: sticky;
|
|
1304
|
+
inset-inline-start: var(--gridkit-pin-offset);
|
|
1305
|
+
z-index: 1;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
.gridkit-data-grid
|
|
1309
|
+
:is(
|
|
1310
|
+
.gridkit-header-cell,
|
|
1311
|
+
.gridkit-grid-cell,
|
|
1312
|
+
.gridkit-grid-footer-cell,
|
|
1313
|
+
.gridkit-grid-group-summary-cell
|
|
1314
|
+
).is-pinned-end {
|
|
1315
|
+
position: sticky;
|
|
1316
|
+
inset-inline-end: var(--gridkit-pin-offset);
|
|
1317
|
+
z-index: 1;
|
|
1017
1318
|
}
|
|
1018
1319
|
|
|
1019
1320
|
/*
|
|
1020
|
-
*
|
|
1021
|
-
*
|
|
1022
|
-
*
|
|
1023
|
-
*
|
|
1024
|
-
*
|
|
1321
|
+
* Keeps a cell that keyboard focus or `scrollToColumn` scrolls into view
|
|
1322
|
+
* clear of the pinned columns at both edges. A margin on the scrolling
|
|
1323
|
+
* cells rather than padding on the scroll area: a pinned cell, stuck in
|
|
1324
|
+
* that padding, would scroll the area to make room when focused, as the
|
|
1325
|
+
* header would for `scroll-margin-block` above.
|
|
1025
1326
|
*/
|
|
1026
|
-
.gridkit-data-grid
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1327
|
+
.gridkit-data-grid
|
|
1328
|
+
:is(.gridkit-header-cell, .gridkit-grid-cell):not(
|
|
1329
|
+
.is-pinned-start,
|
|
1330
|
+
.is-pinned-end
|
|
1331
|
+
) {
|
|
1332
|
+
scroll-margin-inline: var(--gridkit-pinned-start-width, 0px)
|
|
1333
|
+
var(--gridkit-pinned-end-width, 0px);
|
|
1032
1334
|
}
|
|
1033
1335
|
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1336
|
+
/*
|
|
1337
|
+
* Opaque in every row state, without restating a row rule. The cell takes
|
|
1338
|
+
* its row's colour, at no specificity, so a cell's own hover or selection
|
|
1339
|
+
* wins over it. A sticky cell is a stacking context, so its negative-z
|
|
1340
|
+
* pseudo-elements paint above its own background and below its content:
|
|
1341
|
+
* `::before` lays the surface over it and `::after` its colour again on
|
|
1342
|
+
* top. A transparent row shows the surface, a translucent one its colour
|
|
1343
|
+
* over the surface, and neither the cells scrolled underneath. `inset: 0`
|
|
1344
|
+
* covers the padding box, so the borders stay visible; `box-shadow:
|
|
1345
|
+
* inherit` repeats the resize and drop lines `::after` would cover.
|
|
1346
|
+
*/
|
|
1347
|
+
.gridkit-data-grid :where(.is-pinned-start, .is-pinned-end) {
|
|
1348
|
+
background-color: inherit;
|
|
1040
1349
|
}
|
|
1041
1350
|
|
|
1042
|
-
.gridkit-data-grid
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1351
|
+
.gridkit-data-grid
|
|
1352
|
+
:is(
|
|
1353
|
+
.gridkit-header-cell,
|
|
1354
|
+
.gridkit-grid-cell,
|
|
1355
|
+
.gridkit-grid-footer-cell,
|
|
1356
|
+
.gridkit-grid-group-summary-cell
|
|
1357
|
+
):is(.is-pinned-start, .is-pinned-end)::before,
|
|
1358
|
+
.gridkit-data-grid
|
|
1359
|
+
:is(
|
|
1360
|
+
.gridkit-header-cell,
|
|
1361
|
+
.gridkit-grid-cell,
|
|
1362
|
+
.gridkit-grid-footer-cell,
|
|
1363
|
+
.gridkit-grid-group-summary-cell
|
|
1364
|
+
):is(.is-pinned-start, .is-pinned-end)::after {
|
|
1365
|
+
content: "";
|
|
1366
|
+
position: absolute;
|
|
1367
|
+
inset: 0;
|
|
1368
|
+
pointer-events: none;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
.gridkit-data-grid
|
|
1372
|
+
:is(
|
|
1373
|
+
.gridkit-header-cell,
|
|
1374
|
+
.gridkit-grid-cell,
|
|
1375
|
+
.gridkit-grid-footer-cell,
|
|
1376
|
+
.gridkit-grid-group-summary-cell
|
|
1377
|
+
):is(.is-pinned-start, .is-pinned-end)::before {
|
|
1378
|
+
z-index: -2;
|
|
1379
|
+
background-color: var(--gridkit-surface);
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
.gridkit-data-grid
|
|
1383
|
+
:is(
|
|
1384
|
+
.gridkit-header-cell,
|
|
1385
|
+
.gridkit-grid-cell,
|
|
1386
|
+
.gridkit-grid-footer-cell,
|
|
1387
|
+
.gridkit-grid-group-summary-cell
|
|
1388
|
+
):is(.is-pinned-start, .is-pinned-end)::after {
|
|
1389
|
+
z-index: -1;
|
|
1390
|
+
background-color: inherit;
|
|
1391
|
+
box-shadow: inherit;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
/*
|
|
1395
|
+
* The divider between the pinned columns and the scrolling ones, in every
|
|
1396
|
+
* `borders` setting: the edge cell's own border on the scrolling side,
|
|
1397
|
+
* outranking the column lines above. None where the edge cell ends the
|
|
1398
|
+
* row, which is no seam, and none at the start edge when the end edge cell
|
|
1399
|
+
* comes straight after it, whose divider is then the one line between them.
|
|
1400
|
+
*/
|
|
1401
|
+
.gridkit-data-grid
|
|
1402
|
+
:is(
|
|
1403
|
+
.gridkit-header-cell,
|
|
1404
|
+
.gridkit-grid-cell,
|
|
1405
|
+
.gridkit-grid-footer-cell,
|
|
1406
|
+
.gridkit-grid-group-summary-cell
|
|
1407
|
+
).is-pinned-start.is-pinned-edge:not(:last-child, :has(+ .is-pinned-end)) {
|
|
1408
|
+
border-inline-end: var(--gridkit-border-width) var(--gridkit-border-style)
|
|
1409
|
+
var(--gridkit-line);
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
.gridkit-data-grid
|
|
1413
|
+
:is(
|
|
1414
|
+
.gridkit-header-cell,
|
|
1415
|
+
.gridkit-grid-cell,
|
|
1416
|
+
.gridkit-grid-footer-cell,
|
|
1417
|
+
.gridkit-grid-group-summary-cell
|
|
1418
|
+
).is-pinned-end.is-pinned-edge:not(:first-child) {
|
|
1419
|
+
border-inline-start: var(--gridkit-border-width) var(--gridkit-border-style)
|
|
1420
|
+
var(--gridkit-line);
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
/*
|
|
1424
|
+
* The cell before the end divider leaves out its own column line, which
|
|
1425
|
+
* would sit beside the divider as a doubled one wherever the two meet:
|
|
1426
|
+
* scrolled to the end, and in a grid with nothing to scroll.
|
|
1427
|
+
*/
|
|
1428
|
+
.gridkit-data-grid
|
|
1429
|
+
:is(
|
|
1430
|
+
.gridkit-header-cell,
|
|
1431
|
+
.gridkit-grid-cell,
|
|
1432
|
+
.gridkit-grid-footer-cell,
|
|
1433
|
+
.gridkit-grid-group-summary-cell
|
|
1434
|
+
):has(+ .is-pinned-end.is-pinned-edge) {
|
|
1435
|
+
border-inline-end: none;
|
|
1048
1436
|
}
|
|
1049
1437
|
|
|
1050
1438
|
/*
|
|
1051
1439
|
* The toolbar: the grid's first child, above the group-by bar, and unscoped
|
|
1052
|
-
* by `.gridkit-data-grid` for the same reason that bar is.
|
|
1053
|
-
*
|
|
1054
|
-
*
|
|
1440
|
+
* by `.gridkit-data-grid` for the same reason that bar is. It sits outside
|
|
1441
|
+
* the tables' scroll area, so it stays in view while they scroll, and it
|
|
1442
|
+
* sticks to the viewport's start edge for the rare grid whose viewport
|
|
1443
|
+
* scrolls sideways itself, under a group-by bar wider than it.
|
|
1055
1444
|
*
|
|
1056
1445
|
* Its entries keep to one row at their own widths, which is what the
|
|
1057
1446
|
* overflow measures: what does not fit goes into "More", and `overflow:
|
|
@@ -1081,14 +1470,14 @@
|
|
|
1081
1470
|
* they can be wider than the toolbar. "More" then sticks to its end edge,
|
|
1082
1471
|
* over what is clipped there, rather than being clipped itself.
|
|
1083
1472
|
*/
|
|
1084
|
-
.gridkit-toolbar > .toolbar-more {
|
|
1473
|
+
.gridkit-toolbar > .gridkit-toolbar-more {
|
|
1085
1474
|
position: sticky;
|
|
1086
1475
|
/* Counted from the toolbar's padding edge, so its padding again. */
|
|
1087
1476
|
inset-inline-end: var(--gridkit-toolbar-padding);
|
|
1088
1477
|
}
|
|
1089
1478
|
|
|
1090
1479
|
/* A command, a dropdown, or "More". */
|
|
1091
|
-
.toolbar-button {
|
|
1480
|
+
.gridkit-toolbar-button {
|
|
1092
1481
|
display: inline-flex;
|
|
1093
1482
|
align-items: center;
|
|
1094
1483
|
gap: calc(var(--gridkit-spacing) * 1.5);
|
|
@@ -1102,48 +1491,48 @@
|
|
|
1102
1491
|
border-radius: var(--gridkit-control-radius);
|
|
1103
1492
|
}
|
|
1104
1493
|
|
|
1105
|
-
.toolbar-button:hover:not([aria-disabled="true"]),
|
|
1106
|
-
.toolbar-button[aria-expanded="true"] {
|
|
1494
|
+
.gridkit-toolbar-button:hover:not([aria-disabled="true"]),
|
|
1495
|
+
.gridkit-toolbar-button[aria-expanded="true"] {
|
|
1107
1496
|
background-color: var(--gridkit-surface-muted);
|
|
1108
1497
|
}
|
|
1109
1498
|
|
|
1110
|
-
.toolbar-button:focus-visible {
|
|
1499
|
+
.gridkit-toolbar-button:focus-visible {
|
|
1111
1500
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1112
1501
|
outline-offset: 1px;
|
|
1113
1502
|
}
|
|
1114
1503
|
|
|
1115
1504
|
/* Still focusable, as a menu's disabled item is, so a screen reader finds it. */
|
|
1116
|
-
.toolbar-button[aria-disabled="true"] {
|
|
1505
|
+
.gridkit-toolbar-button[aria-disabled="true"] {
|
|
1117
1506
|
color: var(--gridkit-fg-muted);
|
|
1118
1507
|
cursor: default;
|
|
1119
1508
|
opacity: 0.5;
|
|
1120
1509
|
}
|
|
1121
1510
|
|
|
1122
1511
|
/* A toggle that is on. */
|
|
1123
|
-
.toolbar-button[aria-pressed="true"],
|
|
1124
|
-
.toolbar-button[aria-pressed="true"]:hover {
|
|
1512
|
+
.gridkit-toolbar-button[aria-pressed="true"],
|
|
1513
|
+
.gridkit-toolbar-button[aria-pressed="true"]:hover {
|
|
1125
1514
|
background-color: var(--gridkit-selected-strong);
|
|
1126
1515
|
border-color: var(--gridkit-accent);
|
|
1127
1516
|
}
|
|
1128
1517
|
|
|
1129
|
-
.toolbar-button-icon,
|
|
1130
|
-
.toolbar-button-indicator {
|
|
1518
|
+
.gridkit-toolbar-button-icon,
|
|
1519
|
+
.gridkit-toolbar-button-indicator {
|
|
1131
1520
|
display: inline-flex;
|
|
1132
1521
|
color: var(--gridkit-fg-muted);
|
|
1133
1522
|
}
|
|
1134
1523
|
|
|
1135
1524
|
/* An icon key the grid has no glyph for draws nothing, and takes no room. */
|
|
1136
|
-
.toolbar-button-icon:empty {
|
|
1525
|
+
.gridkit-toolbar-button-icon:empty {
|
|
1137
1526
|
display: none;
|
|
1138
1527
|
}
|
|
1139
1528
|
|
|
1140
|
-
.toolbar-button-icon svg,
|
|
1141
|
-
.toolbar-button-indicator svg {
|
|
1529
|
+
.gridkit-toolbar-button-icon svg,
|
|
1530
|
+
.gridkit-toolbar-button-indicator svg {
|
|
1142
1531
|
width: var(--gridkit-icon-size);
|
|
1143
1532
|
height: var(--gridkit-icon-size);
|
|
1144
1533
|
}
|
|
1145
1534
|
|
|
1146
|
-
.toolbar-button-indicator {
|
|
1535
|
+
.gridkit-toolbar-button-indicator {
|
|
1147
1536
|
margin-inline-end: calc(var(--gridkit-spacing) * -1);
|
|
1148
1537
|
}
|
|
1149
1538
|
|
|
@@ -1152,7 +1541,7 @@
|
|
|
1152
1541
|
* what else is in it, which the overflow would measure as a width of its
|
|
1153
1542
|
* own — so it leaves room for "More" beside it.
|
|
1154
1543
|
*/
|
|
1155
|
-
.toolbar-search {
|
|
1544
|
+
.gridkit-toolbar-search {
|
|
1156
1545
|
width: 12rem;
|
|
1157
1546
|
max-width: 50%;
|
|
1158
1547
|
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 2);
|
|
@@ -1163,16 +1552,16 @@
|
|
|
1163
1552
|
border-radius: var(--gridkit-control-radius);
|
|
1164
1553
|
}
|
|
1165
1554
|
|
|
1166
|
-
.toolbar-search::placeholder {
|
|
1555
|
+
.gridkit-toolbar-search::placeholder {
|
|
1167
1556
|
color: var(--gridkit-fg-muted);
|
|
1168
1557
|
}
|
|
1169
1558
|
|
|
1170
|
-
.toolbar-search:focus-visible {
|
|
1559
|
+
.gridkit-toolbar-search:focus-visible {
|
|
1171
1560
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1172
1561
|
outline-offset: 1px;
|
|
1173
1562
|
}
|
|
1174
1563
|
|
|
1175
|
-
.toolbar-separator {
|
|
1564
|
+
.gridkit-toolbar-separator {
|
|
1176
1565
|
align-self: stretch;
|
|
1177
1566
|
width: var(--gridkit-border-width);
|
|
1178
1567
|
margin: calc(var(--gridkit-spacing) * 0.5) 0;
|
|
@@ -1180,12 +1569,12 @@
|
|
|
1180
1569
|
}
|
|
1181
1570
|
|
|
1182
1571
|
/* Takes the free space, pushing what follows it to the far end. */
|
|
1183
|
-
.gridkit-toolbar > .toolbar-spacer {
|
|
1572
|
+
.gridkit-toolbar > .gridkit-toolbar-spacer {
|
|
1184
1573
|
flex: 1 1 0;
|
|
1185
1574
|
}
|
|
1186
1575
|
|
|
1187
1576
|
/* Holds what `renderToolbarItem` drew. */
|
|
1188
|
-
.toolbar-custom {
|
|
1577
|
+
.gridkit-toolbar-custom {
|
|
1189
1578
|
display: inline-flex;
|
|
1190
1579
|
align-items: center;
|
|
1191
1580
|
}
|
|
@@ -1231,12 +1620,12 @@
|
|
|
1231
1620
|
outline-offset: calc(var(--gridkit-indicator-width) * -1);
|
|
1232
1621
|
}
|
|
1233
1622
|
|
|
1234
|
-
.group-by-bar-placeholder {
|
|
1623
|
+
.gridkit-group-by-bar-placeholder {
|
|
1235
1624
|
font-size: var(--gridkit-bar-font-size);
|
|
1236
1625
|
color: var(--gridkit-fg-muted);
|
|
1237
1626
|
}
|
|
1238
1627
|
|
|
1239
|
-
.group-by-chip {
|
|
1628
|
+
.gridkit-group-by-chip {
|
|
1240
1629
|
position: relative;
|
|
1241
1630
|
display: inline-flex;
|
|
1242
1631
|
align-items: center;
|
|
@@ -1251,18 +1640,18 @@
|
|
|
1251
1640
|
user-select: none;
|
|
1252
1641
|
}
|
|
1253
1642
|
|
|
1254
|
-
.group-by-chip:focus-visible {
|
|
1643
|
+
.gridkit-group-by-chip:focus-visible {
|
|
1255
1644
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1256
1645
|
outline-offset: 1px;
|
|
1257
1646
|
}
|
|
1258
1647
|
|
|
1259
|
-
.group-by-chip.is-dragging {
|
|
1648
|
+
.gridkit-group-by-chip.is-dragging {
|
|
1260
1649
|
cursor: grabbing;
|
|
1261
1650
|
opacity: 0.5;
|
|
1262
1651
|
}
|
|
1263
1652
|
|
|
1264
1653
|
/*
|
|
1265
|
-
* Where the chip would land. `.header-cell.is-drop-before`/`.is-drop-after`
|
|
1654
|
+
* Where the chip would land. `.gridkit-header-cell.is-drop-before`/`.is-drop-after`
|
|
1266
1655
|
* draw this as an inset line, but an inset line on a pill this round would
|
|
1267
1656
|
* be clipped by the chip's own `border-radius` into a curved sliver rather
|
|
1268
1657
|
* than a clean mark — so this is a `::before`/`::after` mark of its own
|
|
@@ -1270,8 +1659,8 @@
|
|
|
1270
1659
|
* so out of flow, it never shifts the chip or its neighbors the way a
|
|
1271
1660
|
* change to border or padding would.
|
|
1272
1661
|
*/
|
|
1273
|
-
.group-by-chip.is-drop-before::before,
|
|
1274
|
-
.group-by-chip.is-drop-after::after {
|
|
1662
|
+
.gridkit-group-by-chip.is-drop-before::before,
|
|
1663
|
+
.gridkit-group-by-chip.is-drop-after::after {
|
|
1275
1664
|
content: "";
|
|
1276
1665
|
position: absolute;
|
|
1277
1666
|
top: 0;
|
|
@@ -1281,27 +1670,28 @@
|
|
|
1281
1670
|
background-color: var(--gridkit-accent);
|
|
1282
1671
|
}
|
|
1283
1672
|
|
|
1284
|
-
.group-by-chip.is-drop-before::before {
|
|
1285
|
-
|
|
1673
|
+
.gridkit-group-by-chip.is-drop-before::before {
|
|
1674
|
+
inset-inline-start: calc(
|
|
1286
1675
|
var(--gridkit-spacing) * -1 - var(--gridkit-indicator-width) / 2
|
|
1287
1676
|
);
|
|
1288
1677
|
}
|
|
1289
1678
|
|
|
1290
|
-
.group-by-chip.is-drop-after::after {
|
|
1291
|
-
|
|
1679
|
+
.gridkit-group-by-chip.is-drop-after::after {
|
|
1680
|
+
inset-inline-end: calc(
|
|
1292
1681
|
var(--gridkit-spacing) * -1 - var(--gridkit-indicator-width) / 2
|
|
1293
1682
|
);
|
|
1294
1683
|
}
|
|
1295
1684
|
|
|
1296
1685
|
/*
|
|
1297
1686
|
* The chip trailing the pointer mid-drag. Unlike the header's own
|
|
1298
|
-
* `.gridkit-data-grid.drag-ghost` this can't share that compound selector
|
|
1687
|
+
* `.gridkit-data-grid.gridkit-drag-ghost` this can't share that compound selector
|
|
1299
1688
|
* — a chip ghost isn't part of the grid's own table — so it restates the
|
|
1300
1689
|
* positioning in full rather than only the parts that differ.
|
|
1301
1690
|
*/
|
|
1302
|
-
.group-by-chip.drag-ghost {
|
|
1691
|
+
.gridkit-group-by-chip.gridkit-drag-ghost {
|
|
1303
1692
|
position: fixed;
|
|
1304
1693
|
top: 0;
|
|
1694
|
+
/* Physical for the header ghost's reason. */
|
|
1305
1695
|
left: 0;
|
|
1306
1696
|
z-index: 50;
|
|
1307
1697
|
border: var(--gridkit-border-width) dashed var(--gridkit-accent);
|
|
@@ -1310,7 +1700,7 @@
|
|
|
1310
1700
|
will-change: transform;
|
|
1311
1701
|
}
|
|
1312
1702
|
|
|
1313
|
-
.group-by-chip-remove {
|
|
1703
|
+
.gridkit-group-by-chip-remove {
|
|
1314
1704
|
display: inline-flex;
|
|
1315
1705
|
align-items: center;
|
|
1316
1706
|
justify-content: center;
|
|
@@ -1324,11 +1714,11 @@
|
|
|
1324
1714
|
border: none;
|
|
1325
1715
|
}
|
|
1326
1716
|
|
|
1327
|
-
.group-by-chip-remove:hover {
|
|
1717
|
+
.gridkit-group-by-chip-remove:hover {
|
|
1328
1718
|
color: var(--gridkit-accent);
|
|
1329
1719
|
}
|
|
1330
1720
|
|
|
1331
|
-
.group-by-chip-remove:focus-visible {
|
|
1721
|
+
.gridkit-group-by-chip-remove:focus-visible {
|
|
1332
1722
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1333
1723
|
outline-offset: 1px;
|
|
1334
1724
|
}
|
|
@@ -1359,7 +1749,7 @@
|
|
|
1359
1749
|
* page count's digits, which the pager sets) in tabular numerals, so with
|
|
1360
1750
|
* `paginationWindow`'s constant slot count the arrows never move.
|
|
1361
1751
|
*/
|
|
1362
|
-
.grid-pager-bar {
|
|
1752
|
+
.gridkit-grid-pager-bar {
|
|
1363
1753
|
--gridkit-pager-segment: calc(var(--gridkit-spacing) * 8);
|
|
1364
1754
|
display: inline-flex;
|
|
1365
1755
|
align-items: stretch;
|
|
@@ -1370,9 +1760,9 @@
|
|
|
1370
1760
|
border-radius: var(--gridkit-radius);
|
|
1371
1761
|
}
|
|
1372
1762
|
|
|
1373
|
-
.grid-pager-button,
|
|
1374
|
-
.grid-pager-ellipsis,
|
|
1375
|
-
.grid-pager-status-slot {
|
|
1763
|
+
.gridkit-grid-pager-button,
|
|
1764
|
+
.gridkit-grid-pager-ellipsis,
|
|
1765
|
+
.gridkit-grid-pager-status-slot {
|
|
1376
1766
|
position: relative;
|
|
1377
1767
|
box-sizing: border-box;
|
|
1378
1768
|
display: inline-flex;
|
|
@@ -1390,7 +1780,7 @@
|
|
|
1390
1780
|
border-radius: 0;
|
|
1391
1781
|
}
|
|
1392
1782
|
|
|
1393
|
-
.grid-pager-bar > :first-child {
|
|
1783
|
+
.gridkit-grid-pager-bar > :first-child {
|
|
1394
1784
|
border-inline-start: 0;
|
|
1395
1785
|
border-start-start-radius: calc(
|
|
1396
1786
|
var(--gridkit-radius) - var(--gridkit-border-width)
|
|
@@ -1400,7 +1790,7 @@
|
|
|
1400
1790
|
);
|
|
1401
1791
|
}
|
|
1402
1792
|
|
|
1403
|
-
.grid-pager-bar > :last-child {
|
|
1793
|
+
.gridkit-grid-pager-bar > :last-child {
|
|
1404
1794
|
border-start-end-radius: calc(
|
|
1405
1795
|
var(--gridkit-radius) - var(--gridkit-border-width)
|
|
1406
1796
|
);
|
|
@@ -1409,38 +1799,38 @@
|
|
|
1409
1799
|
);
|
|
1410
1800
|
}
|
|
1411
1801
|
|
|
1412
|
-
.grid-pager-button {
|
|
1802
|
+
.gridkit-grid-pager-button {
|
|
1413
1803
|
cursor: pointer;
|
|
1414
1804
|
}
|
|
1415
1805
|
|
|
1416
|
-
.grid-pager-page,
|
|
1417
|
-
.grid-pager-ellipsis {
|
|
1806
|
+
.gridkit-grid-pager-page,
|
|
1807
|
+
.gridkit-grid-pager-ellipsis {
|
|
1418
1808
|
width: max(
|
|
1419
1809
|
var(--gridkit-pager-segment),
|
|
1420
1810
|
calc(var(--gridkit-pager-digits, 1) * 1ch + var(--gridkit-spacing) * 4)
|
|
1421
1811
|
);
|
|
1422
1812
|
}
|
|
1423
1813
|
|
|
1424
|
-
.grid-pager-nav svg {
|
|
1814
|
+
.gridkit-grid-pager-nav svg {
|
|
1425
1815
|
width: var(--gridkit-icon-size);
|
|
1426
1816
|
height: var(--gridkit-icon-size);
|
|
1427
1817
|
}
|
|
1428
1818
|
|
|
1429
|
-
.grid-pager-nav:dir(rtl) svg {
|
|
1819
|
+
.gridkit-grid-pager-nav:dir(rtl) svg {
|
|
1430
1820
|
transform: scaleX(-1);
|
|
1431
1821
|
}
|
|
1432
1822
|
|
|
1433
|
-
.grid-pager-button:hover:not([aria-disabled="true"]) {
|
|
1823
|
+
.gridkit-grid-pager-button:hover:not([aria-disabled="true"]) {
|
|
1434
1824
|
background-color: var(--gridkit-surface-muted);
|
|
1435
1825
|
}
|
|
1436
1826
|
|
|
1437
|
-
.grid-pager-button:focus-visible {
|
|
1827
|
+
.gridkit-grid-pager-button:focus-visible {
|
|
1438
1828
|
z-index: 2;
|
|
1439
1829
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1440
1830
|
outline-offset: calc(var(--gridkit-focus-ring-width) * -1);
|
|
1441
1831
|
}
|
|
1442
1832
|
|
|
1443
|
-
.grid-pager-button[aria-disabled="true"] {
|
|
1833
|
+
.gridkit-grid-pager-button[aria-disabled="true"] {
|
|
1444
1834
|
color: var(--gridkit-fg-muted);
|
|
1445
1835
|
cursor: default;
|
|
1446
1836
|
}
|
|
@@ -1450,19 +1840,19 @@
|
|
|
1450
1840
|
* focus once it has paged to the end, and its focus ring should not fade
|
|
1451
1841
|
* with it.
|
|
1452
1842
|
*/
|
|
1453
|
-
.grid-pager-button[aria-disabled="true"] svg {
|
|
1843
|
+
.gridkit-grid-pager-button[aria-disabled="true"] svg {
|
|
1454
1844
|
opacity: 0.45;
|
|
1455
1845
|
}
|
|
1456
1846
|
|
|
1457
|
-
.grid-pager-button[aria-current="page"],
|
|
1458
|
-
.grid-pager-button[aria-current="page"]:hover {
|
|
1847
|
+
.gridkit-grid-pager-button[aria-current="page"],
|
|
1848
|
+
.gridkit-grid-pager-button[aria-current="page"]:hover {
|
|
1459
1849
|
z-index: 1;
|
|
1460
1850
|
color: var(--gridkit-accent);
|
|
1461
1851
|
background-color: var(--gridkit-selected);
|
|
1462
1852
|
box-shadow: inset 0 0 0 var(--gridkit-border-width) var(--gridkit-accent);
|
|
1463
1853
|
}
|
|
1464
1854
|
|
|
1465
|
-
.grid-pager-ellipsis {
|
|
1855
|
+
.gridkit-grid-pager-ellipsis {
|
|
1466
1856
|
color: var(--gridkit-fg-muted);
|
|
1467
1857
|
cursor: default;
|
|
1468
1858
|
user-select: none;
|
|
@@ -1472,34 +1862,34 @@
|
|
|
1472
1862
|
* The compact status, stacked on an invisible copy of its widest text so
|
|
1473
1863
|
* its segment keeps one width from the first page to the last.
|
|
1474
1864
|
*/
|
|
1475
|
-
.grid-pager-status-slot {
|
|
1865
|
+
.gridkit-grid-pager-status-slot {
|
|
1476
1866
|
display: inline-grid;
|
|
1477
1867
|
padding: 0 calc(var(--gridkit-spacing) * 3);
|
|
1478
1868
|
white-space: nowrap;
|
|
1479
1869
|
}
|
|
1480
1870
|
|
|
1481
|
-
.grid-pager-status,
|
|
1482
|
-
.grid-pager-status-sizer {
|
|
1871
|
+
.gridkit-grid-pager-status,
|
|
1872
|
+
.gridkit-grid-pager-status-sizer {
|
|
1483
1873
|
grid-area: 1 / 1;
|
|
1484
1874
|
text-align: center;
|
|
1485
1875
|
}
|
|
1486
1876
|
|
|
1487
|
-
.grid-pager-status {
|
|
1877
|
+
.gridkit-grid-pager-status {
|
|
1488
1878
|
color: var(--gridkit-fg-muted);
|
|
1489
1879
|
}
|
|
1490
1880
|
|
|
1491
|
-
.grid-pager-status-sizer {
|
|
1881
|
+
.gridkit-grid-pager-status-sizer {
|
|
1492
1882
|
visibility: hidden;
|
|
1493
1883
|
}
|
|
1494
1884
|
|
|
1495
|
-
.grid-pager-page-size {
|
|
1885
|
+
.gridkit-grid-pager-page-size {
|
|
1496
1886
|
display: inline-flex;
|
|
1497
1887
|
align-items: center;
|
|
1498
1888
|
gap: calc(var(--gridkit-spacing) * 2);
|
|
1499
1889
|
color: var(--gridkit-fg-muted);
|
|
1500
1890
|
}
|
|
1501
1891
|
|
|
1502
|
-
.grid-pager-page-size select {
|
|
1892
|
+
.gridkit-grid-pager-page-size select {
|
|
1503
1893
|
box-sizing: border-box;
|
|
1504
1894
|
/* As tall as the pager bar beside it. */
|
|
1505
1895
|
height: calc(var(--gridkit-spacing) * 8);
|
|
@@ -1512,7 +1902,7 @@
|
|
|
1512
1902
|
border-radius: var(--gridkit-control-radius);
|
|
1513
1903
|
}
|
|
1514
1904
|
|
|
1515
|
-
.grid-pager-page-size select:focus-visible {
|
|
1905
|
+
.gridkit-grid-pager-page-size select:focus-visible {
|
|
1516
1906
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1517
1907
|
outline-offset: 1px;
|
|
1518
1908
|
}
|
|
@@ -1552,7 +1942,7 @@
|
|
|
1552
1942
|
var(--gridkit-overlay-shadow-color);
|
|
1553
1943
|
}
|
|
1554
1944
|
|
|
1555
|
-
.menu-item {
|
|
1945
|
+
.gridkit-menu-item {
|
|
1556
1946
|
display: flex;
|
|
1557
1947
|
align-items: center;
|
|
1558
1948
|
gap: calc(var(--gridkit-spacing) * 2);
|
|
@@ -1568,7 +1958,7 @@
|
|
|
1568
1958
|
* item under it, so focus is the hover state too, and has to show
|
|
1569
1959
|
* whichever moved it.
|
|
1570
1960
|
*/
|
|
1571
|
-
.menu-item:focus {
|
|
1961
|
+
.gridkit-menu-item:focus {
|
|
1572
1962
|
outline: none;
|
|
1573
1963
|
background-color: var(--gridkit-selected);
|
|
1574
1964
|
}
|
|
@@ -1577,7 +1967,7 @@
|
|
|
1577
1967
|
* The item whose submenu is open, while focus is in that submenu — the
|
|
1578
1968
|
* trail back to it.
|
|
1579
1969
|
*/
|
|
1580
|
-
.menu-item[aria-expanded="true"]:not(:focus) {
|
|
1970
|
+
.gridkit-menu-item[aria-expanded="true"]:not(:focus) {
|
|
1581
1971
|
background-color: var(--gridkit-surface-muted);
|
|
1582
1972
|
}
|
|
1583
1973
|
|
|
@@ -1585,12 +1975,12 @@
|
|
|
1585
1975
|
* Still focusable, so a screen reader finds it: muted, and marked only
|
|
1586
1976
|
* faintly when focused, since choosing it does nothing.
|
|
1587
1977
|
*/
|
|
1588
|
-
.menu-item[aria-disabled="true"] {
|
|
1978
|
+
.gridkit-menu-item[aria-disabled="true"] {
|
|
1589
1979
|
color: var(--gridkit-fg-muted);
|
|
1590
1980
|
cursor: default;
|
|
1591
1981
|
}
|
|
1592
1982
|
|
|
1593
|
-
.menu-item[aria-disabled="true"]:focus {
|
|
1983
|
+
.gridkit-menu-item[aria-disabled="true"]:focus {
|
|
1594
1984
|
background-color: var(--gridkit-surface-muted);
|
|
1595
1985
|
}
|
|
1596
1986
|
|
|
@@ -1598,7 +1988,7 @@
|
|
|
1598
1988
|
* Always there, empty for an item without an icon, so every label in a
|
|
1599
1989
|
* menu starts at the same place. A checked item shows its check here.
|
|
1600
1990
|
*/
|
|
1601
|
-
.menu-item-icon {
|
|
1991
|
+
.gridkit-menu-item-icon {
|
|
1602
1992
|
display: inline-flex;
|
|
1603
1993
|
flex-shrink: 0;
|
|
1604
1994
|
align-items: center;
|
|
@@ -1608,33 +1998,37 @@
|
|
|
1608
1998
|
color: var(--gridkit-fg-muted);
|
|
1609
1999
|
}
|
|
1610
2000
|
|
|
1611
|
-
.menu-item-icon svg,
|
|
1612
|
-
.menu-submenu-indicator svg {
|
|
2001
|
+
.gridkit-menu-item-icon svg,
|
|
2002
|
+
.gridkit-menu-submenu-indicator svg {
|
|
1613
2003
|
width: var(--gridkit-icon-size);
|
|
1614
2004
|
height: var(--gridkit-icon-size);
|
|
1615
2005
|
}
|
|
1616
2006
|
|
|
1617
|
-
.menu-item[aria-checked="true"] .menu-item-icon {
|
|
2007
|
+
.gridkit-menu-item[aria-checked="true"] .gridkit-menu-item-icon {
|
|
1618
2008
|
color: var(--gridkit-accent);
|
|
1619
2009
|
}
|
|
1620
2010
|
|
|
1621
|
-
.menu-item-label {
|
|
2011
|
+
.gridkit-menu-item-label {
|
|
1622
2012
|
flex: 1;
|
|
1623
2013
|
}
|
|
1624
2014
|
|
|
1625
|
-
.menu-item-shortcut {
|
|
2015
|
+
.gridkit-menu-item-shortcut {
|
|
1626
2016
|
margin-inline-start: calc(var(--gridkit-spacing) * 6);
|
|
1627
2017
|
font-size: var(--gridkit-hint-font-size);
|
|
1628
2018
|
color: var(--gridkit-fg-muted);
|
|
1629
2019
|
}
|
|
1630
2020
|
|
|
1631
|
-
.menu-submenu-indicator {
|
|
2021
|
+
.gridkit-menu-submenu-indicator {
|
|
1632
2022
|
display: inline-flex;
|
|
1633
2023
|
margin-inline-end: calc(var(--gridkit-spacing) * -1);
|
|
1634
2024
|
color: var(--gridkit-fg-muted);
|
|
1635
2025
|
}
|
|
1636
2026
|
|
|
1637
|
-
.menu-
|
|
2027
|
+
.gridkit-menu-submenu-indicator:dir(rtl) svg {
|
|
2028
|
+
transform: scaleX(-1);
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
.gridkit-menu-separator {
|
|
1638
2032
|
height: var(--gridkit-border-width);
|
|
1639
2033
|
margin: var(--gridkit-spacing) 0;
|
|
1640
2034
|
background-color: var(--gridkit-line);
|
|
@@ -1659,7 +2053,7 @@
|
|
|
1659
2053
|
var(--gridkit-overlay-shadow-color);
|
|
1660
2054
|
}
|
|
1661
2055
|
|
|
1662
|
-
.column-chooser-search {
|
|
2056
|
+
.gridkit-column-chooser-search {
|
|
1663
2057
|
box-sizing: border-box;
|
|
1664
2058
|
width: 100%;
|
|
1665
2059
|
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 2);
|
|
@@ -1670,11 +2064,11 @@
|
|
|
1670
2064
|
border-radius: var(--gridkit-control-radius);
|
|
1671
2065
|
}
|
|
1672
2066
|
|
|
1673
|
-
.column-chooser-search::placeholder {
|
|
2067
|
+
.gridkit-column-chooser-search::placeholder {
|
|
1674
2068
|
color: var(--gridkit-fg-muted);
|
|
1675
2069
|
}
|
|
1676
2070
|
|
|
1677
|
-
.column-chooser-search:focus-visible {
|
|
2071
|
+
.gridkit-column-chooser-search:focus-visible {
|
|
1678
2072
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1679
2073
|
outline-offset: 1px;
|
|
1680
2074
|
}
|
|
@@ -1684,7 +2078,7 @@
|
|
|
1684
2078
|
* does not dismiss the chooser, as one outside would — while the search
|
|
1685
2079
|
* box and "Show all" stay put above it.
|
|
1686
2080
|
*/
|
|
1687
|
-
.column-chooser-list {
|
|
2081
|
+
.gridkit-column-chooser-list {
|
|
1688
2082
|
max-height: var(--gridkit-column-chooser-max-height);
|
|
1689
2083
|
margin: 0;
|
|
1690
2084
|
padding: 0;
|
|
@@ -1693,7 +2087,7 @@
|
|
|
1693
2087
|
}
|
|
1694
2088
|
|
|
1695
2089
|
/* One checkbox and its label: "Show all", or a column. */
|
|
1696
|
-
.column-chooser-option {
|
|
2090
|
+
.gridkit-column-chooser-option {
|
|
1697
2091
|
display: flex;
|
|
1698
2092
|
align-items: center;
|
|
1699
2093
|
gap: calc(var(--gridkit-spacing) * 2);
|
|
@@ -1703,39 +2097,39 @@
|
|
|
1703
2097
|
user-select: none;
|
|
1704
2098
|
}
|
|
1705
2099
|
|
|
1706
|
-
.column-chooser-option:hover {
|
|
2100
|
+
.gridkit-column-chooser-option:hover {
|
|
1707
2101
|
background-color: var(--gridkit-surface-muted);
|
|
1708
2102
|
}
|
|
1709
2103
|
|
|
1710
2104
|
/* "Show all", set apart from the columns it acts on. */
|
|
1711
|
-
.column-chooser-all {
|
|
2105
|
+
.gridkit-column-chooser-all {
|
|
1712
2106
|
padding-bottom: calc(var(--gridkit-spacing) * 1.5);
|
|
1713
2107
|
border-bottom: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
1714
2108
|
border-radius: 0;
|
|
1715
2109
|
}
|
|
1716
2110
|
|
|
1717
|
-
.column-chooser-option input {
|
|
2111
|
+
.gridkit-column-chooser-option input {
|
|
1718
2112
|
flex-shrink: 0;
|
|
1719
2113
|
margin: 0;
|
|
1720
2114
|
accent-color: var(--gridkit-accent);
|
|
1721
2115
|
}
|
|
1722
2116
|
|
|
1723
|
-
.column-chooser-option input:focus-visible {
|
|
2117
|
+
.gridkit-column-chooser-option input:focus-visible {
|
|
1724
2118
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1725
2119
|
outline-offset: 1px;
|
|
1726
2120
|
}
|
|
1727
2121
|
|
|
1728
2122
|
/* A column that cannot be hidden, or the last one shown. */
|
|
1729
|
-
.column-chooser-option:has(> input:disabled) {
|
|
2123
|
+
.gridkit-column-chooser-option:has(> input:disabled) {
|
|
1730
2124
|
color: var(--gridkit-fg-muted);
|
|
1731
2125
|
cursor: default;
|
|
1732
2126
|
}
|
|
1733
2127
|
|
|
1734
|
-
.column-chooser-option:has(> input:disabled):hover {
|
|
2128
|
+
.gridkit-column-chooser-option:has(> input:disabled):hover {
|
|
1735
2129
|
background-color: transparent;
|
|
1736
2130
|
}
|
|
1737
2131
|
|
|
1738
|
-
.column-chooser-empty {
|
|
2132
|
+
.gridkit-column-chooser-empty {
|
|
1739
2133
|
margin: 0;
|
|
1740
2134
|
padding: var(--gridkit-spacing);
|
|
1741
2135
|
color: var(--gridkit-fg-muted);
|
|
@@ -1758,7 +2152,7 @@
|
|
|
1758
2152
|
var(--gridkit-overlay-shadow-color);
|
|
1759
2153
|
}
|
|
1760
2154
|
|
|
1761
|
-
.filter-menu-form {
|
|
2155
|
+
.gridkit-filter-menu-form {
|
|
1762
2156
|
display: flex;
|
|
1763
2157
|
flex-direction: column;
|
|
1764
2158
|
gap: calc(var(--gridkit-spacing) * 2);
|
|
@@ -1766,14 +2160,14 @@
|
|
|
1766
2160
|
}
|
|
1767
2161
|
|
|
1768
2162
|
/* The sort entries, drawn as a menu's items and set apart from the editor. */
|
|
1769
|
-
.filter-menu-sort {
|
|
2163
|
+
.gridkit-filter-menu-sort {
|
|
1770
2164
|
display: flex;
|
|
1771
2165
|
flex-direction: column;
|
|
1772
2166
|
padding-bottom: calc(var(--gridkit-spacing) * 1.5);
|
|
1773
2167
|
border-bottom: var(--gridkit-border-width) solid var(--gridkit-line);
|
|
1774
2168
|
}
|
|
1775
2169
|
|
|
1776
|
-
.filter-menu-sort-item {
|
|
2170
|
+
.gridkit-filter-menu-sort-item {
|
|
1777
2171
|
display: flex;
|
|
1778
2172
|
align-items: center;
|
|
1779
2173
|
gap: calc(var(--gridkit-spacing) * 2);
|
|
@@ -1787,23 +2181,23 @@
|
|
|
1787
2181
|
cursor: pointer;
|
|
1788
2182
|
}
|
|
1789
2183
|
|
|
1790
|
-
.filter-menu-sort-item:hover {
|
|
2184
|
+
.gridkit-filter-menu-sort-item:hover {
|
|
1791
2185
|
background-color: var(--gridkit-surface-muted);
|
|
1792
2186
|
}
|
|
1793
2187
|
|
|
1794
|
-
.filter-menu-sort-item:focus-visible {
|
|
2188
|
+
.gridkit-filter-menu-sort-item:focus-visible {
|
|
1795
2189
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1796
2190
|
outline-offset: calc(var(--gridkit-focus-ring-width) * -1);
|
|
1797
2191
|
}
|
|
1798
2192
|
|
|
1799
|
-
.filter-menu-sort-item:disabled {
|
|
2193
|
+
.gridkit-filter-menu-sort-item:disabled {
|
|
1800
2194
|
color: var(--gridkit-fg-muted);
|
|
1801
2195
|
background: none;
|
|
1802
2196
|
cursor: default;
|
|
1803
2197
|
}
|
|
1804
2198
|
|
|
1805
2199
|
/* Always there, empty for "Clear sort", so every label starts in line. */
|
|
1806
|
-
.filter-menu-sort-icon {
|
|
2200
|
+
.gridkit-filter-menu-sort-icon {
|
|
1807
2201
|
display: inline-flex;
|
|
1808
2202
|
flex-shrink: 0;
|
|
1809
2203
|
align-items: center;
|
|
@@ -1813,13 +2207,14 @@
|
|
|
1813
2207
|
color: var(--gridkit-fg-muted);
|
|
1814
2208
|
}
|
|
1815
2209
|
|
|
1816
|
-
.filter-menu-sort-icon svg {
|
|
2210
|
+
.gridkit-filter-menu-sort-icon svg {
|
|
1817
2211
|
width: var(--gridkit-icon-size);
|
|
1818
2212
|
height: var(--gridkit-icon-size);
|
|
1819
2213
|
}
|
|
1820
2214
|
|
|
1821
2215
|
/* The direction the column sorts in now. */
|
|
1822
|
-
.filter-menu-sort-item[aria-pressed="true"]
|
|
2216
|
+
.gridkit-filter-menu-sort-item[aria-pressed="true"]
|
|
2217
|
+
.gridkit-filter-menu-sort-icon {
|
|
1823
2218
|
color: var(--gridkit-accent);
|
|
1824
2219
|
}
|
|
1825
2220
|
|
|
@@ -1827,7 +2222,7 @@
|
|
|
1827
2222
|
* The simple editor: its conditions in a column, And/Or between them, and
|
|
1828
2223
|
* the message under them while one is marked invalid.
|
|
1829
2224
|
*/
|
|
1830
|
-
.filter-menu-conditions {
|
|
2225
|
+
.gridkit-filter-menu-conditions {
|
|
1831
2226
|
display: flex;
|
|
1832
2227
|
flex-direction: column;
|
|
1833
2228
|
gap: calc(var(--gridkit-spacing) * 2);
|
|
@@ -1837,7 +2232,7 @@
|
|
|
1837
2232
|
* "Custom filter", or "Filtered by condition" above a checklist: a filter
|
|
1838
2233
|
* the editor can't show, until it applies one in its place.
|
|
1839
2234
|
*/
|
|
1840
|
-
.filter-menu-custom {
|
|
2235
|
+
.gridkit-filter-menu-custom {
|
|
1841
2236
|
margin: 0;
|
|
1842
2237
|
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 2);
|
|
1843
2238
|
color: var(--gridkit-fg-muted);
|
|
@@ -1849,14 +2244,14 @@
|
|
|
1849
2244
|
* The operator picker on a line of its own, the value boxes sharing the
|
|
1850
2245
|
* next: one fills it, and a "Between"'s two halve it.
|
|
1851
2246
|
*/
|
|
1852
|
-
.filter-menu-condition {
|
|
2247
|
+
.gridkit-filter-menu-condition {
|
|
1853
2248
|
display: flex;
|
|
1854
2249
|
flex-wrap: wrap;
|
|
1855
2250
|
gap: calc(var(--gridkit-spacing) * 1.5);
|
|
1856
2251
|
}
|
|
1857
2252
|
|
|
1858
|
-
.filter-menu-operator,
|
|
1859
|
-
.filter-menu-value {
|
|
2253
|
+
.gridkit-filter-menu-operator,
|
|
2254
|
+
.gridkit-filter-menu-value {
|
|
1860
2255
|
box-sizing: border-box;
|
|
1861
2256
|
min-width: 0;
|
|
1862
2257
|
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 2);
|
|
@@ -1867,36 +2262,36 @@
|
|
|
1867
2262
|
border-radius: var(--gridkit-control-radius);
|
|
1868
2263
|
}
|
|
1869
2264
|
|
|
1870
|
-
.filter-menu-operator {
|
|
2265
|
+
.gridkit-filter-menu-operator {
|
|
1871
2266
|
flex-basis: 100%;
|
|
1872
2267
|
}
|
|
1873
2268
|
|
|
1874
|
-
.filter-menu-value {
|
|
2269
|
+
.gridkit-filter-menu-value {
|
|
1875
2270
|
flex: 1 1 0;
|
|
1876
2271
|
}
|
|
1877
2272
|
|
|
1878
|
-
.filter-menu-operator:focus-visible,
|
|
1879
|
-
.filter-menu-value:focus-visible {
|
|
2273
|
+
.gridkit-filter-menu-operator:focus-visible,
|
|
2274
|
+
.gridkit-filter-menu-value:focus-visible {
|
|
1880
2275
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1881
2276
|
outline-offset: 1px;
|
|
1882
2277
|
}
|
|
1883
2278
|
|
|
1884
|
-
.filter-menu-value[aria-invalid="true"] {
|
|
2279
|
+
.gridkit-filter-menu-value[aria-invalid="true"] {
|
|
1885
2280
|
border-color: var(--gridkit-error);
|
|
1886
2281
|
}
|
|
1887
2282
|
|
|
1888
|
-
.filter-menu-invalid {
|
|
2283
|
+
.gridkit-filter-menu-invalid {
|
|
1889
2284
|
margin: 0;
|
|
1890
2285
|
color: var(--gridkit-error);
|
|
1891
2286
|
}
|
|
1892
2287
|
|
|
1893
2288
|
/* And/Or, native radio buttons between the two conditions. */
|
|
1894
|
-
.filter-menu-combinator {
|
|
2289
|
+
.gridkit-filter-menu-combinator {
|
|
1895
2290
|
display: flex;
|
|
1896
2291
|
gap: calc(var(--gridkit-spacing) * 4);
|
|
1897
2292
|
}
|
|
1898
2293
|
|
|
1899
|
-
.filter-menu-combinator-option {
|
|
2294
|
+
.gridkit-filter-menu-combinator-option {
|
|
1900
2295
|
display: inline-flex;
|
|
1901
2296
|
align-items: center;
|
|
1902
2297
|
gap: calc(var(--gridkit-spacing) * 1.5);
|
|
@@ -1904,12 +2299,12 @@
|
|
|
1904
2299
|
user-select: none;
|
|
1905
2300
|
}
|
|
1906
2301
|
|
|
1907
|
-
.filter-menu-combinator-option input {
|
|
2302
|
+
.gridkit-filter-menu-combinator-option input {
|
|
1908
2303
|
margin: 0;
|
|
1909
2304
|
accent-color: var(--gridkit-accent);
|
|
1910
2305
|
}
|
|
1911
2306
|
|
|
1912
|
-
.filter-menu-combinator-option input:focus-visible {
|
|
2307
|
+
.gridkit-filter-menu-combinator-option input:focus-visible {
|
|
1913
2308
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1914
2309
|
outline-offset: 1px;
|
|
1915
2310
|
}
|
|
@@ -1918,7 +2313,7 @@
|
|
|
1918
2313
|
* The excel editor: a search box, "Select all", then the checklist of the
|
|
1919
2314
|
* column's values, with a note above or below it when one applies.
|
|
1920
2315
|
*/
|
|
1921
|
-
.filter-menu-values {
|
|
2316
|
+
.gridkit-filter-menu-values {
|
|
1922
2317
|
display: flex;
|
|
1923
2318
|
flex-direction: column;
|
|
1924
2319
|
gap: calc(var(--gridkit-spacing) * 1.5);
|
|
@@ -1930,8 +2325,8 @@
|
|
|
1930
2325
|
* chose: the sort entries' look, an icon before the label in line with
|
|
1931
2326
|
* theirs.
|
|
1932
2327
|
*/
|
|
1933
|
-
.filter-menu-submenu,
|
|
1934
|
-
.filter-menu-back {
|
|
2328
|
+
.gridkit-filter-menu-submenu,
|
|
2329
|
+
.gridkit-filter-menu-back {
|
|
1935
2330
|
display: flex;
|
|
1936
2331
|
align-items: center;
|
|
1937
2332
|
gap: calc(var(--gridkit-spacing) * 2);
|
|
@@ -1945,21 +2340,21 @@
|
|
|
1945
2340
|
cursor: pointer;
|
|
1946
2341
|
}
|
|
1947
2342
|
|
|
1948
|
-
.filter-menu-submenu:hover,
|
|
1949
|
-
.filter-menu-submenu[aria-expanded="true"],
|
|
1950
|
-
.filter-menu-back:hover {
|
|
2343
|
+
.gridkit-filter-menu-submenu:hover,
|
|
2344
|
+
.gridkit-filter-menu-submenu[aria-expanded="true"],
|
|
2345
|
+
.gridkit-filter-menu-back:hover {
|
|
1951
2346
|
background-color: var(--gridkit-surface-muted);
|
|
1952
2347
|
}
|
|
1953
2348
|
|
|
1954
|
-
.filter-menu-submenu:focus-visible,
|
|
1955
|
-
.filter-menu-back:focus-visible {
|
|
2349
|
+
.gridkit-filter-menu-submenu:focus-visible,
|
|
2350
|
+
.gridkit-filter-menu-back:focus-visible {
|
|
1956
2351
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
1957
2352
|
outline-offset: calc(var(--gridkit-focus-ring-width) * -1);
|
|
1958
2353
|
}
|
|
1959
2354
|
|
|
1960
|
-
.filter-menu-submenu-icon,
|
|
1961
|
-
.filter-menu-submenu-indicator,
|
|
1962
|
-
.filter-menu-back-icon {
|
|
2355
|
+
.gridkit-filter-menu-submenu-icon,
|
|
2356
|
+
.gridkit-filter-menu-submenu-indicator,
|
|
2357
|
+
.gridkit-filter-menu-back-icon {
|
|
1963
2358
|
display: inline-flex;
|
|
1964
2359
|
flex-shrink: 0;
|
|
1965
2360
|
align-items: center;
|
|
@@ -1969,23 +2364,28 @@
|
|
|
1969
2364
|
color: var(--gridkit-fg-muted);
|
|
1970
2365
|
}
|
|
1971
2366
|
|
|
1972
|
-
.filter-menu-submenu svg,
|
|
1973
|
-
.filter-menu-back svg {
|
|
2367
|
+
.gridkit-filter-menu-submenu svg,
|
|
2368
|
+
.gridkit-filter-menu-back svg {
|
|
1974
2369
|
width: var(--gridkit-icon-size);
|
|
1975
2370
|
height: var(--gridkit-icon-size);
|
|
1976
2371
|
}
|
|
1977
2372
|
|
|
1978
2373
|
/* Ticked while the column is filtered by conditions, as Excel's is. */
|
|
1979
|
-
.filter-menu-submenu-icon {
|
|
2374
|
+
.gridkit-filter-menu-submenu-icon {
|
|
1980
2375
|
color: var(--gridkit-accent);
|
|
1981
2376
|
}
|
|
1982
2377
|
|
|
1983
2378
|
/* The submenu's chevron, at the end of the line. */
|
|
1984
|
-
.filter-menu-submenu-indicator {
|
|
2379
|
+
.gridkit-filter-menu-submenu-indicator {
|
|
1985
2380
|
margin-inline-start: auto;
|
|
1986
2381
|
}
|
|
1987
2382
|
|
|
1988
|
-
.filter-menu-
|
|
2383
|
+
.gridkit-filter-menu-submenu-indicator:dir(rtl) svg,
|
|
2384
|
+
.gridkit-filter-menu-back-icon:dir(rtl) svg {
|
|
2385
|
+
transform: scaleX(-1);
|
|
2386
|
+
}
|
|
2387
|
+
|
|
2388
|
+
.gridkit-filter-menu-search {
|
|
1989
2389
|
box-sizing: border-box;
|
|
1990
2390
|
width: 100%;
|
|
1991
2391
|
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 2);
|
|
@@ -1996,17 +2396,17 @@
|
|
|
1996
2396
|
border-radius: var(--gridkit-control-radius);
|
|
1997
2397
|
}
|
|
1998
2398
|
|
|
1999
|
-
.filter-menu-search::placeholder {
|
|
2399
|
+
.gridkit-filter-menu-search::placeholder {
|
|
2000
2400
|
color: var(--gridkit-fg-muted);
|
|
2001
2401
|
}
|
|
2002
2402
|
|
|
2003
|
-
.filter-menu-search:focus-visible {
|
|
2403
|
+
.gridkit-filter-menu-search:focus-visible {
|
|
2004
2404
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
2005
2405
|
outline-offset: 1px;
|
|
2006
2406
|
}
|
|
2007
2407
|
|
|
2008
2408
|
/* A native checkbox, in line with the drawn ones in the list below. */
|
|
2009
|
-
.filter-menu-select-all {
|
|
2409
|
+
.gridkit-filter-menu-select-all {
|
|
2010
2410
|
display: flex;
|
|
2011
2411
|
align-items: center;
|
|
2012
2412
|
gap: calc(var(--gridkit-spacing) * 2);
|
|
@@ -2016,7 +2416,7 @@
|
|
|
2016
2416
|
user-select: none;
|
|
2017
2417
|
}
|
|
2018
2418
|
|
|
2019
|
-
.filter-menu-select-all input {
|
|
2419
|
+
.gridkit-filter-menu-select-all input {
|
|
2020
2420
|
flex-shrink: 0;
|
|
2021
2421
|
width: var(--gridkit-icon-size);
|
|
2022
2422
|
height: var(--gridkit-icon-size);
|
|
@@ -2024,13 +2424,13 @@
|
|
|
2024
2424
|
accent-color: var(--gridkit-accent);
|
|
2025
2425
|
}
|
|
2026
2426
|
|
|
2027
|
-
.filter-menu-select-all input:focus-visible {
|
|
2427
|
+
.gridkit-filter-menu-select-all input:focus-visible {
|
|
2028
2428
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
2029
2429
|
outline-offset: 1px;
|
|
2030
2430
|
}
|
|
2031
2431
|
|
|
2032
2432
|
/* Nothing to select: the search matches no value. */
|
|
2033
|
-
.filter-menu-select-all:has(> input:disabled) {
|
|
2433
|
+
.gridkit-filter-menu-select-all:has(> input:disabled) {
|
|
2034
2434
|
color: var(--gridkit-fg-muted);
|
|
2035
2435
|
cursor: default;
|
|
2036
2436
|
}
|
|
@@ -2041,8 +2441,8 @@
|
|
|
2041
2441
|
* knows from the start how many values it shows. "Type to search …"
|
|
2042
2442
|
* takes the same box while the list waits for a search.
|
|
2043
2443
|
*/
|
|
2044
|
-
.filter-menu-checklist,
|
|
2045
|
-
.filter-menu-search-first {
|
|
2444
|
+
.gridkit-filter-menu-checklist,
|
|
2445
|
+
.gridkit-filter-menu-search-first {
|
|
2046
2446
|
box-sizing: border-box;
|
|
2047
2447
|
height: var(--gridkit-filter-checklist-height);
|
|
2048
2448
|
margin: 0;
|
|
@@ -2050,17 +2450,17 @@
|
|
|
2050
2450
|
border-radius: var(--gridkit-control-radius);
|
|
2051
2451
|
}
|
|
2052
2452
|
|
|
2053
|
-
.filter-menu-checklist {
|
|
2453
|
+
.gridkit-filter-menu-checklist {
|
|
2054
2454
|
overflow-y: auto;
|
|
2055
2455
|
}
|
|
2056
2456
|
|
|
2057
|
-
.filter-menu-search-first {
|
|
2457
|
+
.gridkit-filter-menu-search-first {
|
|
2058
2458
|
padding: calc(var(--gridkit-spacing) * 2);
|
|
2059
2459
|
color: var(--gridkit-fg-muted);
|
|
2060
2460
|
}
|
|
2061
2461
|
|
|
2062
2462
|
/* One value: a drawn checkbox, its label, and its count when shown. */
|
|
2063
|
-
.filter-menu-option {
|
|
2463
|
+
.gridkit-filter-menu-option {
|
|
2064
2464
|
display: flex;
|
|
2065
2465
|
align-items: center;
|
|
2066
2466
|
gap: calc(var(--gridkit-spacing) * 2);
|
|
@@ -2070,11 +2470,11 @@
|
|
|
2070
2470
|
user-select: none;
|
|
2071
2471
|
}
|
|
2072
2472
|
|
|
2073
|
-
.filter-menu-option:hover {
|
|
2473
|
+
.gridkit-filter-menu-option:hover {
|
|
2074
2474
|
background-color: var(--gridkit-surface-muted);
|
|
2075
2475
|
}
|
|
2076
2476
|
|
|
2077
|
-
.filter-menu-option:focus-visible {
|
|
2477
|
+
.gridkit-filter-menu-option:focus-visible {
|
|
2078
2478
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
2079
2479
|
outline-offset: calc(var(--gridkit-focus-ring-width) * -1);
|
|
2080
2480
|
}
|
|
@@ -2083,7 +2483,7 @@
|
|
|
2083
2483
|
* An outline, filled with the accent and ticked in `--gridkit-accent-fg`
|
|
2084
2484
|
* while the option is checked, as the native "Select all" above it is.
|
|
2085
2485
|
*/
|
|
2086
|
-
.filter-menu-option-check {
|
|
2486
|
+
.gridkit-filter-menu-option-check {
|
|
2087
2487
|
display: inline-flex;
|
|
2088
2488
|
flex-shrink: 0;
|
|
2089
2489
|
align-items: center;
|
|
@@ -2096,23 +2496,26 @@
|
|
|
2096
2496
|
border-radius: calc(var(--gridkit-control-radius) * 0.75);
|
|
2097
2497
|
}
|
|
2098
2498
|
|
|
2099
|
-
.filter-menu-option-check svg {
|
|
2499
|
+
.gridkit-filter-menu-option-check svg {
|
|
2100
2500
|
width: calc(var(--gridkit-icon-size) * 0.75);
|
|
2101
2501
|
height: calc(var(--gridkit-icon-size) * 0.75);
|
|
2102
2502
|
visibility: hidden;
|
|
2103
2503
|
}
|
|
2104
2504
|
|
|
2105
|
-
.filter-menu-option[aria-checked="true"]
|
|
2505
|
+
.gridkit-filter-menu-option[aria-checked="true"]
|
|
2506
|
+
.gridkit-filter-menu-option-check {
|
|
2106
2507
|
background-color: var(--gridkit-accent);
|
|
2107
2508
|
border-color: var(--gridkit-accent);
|
|
2108
2509
|
}
|
|
2109
2510
|
|
|
2110
|
-
.filter-menu-option[aria-checked="true"]
|
|
2511
|
+
.gridkit-filter-menu-option[aria-checked="true"]
|
|
2512
|
+
.gridkit-filter-menu-option-check
|
|
2513
|
+
svg {
|
|
2111
2514
|
visibility: visible;
|
|
2112
2515
|
}
|
|
2113
2516
|
|
|
2114
2517
|
/* A label too long for the menu ends in an ellipsis. */
|
|
2115
|
-
.filter-menu-option-label {
|
|
2518
|
+
.gridkit-filter-menu-option-label {
|
|
2116
2519
|
flex: 1;
|
|
2117
2520
|
min-width: 0;
|
|
2118
2521
|
overflow: hidden;
|
|
@@ -2121,7 +2524,7 @@
|
|
|
2121
2524
|
}
|
|
2122
2525
|
|
|
2123
2526
|
/* How many rows hold the value, muted at the end of its line. */
|
|
2124
|
-
.filter-menu-option-count {
|
|
2527
|
+
.gridkit-filter-menu-option-count {
|
|
2125
2528
|
flex-shrink: 0;
|
|
2126
2529
|
font-size: var(--gridkit-hint-font-size);
|
|
2127
2530
|
font-variant-numeric: tabular-nums;
|
|
@@ -2129,20 +2532,20 @@
|
|
|
2129
2532
|
}
|
|
2130
2533
|
|
|
2131
2534
|
/* "250 more, refine the search", under a list the value limit cut short. */
|
|
2132
|
-
.filter-menu-more {
|
|
2535
|
+
.gridkit-filter-menu-more {
|
|
2133
2536
|
margin: 0;
|
|
2134
2537
|
padding: 0 calc(var(--gridkit-spacing) * 2);
|
|
2135
2538
|
color: var(--gridkit-fg-muted);
|
|
2136
2539
|
}
|
|
2137
2540
|
|
|
2138
2541
|
/* "Clear filter" at the start; Cancel and OK at the end. */
|
|
2139
|
-
.filter-menu-actions {
|
|
2542
|
+
.gridkit-filter-menu-actions {
|
|
2140
2543
|
display: flex;
|
|
2141
2544
|
align-items: center;
|
|
2142
2545
|
gap: calc(var(--gridkit-spacing) * 2);
|
|
2143
2546
|
}
|
|
2144
2547
|
|
|
2145
|
-
.filter-menu-actions button {
|
|
2548
|
+
.gridkit-filter-menu-actions button {
|
|
2146
2549
|
padding: var(--gridkit-spacing) calc(var(--gridkit-spacing) * 3);
|
|
2147
2550
|
font: inherit;
|
|
2148
2551
|
color: var(--gridkit-fg);
|
|
@@ -2152,22 +2555,22 @@
|
|
|
2152
2555
|
cursor: pointer;
|
|
2153
2556
|
}
|
|
2154
2557
|
|
|
2155
|
-
.filter-menu-actions button:hover {
|
|
2558
|
+
.gridkit-filter-menu-actions button:hover {
|
|
2156
2559
|
background-color: var(--gridkit-surface-muted);
|
|
2157
2560
|
}
|
|
2158
2561
|
|
|
2159
|
-
.filter-menu-actions button:focus-visible {
|
|
2562
|
+
.gridkit-filter-menu-actions button:focus-visible {
|
|
2160
2563
|
outline: var(--gridkit-focus-ring-width) solid var(--gridkit-focus-ring);
|
|
2161
2564
|
outline-offset: 1px;
|
|
2162
2565
|
}
|
|
2163
2566
|
|
|
2164
|
-
.filter-menu-actions button:disabled {
|
|
2567
|
+
.gridkit-filter-menu-actions button:disabled {
|
|
2165
2568
|
color: var(--gridkit-fg-muted);
|
|
2166
2569
|
background-color: var(--gridkit-surface);
|
|
2167
2570
|
cursor: default;
|
|
2168
2571
|
}
|
|
2169
2572
|
|
|
2170
|
-
.filter-menu-actions .filter-menu-clear {
|
|
2573
|
+
.gridkit-filter-menu-actions .gridkit-filter-menu-clear {
|
|
2171
2574
|
margin-inline-end: auto;
|
|
2172
2575
|
}
|
|
2173
2576
|
|
|
@@ -2175,12 +2578,12 @@
|
|
|
2175
2578
|
* OK, the button Enter presses: tinted rather than filled with the accent,
|
|
2176
2579
|
* which the text on it would not stand out from in the light palette.
|
|
2177
2580
|
*/
|
|
2178
|
-
.filter-menu-actions .filter-menu-apply {
|
|
2581
|
+
.gridkit-filter-menu-actions .gridkit-filter-menu-apply {
|
|
2179
2582
|
background-color: var(--gridkit-selected);
|
|
2180
2583
|
border-color: var(--gridkit-accent);
|
|
2181
2584
|
}
|
|
2182
2585
|
|
|
2183
|
-
.filter-menu-actions .filter-menu-apply:hover {
|
|
2586
|
+
.gridkit-filter-menu-actions .gridkit-filter-menu-apply:hover {
|
|
2184
2587
|
background-color: var(--gridkit-selected-strong);
|
|
2185
2588
|
}
|
|
2186
2589
|
}
|
|
@@ -2198,17 +2601,42 @@
|
|
|
2198
2601
|
.gridkit-data-grid-viewport .gridkit-toolbar,
|
|
2199
2602
|
.gridkit-data-grid-viewport .gridkit-group-by-bar,
|
|
2200
2603
|
.gridkit-data-grid-viewport .gridkit-grid-pager,
|
|
2201
|
-
.gridkit-data-grid-viewport .header-resize-handle {
|
|
2604
|
+
.gridkit-data-grid-viewport .gridkit-header-resize-handle {
|
|
2202
2605
|
display: none;
|
|
2203
2606
|
}
|
|
2204
2607
|
|
|
2205
|
-
/*
|
|
2608
|
+
/*
|
|
2609
|
+
* No height bound, and nothing scrolls or sticks, so no row is cut off
|
|
2610
|
+
* or printed over, and the footer follows the last row.
|
|
2611
|
+
*/
|
|
2206
2612
|
.gridkit-data-grid-viewport,
|
|
2207
|
-
.gridkit-data-grid-viewport .gridkit-data-grid-
|
|
2613
|
+
.gridkit-data-grid-viewport .gridkit-data-grid-tables {
|
|
2208
2614
|
height: auto;
|
|
2209
2615
|
overflow: visible;
|
|
2210
2616
|
}
|
|
2211
2617
|
|
|
2618
|
+
.gridkit-data-grid-viewport .gridkit-data-grid-header,
|
|
2619
|
+
.gridkit-data-grid-viewport .gridkit-data-grid-footer,
|
|
2620
|
+
.gridkit-data-grid-viewport .gridkit-grid-group-cell-content {
|
|
2621
|
+
position: static;
|
|
2622
|
+
}
|
|
2623
|
+
|
|
2624
|
+
/*
|
|
2625
|
+
* Pinned columns print in their own places. Relative rather than
|
|
2626
|
+
* static: a cell stays the containing block of its background layers
|
|
2627
|
+
* and its header's toggles, as an unpinned header cell is.
|
|
2628
|
+
*/
|
|
2629
|
+
.gridkit-data-grid-viewport
|
|
2630
|
+
.gridkit-data-grid
|
|
2631
|
+
:is(.is-pinned-start, .is-pinned-end) {
|
|
2632
|
+
position: relative;
|
|
2633
|
+
inset-inline: auto;
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
.gridkit-data-grid-viewport .gridkit-data-grid-body {
|
|
2637
|
+
min-height: 0;
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2212
2640
|
.gridkit-data-grid-viewport :focus-visible {
|
|
2213
2641
|
outline: none;
|
|
2214
2642
|
}
|