@fluixi-ui/skin-material 0.3.0-alpha.5 → 0.3.0-alpha.6
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/material.css +32 -3
- package/package.json +1 -1
package/material.css
CHANGED
|
@@ -423,12 +423,41 @@
|
|
|
423
423
|
background: color-mix(in oklab, var(--flx-ui-color-fg) 8%, transparent);
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
/* ---- Table:
|
|
426
|
+
/* ---- Table: flat M3 data table — no frame, divider-only rows, sentence-case
|
|
427
|
+
header (no all-caps), state-layer hover/selection, comfortable density -- */
|
|
428
|
+
[data-ui='material'] :where([data-table]) {
|
|
429
|
+
border: none;
|
|
430
|
+
border-radius: 0;
|
|
431
|
+
}
|
|
427
432
|
[data-ui='material'] :where([data-table-head]) {
|
|
433
|
+
background: transparent;
|
|
434
|
+
color: var(--flx-ui-color-fg-muted);
|
|
435
|
+
font-size: var(--flx-ui-font-size-sm);
|
|
428
436
|
font-weight: 500;
|
|
437
|
+
letter-spacing: normal;
|
|
438
|
+
text-transform: none;
|
|
439
|
+
padding: var(--flx-ui-space-3);
|
|
440
|
+
border-bottom: var(--flx-ui-border-width-thin) solid var(--flx-ui-color-border);
|
|
441
|
+
}
|
|
442
|
+
[data-ui='material'] :where([data-table-cell]) {
|
|
443
|
+
padding: var(--flx-ui-space-3);
|
|
444
|
+
}
|
|
445
|
+
[data-ui='material'] :where([data-table-body] > [data-table-row]:hover) {
|
|
446
|
+
background: color-mix(in oklab, var(--flx-ui-color-fg) 5%, transparent);
|
|
447
|
+
}
|
|
448
|
+
[data-ui='material'] :where([data-table-row][data-selected]),
|
|
449
|
+
[data-ui='material'] :where([data-table-row][data-selected]:hover) {
|
|
450
|
+
background: color-mix(in oklab, var(--flx-ui-color-primary) 10%, transparent);
|
|
451
|
+
}
|
|
452
|
+
/* Header is transparent now, so pinned cells need an opaque surface fill. */
|
|
453
|
+
[data-ui='material'] :where([data-table-cell][data-pinned]),
|
|
454
|
+
[data-ui='material'] :where([data-table-head][data-pinned]) {
|
|
455
|
+
background: var(--flx-ui-color-bg);
|
|
429
456
|
}
|
|
430
|
-
|
|
431
|
-
|
|
457
|
+
/* Compact density under Material. */
|
|
458
|
+
[data-ui='material'] :where([data-table][data-density='compact'] [data-table-head]),
|
|
459
|
+
[data-ui='material'] :where([data-table][data-density='compact'] [data-table-cell]) {
|
|
460
|
+
padding: var(--flx-ui-space-1) var(--flx-ui-space-2);
|
|
432
461
|
}
|
|
433
462
|
|
|
434
463
|
/* ---- Toast: M3 snackbar shape + elevation (keeps the type accent) -------- */
|