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/vega.css
CHANGED
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
|
|
24
24
|
.btn:not([data-size]),
|
|
25
25
|
.btn[data-size='default'] {
|
|
26
|
-
@apply h-9 gap-1.5 px-2.5 has-[[data-icon='inline-end']]:
|
|
26
|
+
@apply h-9 gap-1.5 px-2.5 has-[[data-icon='inline-end']]:pe-2 has-[[data-icon='inline-start']]:ps-2;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.btn[data-size='xs'] {
|
|
30
|
-
@apply h-6 gap-1 px-2 text-xs rounded-[min(var(--radius-md),8px)] [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:
|
|
30
|
+
@apply h-6 gap-1 px-2 text-xs rounded-[min(var(--radius-md),8px)] [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:pe-1.5 has-[[data-icon='inline-start']]:ps-1.5;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.btn[data-size='sm'] {
|
|
34
|
-
@apply h-8 gap-1 px-2.5 rounded-[min(var(--radius-md),10px)] has-[[data-icon='inline-end']]:
|
|
34
|
+
@apply h-8 gap-1 px-2.5 rounded-[min(var(--radius-md),10px)] has-[[data-icon='inline-end']]:pe-1.5 has-[[data-icon='inline-start']]:ps-1.5;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.btn[data-size='lg'] {
|
|
38
|
-
@apply h-10 gap-1.5 px-2.5 has-[[data-icon='inline-end']]:
|
|
38
|
+
@apply h-10 gap-1.5 px-2.5 has-[[data-icon='inline-end']]:pe-2 has-[[data-icon='inline-start']]:ps-2;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.btn[data-size='icon'] {
|
|
@@ -79,6 +79,13 @@
|
|
|
79
79
|
@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;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
.btn:has(> input:checked) {
|
|
83
|
+
@apply bg-muted text-foreground hover:bg-muted dark:bg-muted dark:hover:bg-muted;
|
|
84
|
+
}
|
|
85
|
+
.btn:has(> input:focus-visible) {
|
|
86
|
+
@apply border-ring ring-ring/50 ring-[3px] dark:border-ring;
|
|
87
|
+
}
|
|
88
|
+
|
|
82
89
|
/* Button Group */
|
|
83
90
|
.button-group {
|
|
84
91
|
@apply has-[>.button-group]:gap-2;
|
|
@@ -98,7 +105,7 @@
|
|
|
98
105
|
}
|
|
99
106
|
}
|
|
100
107
|
|
|
101
|
-
.button-group > :is(span, label, output) {
|
|
108
|
+
.button-group > :is(span, label, output):not(.btn) {
|
|
102
109
|
@apply bg-muted gap-2 rounded-md border px-2.5 text-sm font-medium shadow-xs [&_svg:not([class*='size-'])]:size-4;
|
|
103
110
|
}
|
|
104
111
|
|
|
@@ -205,7 +212,7 @@
|
|
|
205
212
|
/* Native Select */
|
|
206
213
|
.field > select,
|
|
207
214
|
select.select {
|
|
208
|
-
@apply border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 w-fit rounded-md border bg-transparent py-1 ps-2.5 pe-8 text-sm shadow-xs transition-[color,box-shadow] focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-8;
|
|
215
|
+
@apply border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 w-fit rounded-md border bg-transparent py-1 ps-2.5 pe-8 text-base md:text-sm shadow-xs transition-[color,box-shadow] focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-8;
|
|
209
216
|
@apply bg-[image:var(--chevron-down-icon-50)] bg-no-repeat bg-position-[center_right_0.625rem] bg-size-[1rem];
|
|
210
217
|
}
|
|
211
218
|
|
|
@@ -361,7 +368,7 @@
|
|
|
361
368
|
}
|
|
362
369
|
|
|
363
370
|
.command > header input {
|
|
364
|
-
@apply ps-1.5 text-sm placeholder:text-muted-foreground;
|
|
371
|
+
@apply ps-1.5 text-base md:text-sm placeholder:text-muted-foreground;
|
|
365
372
|
}
|
|
366
373
|
|
|
367
374
|
.command [role='menu'] {
|
|
@@ -403,7 +410,7 @@
|
|
|
403
410
|
|
|
404
411
|
/* Combobox */
|
|
405
412
|
.combobox > input[role='combobox'] {
|
|
406
|
-
@apply border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-md border bg-transparent py-2 ps-2.5 pe-8 text-sm shadow-xs transition-[color,box-shadow] focus-visible:ring-3 aria-invalid:ring-3;
|
|
413
|
+
@apply border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-md border bg-transparent py-2 ps-2.5 pe-8 text-base md:text-sm shadow-xs transition-[color,box-shadow] focus-visible:ring-3 aria-invalid:ring-3;
|
|
407
414
|
}
|
|
408
415
|
|
|
409
416
|
.combobox > svg,
|
|
@@ -452,6 +459,10 @@
|
|
|
452
459
|
@apply dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50 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-9 gap-1.5 rounded-md border bg-transparent bg-clip-padding px-1.5 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:ring-3 has-[[aria-invalid=true]]:ring-3;
|
|
453
460
|
}
|
|
454
461
|
|
|
462
|
+
.combobox-chips > input[role='combobox'] {
|
|
463
|
+
@apply text-base md:text-sm;
|
|
464
|
+
}
|
|
465
|
+
|
|
455
466
|
.combobox-chip {
|
|
456
467
|
@apply bg-muted text-foreground h-5.5 gap-1 rounded-sm px-1.5 text-xs font-medium has-[>.combobox-chip-remove]:pe-0;
|
|
457
468
|
}
|
|
@@ -628,6 +639,52 @@
|
|
|
628
639
|
@apply text-muted-foreground text-sm;
|
|
629
640
|
}
|
|
630
641
|
|
|
642
|
+
/* Sheet */
|
|
643
|
+
.sheet::backdrop {
|
|
644
|
+
@apply bg-black/10 supports-backdrop-filter:backdrop-blur-xs;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.sheet > * {
|
|
648
|
+
@apply bg-popover text-popover-foreground gap-4 bg-clip-padding text-sm shadow-lg;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.sheet[data-side='bottom'] > * {
|
|
652
|
+
@apply border-t;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.sheet[data-side='top'] > * {
|
|
656
|
+
@apply border-b;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.sheet[data-side='left'] > * {
|
|
660
|
+
@apply border-r;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.sheet:not([data-side]) > *,
|
|
664
|
+
.sheet[data-side='right'] > * {
|
|
665
|
+
@apply border-l;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.sheet > * > header {
|
|
669
|
+
@apply gap-1.5 p-4;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.sheet > * > footer {
|
|
673
|
+
@apply gap-2 p-4;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.sheet > * > header > h2 {
|
|
677
|
+
@apply text-foreground font-medium;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.sheet > * > header > p {
|
|
681
|
+
@apply text-muted-foreground text-sm;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.sheet > * > button:last-child {
|
|
685
|
+
@apply top-4 end-4;
|
|
686
|
+
}
|
|
687
|
+
|
|
631
688
|
/* Dropdown Menu */
|
|
632
689
|
.dropdown-menu > [data-popover] {
|
|
633
690
|
@apply bg-popover text-popover-foreground ring-foreground/10 gap-0 overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md ring-1 duration-100;
|
|
@@ -701,6 +758,17 @@
|
|
|
701
758
|
@apply text-muted-foreground;
|
|
702
759
|
}
|
|
703
760
|
|
|
761
|
+
/* Carousel */
|
|
762
|
+
.carousel > ul > li {
|
|
763
|
+
@apply p-1;
|
|
764
|
+
}
|
|
765
|
+
.carousel > button.btn {
|
|
766
|
+
@apply rounded-full;
|
|
767
|
+
}
|
|
768
|
+
.carousel > ul:focus-visible {
|
|
769
|
+
@apply outline-2 outline-ring outline-offset-2;
|
|
770
|
+
}
|
|
771
|
+
|
|
704
772
|
/* Card */
|
|
705
773
|
.card {
|
|
706
774
|
@apply ring-foreground/10 bg-card text-card-foreground overflow-hidden rounded-xl text-sm shadow-xs ring-1 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-t-xl [&>img:last-child]:rounded-b-xl;
|
|
@@ -950,7 +1018,7 @@
|
|
|
950
1018
|
@apply opacity-50;
|
|
951
1019
|
}
|
|
952
1020
|
.input-group > :is(input, select, [data-control]) {
|
|
953
|
-
@apply px-2.5 py-1 text-sm;
|
|
1021
|
+
@apply px-2.5 py-1 text-base md:text-sm;
|
|
954
1022
|
}
|
|
955
1023
|
|
|
956
1024
|
.input-group:not([data-orientation='vertical']):has(> :is([data-align='start'], [data-align='inline-start'])) > :is(input, select, [data-control]) {
|
|
@@ -962,7 +1030,7 @@
|
|
|
962
1030
|
}
|
|
963
1031
|
|
|
964
1032
|
.input-group > textarea {
|
|
965
|
-
@apply px-2.5 py-2 text-sm;
|
|
1033
|
+
@apply px-2.5 py-2 text-base md:text-sm;
|
|
966
1034
|
}
|
|
967
1035
|
|
|
968
1036
|
.input-group > :is(span, [role='group'], header, footer),
|
|
@@ -1080,6 +1148,44 @@
|
|
|
1080
1148
|
@apply gap-4 text-sm;
|
|
1081
1149
|
}
|
|
1082
1150
|
|
|
1151
|
+
/* Message */
|
|
1152
|
+
.message-group { @apply gap-2; }
|
|
1153
|
+
.message { @apply gap-2 text-sm; }
|
|
1154
|
+
.message > div:last-child { @apply gap-2.5; }
|
|
1155
|
+
.message > div:last-child > :is(header, footer) {
|
|
1156
|
+
@apply px-3 text-xs font-medium text-muted-foreground;
|
|
1157
|
+
}
|
|
1158
|
+
.message:has(.bubble[data-variant='ghost']) > div:last-child > :is(header, footer) { @apply px-0; }
|
|
1159
|
+
.message:has(> div:last-child > footer) > .avatar { @apply -translate-y-8; }
|
|
1160
|
+
|
|
1161
|
+
/* Trace */
|
|
1162
|
+
.trace { @apply gap-2; }
|
|
1163
|
+
.trace-line { @apply gap-2 text-sm text-muted-foreground; }
|
|
1164
|
+
.trace-line > svg { @apply size-4; }
|
|
1165
|
+
.trace-line > small { @apply [font-size:inherit] text-muted-foreground/70 tabular-nums; }
|
|
1166
|
+
:is(a, button, summary).trace-line {
|
|
1167
|
+
@apply rounded-md transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50;
|
|
1168
|
+
}
|
|
1169
|
+
summary.trace-line + div {
|
|
1170
|
+
@apply mt-2 mb-1 ms-[calc(--spacing(2)-1px)] border-s ps-4 pe-1 text-muted-foreground leading-relaxed;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
/* Marker */
|
|
1174
|
+
.marker {
|
|
1175
|
+
@apply min-h-4 gap-2 text-sm text-muted-foreground text-start [&_svg:not([class*='size-'])]:size-4;
|
|
1176
|
+
}
|
|
1177
|
+
.marker[data-variant='border'] {
|
|
1178
|
+
@apply border-b border-border pb-2;
|
|
1179
|
+
}
|
|
1180
|
+
.marker[data-variant='separator']::before,
|
|
1181
|
+
.marker[data-variant='separator']::after {
|
|
1182
|
+
@apply border-border;
|
|
1183
|
+
}
|
|
1184
|
+
.marker[data-variant='separator']::before { @apply me-1; }
|
|
1185
|
+
.marker[data-variant='separator']::after { @apply ms-1; }
|
|
1186
|
+
a.marker, .marker a { @apply underline underline-offset-3 hover:text-foreground; }
|
|
1187
|
+
button.marker { @apply hover:text-foreground; }
|
|
1188
|
+
|
|
1083
1189
|
/* Item */
|
|
1084
1190
|
.item {
|
|
1085
1191
|
@apply rounded-md border text-sm;
|
|
@@ -1192,92 +1298,92 @@
|
|
|
1192
1298
|
}
|
|
1193
1299
|
|
|
1194
1300
|
/* Sidebar */
|
|
1195
|
-
.sidebar nav {
|
|
1301
|
+
.sidebar > nav {
|
|
1196
1302
|
@apply bg-sidebar text-sidebar-foreground;
|
|
1197
1303
|
}
|
|
1198
1304
|
|
|
1199
|
-
.sidebar nav > header,
|
|
1200
|
-
.sidebar nav > footer {
|
|
1305
|
+
.sidebar > nav > header,
|
|
1306
|
+
.sidebar > nav > footer {
|
|
1201
1307
|
@apply gap-2 p-2;
|
|
1202
1308
|
}
|
|
1203
1309
|
|
|
1204
|
-
.sidebar nav > section {
|
|
1310
|
+
.sidebar > nav > section {
|
|
1205
1311
|
@apply gap-2;
|
|
1206
1312
|
}
|
|
1207
1313
|
|
|
1208
|
-
.sidebar nav [role=separator] {
|
|
1314
|
+
.sidebar > nav [role=separator] {
|
|
1209
1315
|
@apply border-sidebar-border mx-2;
|
|
1210
1316
|
}
|
|
1211
1317
|
|
|
1212
|
-
.sidebar nav > section > [role=group] {
|
|
1318
|
+
.sidebar > nav > section > [role=group] {
|
|
1213
1319
|
@apply p-2;
|
|
1214
1320
|
}
|
|
1215
1321
|
|
|
1216
|
-
.sidebar nav h3 {
|
|
1322
|
+
.sidebar > nav h3 {
|
|
1217
1323
|
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs font-medium focus-visible:ring-2 [&>svg]:size-4 transition-[margin,opacity] duration-200 ease-linear;
|
|
1218
1324
|
}
|
|
1219
1325
|
|
|
1220
|
-
.sidebar nav > section > [role=group] > ul {
|
|
1326
|
+
.sidebar > nav > section > [role=group] > ul {
|
|
1221
1327
|
@apply gap-1;
|
|
1222
1328
|
}
|
|
1223
1329
|
|
|
1224
|
-
.sidebar nav > section > [role=group] {
|
|
1330
|
+
.sidebar > nav > section > [role=group] {
|
|
1225
1331
|
@apply text-sm;
|
|
1226
1332
|
}
|
|
1227
1333
|
|
|
1228
|
-
.sidebar nav li > :is(a, button),
|
|
1229
|
-
.sidebar nav li > details > summary {
|
|
1334
|
+
.sidebar > nav li > :is(a, button),
|
|
1335
|
+
.sidebar > nav li > details > summary {
|
|
1230
1336
|
@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-md p-2 text-sm focus-visible:ring-2 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;
|
|
1231
1337
|
}
|
|
1232
1338
|
|
|
1233
|
-
.sidebar nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1234
|
-
.sidebar nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1339
|
+
.sidebar > nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1340
|
+
.sidebar > nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1235
1341
|
@apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
|
|
1236
1342
|
}
|
|
1237
1343
|
|
|
1238
|
-
.sidebar nav li > :is(a, button):not([data-variant]),
|
|
1239
|
-
.sidebar nav li > details > summary:not([data-variant]),
|
|
1240
|
-
.sidebar nav li > :is(a, button)[data-variant=default],
|
|
1241
|
-
.sidebar nav li > details > summary[data-variant=default] {
|
|
1344
|
+
.sidebar > nav li > :is(a, button):not([data-variant]),
|
|
1345
|
+
.sidebar > nav li > details > summary:not([data-variant]),
|
|
1346
|
+
.sidebar > nav li > :is(a, button)[data-variant=default],
|
|
1347
|
+
.sidebar > nav li > details > summary[data-variant=default] {
|
|
1242
1348
|
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1243
1349
|
}
|
|
1244
1350
|
|
|
1245
|
-
.sidebar nav li > :is(a, button)[data-variant=outline],
|
|
1246
|
-
.sidebar nav li > details > summary[data-variant=outline] {
|
|
1351
|
+
.sidebar > nav li > :is(a, button)[data-variant=outline],
|
|
1352
|
+
.sidebar > nav li > details > summary[data-variant=outline] {
|
|
1247
1353
|
@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;
|
|
1248
1354
|
}
|
|
1249
1355
|
|
|
1250
|
-
.sidebar nav li > :is(a, button):not([data-size]),
|
|
1251
|
-
.sidebar nav li > details > summary:not([data-size]),
|
|
1252
|
-
.sidebar nav li > :is(a, button)[data-size=default],
|
|
1253
|
-
.sidebar nav li > details > summary[data-size=default] {
|
|
1356
|
+
.sidebar > nav li > :is(a, button):not([data-size]),
|
|
1357
|
+
.sidebar > nav li > details > summary:not([data-size]),
|
|
1358
|
+
.sidebar > nav li > :is(a, button)[data-size=default],
|
|
1359
|
+
.sidebar > nav li > details > summary[data-size=default] {
|
|
1254
1360
|
@apply h-8 text-sm;
|
|
1255
1361
|
}
|
|
1256
1362
|
|
|
1257
|
-
.sidebar nav li > :is(a, button)[data-size=sm],
|
|
1258
|
-
.sidebar nav li > details > summary[data-size=sm] {
|
|
1363
|
+
.sidebar > nav li > :is(a, button)[data-size=sm],
|
|
1364
|
+
.sidebar > nav li > details > summary[data-size=sm] {
|
|
1259
1365
|
@apply h-7 text-xs;
|
|
1260
1366
|
}
|
|
1261
1367
|
|
|
1262
|
-
.sidebar nav li > :is(a, button)[data-size=lg],
|
|
1263
|
-
.sidebar nav li > details > summary[data-size=lg] {
|
|
1368
|
+
.sidebar > nav li > :is(a, button)[data-size=lg],
|
|
1369
|
+
.sidebar > nav li > details > summary[data-size=lg] {
|
|
1264
1370
|
@apply h-12 text-sm;
|
|
1265
1371
|
}
|
|
1266
1372
|
|
|
1267
|
-
.sidebar nav li > details > summary::after {
|
|
1373
|
+
.sidebar > nav li > details > summary::after {
|
|
1268
1374
|
@apply size-4;
|
|
1269
1375
|
}
|
|
1270
1376
|
|
|
1271
|
-
.sidebar nav li > details::details-content {
|
|
1377
|
+
.sidebar > nav li > details::details-content {
|
|
1272
1378
|
@apply px-3.5;
|
|
1273
1379
|
}
|
|
1274
1380
|
|
|
1275
|
-
.sidebar nav ul ul {
|
|
1381
|
+
.sidebar > nav ul ul {
|
|
1276
1382
|
@apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
|
|
1277
1383
|
}
|
|
1278
1384
|
|
|
1279
|
-
.sidebar nav ul ul > li > :is(a, button),
|
|
1280
|
-
.sidebar nav ul ul > li > details > summary {
|
|
1385
|
+
.sidebar > nav ul ul > li > :is(a, button),
|
|
1386
|
+
.sidebar > nav ul ul > li > details > summary {
|
|
1281
1387
|
@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-md px-2 text-sm focus-visible:ring-2 [&>svg]:size-4;
|
|
1282
1388
|
}
|
|
1283
1389
|
/* Progress */
|
|
@@ -1334,7 +1440,7 @@
|
|
|
1334
1440
|
|
|
1335
1441
|
/* Tooltip */
|
|
1336
1442
|
[data-tooltip]::before {
|
|
1337
|
-
@apply bg-foreground text-background
|
|
1443
|
+
@apply bg-foreground text-background rounded-md px-3 py-1.5 text-xs;
|
|
1338
1444
|
}
|
|
1339
1445
|
|
|
1340
1446
|
[data-tooltip][data-arrow]::after {
|
|
@@ -1342,9 +1448,17 @@
|
|
|
1342
1448
|
}
|
|
1343
1449
|
|
|
1344
1450
|
/* Toast */
|
|
1345
|
-
.toast
|
|
1451
|
+
.toast {
|
|
1346
1452
|
@apply bg-popover text-popover-foreground border shadow-lg rounded-2xl;
|
|
1347
1453
|
}
|
|
1454
|
+
.toast > .toast-content { @apply gap-3 p-4; }
|
|
1455
|
+
.toast > .toast-content > svg { @apply size-4; }
|
|
1456
|
+
.toast > .toast-content > section { @apply gap-1; }
|
|
1457
|
+
.toast > .toast-content > section > h2 { @apply text-sm font-medium; }
|
|
1458
|
+
.toast > .toast-content > section > p { @apply text-sm text-muted-foreground; }
|
|
1459
|
+
.toast > .toast-content > footer { @apply gap-3; }
|
|
1460
|
+
.toast > .toast-content > footer > .btn[data-size='icon-sm'] { @apply text-muted-foreground hover:text-foreground; }
|
|
1461
|
+
.toast[data-category='error'] > .toast-content > svg { @apply text-destructive; }
|
|
1348
1462
|
|
|
1349
1463
|
/* Slider */
|
|
1350
1464
|
.field > input[type='range'],
|
|
@@ -1372,15 +1486,272 @@
|
|
|
1372
1486
|
}
|
|
1373
1487
|
|
|
1374
1488
|
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
1375
|
-
@apply border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow]
|
|
1489
|
+
@apply border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow] -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)];
|
|
1376
1490
|
}
|
|
1377
1491
|
|
|
1378
1492
|
:is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
1379
|
-
@apply border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow]
|
|
1493
|
+
@apply border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow];
|
|
1380
1494
|
}
|
|
1381
1495
|
|
|
1382
1496
|
:is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
1383
|
-
@apply border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow]
|
|
1497
|
+
@apply border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm transition-[color,box-shadow];
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
/* States go before the thumb pseudo-element so they still apply with native CSS nesting. */
|
|
1501
|
+
@media (hover: hover) {
|
|
1502
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-webkit-slider-thumb {
|
|
1503
|
+
@apply ring-4;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-moz-range-thumb {
|
|
1507
|
+
@apply ring-4;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-ms-thumb {
|
|
1511
|
+
@apply ring-4;
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-webkit-slider-thumb {
|
|
1516
|
+
@apply ring-4 outline-hidden;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-moz-range-thumb {
|
|
1520
|
+
@apply ring-4 outline-hidden;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-ms-thumb {
|
|
1524
|
+
@apply ring-4 outline-hidden;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
/* Bubble */
|
|
1529
|
+
.bubble-group {
|
|
1530
|
+
@apply gap-2;
|
|
1531
|
+
}
|
|
1532
|
+
.bubble {
|
|
1533
|
+
@apply gap-1 max-w-[80%];
|
|
1534
|
+
}
|
|
1535
|
+
.bubble[data-align='end'],
|
|
1536
|
+
.bubble[data-align='end'] > :first-child {
|
|
1537
|
+
@apply self-end;
|
|
1538
|
+
}
|
|
1539
|
+
.bubble > :first-child {
|
|
1540
|
+
@apply rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed;
|
|
1541
|
+
}
|
|
1542
|
+
.bubble > :is(a, button):first-child {
|
|
1543
|
+
@apply focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50;
|
|
1544
|
+
}
|
|
1545
|
+
.bubble:not([data-variant]) > :first-child,
|
|
1546
|
+
.bubble[data-variant='default'] > :first-child {
|
|
1547
|
+
@apply bg-primary text-primary-foreground;
|
|
1548
|
+
}
|
|
1549
|
+
.bubble:not([data-variant]) > :is(a, button):first-child:hover,
|
|
1550
|
+
.bubble[data-variant='default'] > :is(a, button):first-child:hover {
|
|
1551
|
+
@apply bg-primary/80;
|
|
1552
|
+
}
|
|
1553
|
+
.bubble[data-variant='secondary'] > :first-child {
|
|
1554
|
+
@apply bg-secondary text-secondary-foreground;
|
|
1555
|
+
}
|
|
1556
|
+
.bubble[data-variant='secondary'] > :is(a, button):first-child:hover {
|
|
1557
|
+
@apply bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)];
|
|
1558
|
+
}
|
|
1559
|
+
.bubble[data-variant='muted'] > :first-child {
|
|
1560
|
+
@apply bg-muted;
|
|
1561
|
+
}
|
|
1562
|
+
.bubble[data-variant='muted'] > :is(a, button):first-child:hover {
|
|
1563
|
+
@apply bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)];
|
|
1564
|
+
}
|
|
1565
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
1566
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_15%,var(--background))] text-foreground;
|
|
1567
|
+
}
|
|
1568
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
1569
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_25%,var(--background))];
|
|
1570
|
+
}
|
|
1571
|
+
/* Keep a tint in browsers without relative colors. */
|
|
1572
|
+
@supports (color: oklch(from currentColor l c h)) {
|
|
1573
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
1574
|
+
@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)];
|
|
1575
|
+
}
|
|
1576
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
1577
|
+
@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)];
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
.bubble[data-variant='outline'] > :first-child {
|
|
1581
|
+
@apply bg-background border-border;
|
|
1582
|
+
}
|
|
1583
|
+
.bubble[data-variant='outline'] > :is(a, button):first-child:hover {
|
|
1584
|
+
@apply bg-muted text-foreground dark:bg-input/30;
|
|
1585
|
+
}
|
|
1586
|
+
.bubble[data-variant='ghost'] {
|
|
1587
|
+
@apply max-w-full border-none;
|
|
1588
|
+
}
|
|
1589
|
+
.bubble[data-variant='ghost'] > :first-child {
|
|
1590
|
+
@apply rounded-none bg-transparent p-0;
|
|
1591
|
+
}
|
|
1592
|
+
.bubble[data-variant='ghost'] > :is(a, button):first-child:hover {
|
|
1593
|
+
@apply bg-muted text-foreground dark:bg-muted/50;
|
|
1594
|
+
}
|
|
1595
|
+
.bubble[data-variant='destructive'] > :first-child {
|
|
1596
|
+
@apply bg-destructive/10 dark:bg-destructive/20 text-destructive;
|
|
1597
|
+
}
|
|
1598
|
+
.bubble[data-variant='destructive'] > :is(a, button):first-child:hover {
|
|
1599
|
+
@apply bg-destructive/20 dark:bg-destructive/30;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
.bubble > div:not(:first-child) {
|
|
1603
|
+
@apply rounded-full ring-3 ring-card bg-muted gap-1 px-1.5 py-0.5 has-[button]:p-0 text-sm;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
.bubble > div:not(:first-child):not([data-side='top']) {
|
|
1607
|
+
@apply bottom-0 translate-y-3/4;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
.bubble > div:not(:first-child)[data-side='top'] {
|
|
1611
|
+
@apply top-0 -translate-y-3/4;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
.bubble > div:not(:first-child):not([data-align='start']) {
|
|
1615
|
+
@apply end-3;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
.bubble > div:not(:first-child)[data-align='start'] {
|
|
1619
|
+
@apply start-3;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
/* Attachment */
|
|
1623
|
+
.attachment {
|
|
1624
|
+
@apply rounded-xl w-fit has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-ring/50 border bg-card text-card-foreground;
|
|
1625
|
+
}
|
|
1626
|
+
.attachment:has(> a, > button:enabled):hover {
|
|
1627
|
+
@apply bg-muted/50;
|
|
1628
|
+
}
|
|
1629
|
+
.attachment[data-state='error'] {
|
|
1630
|
+
@apply border-destructive/30;
|
|
1631
|
+
}
|
|
1632
|
+
.attachment[data-state='idle'] {
|
|
1633
|
+
@apply border-dashed;
|
|
1634
|
+
}
|
|
1635
|
+
.attachment:not([data-orientation='vertical']) {
|
|
1636
|
+
@apply min-w-40;
|
|
1637
|
+
}
|
|
1638
|
+
.attachment[data-orientation='vertical'] {
|
|
1639
|
+
@apply w-24 has-[>section]:w-30;
|
|
1640
|
+
}
|
|
1641
|
+
.attachment:not([data-size]),
|
|
1642
|
+
.attachment[data-size='default'] {
|
|
1643
|
+
@apply gap-2 text-sm;
|
|
1644
|
+
}
|
|
1645
|
+
.attachment:not([data-size]):has(> section),
|
|
1646
|
+
.attachment[data-size='default']:has(> section) {
|
|
1647
|
+
@apply px-2.5 py-2;
|
|
1648
|
+
}
|
|
1649
|
+
.attachment:not([data-size]):has(> figure),
|
|
1650
|
+
.attachment[data-size='default']:has(> figure) {
|
|
1651
|
+
@apply p-2;
|
|
1652
|
+
}
|
|
1653
|
+
.attachment[data-size='sm'] {
|
|
1654
|
+
@apply gap-2.5 text-xs;
|
|
1655
|
+
}
|
|
1656
|
+
.attachment[data-size='sm']:has(> section) {
|
|
1657
|
+
@apply px-2 py-1.5;
|
|
1658
|
+
}
|
|
1659
|
+
.attachment[data-size='sm']:has(> figure) {
|
|
1660
|
+
@apply p-1.5;
|
|
1661
|
+
}
|
|
1662
|
+
.attachment[data-size='xs'] {
|
|
1663
|
+
@apply gap-1.5 text-xs rounded-lg;
|
|
1664
|
+
}
|
|
1665
|
+
.attachment[data-size='xs']:has(> section) {
|
|
1666
|
+
@apply px-1.5 py-1;
|
|
1667
|
+
}
|
|
1668
|
+
.attachment[data-size='xs']:has(> figure) {
|
|
1669
|
+
@apply p-1;
|
|
1670
|
+
}
|
|
1671
|
+
.attachment > figure {
|
|
1672
|
+
@apply bg-muted text-foreground w-10 rounded-lg;
|
|
1673
|
+
}
|
|
1674
|
+
.attachment[data-size='sm'] > figure {
|
|
1675
|
+
@apply w-8;
|
|
1676
|
+
}
|
|
1677
|
+
.attachment[data-size='xs'] > figure {
|
|
1678
|
+
@apply w-7 rounded-md;
|
|
1679
|
+
}
|
|
1680
|
+
.attachment > figure > svg {
|
|
1681
|
+
@apply size-4;
|
|
1682
|
+
}
|
|
1683
|
+
.attachment[data-size='xs'] > figure > svg {
|
|
1684
|
+
@apply size-3.5;
|
|
1685
|
+
}
|
|
1686
|
+
.attachment[data-orientation='vertical'] > figure {
|
|
1687
|
+
@apply w-full;
|
|
1688
|
+
}
|
|
1689
|
+
.attachment[data-orientation='vertical'] > figure > svg {
|
|
1690
|
+
@apply size-6;
|
|
1691
|
+
}
|
|
1692
|
+
.attachment:is([data-state='uploading'], [data-state='processing'], [data-state='error']) > figure:has(> img) {
|
|
1693
|
+
@apply opacity-60;
|
|
1694
|
+
}
|
|
1695
|
+
.attachment[data-state='error'] > figure {
|
|
1696
|
+
@apply bg-destructive/10 text-destructive;
|
|
1697
|
+
}
|
|
1698
|
+
.attachment > section {
|
|
1699
|
+
@apply leading-tight;
|
|
1700
|
+
}
|
|
1701
|
+
.attachment[data-orientation='vertical'] > section {
|
|
1702
|
+
@apply px-1;
|
|
1703
|
+
}
|
|
1704
|
+
.attachment > section > :first-child {
|
|
1705
|
+
@apply font-medium;
|
|
1384
1706
|
}
|
|
1707
|
+
.attachment > section > :not(:first-child) {
|
|
1708
|
+
@apply mt-0.5 text-xs text-muted-foreground;
|
|
1709
|
+
}
|
|
1710
|
+
.attachment[data-state='error'] > section > :not(:first-child) {
|
|
1711
|
+
@apply text-destructive/80;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
.attachment[data-orientation='vertical'] > div {
|
|
1715
|
+
@apply top-3 end-3 gap-1;
|
|
1716
|
+
}
|
|
1717
|
+
.attachment-group {
|
|
1718
|
+
@apply gap-3 py-1;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
/* Code Block */
|
|
1723
|
+
.code-block {
|
|
1724
|
+
@apply rounded-lg text-sm data-[size=sm]:text-xs has-[>pre:focus-visible]:ring-3 has-[>pre:focus-visible]:ring-ring/50;
|
|
1725
|
+
--_code-padding: calc(var(--spacing, 0.25rem) * 4);
|
|
1726
|
+
}
|
|
1727
|
+
.code-block:not([data-variant='destructive']) { @apply border border-input text-foreground dark:bg-input/30 has-[>pre:focus-visible]:border-ring; }
|
|
1728
|
+
.code-block[data-variant='destructive'] { @apply border border-destructive/30 text-destructive dark:border-destructive/40; }
|
|
1729
|
+
.code-block[data-size='sm'] { --_code-padding: calc(var(--spacing, 0.25rem) * 3); }
|
|
1730
|
+
.code-block > header { @apply gap-2 text-muted-foreground; padding: var(--_code-padding) var(--_code-padding) 0; }
|
|
1731
|
+
.code-block > footer { @apply gap-2 text-muted-foreground; padding: 0 var(--_code-padding) var(--_code-padding); }
|
|
1732
|
+
.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; }
|
|
1733
|
+
.code-block[data-size='sm'] > header > :first-child:not(div) { @apply text-xs [&_svg:not([class*='size-'])]:size-3.5; }
|
|
1734
|
+
.code-block[data-variant='destructive'] > :is(header, footer),
|
|
1735
|
+
.code-block[data-variant='destructive'] > header > :first-child:not(div) { @apply text-destructive; }
|
|
1736
|
+
.code-block > header > div { @apply -my-1 -me-1.5 gap-1; }
|
|
1737
|
+
.code-block > div { @apply top-3 end-3 gap-1; }
|
|
1738
|
+
.code-block[data-size='sm'] > div { @apply top-2 end-2; }
|
|
1739
|
+
.code-block > div > button { @apply bg-background ring-1 ring-foreground/10; }
|
|
1740
|
+
.code-block > pre { @apply leading-relaxed; padding: var(--_code-padding); }
|
|
1741
|
+
.code-block:has(> header) > pre { @apply pt-2; }
|
|
1742
|
+
.code-block:has(> footer) > pre { @apply pb-2; }
|
|
1743
|
+
.code-block[data-size='sm']:has(> header) > pre { @apply pt-1.5; }
|
|
1744
|
+
.code-block > pre > code > span { margin-inline: calc(-1 * var(--_code-padding)); padding-inline: var(--_code-padding); }
|
|
1745
|
+
.code-block > pre > code > span::before { @apply text-end text-muted-foreground; }
|
|
1746
|
+
|
|
1747
|
+
/* Input OTP */
|
|
1748
|
+
.input-otp > div { @apply gap-2; }
|
|
1749
|
+
.input-otp > div > div { @apply rounded-md; }
|
|
1750
|
+
.input-otp > div > div > span { @apply dark:bg-input/30 border-input data-[active]:border-ring data-[active]:ring-ring/50 size-9 border-y border-e text-sm shadow-xs transition-all outline-none first:rounded-s-md first:border-s last:rounded-e-md data-[active]:ring-3; }
|
|
1751
|
+
.input-otp > div > svg { @apply size-4 shrink-0; }
|
|
1752
|
+
.input-otp > div > div > span[data-caret]::after { @apply h-4 w-px bg-foreground; }
|
|
1753
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div > span { @apply border-destructive; }
|
|
1754
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div { @apply ring-3 ring-destructive/20 dark:ring-destructive/40; }
|
|
1755
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div > span[data-active] { @apply border-destructive ring-destructive/20 dark:ring-destructive/40; }
|
|
1385
1756
|
|
|
1386
1757
|
}
|