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/lyra.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-none [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:
|
|
30
|
+
@apply h-6 gap-1 px-2 text-xs rounded-none [&_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 rounded-none [&_svg:not([class*='size-'])]:size-3.5 has-[[data-icon='inline-end']]:
|
|
34
|
+
@apply h-7 gap-1 px-2.5 rounded-none [&_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,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-[1px] dark:border-ring;
|
|
87
|
+
}
|
|
88
|
+
|
|
82
89
|
/* Button Group */
|
|
83
90
|
.button-group {
|
|
84
91
|
@apply rounded-none 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-none border px-2.5 text-xs font-medium [&_svg:not([class*='size-'])]:size-4;
|
|
103
110
|
}
|
|
104
111
|
|
|
@@ -620,6 +627,52 @@
|
|
|
620
627
|
@apply text-muted-foreground text-xs/relaxed;
|
|
621
628
|
}
|
|
622
629
|
|
|
630
|
+
/* Sheet */
|
|
631
|
+
.sheet::backdrop {
|
|
632
|
+
@apply bg-black/10 text-xs/relaxed supports-backdrop-filter:backdrop-blur-xs;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
.sheet > * {
|
|
636
|
+
@apply bg-popover text-popover-foreground bg-clip-padding text-xs/relaxed shadow-lg;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.sheet[data-side='bottom'] > * {
|
|
640
|
+
@apply border-t;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.sheet[data-side='top'] > * {
|
|
644
|
+
@apply border-b;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.sheet[data-side='left'] > * {
|
|
648
|
+
@apply border-r;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.sheet:not([data-side]) > *,
|
|
652
|
+
.sheet[data-side='right'] > * {
|
|
653
|
+
@apply border-l;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.sheet > * > header {
|
|
657
|
+
@apply gap-0.5 p-4;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.sheet > * > footer {
|
|
661
|
+
@apply gap-2 p-4;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.sheet > * > header > h2 {
|
|
665
|
+
@apply text-foreground text-sm font-medium;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.sheet > * > header > p {
|
|
669
|
+
@apply text-muted-foreground text-xs/relaxed;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.sheet > * > button:last-child {
|
|
673
|
+
@apply top-3 end-3;
|
|
674
|
+
}
|
|
675
|
+
|
|
623
676
|
/* Dropdown Menu */
|
|
624
677
|
.dropdown-menu > [data-popover] {
|
|
625
678
|
@apply bg-popover text-popover-foreground ring-foreground/10 gap-0 overflow-x-hidden overflow-y-auto rounded-none p-0 shadow-md ring-1 duration-100;
|
|
@@ -693,6 +746,14 @@
|
|
|
693
746
|
@apply text-muted-foreground text-xs/relaxed;
|
|
694
747
|
}
|
|
695
748
|
|
|
749
|
+
/* Carousel */
|
|
750
|
+
.carousel > ul > li {
|
|
751
|
+
@apply p-1;
|
|
752
|
+
}
|
|
753
|
+
.carousel > ul:focus-visible {
|
|
754
|
+
@apply outline-2 outline-ring outline-offset-2;
|
|
755
|
+
}
|
|
756
|
+
|
|
696
757
|
/* Card */
|
|
697
758
|
.card {
|
|
698
759
|
@apply ring-foreground/10 bg-card text-card-foreground overflow-hidden rounded-none text-xs/relaxed ring-1 has-[>footer]:pb-0 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-none [&>img:last-child]:rounded-none;
|
|
@@ -1073,6 +1134,44 @@
|
|
|
1073
1134
|
@apply gap-2.5 text-xs;
|
|
1074
1135
|
}
|
|
1075
1136
|
|
|
1137
|
+
/* Message */
|
|
1138
|
+
.message-group { @apply gap-1.5; }
|
|
1139
|
+
.message { @apply gap-1.5 text-xs; }
|
|
1140
|
+
.message > div:last-child { @apply gap-2; }
|
|
1141
|
+
.message > div:last-child > :is(header, footer) {
|
|
1142
|
+
@apply px-2.5 text-xs font-medium text-muted-foreground;
|
|
1143
|
+
}
|
|
1144
|
+
.message:has(.bubble[data-variant='ghost']) > div:last-child > :is(header, footer) { @apply px-0; }
|
|
1145
|
+
.message:has(> div:last-child > footer) > .avatar { @apply -translate-y-8; }
|
|
1146
|
+
|
|
1147
|
+
/* Trace */
|
|
1148
|
+
.trace { @apply gap-2; }
|
|
1149
|
+
.trace-line { @apply gap-2 text-xs text-muted-foreground; }
|
|
1150
|
+
.trace-line > svg { @apply size-3.5; }
|
|
1151
|
+
.trace-line > small { @apply [font-size:inherit] text-muted-foreground/70 tabular-nums; }
|
|
1152
|
+
:is(a, button, summary).trace-line {
|
|
1153
|
+
@apply rounded-none transition-colors hover:text-foreground focus-visible:ring-1 focus-visible:ring-ring/50;
|
|
1154
|
+
}
|
|
1155
|
+
summary.trace-line + div {
|
|
1156
|
+
@apply mt-2 mb-1 ms-[calc(--spacing(1.75)-1px)] border-s ps-3.75 pe-1 text-muted-foreground leading-relaxed;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
/* Marker */
|
|
1160
|
+
.marker {
|
|
1161
|
+
@apply min-h-4 gap-2 text-xs text-muted-foreground text-start [&_svg:not([class*='size-'])]:size-3.5;
|
|
1162
|
+
}
|
|
1163
|
+
.marker[data-variant='border'] {
|
|
1164
|
+
@apply border-b border-border pb-2;
|
|
1165
|
+
}
|
|
1166
|
+
.marker[data-variant='separator']::before,
|
|
1167
|
+
.marker[data-variant='separator']::after {
|
|
1168
|
+
@apply border-border;
|
|
1169
|
+
}
|
|
1170
|
+
.marker[data-variant='separator']::before { @apply me-1; }
|
|
1171
|
+
.marker[data-variant='separator']::after { @apply ms-1; }
|
|
1172
|
+
a.marker, .marker a { @apply underline underline-offset-3 hover:text-foreground; }
|
|
1173
|
+
button.marker { @apply hover:text-foreground; }
|
|
1174
|
+
|
|
1076
1175
|
/* Item */
|
|
1077
1176
|
.item {
|
|
1078
1177
|
@apply rounded-none border text-xs;
|
|
@@ -1335,9 +1434,17 @@
|
|
|
1335
1434
|
}
|
|
1336
1435
|
|
|
1337
1436
|
/* Toast */
|
|
1338
|
-
.toast
|
|
1437
|
+
.toast {
|
|
1339
1438
|
@apply bg-popover text-popover-foreground border shadow-lg rounded-none;
|
|
1340
1439
|
}
|
|
1440
|
+
.toast > .toast-content { @apply gap-3 p-4; }
|
|
1441
|
+
.toast > .toast-content > svg { @apply size-4; }
|
|
1442
|
+
.toast > .toast-content > section { @apply gap-1; }
|
|
1443
|
+
.toast > .toast-content > section > h2 { @apply text-sm font-medium; }
|
|
1444
|
+
.toast > .toast-content > section > p { @apply text-sm text-muted-foreground; }
|
|
1445
|
+
.toast > .toast-content > footer { @apply gap-3; }
|
|
1446
|
+
.toast > .toast-content > footer > .btn[data-size='icon-sm'] { @apply text-muted-foreground hover:text-foreground; }
|
|
1447
|
+
.toast[data-category='error'] > .toast-content > svg { @apply text-destructive; }
|
|
1341
1448
|
|
|
1342
1449
|
/* Slider */
|
|
1343
1450
|
.field > input[type='range'],
|
|
@@ -1415,4 +1522,234 @@
|
|
|
1415
1522
|
@apply ring-1;
|
|
1416
1523
|
}
|
|
1417
1524
|
|
|
1525
|
+
|
|
1526
|
+
/* Bubble */
|
|
1527
|
+
.bubble-group {
|
|
1528
|
+
@apply gap-2;
|
|
1529
|
+
}
|
|
1530
|
+
.bubble {
|
|
1531
|
+
@apply gap-1 max-w-[80%];
|
|
1532
|
+
}
|
|
1533
|
+
.bubble[data-align='end'],
|
|
1534
|
+
.bubble[data-align='end'] > :first-child {
|
|
1535
|
+
@apply self-end;
|
|
1536
|
+
}
|
|
1537
|
+
.bubble > :first-child {
|
|
1538
|
+
@apply rounded-none border border-transparent px-2.5 py-2 text-xs leading-relaxed;
|
|
1539
|
+
}
|
|
1540
|
+
.bubble > :is(a, button):first-child {
|
|
1541
|
+
@apply focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50;
|
|
1542
|
+
}
|
|
1543
|
+
.bubble:not([data-variant]) > :first-child,
|
|
1544
|
+
.bubble[data-variant='default'] > :first-child {
|
|
1545
|
+
@apply bg-primary text-primary-foreground;
|
|
1546
|
+
}
|
|
1547
|
+
.bubble:not([data-variant]) > :is(a, button):first-child:hover,
|
|
1548
|
+
.bubble[data-variant='default'] > :is(a, button):first-child:hover {
|
|
1549
|
+
@apply bg-primary/80;
|
|
1550
|
+
}
|
|
1551
|
+
.bubble[data-variant='secondary'] > :first-child {
|
|
1552
|
+
@apply bg-secondary text-secondary-foreground;
|
|
1553
|
+
}
|
|
1554
|
+
.bubble[data-variant='secondary'] > :is(a, button):first-child:hover {
|
|
1555
|
+
@apply bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)];
|
|
1556
|
+
}
|
|
1557
|
+
.bubble[data-variant='muted'] > :first-child {
|
|
1558
|
+
@apply bg-muted;
|
|
1559
|
+
}
|
|
1560
|
+
.bubble[data-variant='muted'] > :is(a, button):first-child:hover {
|
|
1561
|
+
@apply bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)];
|
|
1562
|
+
}
|
|
1563
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
1564
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_15%,var(--background))] text-foreground;
|
|
1565
|
+
}
|
|
1566
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
1567
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_25%,var(--background))];
|
|
1568
|
+
}
|
|
1569
|
+
/* Keep a tint in browsers without relative colors. */
|
|
1570
|
+
@supports (color: oklch(from currentColor l c h)) {
|
|
1571
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
1572
|
+
@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)];
|
|
1573
|
+
}
|
|
1574
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
1575
|
+
@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)];
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
.bubble[data-variant='outline'] > :first-child {
|
|
1579
|
+
@apply bg-background border-border;
|
|
1580
|
+
}
|
|
1581
|
+
.bubble[data-variant='outline'] > :is(a, button):first-child:hover {
|
|
1582
|
+
@apply bg-muted text-foreground dark:bg-input/30;
|
|
1583
|
+
}
|
|
1584
|
+
.bubble[data-variant='ghost'] {
|
|
1585
|
+
@apply max-w-full border-none;
|
|
1586
|
+
}
|
|
1587
|
+
.bubble[data-variant='ghost'] > :first-child {
|
|
1588
|
+
@apply rounded-none bg-transparent p-0;
|
|
1589
|
+
}
|
|
1590
|
+
.bubble[data-variant='ghost'] > :is(a, button):first-child:hover {
|
|
1591
|
+
@apply bg-muted text-foreground dark:bg-muted/50;
|
|
1592
|
+
}
|
|
1593
|
+
.bubble[data-variant='destructive'] > :first-child {
|
|
1594
|
+
@apply bg-destructive/10 dark:bg-destructive/20 text-destructive;
|
|
1595
|
+
}
|
|
1596
|
+
.bubble[data-variant='destructive'] > :is(a, button):first-child:hover {
|
|
1597
|
+
@apply bg-destructive/20 dark:bg-destructive/30;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
.bubble > div:not(:first-child) {
|
|
1601
|
+
@apply rounded-none ring-2 ring-card bg-muted gap-1 px-1.5 py-0.5 has-[button]:p-0 text-xs;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
.bubble > div:not(:first-child):not([data-side='top']) {
|
|
1605
|
+
@apply bottom-0 translate-y-3/4;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
.bubble > div:not(:first-child)[data-side='top'] {
|
|
1609
|
+
@apply top-0 -translate-y-3/4;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
.bubble > div:not(:first-child):not([data-align='start']) {
|
|
1613
|
+
@apply end-3;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
.bubble > div:not(:first-child)[data-align='start'] {
|
|
1617
|
+
@apply start-3;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
/* Attachment */
|
|
1621
|
+
.attachment {
|
|
1622
|
+
@apply rounded-none w-fit has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-ring/50 border bg-card text-card-foreground;
|
|
1623
|
+
}
|
|
1624
|
+
.attachment:has(> a, > button:enabled):hover {
|
|
1625
|
+
@apply bg-muted/50;
|
|
1626
|
+
}
|
|
1627
|
+
.attachment[data-state='error'] {
|
|
1628
|
+
@apply border-destructive/30;
|
|
1629
|
+
}
|
|
1630
|
+
.attachment[data-state='idle'] {
|
|
1631
|
+
@apply border-dashed;
|
|
1632
|
+
}
|
|
1633
|
+
.attachment:not([data-orientation='vertical']) {
|
|
1634
|
+
@apply min-w-40;
|
|
1635
|
+
}
|
|
1636
|
+
.attachment[data-orientation='vertical'] {
|
|
1637
|
+
@apply w-24 has-[>section]:w-30;
|
|
1638
|
+
}
|
|
1639
|
+
.attachment:not([data-size]),
|
|
1640
|
+
.attachment[data-size='default'] {
|
|
1641
|
+
@apply gap-2 text-xs;
|
|
1642
|
+
}
|
|
1643
|
+
.attachment:not([data-size]):has(> section),
|
|
1644
|
+
.attachment[data-size='default']:has(> section) {
|
|
1645
|
+
@apply px-2 py-1.5;
|
|
1646
|
+
}
|
|
1647
|
+
.attachment:not([data-size]):has(> figure),
|
|
1648
|
+
.attachment[data-size='default']:has(> figure) {
|
|
1649
|
+
@apply p-1.5;
|
|
1650
|
+
}
|
|
1651
|
+
.attachment[data-size='sm'] {
|
|
1652
|
+
@apply gap-2.5 text-xs;
|
|
1653
|
+
}
|
|
1654
|
+
.attachment[data-size='sm']:has(> section) {
|
|
1655
|
+
@apply px-1.5 py-1;
|
|
1656
|
+
}
|
|
1657
|
+
.attachment[data-size='sm']:has(> figure) {
|
|
1658
|
+
@apply p-1;
|
|
1659
|
+
}
|
|
1660
|
+
.attachment[data-size='xs'] {
|
|
1661
|
+
@apply gap-1.5 text-xs rounded-none;
|
|
1662
|
+
}
|
|
1663
|
+
.attachment[data-size='xs']:has(> section) {
|
|
1664
|
+
@apply px-1.5 py-1;
|
|
1665
|
+
}
|
|
1666
|
+
.attachment[data-size='xs']:has(> figure) {
|
|
1667
|
+
@apply p-1;
|
|
1668
|
+
}
|
|
1669
|
+
.attachment > figure {
|
|
1670
|
+
@apply bg-muted text-foreground w-10 rounded-none;
|
|
1671
|
+
}
|
|
1672
|
+
.attachment[data-size='sm'] > figure {
|
|
1673
|
+
@apply w-8;
|
|
1674
|
+
}
|
|
1675
|
+
.attachment[data-size='xs'] > figure {
|
|
1676
|
+
@apply w-7 rounded-none;
|
|
1677
|
+
}
|
|
1678
|
+
.attachment > figure > svg {
|
|
1679
|
+
@apply size-4;
|
|
1680
|
+
}
|
|
1681
|
+
.attachment[data-size='xs'] > figure > svg {
|
|
1682
|
+
@apply size-3.5;
|
|
1683
|
+
}
|
|
1684
|
+
.attachment[data-orientation='vertical'] > figure {
|
|
1685
|
+
@apply w-full;
|
|
1686
|
+
}
|
|
1687
|
+
.attachment[data-orientation='vertical'] > figure > svg {
|
|
1688
|
+
@apply size-6;
|
|
1689
|
+
}
|
|
1690
|
+
.attachment:is([data-state='uploading'], [data-state='processing'], [data-state='error']) > figure:has(> img) {
|
|
1691
|
+
@apply opacity-60;
|
|
1692
|
+
}
|
|
1693
|
+
.attachment[data-state='error'] > figure {
|
|
1694
|
+
@apply bg-destructive/10 text-destructive;
|
|
1695
|
+
}
|
|
1696
|
+
.attachment > section {
|
|
1697
|
+
@apply leading-tight;
|
|
1698
|
+
}
|
|
1699
|
+
.attachment[data-orientation='vertical'] > section {
|
|
1700
|
+
@apply px-1;
|
|
1701
|
+
}
|
|
1702
|
+
.attachment > section > :first-child {
|
|
1703
|
+
@apply font-medium;
|
|
1704
|
+
}
|
|
1705
|
+
.attachment > section > :not(:first-child) {
|
|
1706
|
+
@apply mt-0.5 text-xs text-muted-foreground;
|
|
1707
|
+
}
|
|
1708
|
+
.attachment[data-state='error'] > section > :not(:first-child) {
|
|
1709
|
+
@apply text-destructive/80;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
.attachment[data-orientation='vertical'] > div {
|
|
1713
|
+
@apply top-3 end-3 gap-1;
|
|
1714
|
+
}
|
|
1715
|
+
.attachment-group {
|
|
1716
|
+
@apply gap-3 py-1;
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
|
|
1720
|
+
/* Code Block */
|
|
1721
|
+
.code-block {
|
|
1722
|
+
@apply rounded-none text-sm data-[size=sm]:text-xs has-[>pre:focus-visible]:ring-1 has-[>pre:focus-visible]:ring-ring/50;
|
|
1723
|
+
--_code-padding: calc(var(--spacing, 0.25rem) * 3);
|
|
1724
|
+
}
|
|
1725
|
+
.code-block:not([data-variant='destructive']) { @apply border border-input text-foreground dark:bg-input/30 has-[>pre:focus-visible]:border-ring; }
|
|
1726
|
+
.code-block[data-variant='destructive'] { @apply border border-destructive/30 text-destructive dark:border-destructive/40; }
|
|
1727
|
+
.code-block[data-size='sm'] { --_code-padding: calc(var(--spacing, 0.25rem) * 2); }
|
|
1728
|
+
.code-block > header { @apply gap-2 text-muted-foreground; padding: var(--_code-padding) var(--_code-padding) 0; }
|
|
1729
|
+
.code-block > footer { @apply gap-2 text-muted-foreground; padding: 0 var(--_code-padding) var(--_code-padding); }
|
|
1730
|
+
.code-block > header > :first-child:not(div) { @apply font-sans text-xs font-medium text-foreground [&_svg]:me-1.5 [&_svg:not([class*='size-'])]:size-3.5; }
|
|
1731
|
+
.code-block[data-size='sm'] > header > :first-child:not(div) { @apply text-xs [&_svg:not([class*='size-'])]:size-3.5; }
|
|
1732
|
+
.code-block[data-variant='destructive'] > :is(header, footer),
|
|
1733
|
+
.code-block[data-variant='destructive'] > header > :first-child:not(div) { @apply text-destructive; }
|
|
1734
|
+
.code-block > header > div { @apply -my-1 -me-1.5 gap-1; }
|
|
1735
|
+
.code-block > div { @apply top-2 end-2 gap-1; }
|
|
1736
|
+
.code-block[data-size='sm'] > div { @apply top-1.5 end-1.5; }
|
|
1737
|
+
.code-block > div > button { @apply bg-background ring-1 ring-foreground/10; }
|
|
1738
|
+
.code-block > pre { @apply leading-relaxed; padding: var(--_code-padding); }
|
|
1739
|
+
.code-block:has(> header) > pre { @apply pt-2; }
|
|
1740
|
+
.code-block:has(> footer) > pre { @apply pb-2; }
|
|
1741
|
+
.code-block[data-size='sm']:has(> header) > pre { @apply pt-1.5; }
|
|
1742
|
+
.code-block > pre > code > span { margin-inline: calc(-1 * var(--_code-padding)); padding-inline: var(--_code-padding); }
|
|
1743
|
+
.code-block > pre > code > span::before { @apply text-end text-muted-foreground; }
|
|
1744
|
+
|
|
1745
|
+
/* Input OTP */
|
|
1746
|
+
.input-otp > div { @apply gap-2; }
|
|
1747
|
+
.input-otp > div > div { @apply rounded-none; }
|
|
1748
|
+
.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-xs transition-all outline-none first:rounded-none first:border-s last:rounded-none data-[active]:ring-1; }
|
|
1749
|
+
.input-otp > div > svg { @apply size-4 shrink-0; }
|
|
1750
|
+
.input-otp > div > div > span[data-caret]::after { @apply h-4 w-px bg-foreground; }
|
|
1751
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div > span { @apply border-destructive; }
|
|
1752
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div { @apply ring-1 ring-destructive/20 dark:ring-destructive/40; }
|
|
1753
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div > span[data-active] { @apply border-destructive ring-destructive/20 dark:ring-destructive/40; }
|
|
1754
|
+
|
|
1418
1755
|
}
|