basecoat-css 1.1.0 → 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 +1 -0
- package/dist/base/scroll-fade.css +41 -0
- package/dist/base/transition-details.css +12 -0
- package/dist/basecoat-base.bundle.css +767 -119
- package/dist/basecoat-base.cdn.css +1924 -673
- package/dist/basecoat-base.cdn.min.css +1 -1
- package/dist/basecoat-compat.cdn.css +250 -75
- package/dist/basecoat-compat.cdn.min.css +1 -1
- package/dist/basecoat-components.css +10 -0
- package/dist/basecoat-luma.bundle.css +1115 -125
- package/dist/basecoat-luma.cdn.css +4649 -2558
- package/dist/basecoat-luma.cdn.min.css +1 -1
- package/dist/basecoat-lyra.bundle.css +1110 -125
- package/dist/basecoat-lyra.cdn.css +5118 -3079
- package/dist/basecoat-lyra.cdn.min.css +1 -1
- package/dist/basecoat-maia.bundle.css +1113 -125
- package/dist/basecoat-maia.cdn.css +5244 -3202
- package/dist/basecoat-maia.cdn.min.css +1 -1
- package/dist/basecoat-mira.bundle.css +1113 -125
- package/dist/basecoat-mira.cdn.css +3623 -1583
- package/dist/basecoat-mira.cdn.min.css +1 -1
- package/dist/basecoat-nova.bundle.css +1115 -129
- package/dist/basecoat-nova.cdn.css +5271 -3229
- package/dist/basecoat-nova.cdn.min.css +1 -1
- package/dist/basecoat-rhea.bundle.css +1117 -127
- package/dist/basecoat-rhea.cdn.css +5286 -3192
- package/dist/basecoat-rhea.cdn.min.css +1 -1
- package/dist/basecoat-sera.bundle.css +1111 -128
- package/dist/basecoat-sera.cdn.css +3280 -1254
- package/dist/basecoat-sera.cdn.min.css +1 -1
- package/dist/basecoat-vega.bundle.css +1113 -125
- package/dist/basecoat-vega.cdn.css +5225 -3180
- package/dist/basecoat-vega.cdn.min.css +1 -1
- package/dist/basecoat.bundle.css +1113 -125
- package/dist/basecoat.cdn.css +5225 -3180
- package/dist/basecoat.cdn.min.css +1 -1
- 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 +2 -4
- 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 +9 -1
- package/dist/components/toast.css +59 -44
- package/dist/components/trace.css +34 -0
- package/dist/js/all.js +488 -112
- 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/drawer.js +6 -2
- package/dist/js/drawer.min.js +1 -1
- package/dist/js/input-otp.js +76 -0
- package/dist/js/input-otp.min.js +1 -0
- package/dist/js/tabs.js +31 -58
- package/dist/js/tabs.min.js +1 -1
- package/dist/js/toast.js +221 -53
- package/dist/js/toast.min.js +1 -1
- package/dist/styles/luma.css +348 -6
- package/dist/styles/lyra.css +343 -6
- package/dist/styles/maia.css +346 -6
- package/dist/styles/mira.css +346 -6
- package/dist/styles/nova.css +348 -10
- package/dist/styles/rhea.css +350 -8
- package/dist/styles/sera.css +344 -9
- package/dist/styles/vega.css +346 -6
- package/dist/typeset.cdn.css +381 -0
- package/dist/typeset.cdn.min.css +1 -0
- package/dist/typeset.css +435 -0
- package/package.json +16 -7
- package/templates/jinja/tabs.html.jinja +0 -1
- package/templates/jinja/toast.html.jinja +29 -26
- package/templates/nunjucks/tabs.njk +1 -1
- package/templates/nunjucks/toast.njk +30 -27
package/dist/styles/sera.css
CHANGED
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
|
|
24
24
|
.btn:not([data-size]),
|
|
25
25
|
.btn[data-size='default'] {
|
|
26
|
-
@apply h-10 gap-1.5 px-6 has-[[data-icon='inline-end']]:
|
|
26
|
+
@apply h-10 gap-1.5 px-6 has-[[data-icon='inline-end']]:pe-4 has-[[data-icon='inline-start']]:ps-4;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.btn[data-size='xs'] {
|
|
30
|
-
@apply h-7 gap-1 px-3 [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:
|
|
30
|
+
@apply h-7 gap-1 px-3 [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:pe-2 has-[[data-icon='inline-start']]:ps-2;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.btn[data-size='sm'] {
|
|
34
|
-
@apply h-9 gap-1 px-4 has-[[data-icon='inline-end']]:
|
|
34
|
+
@apply h-9 gap-1 px-4 has-[[data-icon='inline-end']]:pe-3 has-[[data-icon='inline-start']]:ps-3;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.btn[data-size='lg'] {
|
|
38
|
-
@apply h-11 gap-1.5 px-8 has-[[data-icon='inline-end']]:
|
|
38
|
+
@apply h-11 gap-1.5 px-8 has-[[data-icon='inline-end']]:pe-5 has-[[data-icon='inline-start']]:ps-5;
|
|
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/30 ring-[2px] dark:border-ring;
|
|
87
|
+
}
|
|
88
|
+
|
|
82
89
|
/* Button Group */
|
|
83
90
|
.button-group {
|
|
84
91
|
@apply has-[>.button-group]:gap-2;
|
|
@@ -95,7 +102,7 @@
|
|
|
95
102
|
@apply border-border focus-visible:border-ring;
|
|
96
103
|
}
|
|
97
104
|
|
|
98
|
-
> :is(span, label, output) {
|
|
105
|
+
> :is(span, label, output):not(.btn) {
|
|
99
106
|
@apply border-border;
|
|
100
107
|
}
|
|
101
108
|
}
|
|
@@ -114,7 +121,7 @@
|
|
|
114
121
|
}
|
|
115
122
|
}
|
|
116
123
|
|
|
117
|
-
.button-group > :is(span, label, output) {
|
|
124
|
+
.button-group > :is(span, label, output):not(.btn) {
|
|
118
125
|
@apply gap-2 border border-transparent border-b-input bg-transparent px-2.5 text-xs font-semibold uppercase [&_svg:not([class*='size-'])]:size-3.5;
|
|
119
126
|
}
|
|
120
127
|
|
|
@@ -652,6 +659,52 @@
|
|
|
652
659
|
@apply text-muted-foreground mt-0.5 text-sm leading-relaxed;
|
|
653
660
|
}
|
|
654
661
|
|
|
662
|
+
/* Sheet */
|
|
663
|
+
.sheet::backdrop {
|
|
664
|
+
@apply bg-black/20 supports-backdrop-filter:backdrop-blur-sm;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.sheet > * {
|
|
668
|
+
@apply bg-popover text-popover-foreground bg-clip-padding text-sm shadow-md;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.sheet[data-side='bottom'] > * {
|
|
672
|
+
@apply border-t;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.sheet[data-side='top'] > * {
|
|
676
|
+
@apply border-b;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.sheet[data-side='left'] > * {
|
|
680
|
+
@apply border-r;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.sheet:not([data-side]) > *,
|
|
684
|
+
.sheet[data-side='right'] > * {
|
|
685
|
+
@apply border-l;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.sheet > * > header {
|
|
689
|
+
@apply gap-1.5 p-8;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.sheet > * > footer {
|
|
693
|
+
@apply gap-2 p-8;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
.sheet > * > header > h2 {
|
|
697
|
+
@apply text-foreground text-lg font-semibold uppercase tracking-wider;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.sheet > * > header > p {
|
|
701
|
+
@apply text-muted-foreground text-sm leading-relaxed mt-0.5;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.sheet > * > button:last-child {
|
|
705
|
+
@apply top-4 end-4 bg-secondary;
|
|
706
|
+
}
|
|
707
|
+
|
|
655
708
|
/* Dropdown Menu */
|
|
656
709
|
.dropdown-menu > [data-popover] {
|
|
657
710
|
@apply bg-popover text-popover-foreground ring-foreground/10 min-w-48 gap-0 overflow-x-hidden overflow-y-auto rounded-none p-1.5 shadow-md ring-1 duration-100;
|
|
@@ -725,6 +778,14 @@
|
|
|
725
778
|
@apply text-muted-foreground text-sm leading-relaxed mt-0.5;
|
|
726
779
|
}
|
|
727
780
|
|
|
781
|
+
/* Carousel */
|
|
782
|
+
.carousel > ul > li {
|
|
783
|
+
@apply p-1;
|
|
784
|
+
}
|
|
785
|
+
.carousel > ul:focus-visible {
|
|
786
|
+
@apply outline-2 outline-ring outline-offset-2;
|
|
787
|
+
}
|
|
788
|
+
|
|
728
789
|
/* Card */
|
|
729
790
|
.card {
|
|
730
791
|
@apply bg-card text-card-foreground ring-foreground/5 overflow-hidden text-sm shadow-sm ring-1 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-none [&>img:last-child]:rounded-none;
|
|
@@ -1088,6 +1149,44 @@
|
|
|
1088
1149
|
@apply gap-4 text-sm;
|
|
1089
1150
|
}
|
|
1090
1151
|
|
|
1152
|
+
/* Message */
|
|
1153
|
+
.message-group { @apply gap-2; }
|
|
1154
|
+
.message { @apply gap-2 text-sm; }
|
|
1155
|
+
.message > div:last-child { @apply gap-2.5; }
|
|
1156
|
+
.message > div:last-child > :is(header, footer) {
|
|
1157
|
+
@apply px-4 text-xs uppercase tracking-wide font-medium text-muted-foreground;
|
|
1158
|
+
}
|
|
1159
|
+
.message:has(.bubble[data-variant='ghost']) > div:last-child > :is(header, footer) { @apply px-0; }
|
|
1160
|
+
.message:has(> div:last-child > footer) > .avatar { @apply -translate-y-8; }
|
|
1161
|
+
|
|
1162
|
+
/* Trace */
|
|
1163
|
+
.trace { @apply gap-3; }
|
|
1164
|
+
.trace-line { @apply gap-2 text-sm text-muted-foreground; }
|
|
1165
|
+
.trace-line > svg { @apply size-4; }
|
|
1166
|
+
.trace-line > small { @apply [font-size:inherit] text-muted-foreground/70 tabular-nums; }
|
|
1167
|
+
:is(a, button, summary).trace-line {
|
|
1168
|
+
@apply rounded-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/30;
|
|
1169
|
+
}
|
|
1170
|
+
summary.trace-line + div {
|
|
1171
|
+
@apply mt-3 mb-1 ms-[calc(--spacing(2)-1px)] border-s ps-4 pe-1 text-muted-foreground leading-relaxed;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
/* Marker */
|
|
1175
|
+
.marker {
|
|
1176
|
+
@apply min-h-4 gap-2 text-xs text-muted-foreground text-start uppercase tracking-wide [&_svg:not([class*='size-'])]:size-4;
|
|
1177
|
+
}
|
|
1178
|
+
.marker[data-variant='border'] {
|
|
1179
|
+
@apply border-b border-border pb-2;
|
|
1180
|
+
}
|
|
1181
|
+
.marker[data-variant='separator']::before,
|
|
1182
|
+
.marker[data-variant='separator']::after {
|
|
1183
|
+
@apply border-border;
|
|
1184
|
+
}
|
|
1185
|
+
.marker[data-variant='separator']::before { @apply me-1; }
|
|
1186
|
+
.marker[data-variant='separator']::after { @apply ms-1; }
|
|
1187
|
+
a.marker, .marker a { @apply underline underline-offset-3 hover:text-foreground; }
|
|
1188
|
+
button.marker { @apply hover:text-foreground; }
|
|
1189
|
+
|
|
1091
1190
|
/* Item */
|
|
1092
1191
|
.item {
|
|
1093
1192
|
@apply rounded-none border text-sm;
|
|
@@ -1357,9 +1456,17 @@
|
|
|
1357
1456
|
}
|
|
1358
1457
|
|
|
1359
1458
|
/* Toast */
|
|
1360
|
-
.toast
|
|
1361
|
-
@apply bg-popover text-popover-foreground border shadow-lg rounded-none
|
|
1362
|
-
}
|
|
1459
|
+
.toast {
|
|
1460
|
+
@apply bg-popover text-popover-foreground border shadow-lg rounded-none;
|
|
1461
|
+
}
|
|
1462
|
+
.toast > .toast-content { @apply gap-3 p-4; }
|
|
1463
|
+
.toast > .toast-content > svg { @apply size-4; }
|
|
1464
|
+
.toast > .toast-content > section { @apply gap-1; }
|
|
1465
|
+
.toast > .toast-content > section > h2 { @apply text-sm font-medium; }
|
|
1466
|
+
.toast > .toast-content > section > p { @apply text-sm text-muted-foreground; }
|
|
1467
|
+
.toast > .toast-content > footer { @apply gap-3; }
|
|
1468
|
+
.toast > .toast-content > footer > .btn[data-size='icon-sm'] { @apply text-muted-foreground hover:text-foreground; }
|
|
1469
|
+
.toast[data-category='error'] > .toast-content > svg { @apply text-destructive; }
|
|
1363
1470
|
|
|
1364
1471
|
/* Slider */
|
|
1365
1472
|
.field > input[type='range'],
|
|
@@ -1425,4 +1532,232 @@
|
|
|
1425
1532
|
@apply ring-2 ring-ring/30 outline-hidden;
|
|
1426
1533
|
}
|
|
1427
1534
|
|
|
1535
|
+
|
|
1536
|
+
/* Bubble */
|
|
1537
|
+
.bubble-group {
|
|
1538
|
+
@apply gap-2;
|
|
1539
|
+
}
|
|
1540
|
+
.bubble {
|
|
1541
|
+
@apply gap-1 max-w-[80%];
|
|
1542
|
+
}
|
|
1543
|
+
.bubble[data-align='end'],
|
|
1544
|
+
.bubble[data-align='end'] > :first-child {
|
|
1545
|
+
@apply self-end;
|
|
1546
|
+
}
|
|
1547
|
+
.bubble > :first-child {
|
|
1548
|
+
@apply rounded-none border border-transparent px-4 py-3 text-sm leading-relaxed;
|
|
1549
|
+
}
|
|
1550
|
+
.bubble > :is(a, button):first-child {
|
|
1551
|
+
@apply focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30;
|
|
1552
|
+
}
|
|
1553
|
+
.bubble:not([data-variant]) > :first-child,
|
|
1554
|
+
.bubble[data-variant='default'] > :first-child {
|
|
1555
|
+
@apply bg-primary text-primary-foreground;
|
|
1556
|
+
}
|
|
1557
|
+
.bubble:not([data-variant]) > :is(a, button):first-child:hover,
|
|
1558
|
+
.bubble[data-variant='default'] > :is(a, button):first-child:hover {
|
|
1559
|
+
@apply bg-primary/80;
|
|
1560
|
+
}
|
|
1561
|
+
.bubble[data-variant='secondary'] > :first-child {
|
|
1562
|
+
@apply bg-secondary text-secondary-foreground;
|
|
1563
|
+
}
|
|
1564
|
+
.bubble[data-variant='secondary'] > :is(a, button):first-child:hover {
|
|
1565
|
+
@apply bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)];
|
|
1566
|
+
}
|
|
1567
|
+
.bubble[data-variant='muted'] > :first-child {
|
|
1568
|
+
@apply bg-muted;
|
|
1569
|
+
}
|
|
1570
|
+
.bubble[data-variant='muted'] > :is(a, button):first-child:hover {
|
|
1571
|
+
@apply bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)];
|
|
1572
|
+
}
|
|
1573
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
1574
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_15%,var(--background))] text-foreground;
|
|
1575
|
+
}
|
|
1576
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
1577
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_25%,var(--background))];
|
|
1578
|
+
}
|
|
1579
|
+
/* Keep a tint in browsers without relative colors. */
|
|
1580
|
+
@supports (color: oklch(from currentColor l c h)) {
|
|
1581
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
1582
|
+
@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)];
|
|
1583
|
+
}
|
|
1584
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
1585
|
+
@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)];
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
.bubble[data-variant='outline'] > :first-child {
|
|
1589
|
+
@apply bg-background border-border;
|
|
1590
|
+
}
|
|
1591
|
+
.bubble[data-variant='outline'] > :is(a, button):first-child:hover {
|
|
1592
|
+
@apply bg-muted text-foreground dark:bg-input/30;
|
|
1593
|
+
}
|
|
1594
|
+
.bubble[data-variant='ghost'] {
|
|
1595
|
+
@apply max-w-full border-none;
|
|
1596
|
+
}
|
|
1597
|
+
.bubble[data-variant='ghost'] > :first-child {
|
|
1598
|
+
@apply rounded-none bg-transparent p-0;
|
|
1599
|
+
}
|
|
1600
|
+
.bubble[data-variant='ghost'] > :is(a, button):first-child:hover {
|
|
1601
|
+
@apply bg-muted text-foreground dark:bg-muted/50;
|
|
1602
|
+
}
|
|
1603
|
+
.bubble[data-variant='destructive'] > :first-child {
|
|
1604
|
+
@apply bg-destructive/10 dark:bg-destructive/20 text-destructive;
|
|
1605
|
+
}
|
|
1606
|
+
.bubble[data-variant='destructive'] > :is(a, button):first-child:hover {
|
|
1607
|
+
@apply bg-destructive/20 dark:bg-destructive/30;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
.bubble > div:not(:first-child) {
|
|
1611
|
+
@apply rounded-none ring-3 ring-card bg-muted gap-1 px-2 py-0.5 has-[button]:p-0 text-sm;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
.bubble > div:not(:first-child):not([data-side='top']) {
|
|
1615
|
+
@apply bottom-0 translate-y-3/4;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
.bubble > div:not(:first-child)[data-side='top'] {
|
|
1619
|
+
@apply top-0 -translate-y-3/4;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
.bubble > div:not(:first-child):not([data-align='start']) {
|
|
1623
|
+
@apply end-3;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
.bubble > div:not(:first-child)[data-align='start'] {
|
|
1627
|
+
@apply start-3;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
/* Attachment */
|
|
1631
|
+
.attachment {
|
|
1632
|
+
@apply rounded-none w-fit has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-ring/30 border bg-card text-card-foreground;
|
|
1633
|
+
}
|
|
1634
|
+
.attachment:has(> a, > button:enabled):hover {
|
|
1635
|
+
@apply bg-muted/50;
|
|
1636
|
+
}
|
|
1637
|
+
.attachment[data-state='error'] {
|
|
1638
|
+
@apply border-destructive/30;
|
|
1639
|
+
}
|
|
1640
|
+
.attachment[data-state='idle'] {
|
|
1641
|
+
@apply border-dashed;
|
|
1642
|
+
}
|
|
1643
|
+
.attachment:not([data-orientation='vertical']) {
|
|
1644
|
+
@apply min-w-40;
|
|
1645
|
+
}
|
|
1646
|
+
.attachment[data-orientation='vertical'] {
|
|
1647
|
+
@apply w-24 has-[>section]:w-30;
|
|
1648
|
+
}
|
|
1649
|
+
.attachment:not([data-size]),
|
|
1650
|
+
.attachment[data-size='default'] {
|
|
1651
|
+
@apply gap-2 text-sm;
|
|
1652
|
+
}
|
|
1653
|
+
.attachment:not([data-size]):has(> section),
|
|
1654
|
+
.attachment[data-size='default']:has(> section) {
|
|
1655
|
+
@apply px-3 py-2.5;
|
|
1656
|
+
}
|
|
1657
|
+
.attachment:not([data-size]):has(> figure),
|
|
1658
|
+
.attachment[data-size='default']:has(> figure) {
|
|
1659
|
+
@apply p-2.5;
|
|
1660
|
+
}
|
|
1661
|
+
.attachment[data-size='sm'] {
|
|
1662
|
+
@apply gap-2.5 text-xs;
|
|
1663
|
+
}
|
|
1664
|
+
.attachment[data-size='sm']:has(> section) {
|
|
1665
|
+
@apply px-2.5 py-2;
|
|
1666
|
+
}
|
|
1667
|
+
.attachment[data-size='sm']:has(> figure) {
|
|
1668
|
+
@apply p-2;
|
|
1669
|
+
}
|
|
1670
|
+
.attachment[data-size='xs'] {
|
|
1671
|
+
@apply gap-1.5 text-xs rounded-none;
|
|
1672
|
+
}
|
|
1673
|
+
.attachment[data-size='xs']:has(> section) {
|
|
1674
|
+
@apply px-2 py-1.5;
|
|
1675
|
+
}
|
|
1676
|
+
.attachment[data-size='xs']:has(> figure) {
|
|
1677
|
+
@apply p-1.5;
|
|
1678
|
+
}
|
|
1679
|
+
.attachment > figure {
|
|
1680
|
+
@apply bg-muted text-foreground w-10 rounded-none;
|
|
1681
|
+
}
|
|
1682
|
+
.attachment[data-size='sm'] > figure {
|
|
1683
|
+
@apply w-8;
|
|
1684
|
+
}
|
|
1685
|
+
.attachment[data-size='xs'] > figure {
|
|
1686
|
+
@apply w-7 rounded-none;
|
|
1687
|
+
}
|
|
1688
|
+
.attachment > figure > svg {
|
|
1689
|
+
@apply size-4;
|
|
1690
|
+
}
|
|
1691
|
+
.attachment[data-size='xs'] > figure > svg {
|
|
1692
|
+
@apply size-3.5;
|
|
1693
|
+
}
|
|
1694
|
+
.attachment[data-orientation='vertical'] > figure {
|
|
1695
|
+
@apply w-full;
|
|
1696
|
+
}
|
|
1697
|
+
.attachment[data-orientation='vertical'] > figure > svg {
|
|
1698
|
+
@apply size-6;
|
|
1699
|
+
}
|
|
1700
|
+
.attachment:is([data-state='uploading'], [data-state='processing'], [data-state='error']) > figure:has(> img) {
|
|
1701
|
+
@apply opacity-60;
|
|
1702
|
+
}
|
|
1703
|
+
.attachment[data-state='error'] > figure {
|
|
1704
|
+
@apply bg-destructive/10 text-destructive;
|
|
1705
|
+
}
|
|
1706
|
+
.attachment > section {
|
|
1707
|
+
@apply leading-tight;
|
|
1708
|
+
}
|
|
1709
|
+
.attachment[data-orientation='vertical'] > section {
|
|
1710
|
+
@apply px-1;
|
|
1711
|
+
}
|
|
1712
|
+
.attachment > section > :first-child {
|
|
1713
|
+
@apply font-medium;
|
|
1714
|
+
}
|
|
1715
|
+
.attachment > section > :not(:first-child) {
|
|
1716
|
+
@apply mt-0.5 text-xs text-muted-foreground;
|
|
1717
|
+
}
|
|
1718
|
+
.attachment[data-state='error'] > section > :not(:first-child) {
|
|
1719
|
+
@apply text-destructive/80;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
.attachment[data-orientation='vertical'] > div {
|
|
1723
|
+
@apply top-3 end-3 gap-1;
|
|
1724
|
+
}
|
|
1725
|
+
.attachment-group {
|
|
1726
|
+
@apply gap-3 py-1;
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
/* Code Block */
|
|
1731
|
+
.code-block {
|
|
1732
|
+
@apply rounded-none text-sm data-[size=sm]:text-xs has-[>pre:focus-visible]:ring-2 has-[>pre:focus-visible]:ring-ring/30;
|
|
1733
|
+
--_code-padding: calc(var(--spacing, 0.25rem) * 4);
|
|
1734
|
+
}
|
|
1735
|
+
.code-block:not([data-variant='destructive']) { @apply border border-input text-foreground dark:bg-input/30 has-[>pre:focus-visible]:border-ring; }
|
|
1736
|
+
.code-block[data-variant='destructive'] { @apply border border-destructive/30 text-destructive dark:border-destructive/40; }
|
|
1737
|
+
.code-block[data-size='sm'] { --_code-padding: calc(var(--spacing, 0.25rem) * 3); }
|
|
1738
|
+
.code-block > header { @apply gap-2 text-muted-foreground; padding: var(--_code-padding) var(--_code-padding) 0; }
|
|
1739
|
+
.code-block > footer { @apply gap-2 text-muted-foreground; padding: 0 var(--_code-padding) var(--_code-padding); }
|
|
1740
|
+
.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; }
|
|
1741
|
+
.code-block[data-size='sm'] > header > :first-child:not(div) { @apply text-xs [&_svg:not([class*='size-'])]:size-3.5; }
|
|
1742
|
+
.code-block[data-variant='destructive'] > :is(header, footer),
|
|
1743
|
+
.code-block[data-variant='destructive'] > header > :first-child:not(div) { @apply text-destructive; }
|
|
1744
|
+
.code-block > header > div { @apply -my-1 -me-1.5 gap-1; }
|
|
1745
|
+
.code-block > div { @apply top-3 end-3 gap-1; }
|
|
1746
|
+
.code-block[data-size='sm'] > div { @apply top-2 end-2; }
|
|
1747
|
+
.code-block > div > button { @apply bg-background ring-1 ring-foreground/10; }
|
|
1748
|
+
.code-block > pre { @apply leading-relaxed; padding: var(--_code-padding); }
|
|
1749
|
+
.code-block:has(> header) > pre { @apply pt-2; }
|
|
1750
|
+
.code-block:has(> footer) > pre { @apply pb-2; }
|
|
1751
|
+
.code-block[data-size='sm']:has(> header) > pre { @apply pt-1.5; }
|
|
1752
|
+
.code-block > pre > code > span { margin-inline: calc(-1 * var(--_code-padding)); padding-inline: var(--_code-padding); }
|
|
1753
|
+
.code-block > pre > code > span::before { @apply text-end text-muted-foreground; }
|
|
1754
|
+
|
|
1755
|
+
/* Input OTP */
|
|
1756
|
+
.input-otp > div { @apply gap-2; }
|
|
1757
|
+
.input-otp > div > div { @apply rounded-none gap-1; }
|
|
1758
|
+
.input-otp > div > div > span { @apply border-transparent border-b-input bg-transparent data-[active]:border-b-ring size-10 border text-sm transition-[color,border-color] outline-none first:rounded-none last:rounded-none; }
|
|
1759
|
+
.input-otp > div > svg { @apply size-3.5 shrink-0; }
|
|
1760
|
+
.input-otp > div > div > span[data-caret]::after { @apply h-4 w-px bg-foreground; }
|
|
1761
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div > span { @apply border-b-destructive dark:border-b-destructive/50; }
|
|
1762
|
+
|
|
1428
1763
|
}
|