basecoat-css 1.0.2 → 1.2.0
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/base/base.css +11 -1
- package/dist/base/scroll-fade.css +41 -0
- package/dist/base/transition-details.css +12 -0
- package/dist/basecoat-base.bundle.css +2532 -0
- package/dist/basecoat-base.cdn.css +1948 -677
- package/dist/basecoat-base.cdn.min.css +1 -2
- package/dist/basecoat-compat.cdn.css +251 -76
- package/dist/basecoat-compat.cdn.min.css +1 -2
- package/dist/basecoat-components.css +10 -0
- package/dist/basecoat-luma.bundle.css +4309 -0
- package/dist/basecoat-luma.cdn.css +5309 -3216
- package/dist/basecoat-luma.cdn.min.css +1 -2
- package/dist/basecoat-lyra.bundle.css +4287 -0
- package/dist/basecoat-lyra.cdn.css +5130 -3099
- package/dist/basecoat-lyra.cdn.min.css +1 -2
- package/dist/basecoat-maia.bundle.css +4275 -0
- package/dist/basecoat-maia.cdn.css +5220 -3158
- package/dist/basecoat-maia.cdn.min.css +1 -2
- package/dist/basecoat-mira.bundle.css +4284 -0
- package/dist/basecoat-mira.cdn.css +3530 -1494
- package/dist/basecoat-mira.cdn.min.css +1 -2
- package/dist/basecoat-nova.bundle.css +4300 -0
- package/dist/basecoat-nova.cdn.css +3685 -1623
- package/dist/basecoat-nova.cdn.min.css +1 -2
- package/dist/basecoat-rhea.bundle.css +4314 -0
- package/dist/basecoat-rhea.cdn.css +5315 -3219
- package/dist/basecoat-rhea.cdn.min.css +1 -2
- package/dist/basecoat-sera.bundle.css +4295 -0
- package/dist/basecoat-sera.cdn.css +3219 -1191
- package/dist/basecoat-sera.cdn.min.css +1 -2
- package/dist/basecoat-vega.bundle.css +4289 -0
- package/dist/basecoat-vega.cdn.css +3681 -1616
- package/dist/basecoat-vega.cdn.min.css +1 -2
- package/dist/basecoat.bundle.css +4289 -0
- package/dist/basecoat.cdn.css +3681 -1616
- package/dist/basecoat.cdn.min.css +1 -2
- package/dist/compat/legacy.css +3 -18
- package/dist/components/accordion.css +15 -1
- package/dist/components/alert.css +4 -0
- package/dist/components/attachment.css +66 -0
- package/dist/components/bubble.css +28 -0
- package/dist/components/button-group.css +2 -1
- package/dist/components/button.css +23 -0
- package/dist/components/carousel.css +30 -0
- package/dist/components/checkbox.css +5 -1
- package/dist/components/code-block.css +80 -0
- package/dist/components/collapsible.css +0 -9
- package/dist/components/command.css +13 -0
- package/dist/components/dialog.css +13 -1
- package/dist/components/drawer.css +48 -14
- package/dist/components/input-otp.css +49 -0
- package/dist/components/item.css +6 -0
- package/dist/components/marker.css +20 -0
- package/dist/components/message.css +24 -0
- package/dist/components/range.css +7 -0
- package/dist/components/scrollbar.css +20 -42
- package/dist/components/sheet.css +123 -0
- package/dist/components/shimmer.css +49 -0
- package/dist/components/sidebar.css +19 -8
- package/dist/components/toast.css +59 -44
- package/dist/components/tooltip.css +1 -1
- package/dist/components/trace.css +34 -0
- package/dist/js/all.js +513 -122
- package/dist/js/all.min.js +1 -1
- package/dist/js/carousel.js +105 -0
- package/dist/js/carousel.min.js +1 -0
- package/dist/js/code-block.js +47 -0
- package/dist/js/code-block.min.js +1 -0
- package/dist/js/combobox.js +6 -2
- package/dist/js/combobox.min.js +1 -1
- package/dist/js/drawer.js +6 -2
- package/dist/js/drawer.min.js +1 -1
- package/dist/js/dropdown-menu.js +1 -1
- package/dist/js/dropdown-menu.min.js +1 -1
- package/dist/js/input-otp.js +76 -0
- package/dist/js/input-otp.min.js +1 -0
- package/dist/js/popover.js +1 -1
- package/dist/js/popover.min.js +1 -1
- package/dist/js/select.js +1 -1
- package/dist/js/select.min.js +1 -1
- package/dist/js/sidebar.js +1 -1
- package/dist/js/sidebar.min.js +1 -1
- package/dist/js/tabs.js +31 -58
- package/dist/js/tabs.min.js +1 -1
- package/dist/js/toast.js +236 -57
- package/dist/js/toast.min.js +1 -1
- package/dist/styles/luma.css +451 -50
- package/dist/styles/lyra.css +418 -42
- package/dist/styles/maia.css +427 -48
- package/dist/styles/mira.css +422 -43
- package/dist/styles/nova.css +432 -51
- package/dist/styles/rhea.css +453 -52
- package/dist/styles/sera.css +416 -50
- package/dist/styles/vega.css +418 -47
- package/dist/typeset.cdn.css +381 -0
- package/dist/typeset.cdn.min.css +1 -0
- package/dist/typeset.css +435 -0
- package/package.json +18 -6
- package/templates/jinja/command.html.jinja +1 -1
- package/templates/jinja/dialog.html.jinja +1 -1
- package/templates/jinja/tabs.html.jinja +0 -1
- package/templates/jinja/toast.html.jinja +29 -26
- package/templates/nunjucks/command.njk +1 -1
- package/templates/nunjucks/dialog.njk +1 -1
- package/templates/nunjucks/tabs.njk +1 -1
- package/templates/nunjucks/toast.njk +30 -27
package/dist/styles/rhea.css
CHANGED
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
|
|
28
28
|
.btn:not([data-size]),
|
|
29
29
|
.btn[data-size='default'] {
|
|
30
|
-
@apply h-8 gap-1.5 px-3 has-[[data-icon='inline-end']]:
|
|
30
|
+
@apply h-8 gap-1.5 px-3 has-[[data-icon='inline-end']]:pe-2.5 has-[[data-icon='inline-start']]:ps-2.5;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.btn[data-size='xs'] {
|
|
34
|
-
@apply h-6 gap-1 px-2.5 text-xs [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:
|
|
34
|
+
@apply h-6 gap-1 px-2.5 text-xs [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:pe-2 has-[[data-icon='inline-start']]:ps-2;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.btn[data-size='sm'] {
|
|
38
|
-
@apply h-7 gap-1 px-3 has-[[data-icon='inline-end']]:
|
|
38
|
+
@apply h-7 gap-1 px-3 has-[[data-icon='inline-end']]:pe-2 has-[[data-icon='inline-start']]:ps-2;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.btn[data-size='lg'] {
|
|
42
|
-
@apply h-9 gap-1.5 px-4 has-[[data-icon='inline-end']]:
|
|
42
|
+
@apply h-9 gap-1.5 px-4 has-[[data-icon='inline-end']]:pe-3 has-[[data-icon='inline-start']]:ps-3;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.btn[data-size='icon'] {
|
|
@@ -83,6 +83,13 @@
|
|
|
83
83
|
@apply bg-destructive/10 text-destructive hover:bg-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
.btn:has(> input:checked) {
|
|
87
|
+
@apply bg-muted text-foreground hover:bg-muted dark:bg-muted dark:hover:bg-muted;
|
|
88
|
+
}
|
|
89
|
+
.btn:has(> input:focus-visible) {
|
|
90
|
+
@apply border-ring ring-ring/30 ring-[3px] dark:border-ring;
|
|
91
|
+
}
|
|
92
|
+
|
|
86
93
|
/* Button Group */
|
|
87
94
|
.button-group {
|
|
88
95
|
@apply has-[>.button-group]:gap-2;
|
|
@@ -110,7 +117,7 @@
|
|
|
110
117
|
}
|
|
111
118
|
}
|
|
112
119
|
|
|
113
|
-
.button-group > :is(span, label, output) {
|
|
120
|
+
.button-group > :is(span, label, output):not(.btn) {
|
|
114
121
|
@apply bg-muted gap-2 rounded-2xl border px-2.5 text-sm font-medium [&_svg:not([class*='size-'])]:size-4;
|
|
115
122
|
}
|
|
116
123
|
|
|
@@ -217,7 +224,7 @@
|
|
|
217
224
|
/* Native Select */
|
|
218
225
|
.field > select,
|
|
219
226
|
select.select {
|
|
220
|
-
@apply bg-input/50 border-transparent placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 w-fit rounded-2xl border py-1 ps-2.5 pe-8 text-sm transition-[color,box-shadow] duration-200 focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-7;
|
|
227
|
+
@apply bg-input/50 border-transparent placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 w-fit rounded-2xl border py-1 ps-2.5 pe-8 text-base md:text-sm transition-[color,box-shadow] duration-200 focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-7;
|
|
221
228
|
@apply bg-[image:var(--chevron-down-icon-50)] bg-no-repeat bg-position-[center_right_0.625rem] bg-size-[1rem];
|
|
222
229
|
}
|
|
223
230
|
|
|
@@ -373,7 +380,7 @@
|
|
|
373
380
|
}
|
|
374
381
|
|
|
375
382
|
.command > header input {
|
|
376
|
-
@apply ps-1.5 text-sm placeholder:text-muted-foreground;
|
|
383
|
+
@apply ps-1.5 text-base md:text-sm placeholder:text-muted-foreground;
|
|
377
384
|
}
|
|
378
385
|
|
|
379
386
|
.command [role='menu'] {
|
|
@@ -415,7 +422,7 @@
|
|
|
415
422
|
|
|
416
423
|
/* Combobox */
|
|
417
424
|
.combobox > input[role='combobox'] {
|
|
418
|
-
@apply bg-input/50 border-transparent focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 rounded-2xl border py-1 ps-2.5 pe-8 text-sm transition-[color,box-shadow] duration-200 focus-visible:ring-3 aria-invalid:ring-3;
|
|
425
|
+
@apply bg-input/50 border-transparent focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 rounded-2xl border py-1 ps-2.5 pe-8 text-base md:text-sm transition-[color,box-shadow] duration-200 focus-visible:ring-3 aria-invalid:ring-3;
|
|
419
426
|
}
|
|
420
427
|
|
|
421
428
|
.combobox > svg,
|
|
@@ -464,6 +471,10 @@
|
|
|
464
471
|
@apply bg-input/50 border-transparent focus-within:border-ring focus-within:ring-ring/30 has-[[aria-invalid=true]]:ring-destructive/20 dark:has-[[aria-invalid=true]]:ring-destructive/40 has-[[aria-invalid=true]]:border-destructive dark:has-[[aria-invalid=true]]:border-destructive/50 min-h-8 gap-1 rounded-2xl border bg-clip-padding px-1 py-1 text-sm transition-[color,box-shadow] duration-200 focus-within:ring-3 has-[[aria-invalid=true]]:ring-3;
|
|
465
472
|
}
|
|
466
473
|
|
|
474
|
+
.combobox-chips > input[role='combobox'] {
|
|
475
|
+
@apply text-base md:text-sm;
|
|
476
|
+
}
|
|
477
|
+
|
|
467
478
|
.combobox-chip {
|
|
468
479
|
@apply bg-input text-foreground dark:bg-input/60 h-5.25 gap-1 rounded-2xl px-1.5 text-xs font-medium has-[>.combobox-chip-remove]:pe-0.5;
|
|
469
480
|
}
|
|
@@ -627,6 +638,52 @@
|
|
|
627
638
|
@apply text-muted-foreground text-sm;
|
|
628
639
|
}
|
|
629
640
|
|
|
641
|
+
/* Sheet */
|
|
642
|
+
.sheet::backdrop {
|
|
643
|
+
@apply bg-black/30 supports-backdrop-filter:backdrop-blur-sm;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.sheet > * {
|
|
647
|
+
@apply bg-popover text-popover-foreground bg-clip-padding text-sm shadow-xl;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.sheet[data-side='bottom'] > * {
|
|
651
|
+
@apply border-t;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.sheet[data-side='top'] > * {
|
|
655
|
+
@apply border-b;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.sheet[data-side='left'] > * {
|
|
659
|
+
@apply border-r;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.sheet:not([data-side]) > *,
|
|
663
|
+
.sheet[data-side='right'] > * {
|
|
664
|
+
@apply border-l;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.sheet > * > header {
|
|
668
|
+
@apply gap-1.5 p-6;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.sheet > * > footer {
|
|
672
|
+
@apply gap-2 p-6;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.sheet > * > header > h2 {
|
|
676
|
+
@apply text-foreground text-base font-medium;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.sheet > * > header > p {
|
|
680
|
+
@apply text-muted-foreground text-sm;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.sheet > * > button:last-child {
|
|
684
|
+
@apply top-4 end-4 bg-secondary;
|
|
685
|
+
}
|
|
686
|
+
|
|
630
687
|
/* Dropdown Menu */
|
|
631
688
|
.dropdown-menu > [data-popover] {
|
|
632
689
|
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 gap-0 overflow-x-hidden overflow-y-auto rounded-2xl p-1 shadow-lg ring-1 duration-100;
|
|
@@ -700,6 +757,17 @@
|
|
|
700
757
|
@apply text-muted-foreground;
|
|
701
758
|
}
|
|
702
759
|
|
|
760
|
+
/* Carousel */
|
|
761
|
+
.carousel > ul > li {
|
|
762
|
+
@apply p-1;
|
|
763
|
+
}
|
|
764
|
+
.carousel > button.btn {
|
|
765
|
+
@apply rounded-2xl;
|
|
766
|
+
}
|
|
767
|
+
.carousel > ul:focus-visible {
|
|
768
|
+
@apply outline-2 outline-ring outline-offset-2;
|
|
769
|
+
}
|
|
770
|
+
|
|
703
771
|
/* Card */
|
|
704
772
|
.card {
|
|
705
773
|
@apply bg-card text-card-foreground ring-foreground/5 dark:ring-foreground/10 overflow-hidden rounded-3xl text-sm shadow-sm ring-1 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-t-3xl [&>img:last-child]:rounded-b-3xl;
|
|
@@ -787,7 +855,11 @@
|
|
|
787
855
|
}
|
|
788
856
|
|
|
789
857
|
:is(.field > input[type='radio'], .input[type='radio']):checked:before {
|
|
790
|
-
@apply bg-primary-foreground size-2
|
|
858
|
+
@apply bg-primary-foreground size-2;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
html.dark :is(.field > input[type='radio'], .input[type='radio']):checked:before {
|
|
862
|
+
@apply size-2.5;
|
|
791
863
|
}
|
|
792
864
|
|
|
793
865
|
/* Switch */
|
|
@@ -805,7 +877,11 @@
|
|
|
805
877
|
}
|
|
806
878
|
|
|
807
879
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
808
|
-
@apply bg-background rounded-2xl shadow-sm
|
|
880
|
+
@apply bg-background rounded-2xl shadow-sm;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
html:not(.dark) :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
884
|
+
@apply bg-clip-padding;
|
|
809
885
|
}
|
|
810
886
|
|
|
811
887
|
html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
|
|
@@ -945,7 +1021,7 @@
|
|
|
945
1021
|
@apply opacity-50;
|
|
946
1022
|
}
|
|
947
1023
|
.input-group > :is(input, select, [data-control]) {
|
|
948
|
-
@apply px-2.5 py-1 text-sm;
|
|
1024
|
+
@apply px-2.5 py-1 text-base md:text-sm;
|
|
949
1025
|
}
|
|
950
1026
|
|
|
951
1027
|
.input-group:not([data-orientation='vertical']):has(> :is([data-align='start'], [data-align='inline-start'])) > :is(input, select, [data-control]) {
|
|
@@ -957,7 +1033,7 @@
|
|
|
957
1033
|
}
|
|
958
1034
|
|
|
959
1035
|
.input-group > textarea {
|
|
960
|
-
@apply px-2.5 py-2 text-sm;
|
|
1036
|
+
@apply px-2.5 py-2 text-base md:text-sm;
|
|
961
1037
|
}
|
|
962
1038
|
|
|
963
1039
|
.input-group > :is(span, [role='group'], header, footer),
|
|
@@ -1075,6 +1151,44 @@
|
|
|
1075
1151
|
@apply gap-4 text-sm;
|
|
1076
1152
|
}
|
|
1077
1153
|
|
|
1154
|
+
/* Message */
|
|
1155
|
+
.message-group { @apply gap-2; }
|
|
1156
|
+
.message { @apply gap-2 text-sm; }
|
|
1157
|
+
.message > div:last-child { @apply gap-2.5; }
|
|
1158
|
+
.message > div:last-child > :is(header, footer) {
|
|
1159
|
+
@apply px-3 text-xs font-medium text-muted-foreground;
|
|
1160
|
+
}
|
|
1161
|
+
.message:has(.bubble[data-variant='ghost']) > div:last-child > :is(header, footer) { @apply px-0; }
|
|
1162
|
+
.message:has(> div:last-child > footer) > .avatar { @apply -translate-y-8; }
|
|
1163
|
+
|
|
1164
|
+
/* Trace */
|
|
1165
|
+
.trace { @apply gap-2; }
|
|
1166
|
+
.trace-line { @apply gap-2 text-sm text-muted-foreground; }
|
|
1167
|
+
.trace-line > svg { @apply size-4; }
|
|
1168
|
+
.trace-line > small { @apply [font-size:inherit] text-muted-foreground/70 tabular-nums; }
|
|
1169
|
+
:is(a, button, summary).trace-line {
|
|
1170
|
+
@apply rounded-lg transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/30;
|
|
1171
|
+
}
|
|
1172
|
+
summary.trace-line + div {
|
|
1173
|
+
@apply mt-2 mb-1 ms-[calc(--spacing(2)-1px)] border-s ps-4 pe-1 text-muted-foreground leading-relaxed;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
/* Marker */
|
|
1177
|
+
.marker {
|
|
1178
|
+
@apply min-h-4 gap-2 text-sm text-muted-foreground text-start [&_svg:not([class*='size-'])]:size-4;
|
|
1179
|
+
}
|
|
1180
|
+
.marker[data-variant='border'] {
|
|
1181
|
+
@apply border-b border-border pb-2;
|
|
1182
|
+
}
|
|
1183
|
+
.marker[data-variant='separator']::before,
|
|
1184
|
+
.marker[data-variant='separator']::after {
|
|
1185
|
+
@apply border-border;
|
|
1186
|
+
}
|
|
1187
|
+
.marker[data-variant='separator']::before { @apply me-1; }
|
|
1188
|
+
.marker[data-variant='separator']::after { @apply ms-1; }
|
|
1189
|
+
a.marker, .marker a { @apply underline underline-offset-3 hover:text-foreground; }
|
|
1190
|
+
button.marker { @apply hover:text-foreground; }
|
|
1191
|
+
|
|
1078
1192
|
/* Item */
|
|
1079
1193
|
.item {
|
|
1080
1194
|
@apply rounded-2xl border text-sm;
|
|
@@ -1187,92 +1301,92 @@
|
|
|
1187
1301
|
}
|
|
1188
1302
|
|
|
1189
1303
|
/* Sidebar */
|
|
1190
|
-
.sidebar nav {
|
|
1304
|
+
.sidebar > nav {
|
|
1191
1305
|
@apply bg-sidebar text-sidebar-foreground;
|
|
1192
1306
|
}
|
|
1193
1307
|
|
|
1194
|
-
.sidebar nav > header,
|
|
1195
|
-
.sidebar nav > footer {
|
|
1308
|
+
.sidebar > nav > header,
|
|
1309
|
+
.sidebar > nav > footer {
|
|
1196
1310
|
@apply gap-2 p-2 [--radius:var(--radius-xl)];
|
|
1197
1311
|
}
|
|
1198
1312
|
|
|
1199
|
-
.sidebar nav > section {
|
|
1313
|
+
.sidebar > nav > section {
|
|
1200
1314
|
@apply gap-2 [--radius:var(--radius-xl)];
|
|
1201
1315
|
}
|
|
1202
1316
|
|
|
1203
|
-
.sidebar nav [role=separator] {
|
|
1317
|
+
.sidebar > nav [role=separator] {
|
|
1204
1318
|
@apply border-sidebar-border mx-2;
|
|
1205
1319
|
}
|
|
1206
1320
|
|
|
1207
|
-
.sidebar nav > section > [role=group] {
|
|
1321
|
+
.sidebar > nav > section > [role=group] {
|
|
1208
1322
|
@apply p-2;
|
|
1209
1323
|
}
|
|
1210
1324
|
|
|
1211
|
-
.sidebar nav h3 {
|
|
1325
|
+
.sidebar > nav h3 {
|
|
1212
1326
|
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-xl px-3 text-xs font-medium focus-visible:ring-3 [&>svg]:size-4 transition-[margin,opacity] duration-200 ease-linear;
|
|
1213
1327
|
}
|
|
1214
1328
|
|
|
1215
|
-
.sidebar nav > section > [role=group] > ul {
|
|
1329
|
+
.sidebar > nav > section > [role=group] > ul {
|
|
1216
1330
|
@apply gap-0.5;
|
|
1217
1331
|
}
|
|
1218
1332
|
|
|
1219
|
-
.sidebar nav > section > [role=group] {
|
|
1333
|
+
.sidebar > nav > section > [role=group] {
|
|
1220
1334
|
@apply text-sm;
|
|
1221
1335
|
}
|
|
1222
1336
|
|
|
1223
|
-
.sidebar nav li > :is(a, button),
|
|
1224
|
-
.sidebar nav li > details > summary {
|
|
1337
|
+
.sidebar > nav li > :is(a, button),
|
|
1338
|
+
.sidebar > nav li > details > summary {
|
|
1225
1339
|
@apply ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground gap-2 rounded-xl px-3 py-2 text-sm duration-200 focus-visible:ring-3 whitespace-nowrap has-[>svg:first-child]:ps-2.5 has-[>svg:last-child]:pe-2.5 text-left focus-visible:outline-hidden data-[open]:hover:bg-sidebar-accent data-[open]:hover:text-sidebar-accent-foreground [&>svg]:shrink-0 [&>svg]:size-4;
|
|
1226
1340
|
}
|
|
1227
1341
|
|
|
1228
|
-
.sidebar nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1229
|
-
.sidebar nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1342
|
+
.sidebar > nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1343
|
+
.sidebar > nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1230
1344
|
@apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
|
|
1231
1345
|
}
|
|
1232
1346
|
|
|
1233
|
-
.sidebar nav li > :is(a, button):not([data-variant]),
|
|
1234
|
-
.sidebar nav li > details > summary:not([data-variant]),
|
|
1235
|
-
.sidebar nav li > :is(a, button)[data-variant=default],
|
|
1236
|
-
.sidebar nav li > details > summary[data-variant=default] {
|
|
1347
|
+
.sidebar > nav li > :is(a, button):not([data-variant]),
|
|
1348
|
+
.sidebar > nav li > details > summary:not([data-variant]),
|
|
1349
|
+
.sidebar > nav li > :is(a, button)[data-variant=default],
|
|
1350
|
+
.sidebar > nav li > details > summary[data-variant=default] {
|
|
1237
1351
|
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1238
1352
|
}
|
|
1239
1353
|
|
|
1240
|
-
.sidebar nav li > :is(a, button)[data-variant=outline],
|
|
1241
|
-
.sidebar nav li > details > summary[data-variant=outline] {
|
|
1354
|
+
.sidebar > nav li > :is(a, button)[data-variant=outline],
|
|
1355
|
+
.sidebar > nav li > details > summary[data-variant=outline] {
|
|
1242
1356
|
@apply bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-accent)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1243
1357
|
}
|
|
1244
1358
|
|
|
1245
|
-
.sidebar nav li > :is(a, button):not([data-size]),
|
|
1246
|
-
.sidebar nav li > details > summary:not([data-size]),
|
|
1247
|
-
.sidebar nav li > :is(a, button)[data-size=default],
|
|
1248
|
-
.sidebar nav li > details > summary[data-size=default] {
|
|
1359
|
+
.sidebar > nav li > :is(a, button):not([data-size]),
|
|
1360
|
+
.sidebar > nav li > details > summary:not([data-size]),
|
|
1361
|
+
.sidebar > nav li > :is(a, button)[data-size=default],
|
|
1362
|
+
.sidebar > nav li > details > summary[data-size=default] {
|
|
1249
1363
|
@apply h-8 text-sm;
|
|
1250
1364
|
}
|
|
1251
1365
|
|
|
1252
|
-
.sidebar nav li > :is(a, button)[data-size=sm],
|
|
1253
|
-
.sidebar nav li > details > summary[data-size=sm] {
|
|
1366
|
+
.sidebar > nav li > :is(a, button)[data-size=sm],
|
|
1367
|
+
.sidebar > nav li > details > summary[data-size=sm] {
|
|
1254
1368
|
@apply h-7 text-xs;
|
|
1255
1369
|
}
|
|
1256
1370
|
|
|
1257
|
-
.sidebar nav li > :is(a, button)[data-size=lg],
|
|
1258
|
-
.sidebar nav li > details > summary[data-size=lg] {
|
|
1371
|
+
.sidebar > nav li > :is(a, button)[data-size=lg],
|
|
1372
|
+
.sidebar > nav li > details > summary[data-size=lg] {
|
|
1259
1373
|
@apply h-12 px-3 text-sm;
|
|
1260
1374
|
}
|
|
1261
1375
|
|
|
1262
|
-
.sidebar nav li > details > summary::after {
|
|
1376
|
+
.sidebar > nav li > details > summary::after {
|
|
1263
1377
|
@apply size-4;
|
|
1264
1378
|
}
|
|
1265
1379
|
|
|
1266
|
-
.sidebar nav li > details::details-content {
|
|
1380
|
+
.sidebar > nav li > details::details-content {
|
|
1267
1381
|
@apply px-3.5;
|
|
1268
1382
|
}
|
|
1269
1383
|
|
|
1270
|
-
.sidebar nav ul ul {
|
|
1384
|
+
.sidebar > nav ul ul {
|
|
1271
1385
|
@apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
|
|
1272
1386
|
}
|
|
1273
1387
|
|
|
1274
|
-
.sidebar nav ul ul > li > :is(a, button),
|
|
1275
|
-
.sidebar nav ul ul > li > details > summary {
|
|
1388
|
+
.sidebar > nav ul ul > li > :is(a, button),
|
|
1389
|
+
.sidebar > nav ul ul > li > details > summary {
|
|
1276
1390
|
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground h-7 gap-2 rounded-xl px-3 text-sm focus-visible:ring-3 [&>svg]:size-4;
|
|
1277
1391
|
}
|
|
1278
1392
|
/* Progress */
|
|
@@ -1329,18 +1443,34 @@
|
|
|
1329
1443
|
|
|
1330
1444
|
/* Tooltip */
|
|
1331
1445
|
[data-tooltip]::before {
|
|
1332
|
-
@apply bg-foreground text-background
|
|
1446
|
+
@apply bg-foreground text-background rounded-xl px-3 py-1.5 text-xs;
|
|
1333
1447
|
}
|
|
1334
1448
|
|
|
1335
1449
|
[data-tooltip][data-arrow]::after {
|
|
1336
|
-
@apply bg-foreground absolute z-[60] size-2.5 rotate-45 rounded-[2px]
|
|
1450
|
+
@apply bg-foreground absolute z-[60] size-2.5 rotate-45 rounded-[2px];
|
|
1337
1451
|
}
|
|
1338
1452
|
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1453
|
+
[data-tooltip][data-arrow][data-side='left']::after {
|
|
1454
|
+
@apply translate-x-[-1.5px];
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
[data-tooltip][data-arrow][data-side='right']::after {
|
|
1458
|
+
@apply translate-x-[1.5px];
|
|
1342
1459
|
}
|
|
1343
1460
|
|
|
1461
|
+
/* Toast */
|
|
1462
|
+
.toast {
|
|
1463
|
+
@apply bg-popover text-popover-foreground border shadow-lg rounded-2xl;
|
|
1464
|
+
}
|
|
1465
|
+
.toast > .toast-content { @apply gap-3 p-4; }
|
|
1466
|
+
.toast > .toast-content > svg { @apply size-4; }
|
|
1467
|
+
.toast > .toast-content > section { @apply gap-1; }
|
|
1468
|
+
.toast > .toast-content > section > h2 { @apply text-sm font-medium; }
|
|
1469
|
+
.toast > .toast-content > section > p { @apply text-sm text-muted-foreground; }
|
|
1470
|
+
.toast > .toast-content > footer { @apply gap-3; }
|
|
1471
|
+
.toast > .toast-content > footer > .btn[data-size='icon-sm'] { @apply text-muted-foreground hover:text-foreground; }
|
|
1472
|
+
.toast[data-category='error'] > .toast-content > svg { @apply text-destructive; }
|
|
1473
|
+
|
|
1344
1474
|
/* Slider */
|
|
1345
1475
|
.field > input[type='range'],
|
|
1346
1476
|
.input[type='range'] {
|
|
@@ -1367,15 +1497,286 @@
|
|
|
1367
1497
|
}
|
|
1368
1498
|
|
|
1369
1499
|
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
1370
|
-
@apply ring-black/10
|
|
1500
|
+
@apply ring-black/10 ring-1 size-4 rounded-2xl bg-white shadow-md transition-[color,box-shadow] duration-200 -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)];
|
|
1371
1501
|
}
|
|
1372
1502
|
|
|
1373
1503
|
:is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
1374
|
-
@apply ring-black/10
|
|
1504
|
+
@apply ring-black/10 ring-1 size-4 rounded-2xl bg-white shadow-md transition-[color,box-shadow] duration-200;
|
|
1375
1505
|
}
|
|
1376
1506
|
|
|
1377
1507
|
:is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
1378
|
-
@apply ring-black/10
|
|
1508
|
+
@apply ring-black/10 ring-1 size-4 rounded-2xl bg-white shadow-md transition-[color,box-shadow] duration-200;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
/* States go before the thumb pseudo-element so they still apply with native CSS nesting. */
|
|
1512
|
+
html:not(.dark) :is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
1513
|
+
@apply bg-clip-padding;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
html:not(.dark) :is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
1517
|
+
@apply bg-clip-padding;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
html:not(.dark) :is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
1521
|
+
@apply bg-clip-padding;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
@media (hover: hover) {
|
|
1525
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-webkit-slider-thumb {
|
|
1526
|
+
@apply ring-4 ring-ring/30;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-moz-range-thumb {
|
|
1530
|
+
@apply ring-4 ring-ring/30;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-ms-thumb {
|
|
1534
|
+
@apply ring-4 ring-ring/30;
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-webkit-slider-thumb {
|
|
1539
|
+
@apply ring-4 ring-ring/30 outline-hidden;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-moz-range-thumb {
|
|
1543
|
+
@apply ring-4 ring-ring/30 outline-hidden;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-ms-thumb {
|
|
1547
|
+
@apply ring-4 ring-ring/30 outline-hidden;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
/* Bubble */
|
|
1552
|
+
.bubble-group {
|
|
1553
|
+
@apply gap-2;
|
|
1554
|
+
}
|
|
1555
|
+
.bubble {
|
|
1556
|
+
@apply gap-1 max-w-[80%];
|
|
1557
|
+
}
|
|
1558
|
+
.bubble[data-align='end'],
|
|
1559
|
+
.bubble[data-align='end'] > :first-child {
|
|
1560
|
+
@apply self-end;
|
|
1561
|
+
}
|
|
1562
|
+
.bubble > :first-child {
|
|
1563
|
+
@apply rounded-3xl border border-transparent px-3 py-2.5 text-sm leading-relaxed;
|
|
1564
|
+
}
|
|
1565
|
+
.bubble > :is(a, button):first-child {
|
|
1566
|
+
@apply focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30;
|
|
1567
|
+
}
|
|
1568
|
+
.bubble:not([data-variant]) > :first-child,
|
|
1569
|
+
.bubble[data-variant='default'] > :first-child {
|
|
1570
|
+
@apply bg-primary text-primary-foreground;
|
|
1571
|
+
}
|
|
1572
|
+
.bubble:not([data-variant]) > :is(a, button):first-child:hover,
|
|
1573
|
+
.bubble[data-variant='default'] > :is(a, button):first-child:hover {
|
|
1574
|
+
@apply bg-primary/80;
|
|
1575
|
+
}
|
|
1576
|
+
.bubble[data-variant='secondary'] > :first-child {
|
|
1577
|
+
@apply bg-secondary text-secondary-foreground;
|
|
1578
|
+
}
|
|
1579
|
+
.bubble[data-variant='secondary'] > :is(a, button):first-child:hover {
|
|
1580
|
+
@apply bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)];
|
|
1581
|
+
}
|
|
1582
|
+
.bubble[data-variant='muted'] > :first-child {
|
|
1583
|
+
@apply bg-muted;
|
|
1584
|
+
}
|
|
1585
|
+
.bubble[data-variant='muted'] > :is(a, button):first-child:hover {
|
|
1586
|
+
@apply bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)];
|
|
1587
|
+
}
|
|
1588
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
1589
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_15%,var(--background))] text-foreground;
|
|
1590
|
+
}
|
|
1591
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
1592
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_25%,var(--background))];
|
|
1593
|
+
}
|
|
1594
|
+
/* Keep a tint in browsers without relative colors. */
|
|
1595
|
+
@supports (color: oklch(from currentColor l c h)) {
|
|
1596
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
1597
|
+
@apply bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)];
|
|
1598
|
+
}
|
|
1599
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
1600
|
+
@apply bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)];
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
.bubble[data-variant='outline'] > :first-child {
|
|
1604
|
+
@apply bg-background border-border;
|
|
1605
|
+
}
|
|
1606
|
+
.bubble[data-variant='outline'] > :is(a, button):first-child:hover {
|
|
1607
|
+
@apply bg-muted text-foreground dark:bg-input/30;
|
|
1608
|
+
}
|
|
1609
|
+
.bubble[data-variant='ghost'] {
|
|
1610
|
+
@apply max-w-full border-none;
|
|
1611
|
+
}
|
|
1612
|
+
.bubble[data-variant='ghost'] > :first-child {
|
|
1613
|
+
@apply rounded-none bg-transparent p-0;
|
|
1614
|
+
}
|
|
1615
|
+
.bubble[data-variant='ghost'] > :is(a, button):first-child:hover {
|
|
1616
|
+
@apply bg-muted text-foreground dark:bg-muted/50;
|
|
1617
|
+
}
|
|
1618
|
+
.bubble[data-variant='destructive'] > :first-child {
|
|
1619
|
+
@apply bg-destructive/10 dark:bg-destructive/20 text-destructive;
|
|
1620
|
+
}
|
|
1621
|
+
.bubble[data-variant='destructive'] > :is(a, button):first-child:hover {
|
|
1622
|
+
@apply bg-destructive/20 dark:bg-destructive/30;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
.bubble > div:not(:first-child) {
|
|
1626
|
+
@apply rounded-full ring-3 ring-card bg-muted gap-1 px-1.5 py-0.5 has-[button]:p-0 text-sm;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
.bubble > div:not(:first-child):not([data-side='top']) {
|
|
1630
|
+
@apply bottom-0 translate-y-3/4;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
.bubble > div:not(:first-child)[data-side='top'] {
|
|
1634
|
+
@apply top-0 -translate-y-3/4;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
.bubble > div:not(:first-child):not([data-align='start']) {
|
|
1638
|
+
@apply end-3;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
.bubble > div:not(:first-child)[data-align='start'] {
|
|
1642
|
+
@apply start-3;
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
/* Attachment */
|
|
1646
|
+
.attachment {
|
|
1647
|
+
@apply rounded-2xl w-fit has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-ring/30 border bg-card text-card-foreground;
|
|
1648
|
+
}
|
|
1649
|
+
.attachment:has(> a, > button:enabled):hover {
|
|
1650
|
+
@apply bg-muted/50;
|
|
1651
|
+
}
|
|
1652
|
+
.attachment[data-state='error'] {
|
|
1653
|
+
@apply border-destructive/30;
|
|
1654
|
+
}
|
|
1655
|
+
.attachment[data-state='idle'] {
|
|
1656
|
+
@apply border-dashed;
|
|
1657
|
+
}
|
|
1658
|
+
.attachment:not([data-orientation='vertical']) {
|
|
1659
|
+
@apply min-w-40;
|
|
1660
|
+
}
|
|
1661
|
+
.attachment[data-orientation='vertical'] {
|
|
1662
|
+
@apply w-24 has-[>section]:w-30;
|
|
1663
|
+
}
|
|
1664
|
+
.attachment:not([data-size]),
|
|
1665
|
+
.attachment[data-size='default'] {
|
|
1666
|
+
@apply gap-2 text-sm;
|
|
1667
|
+
}
|
|
1668
|
+
.attachment:not([data-size]):has(> section),
|
|
1669
|
+
.attachment[data-size='default']:has(> section) {
|
|
1670
|
+
@apply px-2.5 py-2;
|
|
1671
|
+
}
|
|
1672
|
+
.attachment:not([data-size]):has(> figure),
|
|
1673
|
+
.attachment[data-size='default']:has(> figure) {
|
|
1674
|
+
@apply p-2;
|
|
1675
|
+
}
|
|
1676
|
+
.attachment[data-size='sm'] {
|
|
1677
|
+
@apply gap-2.5 text-xs;
|
|
1678
|
+
}
|
|
1679
|
+
.attachment[data-size='sm']:has(> section) {
|
|
1680
|
+
@apply px-2 py-1.5;
|
|
1681
|
+
}
|
|
1682
|
+
.attachment[data-size='sm']:has(> figure) {
|
|
1683
|
+
@apply p-1.5;
|
|
1684
|
+
}
|
|
1685
|
+
.attachment[data-size='xs'] {
|
|
1686
|
+
@apply gap-1.5 text-xs rounded-xl;
|
|
1687
|
+
}
|
|
1688
|
+
.attachment[data-size='xs']:has(> section) {
|
|
1689
|
+
@apply px-1.5 py-1;
|
|
1690
|
+
}
|
|
1691
|
+
.attachment[data-size='xs']:has(> figure) {
|
|
1692
|
+
@apply p-1;
|
|
1693
|
+
}
|
|
1694
|
+
.attachment > figure {
|
|
1695
|
+
@apply bg-muted text-foreground w-10 rounded-lg;
|
|
1696
|
+
}
|
|
1697
|
+
.attachment[data-size='sm'] > figure {
|
|
1698
|
+
@apply w-8;
|
|
1699
|
+
}
|
|
1700
|
+
.attachment[data-size='xs'] > figure {
|
|
1701
|
+
@apply w-7 rounded-md;
|
|
1702
|
+
}
|
|
1703
|
+
.attachment > figure > svg {
|
|
1704
|
+
@apply size-4;
|
|
1705
|
+
}
|
|
1706
|
+
.attachment[data-size='xs'] > figure > svg {
|
|
1707
|
+
@apply size-3.5;
|
|
1708
|
+
}
|
|
1709
|
+
.attachment[data-orientation='vertical'] > figure {
|
|
1710
|
+
@apply w-full;
|
|
1711
|
+
}
|
|
1712
|
+
.attachment[data-orientation='vertical'] > figure > svg {
|
|
1713
|
+
@apply size-6;
|
|
1714
|
+
}
|
|
1715
|
+
.attachment:is([data-state='uploading'], [data-state='processing'], [data-state='error']) > figure:has(> img) {
|
|
1716
|
+
@apply opacity-60;
|
|
1717
|
+
}
|
|
1718
|
+
.attachment[data-state='error'] > figure {
|
|
1719
|
+
@apply bg-destructive/10 text-destructive;
|
|
1720
|
+
}
|
|
1721
|
+
.attachment > section {
|
|
1722
|
+
@apply leading-tight;
|
|
1723
|
+
}
|
|
1724
|
+
.attachment[data-orientation='vertical'] > section {
|
|
1725
|
+
@apply px-1;
|
|
1726
|
+
}
|
|
1727
|
+
.attachment > section > :first-child {
|
|
1728
|
+
@apply font-medium;
|
|
1379
1729
|
}
|
|
1730
|
+
.attachment > section > :not(:first-child) {
|
|
1731
|
+
@apply mt-0.5 text-xs text-muted-foreground;
|
|
1732
|
+
}
|
|
1733
|
+
.attachment[data-state='error'] > section > :not(:first-child) {
|
|
1734
|
+
@apply text-destructive/80;
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
.attachment[data-orientation='vertical'] > div {
|
|
1738
|
+
@apply top-3 end-3 gap-1;
|
|
1739
|
+
}
|
|
1740
|
+
.attachment-group {
|
|
1741
|
+
@apply gap-3 py-1;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
/* Code Block */
|
|
1746
|
+
.code-block {
|
|
1747
|
+
@apply rounded-2xl text-sm data-[size=sm]:text-xs has-[>pre:focus-visible]:ring-3 has-[>pre:focus-visible]:ring-ring/30 data-[size=sm]:rounded-xl;
|
|
1748
|
+
--_code-padding: calc(var(--spacing, 0.25rem) * 4);
|
|
1749
|
+
}
|
|
1750
|
+
.code-block:not([data-variant='destructive']) { @apply bg-muted text-foreground ring-1 ring-foreground/5 dark:ring-foreground/10; }
|
|
1751
|
+
.code-block[data-variant='destructive'] { @apply bg-destructive/5 text-destructive ring-1 ring-destructive/15 dark:bg-destructive/10 dark:ring-destructive/20; }
|
|
1752
|
+
.code-block[data-size='sm'] { --_code-padding: calc(var(--spacing, 0.25rem) * 3); }
|
|
1753
|
+
.code-block > header { @apply gap-2 text-muted-foreground; padding: var(--_code-padding) var(--_code-padding) 0; }
|
|
1754
|
+
.code-block > footer { @apply gap-2 text-muted-foreground; padding: 0 var(--_code-padding) var(--_code-padding); }
|
|
1755
|
+
.code-block > header > :first-child:not(div) { @apply font-sans text-sm font-medium text-foreground [&_svg]:me-1.5 [&_svg:not([class*='size-'])]:size-4; }
|
|
1756
|
+
.code-block[data-size='sm'] > header > :first-child:not(div) { @apply text-xs [&_svg:not([class*='size-'])]:size-3.5; }
|
|
1757
|
+
.code-block[data-variant='destructive'] > :is(header, footer),
|
|
1758
|
+
.code-block[data-variant='destructive'] > header > :first-child:not(div) { @apply text-destructive; }
|
|
1759
|
+
.code-block > header > div { @apply -my-1 -me-1.5 gap-1; }
|
|
1760
|
+
.code-block > div { @apply top-3 end-3 gap-1; }
|
|
1761
|
+
.code-block[data-size='sm'] > div { @apply top-2 end-2; }
|
|
1762
|
+
.code-block > div > button { @apply bg-background ring-1 ring-foreground/10; }
|
|
1763
|
+
.code-block > pre { @apply leading-relaxed; padding: var(--_code-padding); }
|
|
1764
|
+
.code-block:has(> header) > pre { @apply pt-2; }
|
|
1765
|
+
.code-block:has(> footer) > pre { @apply pb-2; }
|
|
1766
|
+
.code-block[data-size='sm']:has(> header) > pre { @apply pt-1.5; }
|
|
1767
|
+
.code-block > pre > code > span { margin-inline: calc(-1 * var(--_code-padding)); padding-inline: var(--_code-padding); }
|
|
1768
|
+
.code-block > pre > code > span::before { @apply text-end text-muted-foreground; }
|
|
1769
|
+
.code-block > header > div > button.btn[data-variant='ghost'],
|
|
1770
|
+
.code-block > div > button.btn[data-variant='ghost'] { @apply hover:bg-foreground/5 dark:hover:bg-foreground/10; }
|
|
1771
|
+
|
|
1772
|
+
/* Input OTP */
|
|
1773
|
+
.input-otp > div { @apply gap-2; }
|
|
1774
|
+
.input-otp > div > div { @apply rounded-2xl; }
|
|
1775
|
+
.input-otp > div > div > span { @apply bg-input/50 border-input data-[active]:border-ring data-[active]:ring-ring/30 size-8 border-y border-e text-sm transition-[color,box-shadow] duration-200 outline-none first:rounded-s-2xl first:border-s last:rounded-e-2xl data-[active]:ring-3; }
|
|
1776
|
+
.input-otp > div > svg { @apply size-4 shrink-0; }
|
|
1777
|
+
.input-otp > div > div > span[data-caret]::after { @apply h-4 w-px bg-foreground; }
|
|
1778
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div > span { @apply border-destructive; }
|
|
1779
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div { @apply ring-3 ring-destructive/20 dark:ring-destructive/40; }
|
|
1780
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div > span[data-active] { @apply border-destructive ring-destructive/20 dark:ring-destructive/40; }
|
|
1380
1781
|
|
|
1381
1782
|
}
|