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