@gridkitjs/theme-tailwind 0.2.0 → 0.2.1

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 +18 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridkitjs/theme-tailwind",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Tailwind v4 theme for GridKit — palette tokens, dark mode and grid styles.",
5
5
  "license": "MIT",
6
6
  "author": "Blagoja Blazhevski",
package/src/styles.css CHANGED
@@ -277,4 +277,22 @@
277
277
  .gridkit-data-grid.borders-all .grid-cell:last-child {
278
278
  border-right: none;
279
279
  }
280
+
281
+ /*
282
+ * The first column's left border has no neighbour to collapse with, so
283
+ * unlike every internal boundary it is a genuinely extra pixel — the table
284
+ * renders 1px wider than the sum of its columns. Stripped here and repainted
285
+ * as a table-level `box-shadow`, which draws the same line without adding to
286
+ * the box model. On the table rather than the cell so it can never be
287
+ * overwritten by a cell's own `box-shadow` (`is-resizing`, `is-dragging`,
288
+ * `is-drop-before`/`is-drop-after` all set one on the `th`/`td` itself).
289
+ */
290
+ .gridkit-data-grid.borders-all .grid-header .header-cell:first-child,
291
+ .gridkit-data-grid.borders-all .grid-cell:first-child {
292
+ border-left: none;
293
+ }
294
+
295
+ .gridkit-data-grid.borders-all {
296
+ box-shadow: inset 1px 0 0 0 var(--gridkit-line);
297
+ }
280
298
  }