@fluixi-ui/skin-material 0.3.0-alpha.3 → 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.
Files changed (2) hide show
  1. package/material.css +22 -4
  2. package/package.json +1 -1
package/material.css CHANGED
@@ -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 ------------------------- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluixi-ui/skin-material",
3
- "version": "0.3.0-alpha.3",
3
+ "version": "0.3.0-alpha.4",
4
4
  "description": "Material Design skin for Fluixi UI — activate with data-ui=\"material\"",
5
5
  "license": "MIT",
6
6
  "private": false,