@gridkitjs/theme-css 0.0.0-dev-20261118204728 → 0.0.0-dev-20261119130019

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/styles.css +56 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridkitjs/theme-css",
3
- "version": "0.0.0-dev-20261118204728",
3
+ "version": "0.0.0-dev-20261119130019",
4
4
  "description": "Plain-CSS theme for GridKit — palette tokens, dark mode and grid styles, no Tailwind needed.",
5
5
  "license": "MIT",
6
6
  "author": "Blagoja Blazhevski",
package/src/styles.css CHANGED
@@ -556,6 +556,17 @@
556
556
  opacity: 0.5;
557
557
  }
558
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
+
559
570
  /*
560
571
  * A header, cell or group row that opens the grid's context menu — its
561
572
  * `aria-keyshortcuts` names Shift+F10 then — takes a long-press for that
@@ -1064,6 +1075,33 @@
1064
1075
  text-align: center;
1065
1076
  }
1066
1077
 
1078
+ /*
1079
+ * The message standing in for the rows of an empty grid. Padding lives on
1080
+ * the content rather than the cell, as the group label's does. The content
1081
+ * sticks to the start edge and is as wide as the scroll area's inside
1082
+ * (`--gridkit-empty-width`, set by the grid), or the cell if that is
1083
+ * narrower, so it stays in view and centred however far a wide grid
1084
+ * scrolls sideways.
1085
+ */
1086
+ .gridkit-data-grid .gridkit-grid-empty-cell {
1087
+ padding: 0;
1088
+ }
1089
+
1090
+ .gridkit-data-grid .gridkit-grid-empty-content {
1091
+ position: sticky;
1092
+ inset-inline-start: 0;
1093
+ width: min(100%, var(--gridkit-empty-width, 100%));
1094
+ min-height: calc(var(--gridkit-spacing) * 24);
1095
+ display: flex;
1096
+ flex-direction: column;
1097
+ align-items: center;
1098
+ justify-content: center;
1099
+ gap: calc(var(--gridkit-spacing) * 2);
1100
+ padding: calc(var(--gridkit-spacing) * 4) var(--gridkit-cell-padding-x);
1101
+ color: var(--gridkit-fg-muted);
1102
+ text-align: center;
1103
+ }
1104
+
1067
1105
  /*
1068
1106
  * Indents only the first cell, matching how `GridGroupRow`'s own
1069
1107
  * `paddingInlineStart` indents just the one spanning cell it has — an
@@ -1306,6 +1344,22 @@
1306
1344
  z-index: 1;
1307
1345
  }
1308
1346
 
1347
+ /*
1348
+ * Keeps a cell that keyboard focus or `scrollToColumn` scrolls into view
1349
+ * clear of the pinned columns at both edges. A margin on the scrolling
1350
+ * cells rather than padding on the scroll area: a pinned cell, stuck in
1351
+ * that padding, would scroll the area to make room when focused, as the
1352
+ * header would for `scroll-margin-block` above.
1353
+ */
1354
+ .gridkit-data-grid
1355
+ :is(.gridkit-header-cell, .gridkit-grid-cell):not(
1356
+ .is-pinned-start,
1357
+ .is-pinned-end
1358
+ ) {
1359
+ scroll-margin-inline: var(--gridkit-pinned-start-width, 0px)
1360
+ var(--gridkit-pinned-end-width, 0px);
1361
+ }
1362
+
1309
1363
  /*
1310
1364
  * Opaque in every row state, without restating a row rule. The cell takes
1311
1365
  * its row's colour, at no specificity, so a cell's own hover or selection
@@ -2590,7 +2644,8 @@
2590
2644
 
2591
2645
  .gridkit-data-grid-viewport .gridkit-data-grid-header,
2592
2646
  .gridkit-data-grid-viewport .gridkit-data-grid-footer,
2593
- .gridkit-data-grid-viewport .gridkit-grid-group-cell-content {
2647
+ .gridkit-data-grid-viewport .gridkit-grid-group-cell-content,
2648
+ .gridkit-data-grid-viewport .gridkit-grid-empty-content {
2594
2649
  position: static;
2595
2650
  }
2596
2651