@fluixi-ui/skin-material 0.3.0-alpha.2 → 0.3.0-alpha.4
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 +23 -5
- package/package.json +1 -1
package/material.css
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* geometry, filled text fields, emphasized motion, Roboto. (True click-origin
|
|
11
11
|
* ripple needs JS; the state layer stands in for it here.)
|
|
12
12
|
*/
|
|
13
|
-
@layer flx.tokens, flx.components, flx.skin;
|
|
13
|
+
@layer flx.base, flx.tokens, flx.components, flx.skin;
|
|
14
14
|
|
|
15
15
|
/* Self-hosted Roboto (variable, latin subset) — no CDN / privacy dependency. */
|
|
16
16
|
@font-face {
|
|
@@ -355,18 +355,36 @@
|
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
/* ---- Sidenav: M3 navigation drawer — full-pill items, state-layer hover,
|
|
358
|
-
secondary-container active.
|
|
359
|
-
[data-ui='material'] :where([data-sidenav-link]) {
|
|
358
|
+
secondary-container active, elevated menu flyout. --------------------- */
|
|
359
|
+
[data-ui='material'] :where([data-sidenav-link], [data-sidenav-sub-trigger]) {
|
|
360
360
|
border-radius: 9999px;
|
|
361
361
|
font-weight: 500;
|
|
362
362
|
}
|
|
363
|
-
[data-ui='material'] :where([data-sidenav-link]:hover:not([data-active])
|
|
363
|
+
[data-ui='material'] :where([data-sidenav-link]:hover:not([data-active]),
|
|
364
|
+
[data-sidenav-sub-trigger]:hover:not([data-active])) {
|
|
364
365
|
background: color-mix(in oklab, var(--flx-ui-color-fg) 8%, transparent);
|
|
365
366
|
color: inherit;
|
|
366
367
|
}
|
|
367
|
-
[data-ui='material'] :where([data-sidenav-link][data-active]
|
|
368
|
+
[data-ui='material'] :where([data-sidenav-link][data-active],
|
|
369
|
+
[data-sidenav-sub-trigger][data-active]) {
|
|
368
370
|
background: var(--flx-ui-color-primary-subtle);
|
|
369
371
|
color: var(--flx-ui-color-primary-active);
|
|
372
|
+
font-weight: 600;
|
|
373
|
+
}
|
|
374
|
+
[data-ui='material'] :where([data-sidenav-trigger]) {
|
|
375
|
+
border-radius: 9999px;
|
|
376
|
+
}
|
|
377
|
+
/* Flyout: an elevated M3 menu surface; its rows keep the pill treatment. */
|
|
378
|
+
[data-ui='material'] :where([data-sidenav-sub-content][data-flyout]) {
|
|
379
|
+
border-radius: 12px;
|
|
380
|
+
box-shadow: var(--flx-ui-shadow-lg);
|
|
381
|
+
padding: var(--flx-ui-space-2);
|
|
382
|
+
}
|
|
383
|
+
[data-ui='material'] :where([data-sidenav][data-mobile]) {
|
|
384
|
+
border-radius: 0 16px 16px 0;
|
|
385
|
+
}
|
|
386
|
+
[data-ui='material'] :where([data-sidenav][data-mobile][data-side='right']) {
|
|
387
|
+
border-radius: 16px 0 0 16px;
|
|
370
388
|
}
|
|
371
389
|
|
|
372
390
|
/* ---- Pagination: circular pages, filled current ------------------------- */
|