@duskmoon-dev/core 1.21.2 → 1.21.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/README.md +1 -1
- package/dist/components/button.css +15 -8
- package/dist/components/form.css +2 -2
- package/dist/components/index.css +99 -21
- package/dist/components/nested-menu.css +82 -11
- package/dist/components/radio.css +2 -2
- package/dist/esm/components/button.js +15 -8
- package/dist/esm/components/form.js +2 -2
- package/dist/esm/components/nested-menu.js +82 -11
- package/dist/esm/components/radio.js +2 -2
- package/dist/index.css +101 -23
- package/dist/index.min.css +1 -1
- package/dist/standalone/duskmoonui-themes.css +3 -3
- package/dist/standalone/duskmoonui.css +103 -25
- package/dist/standalone/duskmoonui.js +6 -6
- package/dist/standalone/duskmoonui.mjs +6 -6
- package/dist/themes/generated/moonlight.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@layer components {
|
|
7
7
|
/* Base Button */
|
|
8
8
|
.btn {
|
|
9
|
+
--btn-size: 2.5rem;
|
|
9
10
|
--btn-p: 1.25rem;
|
|
10
11
|
--btn-py: 0.625rem;
|
|
11
12
|
--btn-text-color: var(--color-on-surface);
|
|
@@ -540,6 +541,7 @@
|
|
|
540
541
|
|
|
541
542
|
/* Size Variants */
|
|
542
543
|
.btn-xs {
|
|
544
|
+
--btn-size: 1.5rem;
|
|
543
545
|
--btn-p: 0.5rem;
|
|
544
546
|
--btn-py: 0.25rem;
|
|
545
547
|
font-size: 0.75rem;
|
|
@@ -548,6 +550,7 @@
|
|
|
548
550
|
}
|
|
549
551
|
|
|
550
552
|
.btn-sm {
|
|
553
|
+
--btn-size: 2rem;
|
|
551
554
|
--btn-p: 0.75rem;
|
|
552
555
|
--btn-py: 0.375rem;
|
|
553
556
|
font-size: 0.8125rem;
|
|
@@ -556,6 +559,7 @@
|
|
|
556
559
|
}
|
|
557
560
|
|
|
558
561
|
.btn-md {
|
|
562
|
+
--btn-size: 2.5rem;
|
|
559
563
|
--btn-p: 1.25rem;
|
|
560
564
|
--btn-py: 0.625rem;
|
|
561
565
|
font-size: 0.875rem;
|
|
@@ -564,6 +568,7 @@
|
|
|
564
568
|
}
|
|
565
569
|
|
|
566
570
|
.btn-lg {
|
|
571
|
+
--btn-size: 3rem;
|
|
567
572
|
--btn-p: 1.75rem;
|
|
568
573
|
--btn-py: 0.875rem;
|
|
569
574
|
font-size: 1rem;
|
|
@@ -644,17 +649,19 @@
|
|
|
644
649
|
height: 3rem;
|
|
645
650
|
}
|
|
646
651
|
|
|
647
|
-
.btn-circle
|
|
648
|
-
|
|
649
|
-
--btn-
|
|
650
|
-
|
|
652
|
+
.btn-circle,
|
|
653
|
+
.btn-square {
|
|
654
|
+
--btn-p: 0;
|
|
655
|
+
--btn-py: 0;
|
|
656
|
+
box-sizing: border-box;
|
|
657
|
+
width: var(--btn-size);
|
|
658
|
+
height: var(--btn-size);
|
|
659
|
+
flex-shrink: 0;
|
|
651
660
|
aspect-ratio: 1;
|
|
652
661
|
}
|
|
653
662
|
|
|
654
|
-
.btn-
|
|
655
|
-
|
|
656
|
-
--btn-py: 0.625rem;
|
|
657
|
-
aspect-ratio: 1;
|
|
663
|
+
.btn-circle {
|
|
664
|
+
border-radius: var(--radius-full, 9999px);
|
|
658
665
|
}
|
|
659
666
|
|
|
660
667
|
/* Reduce Motion */
|
package/dist/components/form.css
CHANGED
|
@@ -604,7 +604,7 @@
|
|
|
604
604
|
appearance: none;
|
|
605
605
|
background-color: transparent;
|
|
606
606
|
border: 2px solid var(--radio-border-color);
|
|
607
|
-
border-radius: var(--radius-full);
|
|
607
|
+
border-radius: var(--radius-full, 9999px);
|
|
608
608
|
transition: border-color 150ms ease-in-out;
|
|
609
609
|
}
|
|
610
610
|
|
|
@@ -613,7 +613,7 @@
|
|
|
613
613
|
content: "";
|
|
614
614
|
width: 0.5em;
|
|
615
615
|
height: 0.5em;
|
|
616
|
-
border-radius: var(--radius-full);
|
|
616
|
+
border-radius: var(--radius-full, 9999px);
|
|
617
617
|
background-color: var(--radio-color);
|
|
618
618
|
transform: scale(0);
|
|
619
619
|
transition: transform 150ms ease-in-out;
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
@layer components {
|
|
62
62
|
/* Base Button */
|
|
63
63
|
.btn {
|
|
64
|
+
--btn-size: 2.5rem;
|
|
64
65
|
--btn-p: 1.25rem;
|
|
65
66
|
--btn-py: 0.625rem;
|
|
66
67
|
--btn-text-color: var(--color-on-surface);
|
|
@@ -595,6 +596,7 @@
|
|
|
595
596
|
|
|
596
597
|
/* Size Variants */
|
|
597
598
|
.btn-xs {
|
|
599
|
+
--btn-size: 1.5rem;
|
|
598
600
|
--btn-p: 0.5rem;
|
|
599
601
|
--btn-py: 0.25rem;
|
|
600
602
|
font-size: 0.75rem;
|
|
@@ -603,6 +605,7 @@
|
|
|
603
605
|
}
|
|
604
606
|
|
|
605
607
|
.btn-sm {
|
|
608
|
+
--btn-size: 2rem;
|
|
606
609
|
--btn-p: 0.75rem;
|
|
607
610
|
--btn-py: 0.375rem;
|
|
608
611
|
font-size: 0.8125rem;
|
|
@@ -611,6 +614,7 @@
|
|
|
611
614
|
}
|
|
612
615
|
|
|
613
616
|
.btn-md {
|
|
617
|
+
--btn-size: 2.5rem;
|
|
614
618
|
--btn-p: 1.25rem;
|
|
615
619
|
--btn-py: 0.625rem;
|
|
616
620
|
font-size: 0.875rem;
|
|
@@ -619,6 +623,7 @@
|
|
|
619
623
|
}
|
|
620
624
|
|
|
621
625
|
.btn-lg {
|
|
626
|
+
--btn-size: 3rem;
|
|
622
627
|
--btn-p: 1.75rem;
|
|
623
628
|
--btn-py: 0.875rem;
|
|
624
629
|
font-size: 1rem;
|
|
@@ -699,17 +704,19 @@
|
|
|
699
704
|
height: 3rem;
|
|
700
705
|
}
|
|
701
706
|
|
|
702
|
-
.btn-circle
|
|
703
|
-
|
|
704
|
-
--btn-
|
|
705
|
-
|
|
707
|
+
.btn-circle,
|
|
708
|
+
.btn-square {
|
|
709
|
+
--btn-p: 0;
|
|
710
|
+
--btn-py: 0;
|
|
711
|
+
box-sizing: border-box;
|
|
712
|
+
width: var(--btn-size);
|
|
713
|
+
height: var(--btn-size);
|
|
714
|
+
flex-shrink: 0;
|
|
706
715
|
aspect-ratio: 1;
|
|
707
716
|
}
|
|
708
717
|
|
|
709
|
-
.btn-
|
|
710
|
-
|
|
711
|
-
--btn-py: 0.625rem;
|
|
712
|
-
aspect-ratio: 1;
|
|
718
|
+
.btn-circle {
|
|
719
|
+
border-radius: var(--radius-full, 9999px);
|
|
713
720
|
}
|
|
714
721
|
|
|
715
722
|
/* Reduce Motion */
|
|
@@ -1942,7 +1949,7 @@
|
|
|
1942
1949
|
appearance: none;
|
|
1943
1950
|
background-color: transparent;
|
|
1944
1951
|
border: 2px solid var(--radio-border-color);
|
|
1945
|
-
border-radius: var(--radius-full);
|
|
1952
|
+
border-radius: var(--radius-full, 9999px);
|
|
1946
1953
|
transition: border-color 150ms ease-in-out;
|
|
1947
1954
|
}
|
|
1948
1955
|
|
|
@@ -1951,7 +1958,7 @@
|
|
|
1951
1958
|
content: "";
|
|
1952
1959
|
width: 0.5em;
|
|
1953
1960
|
height: 0.5em;
|
|
1954
|
-
border-radius: var(--radius-full);
|
|
1961
|
+
border-radius: var(--radius-full, 9999px);
|
|
1955
1962
|
background-color: var(--radio-color);
|
|
1956
1963
|
transform: scale(0);
|
|
1957
1964
|
transition: transform 150ms ease-in-out;
|
|
@@ -19423,7 +19430,7 @@
|
|
|
19423
19430
|
padding: 0.5rem;
|
|
19424
19431
|
gap: 0.125rem;
|
|
19425
19432
|
font-size: 0.875rem;
|
|
19426
|
-
color: var(--color-on-surface);
|
|
19433
|
+
color: var(--nested-menu-fg, var(--color-on-surface));
|
|
19427
19434
|
}
|
|
19428
19435
|
|
|
19429
19436
|
/* ============================================
|
|
@@ -19436,7 +19443,7 @@
|
|
|
19436
19443
|
font-weight: 600;
|
|
19437
19444
|
text-transform: uppercase;
|
|
19438
19445
|
letter-spacing: 0.05em;
|
|
19439
|
-
color: var(--color-on-surface-variant);
|
|
19446
|
+
color: var(--nested-menu-muted, var(--color-on-surface-variant));
|
|
19440
19447
|
user-select: none;
|
|
19441
19448
|
}
|
|
19442
19449
|
|
|
@@ -19452,7 +19459,7 @@
|
|
|
19452
19459
|
width: 100%;
|
|
19453
19460
|
padding: 0.5rem 0.75rem;
|
|
19454
19461
|
font-size: inherit;
|
|
19455
|
-
color: var(--color-on-surface);
|
|
19462
|
+
color: var(--nested-menu-fg, var(--color-on-surface));
|
|
19456
19463
|
text-decoration: none;
|
|
19457
19464
|
background-color: transparent;
|
|
19458
19465
|
border: none;
|
|
@@ -19463,7 +19470,7 @@
|
|
|
19463
19470
|
|
|
19464
19471
|
.nested-menu li > a:hover,
|
|
19465
19472
|
.nested-menu li > button:hover {
|
|
19466
|
-
background-color: var(--color-surface-container);
|
|
19473
|
+
background-color: var(--nested-menu-hover, var(--color-surface-container));
|
|
19467
19474
|
}
|
|
19468
19475
|
|
|
19469
19476
|
.nested-menu li > a:focus-visible,
|
|
@@ -19477,15 +19484,15 @@
|
|
|
19477
19484
|
.nested-menu li > button.active,
|
|
19478
19485
|
.nested-menu li > a[aria-current="page"],
|
|
19479
19486
|
.nested-menu li > button[aria-current="page"] {
|
|
19480
|
-
background-color: var(--color-primary-container);
|
|
19481
|
-
color: var(--color-on-primary-container);
|
|
19487
|
+
background-color: var(--nested-menu-active-bg, var(--color-primary-container));
|
|
19488
|
+
color: var(--nested-menu-active-fg, var(--color-on-primary-container));
|
|
19482
19489
|
}
|
|
19483
19490
|
|
|
19484
19491
|
.nested-menu li > a.active:hover,
|
|
19485
19492
|
.nested-menu li > button.active:hover,
|
|
19486
19493
|
.nested-menu li > a[aria-current="page"]:hover,
|
|
19487
19494
|
.nested-menu li > button[aria-current="page"]:hover {
|
|
19488
|
-
background-color: color-mix(in oklch, var(--color-primary-container), var(--color-on-primary-container) 8%);
|
|
19495
|
+
background-color: color-mix(in oklch, var(--nested-menu-active-bg, var(--color-primary-container)), var(--nested-menu-active-fg, var(--color-on-primary-container)) 8%);
|
|
19489
19496
|
}
|
|
19490
19497
|
|
|
19491
19498
|
/* Disabled state */
|
|
@@ -19498,7 +19505,7 @@
|
|
|
19498
19505
|
.nested-menu li.disabled > button,
|
|
19499
19506
|
.nested-menu li > button:disabled,
|
|
19500
19507
|
.nested-menu li > a[aria-disabled="true"] {
|
|
19501
|
-
color: var(--color-on-surface-variant);
|
|
19508
|
+
color: var(--nested-menu-muted, var(--color-on-surface-variant));
|
|
19502
19509
|
opacity: 0.5;
|
|
19503
19510
|
cursor: not-allowed;
|
|
19504
19511
|
}
|
|
@@ -19519,7 +19526,7 @@
|
|
|
19519
19526
|
width: 100%;
|
|
19520
19527
|
padding: 0.5rem 0.75rem;
|
|
19521
19528
|
font-size: inherit;
|
|
19522
|
-
color: var(--color-on-surface);
|
|
19529
|
+
color: var(--nested-menu-fg, var(--color-on-surface));
|
|
19523
19530
|
background-color: transparent;
|
|
19524
19531
|
border: none;
|
|
19525
19532
|
border-radius: var(--radius-field, 0.375rem);
|
|
@@ -19538,7 +19545,7 @@
|
|
|
19538
19545
|
}
|
|
19539
19546
|
|
|
19540
19547
|
.nested-menu summary:hover {
|
|
19541
|
-
background-color: var(--color-surface-container);
|
|
19548
|
+
background-color: var(--nested-menu-hover, var(--color-surface-container));
|
|
19542
19549
|
}
|
|
19543
19550
|
|
|
19544
19551
|
.nested-menu summary:focus-visible {
|
|
@@ -19647,12 +19654,83 @@
|
|
|
19647
19654
|
|
|
19648
19655
|
/* Bordered — sidebar panel look */
|
|
19649
19656
|
.nested-menu-bordered {
|
|
19650
|
-
background-color: var(--color-surface);
|
|
19657
|
+
background-color: var(--nested-menu-bg, var(--color-surface));
|
|
19651
19658
|
border: 1px solid var(--color-outline-variant);
|
|
19652
19659
|
border-radius: var(--radius-card, 0.75rem);
|
|
19653
19660
|
box-shadow: var(--shadow-sm);
|
|
19654
19661
|
}
|
|
19655
19662
|
|
|
19663
|
+
/* Filled color variants for sidebar navigation. */
|
|
19664
|
+
.nested-menu-primary {
|
|
19665
|
+
--nested-menu-bg: var(--color-primary);
|
|
19666
|
+
--nested-menu-fg: var(--color-primary-content);
|
|
19667
|
+
--nested-menu-muted: var(--color-primary-content);
|
|
19668
|
+
--nested-menu-hover: color-mix(in oklch, var(--color-primary-content) 8%, var(--color-primary));
|
|
19669
|
+
--nested-menu-active-bg: var(--color-primary-content);
|
|
19670
|
+
--nested-menu-active-fg: var(--color-primary);
|
|
19671
|
+
background-color: var(--nested-menu-bg);
|
|
19672
|
+
}
|
|
19673
|
+
|
|
19674
|
+
.nested-menu-secondary {
|
|
19675
|
+
--nested-menu-bg: var(--color-secondary);
|
|
19676
|
+
--nested-menu-fg: var(--color-secondary-content);
|
|
19677
|
+
--nested-menu-muted: var(--color-secondary-content);
|
|
19678
|
+
--nested-menu-hover: color-mix(in oklch, var(--color-secondary-content) 8%, var(--color-secondary));
|
|
19679
|
+
--nested-menu-active-bg: var(--color-secondary-content);
|
|
19680
|
+
--nested-menu-active-fg: var(--color-secondary);
|
|
19681
|
+
background-color: var(--nested-menu-bg);
|
|
19682
|
+
}
|
|
19683
|
+
|
|
19684
|
+
.nested-menu-tertiary {
|
|
19685
|
+
--nested-menu-bg: var(--color-tertiary);
|
|
19686
|
+
--nested-menu-fg: var(--color-tertiary-content);
|
|
19687
|
+
--nested-menu-muted: var(--color-tertiary-content);
|
|
19688
|
+
--nested-menu-hover: color-mix(in oklch, var(--color-tertiary-content) 8%, var(--color-tertiary));
|
|
19689
|
+
--nested-menu-active-bg: var(--color-tertiary-content);
|
|
19690
|
+
--nested-menu-active-fg: var(--color-tertiary);
|
|
19691
|
+
background-color: var(--nested-menu-bg);
|
|
19692
|
+
}
|
|
19693
|
+
|
|
19694
|
+
.nested-menu-info {
|
|
19695
|
+
--nested-menu-bg: var(--color-info);
|
|
19696
|
+
--nested-menu-fg: var(--color-info-content);
|
|
19697
|
+
--nested-menu-muted: var(--color-info-content);
|
|
19698
|
+
--nested-menu-hover: color-mix(in oklch, var(--color-info-content) 8%, var(--color-info));
|
|
19699
|
+
--nested-menu-active-bg: var(--color-info-content);
|
|
19700
|
+
--nested-menu-active-fg: var(--color-info);
|
|
19701
|
+
background-color: var(--nested-menu-bg);
|
|
19702
|
+
}
|
|
19703
|
+
|
|
19704
|
+
.nested-menu-success {
|
|
19705
|
+
--nested-menu-bg: var(--color-success);
|
|
19706
|
+
--nested-menu-fg: var(--color-success-content);
|
|
19707
|
+
--nested-menu-muted: var(--color-success-content);
|
|
19708
|
+
--nested-menu-hover: color-mix(in oklch, var(--color-success-content) 8%, var(--color-success));
|
|
19709
|
+
--nested-menu-active-bg: var(--color-success-content);
|
|
19710
|
+
--nested-menu-active-fg: var(--color-success);
|
|
19711
|
+
background-color: var(--nested-menu-bg);
|
|
19712
|
+
}
|
|
19713
|
+
|
|
19714
|
+
.nested-menu-warning {
|
|
19715
|
+
--nested-menu-bg: var(--color-warning);
|
|
19716
|
+
--nested-menu-fg: var(--color-warning-content);
|
|
19717
|
+
--nested-menu-muted: var(--color-warning-content);
|
|
19718
|
+
--nested-menu-hover: color-mix(in oklch, var(--color-warning-content) 8%, var(--color-warning));
|
|
19719
|
+
--nested-menu-active-bg: var(--color-warning-content);
|
|
19720
|
+
--nested-menu-active-fg: var(--color-warning);
|
|
19721
|
+
background-color: var(--nested-menu-bg);
|
|
19722
|
+
}
|
|
19723
|
+
|
|
19724
|
+
.nested-menu-error {
|
|
19725
|
+
--nested-menu-bg: var(--color-error);
|
|
19726
|
+
--nested-menu-fg: var(--color-error-content);
|
|
19727
|
+
--nested-menu-muted: var(--color-error-content);
|
|
19728
|
+
--nested-menu-hover: color-mix(in oklch, var(--color-error-content) 8%, var(--color-error));
|
|
19729
|
+
--nested-menu-active-bg: var(--color-error-content);
|
|
19730
|
+
--nested-menu-active-fg: var(--color-error);
|
|
19731
|
+
background-color: var(--nested-menu-bg);
|
|
19732
|
+
}
|
|
19733
|
+
|
|
19656
19734
|
/* Compact — tighter padding throughout */
|
|
19657
19735
|
.nested-menu-compact {
|
|
19658
19736
|
padding: 0.25rem;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
padding: 0.5rem;
|
|
17
17
|
gap: 0.125rem;
|
|
18
18
|
font-size: 0.875rem;
|
|
19
|
-
color: var(--color-on-surface);
|
|
19
|
+
color: var(--nested-menu-fg, var(--color-on-surface));
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/* ============================================
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
font-weight: 600;
|
|
30
30
|
text-transform: uppercase;
|
|
31
31
|
letter-spacing: 0.05em;
|
|
32
|
-
color: var(--color-on-surface-variant);
|
|
32
|
+
color: var(--nested-menu-muted, var(--color-on-surface-variant));
|
|
33
33
|
user-select: none;
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
width: 100%;
|
|
46
46
|
padding: 0.5rem 0.75rem;
|
|
47
47
|
font-size: inherit;
|
|
48
|
-
color: var(--color-on-surface);
|
|
48
|
+
color: var(--nested-menu-fg, var(--color-on-surface));
|
|
49
49
|
text-decoration: none;
|
|
50
50
|
background-color: transparent;
|
|
51
51
|
border: none;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
.nested-menu li > a:hover,
|
|
58
58
|
.nested-menu li > button:hover {
|
|
59
|
-
background-color: var(--color-surface-container);
|
|
59
|
+
background-color: var(--nested-menu-hover, var(--color-surface-container));
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.nested-menu li > a:focus-visible,
|
|
@@ -70,15 +70,15 @@
|
|
|
70
70
|
.nested-menu li > button.active,
|
|
71
71
|
.nested-menu li > a[aria-current="page"],
|
|
72
72
|
.nested-menu li > button[aria-current="page"] {
|
|
73
|
-
background-color: var(--color-primary-container);
|
|
74
|
-
color: var(--color-on-primary-container);
|
|
73
|
+
background-color: var(--nested-menu-active-bg, var(--color-primary-container));
|
|
74
|
+
color: var(--nested-menu-active-fg, var(--color-on-primary-container));
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
.nested-menu li > a.active:hover,
|
|
78
78
|
.nested-menu li > button.active:hover,
|
|
79
79
|
.nested-menu li > a[aria-current="page"]:hover,
|
|
80
80
|
.nested-menu li > button[aria-current="page"]:hover {
|
|
81
|
-
background-color: color-mix(in oklch, var(--color-primary-container), var(--color-on-primary-container) 8%);
|
|
81
|
+
background-color: color-mix(in oklch, var(--nested-menu-active-bg, var(--color-primary-container)), var(--nested-menu-active-fg, var(--color-on-primary-container)) 8%);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/* Disabled state */
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
.nested-menu li.disabled > button,
|
|
92
92
|
.nested-menu li > button:disabled,
|
|
93
93
|
.nested-menu li > a[aria-disabled="true"] {
|
|
94
|
-
color: var(--color-on-surface-variant);
|
|
94
|
+
color: var(--nested-menu-muted, var(--color-on-surface-variant));
|
|
95
95
|
opacity: 0.5;
|
|
96
96
|
cursor: not-allowed;
|
|
97
97
|
}
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
width: 100%;
|
|
113
113
|
padding: 0.5rem 0.75rem;
|
|
114
114
|
font-size: inherit;
|
|
115
|
-
color: var(--color-on-surface);
|
|
115
|
+
color: var(--nested-menu-fg, var(--color-on-surface));
|
|
116
116
|
background-color: transparent;
|
|
117
117
|
border: none;
|
|
118
118
|
border-radius: var(--radius-field, 0.375rem);
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.nested-menu summary:hover {
|
|
134
|
-
background-color: var(--color-surface-container);
|
|
134
|
+
background-color: var(--nested-menu-hover, var(--color-surface-container));
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
.nested-menu summary:focus-visible {
|
|
@@ -240,12 +240,83 @@
|
|
|
240
240
|
|
|
241
241
|
/* Bordered — sidebar panel look */
|
|
242
242
|
.nested-menu-bordered {
|
|
243
|
-
background-color: var(--color-surface);
|
|
243
|
+
background-color: var(--nested-menu-bg, var(--color-surface));
|
|
244
244
|
border: 1px solid var(--color-outline-variant);
|
|
245
245
|
border-radius: var(--radius-card, 0.75rem);
|
|
246
246
|
box-shadow: var(--shadow-sm);
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
+
/* Filled color variants for sidebar navigation. */
|
|
250
|
+
.nested-menu-primary {
|
|
251
|
+
--nested-menu-bg: var(--color-primary);
|
|
252
|
+
--nested-menu-fg: var(--color-primary-content);
|
|
253
|
+
--nested-menu-muted: var(--color-primary-content);
|
|
254
|
+
--nested-menu-hover: color-mix(in oklch, var(--color-primary-content) 8%, var(--color-primary));
|
|
255
|
+
--nested-menu-active-bg: var(--color-primary-content);
|
|
256
|
+
--nested-menu-active-fg: var(--color-primary);
|
|
257
|
+
background-color: var(--nested-menu-bg);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.nested-menu-secondary {
|
|
261
|
+
--nested-menu-bg: var(--color-secondary);
|
|
262
|
+
--nested-menu-fg: var(--color-secondary-content);
|
|
263
|
+
--nested-menu-muted: var(--color-secondary-content);
|
|
264
|
+
--nested-menu-hover: color-mix(in oklch, var(--color-secondary-content) 8%, var(--color-secondary));
|
|
265
|
+
--nested-menu-active-bg: var(--color-secondary-content);
|
|
266
|
+
--nested-menu-active-fg: var(--color-secondary);
|
|
267
|
+
background-color: var(--nested-menu-bg);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.nested-menu-tertiary {
|
|
271
|
+
--nested-menu-bg: var(--color-tertiary);
|
|
272
|
+
--nested-menu-fg: var(--color-tertiary-content);
|
|
273
|
+
--nested-menu-muted: var(--color-tertiary-content);
|
|
274
|
+
--nested-menu-hover: color-mix(in oklch, var(--color-tertiary-content) 8%, var(--color-tertiary));
|
|
275
|
+
--nested-menu-active-bg: var(--color-tertiary-content);
|
|
276
|
+
--nested-menu-active-fg: var(--color-tertiary);
|
|
277
|
+
background-color: var(--nested-menu-bg);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.nested-menu-info {
|
|
281
|
+
--nested-menu-bg: var(--color-info);
|
|
282
|
+
--nested-menu-fg: var(--color-info-content);
|
|
283
|
+
--nested-menu-muted: var(--color-info-content);
|
|
284
|
+
--nested-menu-hover: color-mix(in oklch, var(--color-info-content) 8%, var(--color-info));
|
|
285
|
+
--nested-menu-active-bg: var(--color-info-content);
|
|
286
|
+
--nested-menu-active-fg: var(--color-info);
|
|
287
|
+
background-color: var(--nested-menu-bg);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.nested-menu-success {
|
|
291
|
+
--nested-menu-bg: var(--color-success);
|
|
292
|
+
--nested-menu-fg: var(--color-success-content);
|
|
293
|
+
--nested-menu-muted: var(--color-success-content);
|
|
294
|
+
--nested-menu-hover: color-mix(in oklch, var(--color-success-content) 8%, var(--color-success));
|
|
295
|
+
--nested-menu-active-bg: var(--color-success-content);
|
|
296
|
+
--nested-menu-active-fg: var(--color-success);
|
|
297
|
+
background-color: var(--nested-menu-bg);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.nested-menu-warning {
|
|
301
|
+
--nested-menu-bg: var(--color-warning);
|
|
302
|
+
--nested-menu-fg: var(--color-warning-content);
|
|
303
|
+
--nested-menu-muted: var(--color-warning-content);
|
|
304
|
+
--nested-menu-hover: color-mix(in oklch, var(--color-warning-content) 8%, var(--color-warning));
|
|
305
|
+
--nested-menu-active-bg: var(--color-warning-content);
|
|
306
|
+
--nested-menu-active-fg: var(--color-warning);
|
|
307
|
+
background-color: var(--nested-menu-bg);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.nested-menu-error {
|
|
311
|
+
--nested-menu-bg: var(--color-error);
|
|
312
|
+
--nested-menu-fg: var(--color-error-content);
|
|
313
|
+
--nested-menu-muted: var(--color-error-content);
|
|
314
|
+
--nested-menu-hover: color-mix(in oklch, var(--color-error-content) 8%, var(--color-error));
|
|
315
|
+
--nested-menu-active-bg: var(--color-error-content);
|
|
316
|
+
--nested-menu-active-fg: var(--color-error);
|
|
317
|
+
background-color: var(--nested-menu-bg);
|
|
318
|
+
}
|
|
319
|
+
|
|
249
320
|
/* Compact — tighter padding throughout */
|
|
250
321
|
.nested-menu-compact {
|
|
251
322
|
padding: 0.25rem;
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
appearance: none;
|
|
100
100
|
background-color: transparent;
|
|
101
101
|
border: 2px solid var(--radio-border-color);
|
|
102
|
-
border-radius: var(--radius-full);
|
|
102
|
+
border-radius: var(--radius-full, 9999px);
|
|
103
103
|
transition: border-color 150ms ease-in-out;
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
content: "";
|
|
109
109
|
width: 0.5em;
|
|
110
110
|
height: 0.5em;
|
|
111
|
-
border-radius: var(--radius-full);
|
|
111
|
+
border-radius: var(--radius-full, 9999px);
|
|
112
112
|
background-color: var(--radio-color);
|
|
113
113
|
transform: scale(0);
|
|
114
114
|
transition: transform 150ms ease-in-out;
|
|
@@ -7,6 +7,7 @@ export const css = `/**
|
|
|
7
7
|
@layer components {
|
|
8
8
|
/* Base Button */
|
|
9
9
|
.btn {
|
|
10
|
+
--btn-size: 2.5rem;
|
|
10
11
|
--btn-p: 1.25rem;
|
|
11
12
|
--btn-py: 0.625rem;
|
|
12
13
|
--btn-text-color: var(--color-on-surface);
|
|
@@ -541,6 +542,7 @@ export const css = `/**
|
|
|
541
542
|
|
|
542
543
|
/* Size Variants */
|
|
543
544
|
.btn-xs {
|
|
545
|
+
--btn-size: 1.5rem;
|
|
544
546
|
--btn-p: 0.5rem;
|
|
545
547
|
--btn-py: 0.25rem;
|
|
546
548
|
font-size: 0.75rem;
|
|
@@ -549,6 +551,7 @@ export const css = `/**
|
|
|
549
551
|
}
|
|
550
552
|
|
|
551
553
|
.btn-sm {
|
|
554
|
+
--btn-size: 2rem;
|
|
552
555
|
--btn-p: 0.75rem;
|
|
553
556
|
--btn-py: 0.375rem;
|
|
554
557
|
font-size: 0.8125rem;
|
|
@@ -557,6 +560,7 @@ export const css = `/**
|
|
|
557
560
|
}
|
|
558
561
|
|
|
559
562
|
.btn-md {
|
|
563
|
+
--btn-size: 2.5rem;
|
|
560
564
|
--btn-p: 1.25rem;
|
|
561
565
|
--btn-py: 0.625rem;
|
|
562
566
|
font-size: 0.875rem;
|
|
@@ -565,6 +569,7 @@ export const css = `/**
|
|
|
565
569
|
}
|
|
566
570
|
|
|
567
571
|
.btn-lg {
|
|
572
|
+
--btn-size: 3rem;
|
|
568
573
|
--btn-p: 1.75rem;
|
|
569
574
|
--btn-py: 0.875rem;
|
|
570
575
|
font-size: 1rem;
|
|
@@ -645,17 +650,19 @@ export const css = `/**
|
|
|
645
650
|
height: 3rem;
|
|
646
651
|
}
|
|
647
652
|
|
|
648
|
-
.btn-circle
|
|
649
|
-
|
|
650
|
-
--btn-
|
|
651
|
-
|
|
653
|
+
.btn-circle,
|
|
654
|
+
.btn-square {
|
|
655
|
+
--btn-p: 0;
|
|
656
|
+
--btn-py: 0;
|
|
657
|
+
box-sizing: border-box;
|
|
658
|
+
width: var(--btn-size);
|
|
659
|
+
height: var(--btn-size);
|
|
660
|
+
flex-shrink: 0;
|
|
652
661
|
aspect-ratio: 1;
|
|
653
662
|
}
|
|
654
663
|
|
|
655
|
-
.btn-
|
|
656
|
-
|
|
657
|
-
--btn-py: 0.625rem;
|
|
658
|
-
aspect-ratio: 1;
|
|
664
|
+
.btn-circle {
|
|
665
|
+
border-radius: var(--radius-full, 9999px);
|
|
659
666
|
}
|
|
660
667
|
|
|
661
668
|
/* Reduce Motion */
|
|
@@ -605,7 +605,7 @@ export const css = `/**
|
|
|
605
605
|
appearance: none;
|
|
606
606
|
background-color: transparent;
|
|
607
607
|
border: 2px solid var(--radio-border-color);
|
|
608
|
-
border-radius: var(--radius-full);
|
|
608
|
+
border-radius: var(--radius-full, 9999px);
|
|
609
609
|
transition: border-color 150ms ease-in-out;
|
|
610
610
|
}
|
|
611
611
|
|
|
@@ -614,7 +614,7 @@ export const css = `/**
|
|
|
614
614
|
content: "";
|
|
615
615
|
width: 0.5em;
|
|
616
616
|
height: 0.5em;
|
|
617
|
-
border-radius: var(--radius-full);
|
|
617
|
+
border-radius: var(--radius-full, 9999px);
|
|
618
618
|
background-color: var(--radio-color);
|
|
619
619
|
transform: scale(0);
|
|
620
620
|
transition: transform 150ms ease-in-out;
|