@gridkitjs/theme-tailwind 0.1.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.
- package/package.json +1 -1
- package/src/styles.css +32 -0
package/package.json
CHANGED
package/src/styles.css
CHANGED
|
@@ -89,6 +89,20 @@
|
|
|
89
89
|
white-space: nowrap;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
/*
|
|
93
|
+
* A column that opts into `wrap` needs all three of the rule above undone —
|
|
94
|
+
* `overflow: hidden` alone would still clip a second line, and
|
|
95
|
+
* `text-overflow: ellipsis` only matters once `overflow` stops being
|
|
96
|
+
* `visible`. Fixed layout still holds the column's width; only its height
|
|
97
|
+
* stops being one line's worth.
|
|
98
|
+
*/
|
|
99
|
+
.gridkit-data-grid .header-cell.is-wrapped,
|
|
100
|
+
.gridkit-data-grid .grid-cell.is-wrapped {
|
|
101
|
+
overflow: visible;
|
|
102
|
+
text-overflow: clip;
|
|
103
|
+
white-space: normal;
|
|
104
|
+
}
|
|
105
|
+
|
|
92
106
|
.gridkit-data-grid .grid-header {
|
|
93
107
|
background-color: var(--gridkit-surface);
|
|
94
108
|
}
|
|
@@ -263,4 +277,22 @@
|
|
|
263
277
|
.gridkit-data-grid.borders-all .grid-cell:last-child {
|
|
264
278
|
border-right: none;
|
|
265
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
|
+
}
|
|
266
298
|
}
|