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

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 +27 -0
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-20261118223155",
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
@@ -1306,6 +1317,22 @@
1306
1317
  z-index: 1;
1307
1318
  }
1308
1319
 
1320
+ /*
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.
1326
+ */
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);
1334
+ }
1335
+
1309
1336
  /*
1310
1337
  * Opaque in every row state, without restating a row rule. The cell takes
1311
1338
  * its row's colour, at no specificity, so a cell's own hover or selection