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
|
@@ -0,0 +1,4295 @@
|
|
|
1
|
+
/* Basecoat v1.2.0, sera, single-file source. Import after tailwindcss. */
|
|
2
|
+
@custom-variant dark (&:is(html.dark *));
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--radius: 0.625rem;
|
|
6
|
+
--background: oklch(1 0 0);
|
|
7
|
+
--foreground: oklch(0.145 0 0);
|
|
8
|
+
--card: oklch(1 0 0);
|
|
9
|
+
--card-foreground: oklch(0.145 0 0);
|
|
10
|
+
--popover: oklch(1 0 0);
|
|
11
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
12
|
+
--primary: oklch(0.205 0 0);
|
|
13
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
14
|
+
--secondary: oklch(0.97 0 0);
|
|
15
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
16
|
+
--muted: oklch(0.97 0 0);
|
|
17
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
18
|
+
--accent: oklch(0.97 0 0);
|
|
19
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
20
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
21
|
+
--border: oklch(0.922 0 0);
|
|
22
|
+
--input: oklch(0.922 0 0);
|
|
23
|
+
--ring: oklch(0.708 0 0);
|
|
24
|
+
--chart-1: #93c5fd;
|
|
25
|
+
--chart-2: #3b82f6;
|
|
26
|
+
--chart-3: #2563eb;
|
|
27
|
+
--chart-4: #1d4ed8;
|
|
28
|
+
--chart-5: #1e40af;
|
|
29
|
+
--sidebar: oklch(0.985 0 0);
|
|
30
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
31
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
32
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
33
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
34
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
35
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
36
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
37
|
+
--sidebar-width: 16rem;
|
|
38
|
+
--sidebar-mobile-width: 18rem;
|
|
39
|
+
--scrollbar-track: transparent;
|
|
40
|
+
--scrollbar-thumb: var(--border);
|
|
41
|
+
--scrollbar-width: 0.625rem;
|
|
42
|
+
--scrollbar-sm-width: 0.375rem;
|
|
43
|
+
--scrollbar-radius: 9999px;
|
|
44
|
+
--chevron-down-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground */
|
|
45
|
+
--chevron-down-icon-50: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0 / 0.5)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground + 50% opacity */
|
|
46
|
+
--check-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.556 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>'); /* --muted-foreground */
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.dark {
|
|
50
|
+
--background: oklch(0.145 0 0);
|
|
51
|
+
--foreground: oklch(0.985 0 0);
|
|
52
|
+
--card: oklch(0.205 0 0);
|
|
53
|
+
--card-foreground: oklch(0.985 0 0);
|
|
54
|
+
--popover: oklch(0.205 0 0);
|
|
55
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
56
|
+
--primary: oklch(0.922 0 0);
|
|
57
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
58
|
+
--secondary: oklch(0.269 0 0);
|
|
59
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
60
|
+
--muted: oklch(0.269 0 0);
|
|
61
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
62
|
+
--accent: oklch(0.371 0 0);
|
|
63
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
64
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
65
|
+
--border: oklch(1 0 0 / 10%);
|
|
66
|
+
--input: oklch(1 0 0 / 15%);
|
|
67
|
+
--ring: oklch(0.556 0 0);
|
|
68
|
+
--chart-1: #93c5fd;
|
|
69
|
+
--chart-2: #3b82f6;
|
|
70
|
+
--chart-3: #2563eb;
|
|
71
|
+
--chart-4: #1d4ed8;
|
|
72
|
+
--chart-5: #1e40af;
|
|
73
|
+
--sidebar: oklch(0.205 0 0);
|
|
74
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
75
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
76
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
77
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
78
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
79
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
80
|
+
--sidebar-ring: oklch(0.439 0 0);
|
|
81
|
+
--chevron-down-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground */
|
|
82
|
+
--chevron-down-icon-50: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0 / 0.5)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down-icon lucide-chevron-down"><path d="m6 9 6 6 6-6"/></svg>'); /* --muted-foreground + 50% opacity */
|
|
83
|
+
--check-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="oklch(0.708 0 0)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-icon lucide-check"><path d="M20 6 9 17l-5-5"/></svg>');/* --muted-foreground */
|
|
84
|
+
color-scheme: dark;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@theme {
|
|
88
|
+
--font-sans: "Geist", "Geist Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
89
|
+
--font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
90
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
91
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
92
|
+
--radius-lg: var(--radius);
|
|
93
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
94
|
+
--radius-2xl: calc(var(--radius) + 8px);
|
|
95
|
+
--color-background: var(--background);
|
|
96
|
+
--color-foreground: var(--foreground);
|
|
97
|
+
--color-card: var(--card);
|
|
98
|
+
--color-card-foreground: var(--card-foreground);
|
|
99
|
+
--color-popover: var(--popover);
|
|
100
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
101
|
+
--color-primary: var(--primary);
|
|
102
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
103
|
+
--color-secondary: var(--secondary);
|
|
104
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
105
|
+
--color-muted: var(--muted);
|
|
106
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
107
|
+
--color-accent: var(--accent);
|
|
108
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
109
|
+
--color-destructive: var(--destructive);
|
|
110
|
+
--color-border: var(--border);
|
|
111
|
+
--color-input: var(--input);
|
|
112
|
+
--color-ring: var(--ring);
|
|
113
|
+
--color-chart-1: var(--chart-1);
|
|
114
|
+
--color-chart-2: var(--chart-2);
|
|
115
|
+
--color-chart-3: var(--chart-3);
|
|
116
|
+
--color-chart-4: var(--chart-4);
|
|
117
|
+
--color-chart-5: var(--chart-5);
|
|
118
|
+
--color-sidebar: var(--sidebar);
|
|
119
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
120
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
121
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
122
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
123
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
124
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
125
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@layer base {
|
|
129
|
+
* {
|
|
130
|
+
@apply border-border outline-ring/50;
|
|
131
|
+
}
|
|
132
|
+
html {
|
|
133
|
+
@apply scroll-smooth;
|
|
134
|
+
}
|
|
135
|
+
body {
|
|
136
|
+
@apply bg-background text-foreground overscroll-none;
|
|
137
|
+
}
|
|
138
|
+
hr:where([aria-orientation='vertical']) {
|
|
139
|
+
flex-shrink: 0;
|
|
140
|
+
align-self: stretch;
|
|
141
|
+
inline-size: 1px;
|
|
142
|
+
block-size: auto;
|
|
143
|
+
margin: 0;
|
|
144
|
+
border-block-start-width: 0;
|
|
145
|
+
border-inline-start-width: 1px;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
/* Components */
|
|
149
|
+
@source inline("transition-details");
|
|
150
|
+
|
|
151
|
+
@utility transition-details {
|
|
152
|
+
&::details-content {
|
|
153
|
+
block-size: 0;
|
|
154
|
+
@apply flow-root overflow-clip transition-[block-size,content-visibility,opacity] transition-discrete motion-reduce:transition-none;
|
|
155
|
+
}
|
|
156
|
+
&[open]::details-content {
|
|
157
|
+
block-size: auto;
|
|
158
|
+
block-size: calc-size(auto, size);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Accordion */
|
|
163
|
+
@layer components {
|
|
164
|
+
.accordion > details {
|
|
165
|
+
@apply transition-details;
|
|
166
|
+
&::details-content { @apply opacity-0; }
|
|
167
|
+
&[open]::details-content { @apply opacity-100; }
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.accordion {
|
|
171
|
+
@apply flex w-full flex-col;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.accordion > details > summary {
|
|
175
|
+
@apply relative flex w-full flex-1 cursor-pointer list-none items-start justify-between border border-transparent transition-all outline-none;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.accordion > details > summary > svg:last-child {
|
|
179
|
+
@apply pointer-events-none shrink-0 transition-transform motion-reduce:transition-none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.accordion > details[open] > summary > svg:last-child {
|
|
183
|
+
@apply rotate-180;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.accordion > details[aria-disabled='true'] > summary,
|
|
187
|
+
.accordion > details > summary[aria-disabled='true'] {
|
|
188
|
+
@apply pointer-events-none opacity-50;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.accordion > details > :not(summary) {
|
|
192
|
+
@apply overflow-hidden;
|
|
193
|
+
}
|
|
194
|
+
@media (forced-colors: active) {
|
|
195
|
+
.accordion > details > summary:focus-visible {
|
|
196
|
+
outline: 2px solid Highlight;
|
|
197
|
+
outline-offset: 2px;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
/* Alert */
|
|
202
|
+
@layer components {
|
|
203
|
+
.alert {
|
|
204
|
+
@apply relative w-full;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.alert:has(> footer) {
|
|
208
|
+
@apply pe-[4.5rem];
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.alert > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
212
|
+
@apply min-h-4;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.alert > :is(h2, h3, h4, h5, h6, strong, [data-title], section) :where(a[href]:not(.btn)) {
|
|
216
|
+
@apply underline decoration-dotted decoration-current/50 underline-offset-3 hover:text-foreground hover:decoration-current focus-visible:decoration-current;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.alert > section {
|
|
220
|
+
@apply grid justify-items-start gap-1;
|
|
221
|
+
|
|
222
|
+
:where(p, ul, ol) {
|
|
223
|
+
@apply m-0;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
:where(p, ul, ol):not(:last-child) {
|
|
227
|
+
@apply mb-4;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
ul {
|
|
231
|
+
@apply list-inside list-disc;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
ol {
|
|
235
|
+
@apply list-inside list-decimal;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.alert > footer {
|
|
240
|
+
@apply absolute;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
/* Avatar */
|
|
244
|
+
@layer components {
|
|
245
|
+
.avatar {
|
|
246
|
+
@apply relative inline-flex shrink-0 select-none appearance-none border-0 bg-transparent p-0 align-middle outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 after:absolute after:inset-0 after:rounded-[inherit] after:border after:border-border after:mix-blend-darken dark:after:mix-blend-lighten;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.avatar > img {
|
|
250
|
+
@apply absolute inset-0 aspect-square size-full rounded-[inherit] object-cover;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.avatar > span:not(.avatar-badge) {
|
|
254
|
+
@apply flex size-full items-center justify-center rounded-[inherit] text-sm;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.avatar[data-size='sm'] > span:not(.avatar-badge) {
|
|
258
|
+
@apply text-xs;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.avatar > .avatar-badge {
|
|
262
|
+
@apply absolute end-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.avatar[data-size='sm'] > .avatar-badge {
|
|
266
|
+
@apply size-2 [&>svg]:hidden;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.avatar > .avatar-badge {
|
|
270
|
+
@apply size-2.5 [&>svg]:size-2;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.avatar[data-size='lg'] > .avatar-badge {
|
|
274
|
+
@apply size-3 [&>svg]:size-2;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.avatar-group {
|
|
278
|
+
@apply flex -space-x-2;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.avatar-group > .avatar,
|
|
282
|
+
.avatar-group > [data-count] {
|
|
283
|
+
@apply ring-2 ring-background;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.avatar-group > [data-count] {
|
|
287
|
+
@apply relative flex shrink-0 items-center justify-center;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
/* Badge */
|
|
291
|
+
@layer components {
|
|
292
|
+
.badge {
|
|
293
|
+
@apply inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
/* Breadcrumb */
|
|
297
|
+
@layer components {
|
|
298
|
+
.breadcrumb > ol {
|
|
299
|
+
@apply m-0 flex list-none flex-wrap items-center p-0 break-words;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.breadcrumb li {
|
|
303
|
+
@apply inline-flex items-center;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.breadcrumb a {
|
|
307
|
+
@apply rounded-sm outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.breadcrumb [aria-current='page'] {
|
|
311
|
+
@apply cursor-default;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.breadcrumb li[aria-hidden='true'] {
|
|
315
|
+
@apply select-none;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.breadcrumb li > span[aria-hidden='true'] {
|
|
319
|
+
@apply flex items-center justify-center;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.breadcrumb [data-rtl-flip] {
|
|
323
|
+
@apply rtl:rotate-180;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
/* Button */
|
|
327
|
+
@layer components {
|
|
328
|
+
.btn {
|
|
329
|
+
@apply inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
330
|
+
}
|
|
331
|
+
.btn:has(> input:is([type='checkbox'], [type='radio'])) {
|
|
332
|
+
@apply relative;
|
|
333
|
+
}
|
|
334
|
+
.btn > input:is([type='checkbox'], [type='radio']) {
|
|
335
|
+
@apply sr-only;
|
|
336
|
+
}
|
|
337
|
+
@media (forced-colors: active) {
|
|
338
|
+
.btn:has(> input:checked)::after {
|
|
339
|
+
content: '';
|
|
340
|
+
position: absolute;
|
|
341
|
+
inset: 4px;
|
|
342
|
+
border: 2px solid Highlight;
|
|
343
|
+
pointer-events: none;
|
|
344
|
+
}
|
|
345
|
+
.btn:focus-visible,
|
|
346
|
+
.btn:has(> input:focus-visible) {
|
|
347
|
+
outline: 2px solid Highlight;
|
|
348
|
+
outline-offset: 2px;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
.btn:has(> input:disabled) {
|
|
352
|
+
@apply pointer-events-none opacity-50;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
/* Button Group */
|
|
356
|
+
@layer components {
|
|
357
|
+
.button-group {
|
|
358
|
+
@apply isolate inline-flex w-fit items-stretch;
|
|
359
|
+
|
|
360
|
+
&:has(> :is(.dropdown-menu, .popover, .select) > [data-popover][aria-hidden='false']) {
|
|
361
|
+
@apply relative z-50;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
> .input {
|
|
365
|
+
@apply flex-1;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
> *:focus-visible,
|
|
369
|
+
> .btn:has(> input:focus-visible),
|
|
370
|
+
> :is(.dropdown-menu, .popover, .select) > button:focus-visible {
|
|
371
|
+
@apply relative z-10;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
> hr[role='separator'] {
|
|
375
|
+
@apply relative w-px h-auto self-stretch shrink-0 border-0 my-px mx-0;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
&:not([data-orientation='vertical']) {
|
|
379
|
+
> *:not(:first-child),
|
|
380
|
+
> :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
|
|
381
|
+
@apply rounded-s-none border-s-0;
|
|
382
|
+
}
|
|
383
|
+
> *:not(:last-child),
|
|
384
|
+
> :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
|
|
385
|
+
@apply rounded-e-none;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
&[data-orientation='vertical'] {
|
|
389
|
+
@apply flex-col;
|
|
390
|
+
|
|
391
|
+
> hr[role='separator'] {
|
|
392
|
+
@apply w-auto h-px mx-px my-0;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
> *:not(:first-child),
|
|
396
|
+
> :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
|
|
397
|
+
@apply rounded-t-none border-t-0;
|
|
398
|
+
}
|
|
399
|
+
> *:not(:last-child),
|
|
400
|
+
> :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
|
|
401
|
+
@apply rounded-b-none;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.button-group > :is(span, label, output):not(.btn) {
|
|
407
|
+
@apply flex items-center [&_svg]:pointer-events-none;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
/* Card */
|
|
411
|
+
@layer components {
|
|
412
|
+
.card {
|
|
413
|
+
@apply flex flex-col;
|
|
414
|
+
|
|
415
|
+
> header {
|
|
416
|
+
@apply @container/card-header grid auto-rows-min items-start has-[>[data-slot=card-action],>.card-action]:grid-cols-[1fr_auto] has-[>p]:grid-rows-[auto_auto];
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
> header > :is(h2, h3, [data-title], .card-title) {
|
|
420
|
+
@apply leading-none;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
> header > :is([data-slot='card-action'], .card-action) {
|
|
424
|
+
@apply col-start-2 row-span-2 row-start-1 self-start justify-self-end;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
> header > menu.card-action {
|
|
428
|
+
@apply m-0 list-none p-0;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
> footer {
|
|
432
|
+
@apply flex items-center;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
/* Chart */
|
|
437
|
+
@layer components {
|
|
438
|
+
.chart {
|
|
439
|
+
@apply relative flex aspect-video w-full justify-center text-xs;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.chart > canvas {
|
|
443
|
+
@apply block size-full;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.chart-tooltip {
|
|
447
|
+
@apply pointer-events-none fixed z-50 grid min-w-32 -translate-x-1/2 translate-y-2 items-start transition-[left,top,opacity] duration-150 ease-out;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.chart-tooltip[hidden] {
|
|
451
|
+
@apply opacity-0;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.chart-tooltip-items {
|
|
455
|
+
@apply grid gap-1.5;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.chart-tooltip-item {
|
|
459
|
+
@apply flex w-full flex-wrap items-center gap-2;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.chart-tooltip-indicator {
|
|
463
|
+
@apply size-2.5 shrink-0 rounded-[2px];
|
|
464
|
+
background-color: var(--chart-indicator-color);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.chart-legend-indicator {
|
|
468
|
+
@apply size-2 shrink-0 rounded-[2px];
|
|
469
|
+
background-color: var(--chart-indicator-color);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.chart-tooltip-label {
|
|
473
|
+
@apply text-muted-foreground leading-none;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.chart-tooltip-value {
|
|
477
|
+
@apply ms-auto font-mono font-medium leading-none tabular-nums;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.chart-legend {
|
|
481
|
+
@apply flex flex-wrap items-center justify-center gap-4 pt-3;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.chart-legend-item {
|
|
485
|
+
@apply flex items-center gap-1.5 text-xs;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.chart-legend-item[aria-pressed='false'] {
|
|
489
|
+
@apply opacity-70;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
/* Collapsible */
|
|
493
|
+
@layer components {
|
|
494
|
+
details {
|
|
495
|
+
summary {
|
|
496
|
+
@apply inline-flex items-center cursor-pointer;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
details > summary::-webkit-details-marker {
|
|
500
|
+
display: none;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
@keyframes command-scroll-lock {
|
|
504
|
+
from, to {
|
|
505
|
+
scrollbar-gutter: stable;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/* Command */
|
|
510
|
+
@layer components {
|
|
511
|
+
/* Reserve the scrollbar gutter only when the page can scroll. */
|
|
512
|
+
html:has(.command-dialog:modal) {
|
|
513
|
+
overflow: hidden;
|
|
514
|
+
animation: command-scroll-lock linear both;
|
|
515
|
+
animation-timeline: scroll(self);
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.command-dialog {
|
|
519
|
+
@apply inset-y-0 bg-transparent p-0 text-inherit opacity-0 transition-all transition-discrete;
|
|
520
|
+
max-width: none;
|
|
521
|
+
max-height: none;
|
|
522
|
+
|
|
523
|
+
&:is([open], :popover-open) {
|
|
524
|
+
@apply opacity-100;
|
|
525
|
+
|
|
526
|
+
&::backdrop {
|
|
527
|
+
@apply opacity-100;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
> .command {
|
|
531
|
+
@apply scale-100;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
@starting-style {
|
|
535
|
+
@apply opacity-0;
|
|
536
|
+
|
|
537
|
+
&::backdrop {
|
|
538
|
+
@apply opacity-0;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
> .command {
|
|
542
|
+
@apply scale-95;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
&::backdrop {
|
|
548
|
+
@apply opacity-0 transition-all transition-discrete;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
> .command {
|
|
552
|
+
@apply fixed top-1/3 left-1/2 z-50 flex max-h-[min(640px,calc(100%_-_2rem))] w-full max-w-[calc(100%_-_2rem)] -translate-x-1/2 translate-y-0 scale-95 flex-col overflow-hidden transition-all sm:max-w-sm;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
> .command > :is(button, form[method='dialog']) {
|
|
556
|
+
@apply absolute;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
> .command > :is(button, form[method='dialog'] > button) {
|
|
560
|
+
@apply inline-flex items-center justify-center opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
> .command > :is(button, form[method='dialog'] > button) > svg:not([class*='size-']) {
|
|
564
|
+
@apply size-4;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.command {
|
|
569
|
+
@apply flex w-full flex-col overflow-hidden;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.command > header {
|
|
573
|
+
@apply flex items-center;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.command > header svg {
|
|
577
|
+
@apply shrink-0;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.command > header input {
|
|
581
|
+
@apply w-full bg-transparent outline-hidden disabled:cursor-not-allowed disabled:opacity-50;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.command [role='menu'] {
|
|
585
|
+
@apply overflow-x-hidden overflow-y-auto outline-hidden;
|
|
586
|
+
scrollbar-width: none;
|
|
587
|
+
|
|
588
|
+
&::-webkit-scrollbar {
|
|
589
|
+
display: none;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.command [role='menuitem'] {
|
|
594
|
+
@apply aria-hidden:hidden relative flex w-full cursor-default items-center outline-hidden select-none disabled:pointer-events-none disabled:opacity-50 data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.command [role='menuitem'].active,
|
|
598
|
+
.command [role='menuitem'][data-selected='true'] {
|
|
599
|
+
@apply bg-muted text-foreground;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.command [role='group'] {
|
|
603
|
+
@apply overflow-hidden;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.command [role='group']:not(:has([role='menuitem']:not([aria-hidden='true']))) {
|
|
607
|
+
@apply hidden;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.command [role='heading'] {
|
|
611
|
+
@apply flex;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.command [role='separator'] {
|
|
615
|
+
@apply border-0;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.command [data-shortcut] {
|
|
619
|
+
@apply ms-auto;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.command [data-indicator] {
|
|
623
|
+
@apply ms-auto opacity-0;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.command [role='menuitem'][data-checked='true'] [data-indicator],
|
|
627
|
+
.command [role='menuitem'][aria-selected='true'] [data-indicator],
|
|
628
|
+
.command [role='menuitem'][data-selected='true'] [data-indicator] {
|
|
629
|
+
@apply opacity-100;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.command [role='menuitem']:has([data-shortcut]) [data-indicator] {
|
|
633
|
+
@apply hidden;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.command [role='menu']:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
637
|
+
@apply flex items-center justify-center truncate;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.command [role='menu'][data-empty]:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
641
|
+
@apply content-[attr(data-empty)];
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.command [role='menu']:not([data-empty]):not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
645
|
+
@apply content-['No_results_found'];
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.command:not([data-command-initialized]) [role='menuitem']:not([aria-disabled='true']):not(:disabled):hover {
|
|
649
|
+
@apply bg-muted text-foreground;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.command:has(> header input:not(:placeholder-shown)) [role='separator'] {
|
|
653
|
+
@apply hidden;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
/* Combobox */
|
|
657
|
+
@layer components {
|
|
658
|
+
.combobox {
|
|
659
|
+
@apply relative inline-flex w-fit flex-col;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.combobox > input[role='combobox'] {
|
|
663
|
+
@apply w-full min-w-0 outline-hidden placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.combobox .input-group input[role='combobox'],
|
|
667
|
+
.combobox [data-popover] input[role='combobox'] {
|
|
668
|
+
@apply min-w-0 outline-hidden placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.combobox > svg,
|
|
672
|
+
.combobox-trigger-icon {
|
|
673
|
+
@apply pointer-events-none absolute shrink-0;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.combobox:has(> .combobox-chips) > .combobox-trigger-icon {
|
|
677
|
+
@apply hidden;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.combobox [data-clear] {
|
|
681
|
+
@apply inline-flex size-6 shrink-0 cursor-default appearance-none items-center justify-center border-0 bg-transparent p-0 text-current disabled:pointer-events-none disabled:opacity-50;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.combobox [data-clear][hidden] {
|
|
685
|
+
@apply hidden;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.combobox .input-group:has([data-clear]:not([hidden])) button[aria-haspopup='listbox'] {
|
|
689
|
+
@apply hidden;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.combobox [data-popover] {
|
|
693
|
+
@apply isolate overflow-hidden;
|
|
694
|
+
min-width: max(100%, 9rem);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.combobox [role='listbox'] {
|
|
698
|
+
@apply outline-hidden overflow-x-hidden overflow-y-auto;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.combobox [role='listbox'] [role='group']:not(:has([role='option']:not([aria-hidden='true']))) {
|
|
702
|
+
@apply hidden;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
706
|
+
@apply flex items-center justify-center truncate;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.combobox [role='listbox'][data-empty]:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
710
|
+
@apply content-[attr(data-empty)];
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
.combobox [role='listbox']:not([data-empty]):not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
714
|
+
@apply content-['No_results_found'];
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.combobox [role='option'] {
|
|
718
|
+
@apply aria-hidden:hidden relative flex w-full cursor-default items-center truncate outline-hidden select-none aria-disabled:pointer-events-none aria-disabled:opacity-50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.combobox [role='option'][aria-selected='true'] {
|
|
722
|
+
@apply bg-[image:var(--check-icon)] bg-no-repeat bg-position-[center_right_0.5rem] bg-size-[0.875rem];
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
.combobox [role='option'][aria-selected='true']:dir(rtl) {
|
|
726
|
+
@apply bg-position-[center_left_0.5rem];
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.combobox [role='separator'] {
|
|
730
|
+
@apply border-0;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.combobox [role='option'].active,
|
|
734
|
+
.combobox [role='option']:focus-visible,
|
|
735
|
+
.combobox:not([data-combobox-initialized]) [role='option']:not([aria-disabled='true']):not(:disabled):hover {
|
|
736
|
+
@apply bg-accent text-accent-foreground;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.combobox-chips {
|
|
740
|
+
@apply flex w-full min-w-0 flex-wrap items-center;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.combobox-chips > input[role='combobox'] {
|
|
744
|
+
@apply min-w-16 flex-1 bg-transparent outline-hidden placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
.combobox-chip {
|
|
748
|
+
@apply inline-flex w-fit shrink-0 items-center whitespace-nowrap;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.combobox-chip-remove {
|
|
752
|
+
@apply inline-flex shrink-0 items-center justify-center;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
@keyframes dialog-scroll-lock {
|
|
756
|
+
from, to {
|
|
757
|
+
scrollbar-gutter: stable;
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
@layer components {
|
|
762
|
+
/* Reserve the scrollbar gutter only when the page can scroll. */
|
|
763
|
+
html:has(:is(.dialog, .alert-dialog):modal) {
|
|
764
|
+
overflow: hidden;
|
|
765
|
+
animation: dialog-scroll-lock linear both;
|
|
766
|
+
animation-timeline: scroll(self);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.dialog,
|
|
770
|
+
.alert-dialog {
|
|
771
|
+
@apply bg-transparent p-0 text-inherit opacity-0 transition-all transition-discrete backdrop:opacity-0 backdrop:transition-all backdrop:transition-discrete;
|
|
772
|
+
max-width: none;
|
|
773
|
+
max-height: none;
|
|
774
|
+
|
|
775
|
+
&:is([open], :popover-open) {
|
|
776
|
+
@apply opacity-100 backdrop:opacity-100;
|
|
777
|
+
|
|
778
|
+
> * {
|
|
779
|
+
@apply scale-100;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
@starting-style {
|
|
783
|
+
@apply opacity-0 backdrop:opacity-0;
|
|
784
|
+
|
|
785
|
+
> * {
|
|
786
|
+
@apply scale-95;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
> * {
|
|
792
|
+
@apply fixed top-1/2 left-1/2 z-50 flex max-h-[calc(100%_-_2rem)] w-full -translate-x-1/2 -translate-y-1/2 scale-95 flex-col transition-all outline-hidden;
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.dialog {
|
|
797
|
+
> * > header {
|
|
798
|
+
@apply flex flex-col;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
> * > section {
|
|
802
|
+
@apply flex-1;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
> * > footer {
|
|
806
|
+
@apply flex flex-col-reverse sm:flex-row sm:justify-end;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
> * > :is(button, form[method='dialog']) {
|
|
810
|
+
@apply absolute;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
> * > :is(button, form[method='dialog'] > button) {
|
|
814
|
+
@apply inline-flex items-center justify-center opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
> * > :is(button, form[method='dialog'] > button) > svg:not([class*='size-']) {
|
|
818
|
+
@apply size-4;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.alert-dialog {
|
|
823
|
+
> * > header {
|
|
824
|
+
@apply grid grid-rows-[auto_1fr] place-items-center text-center sm:place-items-start sm:text-start;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
> * > header:has(> figure) {
|
|
828
|
+
@apply grid-rows-[auto_auto_1fr] sm:grid-rows-[auto_1fr];
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
> * > header > figure {
|
|
832
|
+
@apply m-0 shrink-0 sm:row-span-2 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
> * > header > figure:has(img) {
|
|
836
|
+
@apply overflow-hidden [&_img]:size-full [&_img]:object-cover;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
> * > header:has(> figure) > :is(h2, p) {
|
|
840
|
+
@apply sm:col-start-2;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
> * > footer {
|
|
844
|
+
@apply flex flex-col-reverse sm:flex-row sm:justify-end;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
&:is([data-size='sm']) > * > header,
|
|
848
|
+
> [data-size='sm'] > header {
|
|
849
|
+
@apply sm:place-items-center sm:text-center;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
&:is([data-size='sm']) > * > header:has(> figure),
|
|
853
|
+
> [data-size='sm'] > header:has(> figure) {
|
|
854
|
+
@apply sm:grid-rows-[auto_auto_1fr];
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
&:is([data-size='sm']) > * > header:has(> figure) > :is(h2, p),
|
|
858
|
+
> [data-size='sm'] > header:has(> figure) > :is(h2, p) {
|
|
859
|
+
@apply sm:col-start-auto;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
&:is([data-size='sm']) > * > footer,
|
|
863
|
+
> [data-size='sm'] > footer {
|
|
864
|
+
@apply grid grid-cols-2 sm:grid sm:grid-cols-2;
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
@keyframes drawer-scroll-lock {
|
|
869
|
+
from, to {
|
|
870
|
+
scrollbar-gutter: stable;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
/* Drawer */
|
|
875
|
+
@layer components {
|
|
876
|
+
/* Reserve the scrollbar gutter only when the page can scroll. */
|
|
877
|
+
html:has(.drawer:modal) {
|
|
878
|
+
overflow: hidden;
|
|
879
|
+
animation: drawer-scroll-lock linear both;
|
|
880
|
+
animation-timeline: scroll(self);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.drawer {
|
|
884
|
+
--_drawer-duration: 500ms;
|
|
885
|
+
--_drawer-ease: cubic-bezier(0.32, 0.72, 0, 1);
|
|
886
|
+
--_drawer-travel: 100%;
|
|
887
|
+
@apply fixed inset-0 m-0 size-auto max-h-none max-w-none overflow-visible bg-transparent p-0 text-inherit opacity-0 transition-all transition-discrete duration-(--_drawer-duration) ease-(--_drawer-ease) backdrop:opacity-0 backdrop:transition-all backdrop:transition-discrete backdrop:duration-500 backdrop:ease-[cubic-bezier(0.32,0.72,0,1)];
|
|
888
|
+
|
|
889
|
+
> * {
|
|
890
|
+
@apply fixed z-50 flex h-auto flex-col transition-transform duration-(--_drawer-duration) ease-(--_drawer-ease) will-change-transform outline-hidden;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
&:not([data-side]) > *,
|
|
894
|
+
&[data-side='bottom'] > * {
|
|
895
|
+
@apply inset-x-0 bottom-0 translate-y-(--_drawer-travel);
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
&[data-side='top'] > * {
|
|
899
|
+
@apply inset-x-0 top-0 -translate-y-(--_drawer-travel);
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
&[data-side='left'] > * {
|
|
903
|
+
@apply inset-y-0 left-0 w-3/4 -translate-x-(--_drawer-travel);
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
&[data-side='right'] > * {
|
|
907
|
+
@apply inset-y-0 right-0 w-3/4 translate-x-(--_drawer-travel);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
&[data-closing] {
|
|
911
|
+
@apply opacity-0 backdrop:opacity-0;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
&[data-closing]:not([data-side]) > *,
|
|
915
|
+
&[data-closing][data-side='bottom'] > * {
|
|
916
|
+
@apply translate-y-(--_drawer-travel);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
&[data-closing][data-side='top'] > * {
|
|
920
|
+
@apply -translate-y-(--_drawer-travel);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
&[data-closing][data-side='left'] > * {
|
|
924
|
+
@apply -translate-x-(--_drawer-travel);
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
&[data-closing][data-side='right'] > * {
|
|
928
|
+
@apply translate-x-(--_drawer-travel);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
&:is([open], :popover-open):not([data-closing]) {
|
|
932
|
+
@apply opacity-100 backdrop:opacity-100;
|
|
933
|
+
|
|
934
|
+
> * {
|
|
935
|
+
@apply translate-x-0 translate-y-0;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
@starting-style {
|
|
939
|
+
@apply opacity-0 backdrop:opacity-0;
|
|
940
|
+
|
|
941
|
+
&:not([data-side]) > *,
|
|
942
|
+
&[data-side='bottom'] > * {
|
|
943
|
+
@apply translate-y-(--_drawer-travel);
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
&[data-side='top'] > * {
|
|
947
|
+
@apply -translate-y-(--_drawer-travel);
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
&[data-side='left'] > * {
|
|
951
|
+
@apply -translate-x-(--_drawer-travel);
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
&[data-side='right'] > * {
|
|
955
|
+
@apply translate-x-(--_drawer-travel);
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
> * > header {
|
|
961
|
+
@apply flex flex-col;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
> * > section {
|
|
965
|
+
@apply min-h-0 flex-1 overflow-y-auto;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
> * > footer {
|
|
969
|
+
@apply mt-auto flex flex-col;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
.drawer:not([data-side]) > *,
|
|
974
|
+
.drawer[data-side='bottom'] > * {
|
|
975
|
+
@apply mt-24 max-h-[80vh];
|
|
976
|
+
}
|
|
977
|
+
.drawer[data-side='top'] > * {
|
|
978
|
+
@apply mb-24 max-h-[80vh];
|
|
979
|
+
}
|
|
980
|
+
.drawer:is([data-side='left'], [data-side='right']) > * {
|
|
981
|
+
@apply max-w-sm;
|
|
982
|
+
}
|
|
983
|
+
@media (prefers-reduced-motion: reduce) {
|
|
984
|
+
.drawer,
|
|
985
|
+
.drawer::backdrop,
|
|
986
|
+
.drawer > * {
|
|
987
|
+
transition: none;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
/* Dropdown Menu */
|
|
992
|
+
@layer components {
|
|
993
|
+
.dropdown-menu {
|
|
994
|
+
@apply relative inline-flex;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
.dropdown-menu > [data-popover] {
|
|
998
|
+
min-width: anchor-size(width);
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
.dropdown-menu [role='menu'] {
|
|
1002
|
+
@apply outline-hidden;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
1006
|
+
@apply aria-hidden:hidden relative flex w-full cursor-default items-center truncate outline-hidden select-none disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
.dropdown-menu [role='menu'] [role='heading'] {
|
|
1010
|
+
@apply flex;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.dropdown-menu [role='separator'] {
|
|
1014
|
+
@apply border-0;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
1018
|
+
@apply ms-auto shrink-0 text-end;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.dropdown-menu [data-shortcut] {
|
|
1022
|
+
@apply ps-8;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.dropdown-menu :is(kbd:last-child, .kbd:last-child):not([data-shortcut]) {
|
|
1026
|
+
@apply ps-8;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
.dropdown-menu [data-indicator] {
|
|
1030
|
+
@apply pointer-events-none invisible;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
.dropdown-menu :is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true'] [data-indicator] {
|
|
1034
|
+
@apply visible;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.dropdown-menu [data-rtl-flip] {
|
|
1038
|
+
@apply rtl:rotate-180;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
.dropdown-menu:not([data-dropdown-menu-initialized]) :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
1042
|
+
&:not([aria-disabled='true']):not(:disabled):hover {
|
|
1043
|
+
@apply bg-accent text-accent-foreground;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
/* Empty */
|
|
1048
|
+
@layer components {
|
|
1049
|
+
.empty {
|
|
1050
|
+
@apply flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.empty > header {
|
|
1054
|
+
@apply flex max-w-sm flex-col items-center;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
.empty figure {
|
|
1058
|
+
@apply flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
.empty figure:has(img) {
|
|
1062
|
+
@apply overflow-hidden [&_img]:size-full [&_img]:object-cover;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
.empty > :is(section, footer) {
|
|
1066
|
+
@apply flex w-full max-w-sm min-w-0 flex-col items-center text-balance;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
.empty > header > p {
|
|
1070
|
+
@apply [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
/* Field */
|
|
1074
|
+
@layer components {
|
|
1075
|
+
.fieldset {
|
|
1076
|
+
@apply flex flex-col;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
.fieldset > :is([role='group'], [role='radiogroup']):not(.field),
|
|
1080
|
+
.field > :is(fieldset, [role='group'], [role='radiogroup']):not(.field) {
|
|
1081
|
+
@apply @container/field-group flex w-full flex-col;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
.field {
|
|
1085
|
+
@apply flex w-full flex-col data-invalid:text-destructive data-[invalid=true]:text-destructive [&>*]:w-full [&>.sr-only]:w-auto;
|
|
1086
|
+
|
|
1087
|
+
&[data-orientation='horizontal'] {
|
|
1088
|
+
@apply flex-row items-center [&>*]:w-auto [&>label]:flex-auto has-[>section]:items-start has-[>section]:[&>section]:flex-1 has-[>section]:[&>[type=checkbox],[type=radio]]:mt-px [&_p]:text-balance;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
&[data-orientation='responsive'] {
|
|
1092
|
+
@apply flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto @md/field-group:has-[>section]:items-start @md/field-group:[&>label]:flex-auto @md/field-group:has-[>section]:[&>[type=checkbox],[type=radio]]:mt-px;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
section {
|
|
1096
|
+
@apply flex flex-1 flex-col leading-snug;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
h2,
|
|
1100
|
+
h3 {
|
|
1101
|
+
@apply flex w-fit items-center;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
[role='alert'] {
|
|
1105
|
+
@apply font-normal;
|
|
1106
|
+
|
|
1107
|
+
ul {
|
|
1108
|
+
@apply ms-4 flex list-disc flex-col gap-1;
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
.field > label,
|
|
1114
|
+
.field > section > label,
|
|
1115
|
+
label:has(> .field) {
|
|
1116
|
+
@apply w-fit;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.field > label:has(> .field),
|
|
1120
|
+
.field > label:has(input[type='radio']),
|
|
1121
|
+
.field > label:has(input[type='checkbox']),
|
|
1122
|
+
.field > label:has(input[role='switch']),
|
|
1123
|
+
label:has(> .field) {
|
|
1124
|
+
@apply w-full;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
.field > label:has(> .field),
|
|
1128
|
+
label:has(> .field) {
|
|
1129
|
+
@apply flex-col;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
.fieldset legend + p,
|
|
1133
|
+
.field > p,
|
|
1134
|
+
.field section > p {
|
|
1135
|
+
@apply leading-normal font-normal [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
.field > p,
|
|
1139
|
+
.field section > p {
|
|
1140
|
+
@apply last:mt-0 nth-last-2:-mt-1;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
.field-separator {
|
|
1144
|
+
@apply relative;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
.field-separator > hr[role='separator'] {
|
|
1148
|
+
@apply absolute inset-x-0 top-1/2;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.field-separator > span {
|
|
1152
|
+
@apply relative mx-auto block w-fit bg-background;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
/* Checkbox */
|
|
1156
|
+
@layer components {
|
|
1157
|
+
.field > input[type='checkbox']:not([role='switch']),
|
|
1158
|
+
.input[type='checkbox']:not([role='switch']) {
|
|
1159
|
+
@apply relative shrink-0 appearance-none outline-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
1160
|
+
|
|
1161
|
+
&:indeterminate::after {
|
|
1162
|
+
@apply block h-0.5 w-2.5 bg-current content-[''];
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
&:checked:not(:indeterminate):after {
|
|
1166
|
+
@apply content-[''] block bg-current;
|
|
1167
|
+
@apply mask-[image:var(--check-icon)] mask-size-[0.875rem] mask-no-repeat mask-center;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
/* Input */
|
|
1172
|
+
@layer components {
|
|
1173
|
+
.field > input[type='text']:not(:is(.command > header input, .dialog > * > header input)),
|
|
1174
|
+
.field > input[type='email'],
|
|
1175
|
+
.field > input[type='password'],
|
|
1176
|
+
.field > input[type='number'],
|
|
1177
|
+
.field > input[type='file'],
|
|
1178
|
+
.field > input[type='tel'],
|
|
1179
|
+
.field > input[type='url'],
|
|
1180
|
+
.field > input[type='search']:not(:is(.command > header input, .dialog > * > header input)),
|
|
1181
|
+
.field > input[type='date'],
|
|
1182
|
+
.field > input[type='datetime-local'],
|
|
1183
|
+
.field > input[type='month'],
|
|
1184
|
+
.field > input[type='week'],
|
|
1185
|
+
.field > input[type='time'],
|
|
1186
|
+
.input[type='text'],
|
|
1187
|
+
.input[type='email'],
|
|
1188
|
+
.input[type='password'],
|
|
1189
|
+
.input[type='number'],
|
|
1190
|
+
.input[type='file'],
|
|
1191
|
+
.input[type='tel'],
|
|
1192
|
+
.input[type='url'],
|
|
1193
|
+
.input[type='search'],
|
|
1194
|
+
.input[type='date'],
|
|
1195
|
+
.input[type='datetime-local'],
|
|
1196
|
+
.input[type='month'],
|
|
1197
|
+
.input[type='week'],
|
|
1198
|
+
.input[type='time'],
|
|
1199
|
+
.input:not([type]) {
|
|
1200
|
+
@apply w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
/* Item */
|
|
1204
|
+
@layer components {
|
|
1205
|
+
.item-group {
|
|
1206
|
+
@apply flex w-full flex-col;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
.item-group > hr {
|
|
1210
|
+
@apply w-full shrink-0 border-0 border-t;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
.item {
|
|
1214
|
+
@apply flex w-full flex-wrap items-center border transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
a.item {
|
|
1218
|
+
@apply hover:bg-muted;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
.item > figure {
|
|
1222
|
+
@apply flex shrink-0 items-center justify-center [&_svg]:pointer-events-none;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
.item > figure:has(> img) {
|
|
1226
|
+
@apply overflow-hidden [&_img]:size-full [&_img]:object-cover;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.item > section {
|
|
1230
|
+
@apply flex flex-1 flex-col;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
.item > section + section {
|
|
1234
|
+
@apply flex-none;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
.item > aside {
|
|
1238
|
+
@apply flex items-center;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
.item > :is(header, footer) {
|
|
1242
|
+
@apply flex basis-full items-center justify-between;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
.item :is(h2, h3, h4) {
|
|
1246
|
+
@apply line-clamp-1 flex w-fit items-center;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
.item p {
|
|
1250
|
+
@apply text-muted-foreground line-clamp-2 text-start font-normal [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary;
|
|
1251
|
+
}
|
|
1252
|
+
@media (forced-colors: active) {
|
|
1253
|
+
a.item:focus-visible {
|
|
1254
|
+
outline: 2px solid Highlight;
|
|
1255
|
+
outline-offset: 2px;
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
/* Kbd */
|
|
1260
|
+
@layer components {
|
|
1261
|
+
.kbd {
|
|
1262
|
+
@apply pointer-events-none inline-flex items-center justify-center select-none;
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
/* Label */
|
|
1266
|
+
@layer components {
|
|
1267
|
+
.field > label,
|
|
1268
|
+
.field > section > label,
|
|
1269
|
+
.label {
|
|
1270
|
+
@apply flex items-center select-none peer-disabled:pointer-events-none;
|
|
1271
|
+
|
|
1272
|
+
&:has(>*:disabled),
|
|
1273
|
+
&:has(+*:disabled) {
|
|
1274
|
+
@apply pointer-events-none;
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
/* Native Select */
|
|
1279
|
+
@layer components {
|
|
1280
|
+
.field > select,
|
|
1281
|
+
select.select {
|
|
1282
|
+
@apply min-w-0 appearance-none outline-none select-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
1283
|
+
|
|
1284
|
+
option,
|
|
1285
|
+
optgroup {
|
|
1286
|
+
@apply bg-[Canvas] text-[CanvasText];
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
/* Popover */
|
|
1291
|
+
@layer components {
|
|
1292
|
+
[data-popover] {
|
|
1293
|
+
@apply absolute z-50 min-w-full w-max overflow-x-hidden overflow-y-auto visible opacity-100 scale-100 transition-all outline-hidden;
|
|
1294
|
+
|
|
1295
|
+
&[aria-hidden='true'] {
|
|
1296
|
+
@apply invisible opacity-0 scale-95;
|
|
1297
|
+
|
|
1298
|
+
&:not([data-side]),
|
|
1299
|
+
&[data-side='bottom'] {
|
|
1300
|
+
@apply -translate-y-2;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
&[data-side='top'] {
|
|
1304
|
+
@apply translate-y-2;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
&[data-side='left'] {
|
|
1308
|
+
@apply translate-x-2;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
&[data-side='right'] {
|
|
1312
|
+
@apply -translate-x-2;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
&[data-side='inline-start'] {
|
|
1316
|
+
@apply translate-x-2;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
&[data-side='inline-start']:dir(rtl) {
|
|
1320
|
+
@apply -translate-x-2;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
&[data-side='inline-end'] {
|
|
1324
|
+
@apply -translate-x-2;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
&[data-side='inline-end']:dir(rtl) {
|
|
1328
|
+
@apply translate-x-2;
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
&:not([data-side]),
|
|
1333
|
+
&[data-side='bottom'] {
|
|
1334
|
+
@apply mt-1 top-full;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
&[data-side='top'] {
|
|
1338
|
+
@apply mb-1 bottom-full;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
&[data-side='left'] {
|
|
1342
|
+
@apply me-1 end-full;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
&[data-side='right'] {
|
|
1346
|
+
@apply ms-1 start-full;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
&[data-side='inline-start'] {
|
|
1350
|
+
@apply me-1 end-full;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
&[data-side='inline-end'] {
|
|
1354
|
+
@apply ms-1 start-full;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
&:not([data-side]),
|
|
1358
|
+
&[data-side='bottom'],
|
|
1359
|
+
&[data-side='top'] {
|
|
1360
|
+
&:not([data-align]),
|
|
1361
|
+
&[data-align='start'] {
|
|
1362
|
+
@apply start-0;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
&[data-align='end'] {
|
|
1366
|
+
@apply end-0;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
&[data-align='center'] {
|
|
1370
|
+
@apply start-1/2 -translate-x-1/2;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
&[data-side='left'],
|
|
1375
|
+
&[data-side='right'],
|
|
1376
|
+
&[data-side='inline-start'],
|
|
1377
|
+
&[data-side='inline-end'] {
|
|
1378
|
+
&:not([data-align]),
|
|
1379
|
+
&[data-align='start'] {
|
|
1380
|
+
@apply top-0;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
&[data-align='end'] {
|
|
1384
|
+
@apply bottom-0;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
&[data-align='center'] {
|
|
1388
|
+
@apply top-1/2 -translate-y-1/2;
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
.popover {
|
|
1394
|
+
@apply relative inline-flex;
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
/* Progress */
|
|
1398
|
+
@layer components {
|
|
1399
|
+
.progress {
|
|
1400
|
+
@apply flex w-full items-center overflow-hidden;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
.progress:dir(rtl) {
|
|
1404
|
+
@apply flex-row-reverse;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
.progress > span {
|
|
1408
|
+
@apply h-full transition-all;
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
/* Radio */
|
|
1412
|
+
@layer components {
|
|
1413
|
+
.field > input[type='radio'],
|
|
1414
|
+
.input[type='radio'] {
|
|
1415
|
+
@apply relative shrink-0 appearance-none border outline-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
1416
|
+
|
|
1417
|
+
&:checked:before {
|
|
1418
|
+
@apply absolute top-1/2 left-1/2 content-[''] -translate-x-1/2 -translate-y-1/2 rounded-full;
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
/* Range */
|
|
1423
|
+
@layer components {
|
|
1424
|
+
.field > input[type='range'],
|
|
1425
|
+
.input[type='range'] {
|
|
1426
|
+
@apply flex appearance-none items-center p-0 outline-none disabled:pointer-events-none disabled:opacity-50;
|
|
1427
|
+
--slider-value: 20%;
|
|
1428
|
+
|
|
1429
|
+
&::-webkit-slider-thumb {
|
|
1430
|
+
@apply block shrink-0 appearance-none;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
&::-webkit-slider-runnable-track {
|
|
1434
|
+
@apply w-full appearance-none;
|
|
1435
|
+
background: linear-gradient(to right, var(--primary) var(--slider-value), var(--muted) var(--slider-value));
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
&:dir(rtl)::-webkit-slider-runnable-track {
|
|
1439
|
+
background: linear-gradient(to left, var(--primary) var(--slider-value), var(--muted) var(--slider-value));
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
&::-moz-range-thumb {
|
|
1443
|
+
@apply block shrink-0 appearance-none;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
&::-moz-range-track {
|
|
1447
|
+
@apply w-full appearance-none;
|
|
1448
|
+
background: linear-gradient(to right, var(--primary) var(--slider-value), var(--muted) var(--slider-value));
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
&:dir(rtl)::-moz-range-track {
|
|
1452
|
+
background: linear-gradient(to left, var(--primary) var(--slider-value), var(--muted) var(--slider-value));
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
&::-ms-thumb {
|
|
1456
|
+
@apply block shrink-0 appearance-none;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
&::-ms-track {
|
|
1460
|
+
@apply w-full appearance-none;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
&::-ms-fill-lower {
|
|
1464
|
+
@apply bg-primary;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
&::-ms-fill-upper {
|
|
1468
|
+
@apply bg-muted;
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
@media (forced-colors: active) {
|
|
1472
|
+
.field > input[type='range']:focus-visible,
|
|
1473
|
+
.input[type='range']:focus-visible {
|
|
1474
|
+
outline: 2px solid Highlight;
|
|
1475
|
+
outline-offset: 2px;
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
/* Select */
|
|
1480
|
+
@layer components {
|
|
1481
|
+
.select:not(select) {
|
|
1482
|
+
@apply relative inline-flex;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
.select:not(select) > button {
|
|
1486
|
+
@apply flex w-fit items-center justify-between whitespace-nowrap font-normal outline-hidden disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
.select:not(select) > button > span {
|
|
1490
|
+
@apply flex flex-1 truncate text-start;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
.select:not(select) > button > svg {
|
|
1494
|
+
@apply shrink-0;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
.select:not(select) [data-popover] {
|
|
1498
|
+
@apply isolate overflow-x-hidden;
|
|
1499
|
+
min-width: max(100%, 9rem);
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
.select:not(select) [role='listbox'] {
|
|
1503
|
+
@apply outline-hidden;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
.select:not(select) [role='listbox'] [role='group']:not(:has([role='option']:not([aria-hidden='true']))) {
|
|
1507
|
+
@apply hidden;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
.select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
1511
|
+
@apply flex items-center justify-center truncate;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
.select:not(select) [role='listbox'][data-empty]:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
1515
|
+
@apply content-[attr(data-empty)];
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
.select:not(select) [role='listbox']:not([data-empty]):not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
1519
|
+
@apply content-['No_results_found'];
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
.select:not(select) [role='option'] {
|
|
1523
|
+
@apply aria-hidden:hidden relative flex w-full cursor-default items-center truncate outline-hidden select-none aria-disabled:pointer-events-none aria-disabled:opacity-50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
.select:not(select) [role='option'][aria-selected='true'] {
|
|
1527
|
+
@apply bg-[image:var(--check-icon)] bg-no-repeat bg-position-[center_right_0.5rem] bg-size-[0.875rem];
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
.select:not(select) [role='option'][aria-selected='true']:dir(rtl) {
|
|
1531
|
+
@apply bg-position-[center_left_0.5rem];
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
.select:not(select) [role='separator'] {
|
|
1535
|
+
@apply border-0;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
.select:not(select):not([data-select-initialized]) [role='option']:not([aria-disabled='true']):not(:disabled):hover,
|
|
1539
|
+
.select:not(select) [role='option'].active {
|
|
1540
|
+
@apply bg-accent text-accent-foreground;
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
/* Sidebar */
|
|
1545
|
+
@layer components {
|
|
1546
|
+
.sidebar > nav li > details {
|
|
1547
|
+
@apply transition-details;
|
|
1548
|
+
&::details-content { @apply opacity-0; }
|
|
1549
|
+
&[open]::details-content { @apply opacity-100; }
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
.sidebar {
|
|
1553
|
+
&:not([data-sidebar-initialized]) {
|
|
1554
|
+
@apply max-md:hidden;
|
|
1555
|
+
}
|
|
1556
|
+
&:not([aria-hidden]),
|
|
1557
|
+
&[aria-hidden=false] {
|
|
1558
|
+
@apply max-md:bg-black/50 max-md:fixed max-md:inset-0 max-md:z-40;
|
|
1559
|
+
}
|
|
1560
|
+
> nav {
|
|
1561
|
+
@apply fixed inset-y-0 z-50 flex w-(--sidebar-mobile-width) flex-col transition-transform duration-300 ease-in-out md:w-(--sidebar-width);
|
|
1562
|
+
}
|
|
1563
|
+
& + * {
|
|
1564
|
+
@apply transition-[margin] ease-in-out duration-300;
|
|
1565
|
+
}
|
|
1566
|
+
&:not([data-side]),
|
|
1567
|
+
&[data-side=left] {
|
|
1568
|
+
> nav {
|
|
1569
|
+
@apply left-0 border-r;
|
|
1570
|
+
}
|
|
1571
|
+
& + * {
|
|
1572
|
+
@apply relative md:ml-(--sidebar-width);
|
|
1573
|
+
}
|
|
1574
|
+
&[aria-hidden=true] {
|
|
1575
|
+
> nav {
|
|
1576
|
+
@apply -translate-x-full;
|
|
1577
|
+
}
|
|
1578
|
+
& + * {
|
|
1579
|
+
@apply md:ml-0;
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
&[data-side=right] {
|
|
1584
|
+
> nav {
|
|
1585
|
+
@apply right-0 border-l;
|
|
1586
|
+
}
|
|
1587
|
+
& + * {
|
|
1588
|
+
@apply relative md:mr-(--sidebar-width);
|
|
1589
|
+
}
|
|
1590
|
+
&[aria-hidden=true] {
|
|
1591
|
+
> nav {
|
|
1592
|
+
@apply translate-x-full;
|
|
1593
|
+
}
|
|
1594
|
+
& + * {
|
|
1595
|
+
@apply md:mr-0;
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
> nav {
|
|
1600
|
+
> header,
|
|
1601
|
+
> footer {
|
|
1602
|
+
@apply flex flex-col;
|
|
1603
|
+
}
|
|
1604
|
+
[role=separator] {
|
|
1605
|
+
@apply w-auto;
|
|
1606
|
+
}
|
|
1607
|
+
> section {
|
|
1608
|
+
@apply flex min-h-0 flex-1 flex-col overflow-y-auto;
|
|
1609
|
+
|
|
1610
|
+
> [role=group] {
|
|
1611
|
+
@apply relative flex w-full min-w-0 flex-col;
|
|
1612
|
+
}
|
|
1613
|
+
h3 {
|
|
1614
|
+
@apply flex shrink-0 items-center outline-hidden transition-[margin,opacity] duration-200 ease-linear [&>svg]:shrink-0;
|
|
1615
|
+
}
|
|
1616
|
+
ul {
|
|
1617
|
+
@apply flex w-full min-w-0 flex-col;
|
|
1618
|
+
|
|
1619
|
+
li {
|
|
1620
|
+
@apply relative;
|
|
1621
|
+
|
|
1622
|
+
> a,
|
|
1623
|
+
> button,
|
|
1624
|
+
> details > summary {
|
|
1625
|
+
@apply flex w-full items-center overflow-hidden text-left outline-hidden transition-[width,height,padding] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0;
|
|
1626
|
+
}
|
|
1627
|
+
> details {
|
|
1628
|
+
&:not([open]) {
|
|
1629
|
+
> summary {
|
|
1630
|
+
&::after {
|
|
1631
|
+
@apply -rotate-90;
|
|
1632
|
+
}
|
|
1633
|
+
&:where(:dir(rtl), [dir='rtl'], [dir='rtl'] *)::after {
|
|
1634
|
+
@apply rotate-90;
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
> summary {
|
|
1639
|
+
&::after {
|
|
1640
|
+
@apply ms-auto block size-3.5 bg-current content-[''] transition-transform ease-linear motion-reduce:transition-none;
|
|
1641
|
+
@apply mask-[image:var(--chevron-down-icon)] mask-size-[1rem] mask-no-repeat mask-center;
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
ul {
|
|
1647
|
+
@apply flex min-w-0 flex-col;
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
@source inline("scrollbar scrollbar-thin");
|
|
1655
|
+
|
|
1656
|
+
@utility scrollbar {
|
|
1657
|
+
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
|
1658
|
+
|
|
1659
|
+
&::-webkit-scrollbar {
|
|
1660
|
+
width: var(--scrollbar-width);
|
|
1661
|
+
height: var(--scrollbar-width);
|
|
1662
|
+
}
|
|
1663
|
+
&.scrollbar-thin::-webkit-scrollbar {
|
|
1664
|
+
width: var(--scrollbar-sm-width);
|
|
1665
|
+
height: var(--scrollbar-sm-width);
|
|
1666
|
+
}
|
|
1667
|
+
&::-webkit-scrollbar-track,
|
|
1668
|
+
&::-webkit-scrollbar-corner {
|
|
1669
|
+
background: var(--scrollbar-track);
|
|
1670
|
+
}
|
|
1671
|
+
&::-webkit-scrollbar-thumb {
|
|
1672
|
+
background: var(--scrollbar-thumb);
|
|
1673
|
+
border-radius: var(--scrollbar-radius);
|
|
1674
|
+
border: 1px solid transparent;
|
|
1675
|
+
background-clip: padding-box;
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
/* Skeleton */
|
|
1679
|
+
@layer components {
|
|
1680
|
+
.skeleton {
|
|
1681
|
+
@apply animate-pulse;
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
/* Switch */
|
|
1685
|
+
@layer components {
|
|
1686
|
+
.field > input[type='checkbox'][role='switch'],
|
|
1687
|
+
.input[type='checkbox'][role='switch'] {
|
|
1688
|
+
@apply inline-flex shrink-0 appearance-none items-center transition-all outline-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
1689
|
+
@apply before:pointer-events-none before:block before:content-[''] before:ring-0 before:transition-transform;
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
/* Tables */
|
|
1693
|
+
@layer components {
|
|
1694
|
+
.table-container {
|
|
1695
|
+
@apply relative w-full overflow-x-auto;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
.table {
|
|
1699
|
+
@apply w-full caption-bottom;
|
|
1700
|
+
|
|
1701
|
+
thead {
|
|
1702
|
+
@apply [&_tr]:border-b;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
tbody {
|
|
1706
|
+
@apply [&_tr:last-child]:border-0;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
tfoot {
|
|
1710
|
+
@apply border-t font-medium [&>tr]:last:border-b-0;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
tr {
|
|
1714
|
+
@apply border-b transition-colors data-[state=selected]:bg-muted;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
th {
|
|
1718
|
+
@apply align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0 [&>[role=checkbox]]:translate-y-[2px];
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
td {
|
|
1722
|
+
@apply align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0 [&>[role=checkbox]]:translate-y-[2px];
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
/* Tabs */
|
|
1727
|
+
@layer components {
|
|
1728
|
+
.tabs {
|
|
1729
|
+
@apply flex;
|
|
1730
|
+
|
|
1731
|
+
&:has(> [role='tablist'][aria-orientation='horizontal']),
|
|
1732
|
+
&:not(:has(> [role='tablist'][aria-orientation='vertical'])) {
|
|
1733
|
+
@apply flex-col;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
&:has(> [role='tablist'][aria-orientation='vertical']) {
|
|
1737
|
+
@apply flex-row;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
> [role='tablist'] {
|
|
1741
|
+
@apply text-muted-foreground inline-flex w-fit items-center justify-center;
|
|
1742
|
+
|
|
1743
|
+
&[aria-orientation='vertical'] {
|
|
1744
|
+
@apply h-fit flex-col;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
> [role='tab'] {
|
|
1748
|
+
@apply relative inline-flex flex-1 items-center justify-center whitespace-nowrap transition-all outline-none disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
> [role='tabpanel'] {
|
|
1753
|
+
@apply flex-1 outline-none;
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
/* Textarea */
|
|
1758
|
+
@layer components {
|
|
1759
|
+
.field > textarea,
|
|
1760
|
+
.textarea {
|
|
1761
|
+
@apply flex field-sizing-content min-h-16 w-full outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50;
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
/* Input Group */
|
|
1765
|
+
@layer components {
|
|
1766
|
+
.input-group {
|
|
1767
|
+
@apply relative flex w-full min-w-0 items-center outline-none;
|
|
1768
|
+
|
|
1769
|
+
&[data-orientation='vertical'],
|
|
1770
|
+
&:has(> [data-align='block-start']),
|
|
1771
|
+
&:has(> [data-align='block-end']) {
|
|
1772
|
+
@apply h-auto flex-col items-stretch;
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
.input-group > :is(input, textarea, select, [data-control]) {
|
|
1777
|
+
@apply text-foreground placeholder:text-muted-foreground block min-w-0 flex-1 appearance-none rounded-none border-0 bg-transparent shadow-none outline-none ring-0 focus-visible:ring-0 aria-invalid:ring-0;
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
.input-group > :is(input, select, [data-control]) {
|
|
1781
|
+
@apply h-full;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
.input-group > [data-control] {
|
|
1785
|
+
@apply w-full;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
.input-group:is([data-orientation='vertical'], :has(> [data-align='block-start']), :has(> [data-align='block-end'])) > :is(input, select, [data-control]) {
|
|
1789
|
+
@apply h-auto flex-none;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
.input-group[data-orientation='vertical']:has(> footer[data-align='end']) > :is(input, select, [data-control]),
|
|
1793
|
+
.input-group:has(> [data-align='block-end']) > :is(input, select, [data-control]) {
|
|
1794
|
+
@apply pt-3;
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
.input-group[data-orientation='vertical']:has(> header[data-align='start']) > :is(input, select, [data-control]),
|
|
1798
|
+
.input-group:has(> [data-align='block-start']) > :is(input, select, [data-control]) {
|
|
1799
|
+
@apply pb-3;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
.input-group > textarea {
|
|
1803
|
+
@apply field-sizing-content min-h-20 w-full resize-none;
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
.input-group > :is(span, kbd, svg, [role='group'], .popover, .dropdown-menu, button, footer, header, hr[role='separator']) {
|
|
1807
|
+
@apply shrink-0;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
.input-group > :is(span, [role='group'], footer, header) {
|
|
1811
|
+
@apply inline-flex items-center;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
.input-group > svg {
|
|
1815
|
+
@apply pointer-events-none;
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
.input-group > :is([data-align='start'], [data-align='inline-start'], [data-align='block-start']) {
|
|
1819
|
+
@apply order-first;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
.input-group > :is([data-align='end'], [data-align='inline-end'], [data-align='block-end']) {
|
|
1823
|
+
@apply order-last;
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
.input-group > :is([data-align='block-start'], [data-align='block-end']) {
|
|
1827
|
+
@apply w-full justify-start;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
.input-group > button:is([data-align='start'], [data-align='inline-start']) {
|
|
1831
|
+
@apply ms-1;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
.input-group > button:is([data-align='end'], [data-align='inline-end']) {
|
|
1835
|
+
@apply me-1;
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
/* Toasts: measured native content, CSS stacking and transitions. */
|
|
1839
|
+
@layer components {
|
|
1840
|
+
.toaster {
|
|
1841
|
+
@apply pointer-events-none fixed inset-x-4 bottom-4 z-50 m-0 mx-auto h-0 w-auto max-w-sm list-none p-0 outline-none sm:mx-0 sm:w-full;
|
|
1842
|
+
|
|
1843
|
+
&:not([data-align]),
|
|
1844
|
+
&[data-align='end'] { @apply sm:start-auto sm:end-4; }
|
|
1845
|
+
&[data-align='start'] { @apply sm:start-4 sm:end-auto; }
|
|
1846
|
+
&[data-align='center'] { @apply sm:start-1/2 sm:end-auto sm:-translate-x-1/2 sm:rtl:translate-x-1/2; }
|
|
1847
|
+
|
|
1848
|
+
.toast {
|
|
1849
|
+
--toast-scale: max(0, calc(1 - var(--toast-index, 0) * 0.1));
|
|
1850
|
+
--toast-lift: calc(var(--toast-index, 0) * -12px - (1 - var(--toast-scale)) * var(--toast-front-height, 0px));
|
|
1851
|
+
--toast-swipe-x: 0px;
|
|
1852
|
+
--toast-swipe-y: 0px;
|
|
1853
|
+
@apply pointer-events-auto absolute inset-x-0 bottom-0 w-full list-none select-none outline-none;
|
|
1854
|
+
height: var(--toast-front-height, auto);
|
|
1855
|
+
z-index: calc(1000 - var(--toast-index, 0));
|
|
1856
|
+
transform-origin: bottom center;
|
|
1857
|
+
transform: translateX(var(--toast-swipe-x)) translateY(calc(var(--toast-lift) + var(--toast-swipe-y))) scale(var(--toast-scale));
|
|
1858
|
+
transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), opacity 500ms, height 150ms;
|
|
1859
|
+
touch-action: none;
|
|
1860
|
+
|
|
1861
|
+
&::after {
|
|
1862
|
+
content: '';
|
|
1863
|
+
@apply absolute inset-x-0 top-full h-[13px];
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
> .toast-content {
|
|
1867
|
+
@apply flex items-center overflow-hidden;
|
|
1868
|
+
transition: opacity 250ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
1869
|
+
> svg { @apply pointer-events-none shrink-0; }
|
|
1870
|
+
> section { @apply flex min-w-0 flex-1 flex-col wrap-break-word; }
|
|
1871
|
+
> footer { @apply ms-auto flex shrink-0 items-center; }
|
|
1872
|
+
> footer > .btn[data-size='icon-sm'] {
|
|
1873
|
+
@apply relative after:absolute after:-inset-2 after:content-[''];
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
&:where(:has(~ .toast:not([aria-hidden='true']))) > .toast-content { @apply opacity-0; }
|
|
1878
|
+
&[data-toast-stack-overflow] { @apply pointer-events-none opacity-0; }
|
|
1879
|
+
&[aria-hidden='true'] { @apply pointer-events-none; }
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
&:where(:hover, :focus-within, :has([data-toast-swiping])) .toast:not([aria-hidden='true']) {
|
|
1883
|
+
height: var(--toast-height);
|
|
1884
|
+
transform: translateX(var(--toast-swipe-x)) translateY(calc(var(--toast-offset, 0px) * -1 + var(--toast-swipe-y)));
|
|
1885
|
+
> .toast-content { @apply opacity-100; }
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
.toast[data-toast-expanded][aria-hidden='true'] {
|
|
1889
|
+
height: var(--toast-height);
|
|
1890
|
+
> .toast-content { opacity: 1; }
|
|
1891
|
+
}
|
|
1892
|
+
.toast > .toast-content > footer > :is([data-toast-action], [data-toast-cancel]):not([data-size]) { @apply h-6 px-2.5 text-xs; }
|
|
1893
|
+
|
|
1894
|
+
.toast:not([data-toast-initialized]),
|
|
1895
|
+
.toast[aria-hidden='true']:not([data-toast-stack-overflow]) {
|
|
1896
|
+
transform: translateY(calc(var(--toast-swipe-y) + 150%));
|
|
1897
|
+
}
|
|
1898
|
+
.toast[aria-hidden='true'][data-toast-swipe='x'] {
|
|
1899
|
+
transform: translateX(calc(var(--toast-swipe-x) + var(--toast-swipe-end))) translateY(calc(var(--toast-offset, 0px) * -1));
|
|
1900
|
+
}
|
|
1901
|
+
.toast[data-toast-swiping] { transition: none; }
|
|
1902
|
+
.toast[data-category='loading'] > .toast-content > svg { @apply animate-spin; }
|
|
1903
|
+
|
|
1904
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1905
|
+
.toast, .toast > .toast-content { transition: none; }
|
|
1906
|
+
.toast[data-category='loading'] > .toast-content > svg { animation: none; }
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
/* Tooltip */
|
|
1911
|
+
@layer components {
|
|
1912
|
+
[data-tooltip] {
|
|
1913
|
+
@apply relative;
|
|
1914
|
+
|
|
1915
|
+
&:before {
|
|
1916
|
+
@apply absolute block z-[60] w-fit max-w-xs origin-(--transform-origin) scale-95 truncate invisible opacity-0 transition-all pointer-events-none content-[attr(data-tooltip)];
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
&:hover:before {
|
|
1920
|
+
@apply visible opacity-100 scale-100;
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
&:focus-visible:not(:hover):before {
|
|
1924
|
+
@apply hidden;
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
&:not([data-side]),
|
|
1928
|
+
&[data-side='top'] {
|
|
1929
|
+
@apply before:bottom-full before:mb-1.5 before:translate-y-2 hover:before:translate-y-0;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
&[data-side='bottom'] {
|
|
1933
|
+
@apply before:top-full before:mt-1.5 before:-translate-y-2 hover:before:translate-y-0;
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
&:not([data-side]),
|
|
1937
|
+
&[data-side='top'],
|
|
1938
|
+
&[data-side='bottom'] {
|
|
1939
|
+
&[data-align='start'] {
|
|
1940
|
+
@apply before:left-0;
|
|
1941
|
+
}
|
|
1942
|
+
&[data-align='end'] {
|
|
1943
|
+
@apply before:right-0;
|
|
1944
|
+
}
|
|
1945
|
+
&:not([data-align]),
|
|
1946
|
+
&[data-align='center'] {
|
|
1947
|
+
@apply before:left-1/2 before:-translate-x-1/2;
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
&[data-side='left'] {
|
|
1952
|
+
@apply before:right-full before:mr-1.5 before:translate-x-2 hover:before:translate-x-0;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
&[data-side='right'] {
|
|
1956
|
+
@apply before:left-full before:ml-1.5 before:-translate-x-2 hover:before:translate-x-0;
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
&[data-side='inline-start'] {
|
|
1960
|
+
@apply before:right-full before:mr-1.5 before:translate-x-2 hover:before:translate-x-0;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
&[data-side='inline-start']:dir(rtl) {
|
|
1964
|
+
@apply before:right-auto before:left-full before:mr-0 before:ml-1.5 before:-translate-x-2 hover:before:translate-x-0;
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
&[data-side='inline-end'] {
|
|
1968
|
+
@apply before:left-full before:ml-1.5 before:-translate-x-2 hover:before:translate-x-0;
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
&[data-side='inline-end']:dir(rtl) {
|
|
1972
|
+
@apply before:left-auto before:right-full before:ml-0 before:mr-1.5 before:translate-x-2 hover:before:translate-x-0;
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
&[data-side='left'],
|
|
1976
|
+
&[data-side='right'],
|
|
1977
|
+
&[data-side='inline-start'],
|
|
1978
|
+
&[data-side='inline-end'] {
|
|
1979
|
+
&[data-align='start'] {
|
|
1980
|
+
@apply before:top-0;
|
|
1981
|
+
}
|
|
1982
|
+
&[data-align='end'] {
|
|
1983
|
+
@apply before:bottom-0;
|
|
1984
|
+
}
|
|
1985
|
+
&:not([data-align]),
|
|
1986
|
+
&[data-align='center'] {
|
|
1987
|
+
@apply before:top-1/2 before:-translate-y-1/2;
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
/* Progressive scroll-edge fades. Unsupported browsers keep an unmasked scroller. */
|
|
1993
|
+
@property --_scroll-fade-start {
|
|
1994
|
+
syntax: '<length-percentage>';
|
|
1995
|
+
inherits: false;
|
|
1996
|
+
initial-value: 0px;
|
|
1997
|
+
}
|
|
1998
|
+
@property --_scroll-fade-end {
|
|
1999
|
+
syntax: '<length-percentage>';
|
|
2000
|
+
inherits: false;
|
|
2001
|
+
initial-value: 0px;
|
|
2002
|
+
}
|
|
2003
|
+
@keyframes basecoat-scroll-fade-start {
|
|
2004
|
+
from { --_scroll-fade-start: 0px; }
|
|
2005
|
+
to { --_scroll-fade-start: min(12%, 2.5rem); }
|
|
2006
|
+
}
|
|
2007
|
+
@keyframes basecoat-scroll-fade-end {
|
|
2008
|
+
from { --_scroll-fade-end: min(12%, 2.5rem); }
|
|
2009
|
+
to { --_scroll-fade-end: 0px; }
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
@source inline("scroll-fade scroll-fade-x");
|
|
2013
|
+
|
|
2014
|
+
@utility scroll-fade {
|
|
2015
|
+
--_fade-direction: to bottom;
|
|
2016
|
+
--_fade-axis: y;
|
|
2017
|
+
@supports (animation-timeline: scroll()) {
|
|
2018
|
+
@media (forced-colors: none) {
|
|
2019
|
+
mask-image: linear-gradient(var(--_fade-direction), transparent, #000 var(--_scroll-fade-start), #000 calc(100% - var(--_scroll-fade-end)), transparent);
|
|
2020
|
+
animation: basecoat-scroll-fade-start 1ms ease-in-out both, basecoat-scroll-fade-end 1ms ease-in-out both;
|
|
2021
|
+
animation-timeline: scroll(self var(--_fade-axis)), scroll(self var(--_fade-axis));
|
|
2022
|
+
animation-range: 0 6rem, calc(100% - 6rem) 100%;
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
@utility scroll-fade-x {
|
|
2028
|
+
@apply scroll-fade;
|
|
2029
|
+
--_fade-axis: inline;
|
|
2030
|
+
--_fade-direction: to right;
|
|
2031
|
+
&:dir(rtl) { --_fade-direction: to left; }
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
/* Attachment */
|
|
2035
|
+
@layer components {
|
|
2036
|
+
.attachment {
|
|
2037
|
+
@apply relative flex max-w-full min-w-0 shrink-0 flex-wrap transition-colors;
|
|
2038
|
+
}
|
|
2039
|
+
.attachment:not([data-orientation='vertical']) {
|
|
2040
|
+
@apply items-center;
|
|
2041
|
+
}
|
|
2042
|
+
.attachment[data-orientation='vertical'] {
|
|
2043
|
+
@apply flex-col;
|
|
2044
|
+
}
|
|
2045
|
+
.attachment > figure {
|
|
2046
|
+
@apply relative flex aspect-square shrink-0 items-center justify-center overflow-hidden;
|
|
2047
|
+
}
|
|
2048
|
+
.attachment > figure > svg {
|
|
2049
|
+
@apply pointer-events-none;
|
|
2050
|
+
}
|
|
2051
|
+
.attachment > figure > img {
|
|
2052
|
+
@apply aspect-square w-full object-cover;
|
|
2053
|
+
}
|
|
2054
|
+
.attachment > section {
|
|
2055
|
+
@apply max-w-full min-w-0 flex-1;
|
|
2056
|
+
}
|
|
2057
|
+
.attachment > section > * {
|
|
2058
|
+
@apply block max-w-full min-w-0 truncate;
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
.attachment > div {
|
|
2062
|
+
@apply relative z-20 flex shrink-0 items-center;
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
.attachment[data-orientation='vertical'] > div {
|
|
2066
|
+
@apply absolute;
|
|
2067
|
+
}
|
|
2068
|
+
.attachment > :is(a, button) {
|
|
2069
|
+
@apply absolute inset-0 z-10 outline-none;
|
|
2070
|
+
}
|
|
2071
|
+
/* An inset focus indicator stays visible at the clipped edges of a file row. */
|
|
2072
|
+
.attachment:has(> :is(a, button):focus-visible) {
|
|
2073
|
+
outline: 2px solid currentColor;
|
|
2074
|
+
outline-offset: -2px;
|
|
2075
|
+
}
|
|
2076
|
+
.attachment > button:disabled {
|
|
2077
|
+
@apply cursor-not-allowed;
|
|
2078
|
+
}
|
|
2079
|
+
.attachment-group {
|
|
2080
|
+
@apply flex min-w-0 snap-x snap-mandatory overflow-x-auto overscroll-x-contain;
|
|
2081
|
+
@apply scroll-fade-x;
|
|
2082
|
+
scrollbar-width: none;
|
|
2083
|
+
}
|
|
2084
|
+
.attachment-group:focus-within { mask-image: none; }
|
|
2085
|
+
.attachment-group::-webkit-scrollbar { display: none; }
|
|
2086
|
+
.attachment-group > .attachment {
|
|
2087
|
+
@apply flex-none snap-start;
|
|
2088
|
+
}
|
|
2089
|
+
@media (forced-colors: active) {
|
|
2090
|
+
.attachment:has(> :is(a, button):focus-visible),
|
|
2091
|
+
.attachment-group:focus-visible {
|
|
2092
|
+
outline: 2px solid Highlight;
|
|
2093
|
+
outline-offset: -2px;
|
|
2094
|
+
}
|
|
2095
|
+
.attachment-group { mask-image: none; }
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
/* Bubble */
|
|
2099
|
+
@layer components {
|
|
2100
|
+
.bubble-group {
|
|
2101
|
+
@apply flex min-w-0 flex-col;
|
|
2102
|
+
}
|
|
2103
|
+
.bubble {
|
|
2104
|
+
@apply relative flex w-fit min-w-0 flex-col;
|
|
2105
|
+
}
|
|
2106
|
+
.bubble > :first-child {
|
|
2107
|
+
@apply w-fit max-w-full min-w-0 overflow-hidden wrap-break-word;
|
|
2108
|
+
}
|
|
2109
|
+
.bubble > :is(a, button):first-child {
|
|
2110
|
+
@apply text-start transition-colors outline-none;
|
|
2111
|
+
}
|
|
2112
|
+
.bubble > button:disabled {
|
|
2113
|
+
@apply pointer-events-none opacity-50;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
.bubble > div:not(:first-child) {
|
|
2117
|
+
@apply absolute z-10 flex w-fit shrink-0 items-center justify-center;
|
|
2118
|
+
}
|
|
2119
|
+
@media (forced-colors: active) {
|
|
2120
|
+
.bubble > :is(a, button):first-child:focus-visible {
|
|
2121
|
+
outline: 2px solid Highlight;
|
|
2122
|
+
outline-offset: 2px;
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
/* Carousel */
|
|
2127
|
+
@layer components {
|
|
2128
|
+
.carousel {
|
|
2129
|
+
@apply relative min-w-0;
|
|
2130
|
+
|
|
2131
|
+
> ul {
|
|
2132
|
+
@apply flex overflow-x-auto overscroll-x-contain snap-x snap-mandatory scroll-smooth motion-reduce:scroll-auto;
|
|
2133
|
+
}
|
|
2134
|
+
> button {
|
|
2135
|
+
@apply touch-manipulation;
|
|
2136
|
+
}
|
|
2137
|
+
> ul > li {
|
|
2138
|
+
@apply min-w-0 shrink-0 basis-full snap-start;
|
|
2139
|
+
}
|
|
2140
|
+
&[data-orientation='vertical'] > ul {
|
|
2141
|
+
@apply flex-col overflow-x-hidden overflow-y-auto snap-y;
|
|
2142
|
+
}
|
|
2143
|
+
&[data-orientation='vertical'] > ul > li {
|
|
2144
|
+
@apply min-h-0;
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
/* Initialized controls replace the optional scrollbar utility. */
|
|
2150
|
+
@layer utilities {
|
|
2151
|
+
.carousel[data-carousel-initialized] > ul {
|
|
2152
|
+
scrollbar-width: none;
|
|
2153
|
+
&::-webkit-scrollbar { display: none; }
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
/* Code Block */
|
|
2158
|
+
@layer components {
|
|
2159
|
+
.code-block {
|
|
2160
|
+
@apply relative m-0 flex w-full min-w-0 flex-col overflow-hidden;
|
|
2161
|
+
}
|
|
2162
|
+
.code-block > output { @apply sr-only; }
|
|
2163
|
+
.code-block > header,
|
|
2164
|
+
.code-block > footer {
|
|
2165
|
+
@apply flex min-w-0 shrink-0 items-center;
|
|
2166
|
+
}
|
|
2167
|
+
.code-block > header > :first-child:not(div) {
|
|
2168
|
+
@apply min-w-0 truncate [&_svg]:inline-block [&_svg]:align-middle;
|
|
2169
|
+
}
|
|
2170
|
+
.code-block > div,
|
|
2171
|
+
.code-block > header > div {
|
|
2172
|
+
@apply ms-auto flex shrink-0 items-center;
|
|
2173
|
+
}
|
|
2174
|
+
.code-block > div {
|
|
2175
|
+
@apply absolute z-10 opacity-0 transition-opacity;
|
|
2176
|
+
}
|
|
2177
|
+
.code-block:is(:hover, :focus-within) > div {
|
|
2178
|
+
@apply opacity-100;
|
|
2179
|
+
}
|
|
2180
|
+
@media (pointer: coarse) {
|
|
2181
|
+
.code-block > div { opacity: 1; }
|
|
2182
|
+
}
|
|
2183
|
+
.code-block > pre {
|
|
2184
|
+
@apply scroll-fade m-0 min-h-0 min-w-0 overflow-auto text-start font-mono outline-none;
|
|
2185
|
+
direction: ltr;
|
|
2186
|
+
color-scheme: light;
|
|
2187
|
+
tab-size: 2;
|
|
2188
|
+
}
|
|
2189
|
+
html.dark .code-block > pre { color-scheme: dark; }
|
|
2190
|
+
.code-block > pre > code {
|
|
2191
|
+
@apply block w-auto min-h-lh min-w-max p-0;
|
|
2192
|
+
font-size: inherit;
|
|
2193
|
+
font-family: inherit;
|
|
2194
|
+
counter-reset: line;
|
|
2195
|
+
}
|
|
2196
|
+
.code-block > pre > code > span {
|
|
2197
|
+
/* Keep real newline text in the inline flow for native selection and copying. */
|
|
2198
|
+
@apply relative inline-block min-h-lh align-top;
|
|
2199
|
+
width: calc(100% + 2 * var(--_code-padding));
|
|
2200
|
+
counter-increment: line;
|
|
2201
|
+
}
|
|
2202
|
+
.code-block > pre[data-line-numbers] > code > span {
|
|
2203
|
+
padding-inline-start: calc(var(--_code-padding) + 4ch);
|
|
2204
|
+
}
|
|
2205
|
+
.code-block > pre[data-line-numbers] > code > span::before {
|
|
2206
|
+
content: counter(line);
|
|
2207
|
+
@apply absolute select-none;
|
|
2208
|
+
inset-inline-start: var(--_code-padding);
|
|
2209
|
+
width: 3ch;
|
|
2210
|
+
}
|
|
2211
|
+
@supports (content: counter(line) / '') {
|
|
2212
|
+
.code-block > pre[data-line-numbers] > code > span::before { content: counter(line) / ''; }
|
|
2213
|
+
}
|
|
2214
|
+
.code-block > pre[data-wrap] {
|
|
2215
|
+
@apply whitespace-pre-wrap break-words;
|
|
2216
|
+
}
|
|
2217
|
+
.code-block > pre[data-wrap] > code {
|
|
2218
|
+
@apply min-w-0;
|
|
2219
|
+
}
|
|
2220
|
+
.code-block button[data-copy] > svg:last-child:not(:first-child) { display: none; }
|
|
2221
|
+
.code-block button[data-copy][data-copied] > svg:first-child { display: none; }
|
|
2222
|
+
.code-block button[data-copy][data-copied] > svg:last-child { display: block; }
|
|
2223
|
+
.code-block > pre:not([data-wrap]) {
|
|
2224
|
+
/* Source code always reads left to right, including in RTL documents. */
|
|
2225
|
+
--_fade-axis: x;
|
|
2226
|
+
--_fade-direction: to right;
|
|
2227
|
+
}
|
|
2228
|
+
@media (forced-colors: active) {
|
|
2229
|
+
.code-block:has(> pre:focus-visible) { outline: 2px solid Highlight; outline-offset: 2px; }
|
|
2230
|
+
}
|
|
2231
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2232
|
+
.code-block > div { transition: none; }
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
/* Input OTP: the input remains the only form control and keyboard target. */
|
|
2236
|
+
@keyframes otp-caret {
|
|
2237
|
+
0%, 70%, 100% { opacity: 1; }
|
|
2238
|
+
20%, 50% { opacity: 0; }
|
|
2239
|
+
}
|
|
2240
|
+
@layer components {
|
|
2241
|
+
.input-otp {
|
|
2242
|
+
@apply relative inline-flex max-w-full items-center has-disabled:opacity-50;
|
|
2243
|
+
}
|
|
2244
|
+
.input-otp > div { display: none; }
|
|
2245
|
+
.input-otp[data-input-otp-initialized] > input {
|
|
2246
|
+
@apply absolute inset-0 z-20 h-full w-full cursor-text opacity-0;
|
|
2247
|
+
font: 16px/1 monospace;
|
|
2248
|
+
letter-spacing: -.5em;
|
|
2249
|
+
text-align: left;
|
|
2250
|
+
}
|
|
2251
|
+
.input-otp[data-input-otp-initialized] > input:disabled { cursor: not-allowed; }
|
|
2252
|
+
.input-otp[data-input-otp-initialized] > div {
|
|
2253
|
+
@apply pointer-events-none flex items-center;
|
|
2254
|
+
}
|
|
2255
|
+
/* Keep the native long-press paste menu available on iOS. */
|
|
2256
|
+
@supports (-webkit-touch-callout: none) {
|
|
2257
|
+
.input-otp[data-input-otp-initialized] > input[type='text'] {
|
|
2258
|
+
@apply opacity-100 border-transparent bg-transparent text-transparent caret-transparent outline-none;
|
|
2259
|
+
box-shadow: none;
|
|
2260
|
+
}
|
|
2261
|
+
.input-otp[data-input-otp-initialized] > input::selection { background: transparent; }
|
|
2262
|
+
.input-otp[data-input-otp-initialized] > input[type='text']:autofill { opacity: 0; }
|
|
2263
|
+
}
|
|
2264
|
+
.input-otp > div > div { @apply flex items-center; }
|
|
2265
|
+
.input-otp > div > div > span {
|
|
2266
|
+
@apply relative flex shrink-0 items-center justify-center;
|
|
2267
|
+
}
|
|
2268
|
+
.input-otp > div > div > span[data-active] { @apply z-10; }
|
|
2269
|
+
.input-otp > div > div > span[data-caret]::after {
|
|
2270
|
+
content: '';
|
|
2271
|
+
@apply pointer-events-none absolute;
|
|
2272
|
+
animation: otp-caret 1s infinite;
|
|
2273
|
+
}
|
|
2274
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2275
|
+
.input-otp > div > div > span { transition: none; }
|
|
2276
|
+
.input-otp > div > div > span[data-caret]::after { animation: none; }
|
|
2277
|
+
}
|
|
2278
|
+
@media (forced-colors: active) {
|
|
2279
|
+
.input-otp:focus-within > div { outline: 2px solid Highlight; outline-offset: 3px; }
|
|
2280
|
+
.input-otp > div > div > span[data-active] { outline: 2px solid Highlight; outline-offset: -2px; }
|
|
2281
|
+
.input-otp > div > div > span[data-caret]::after { background: CanvasText; }
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
/* Marker */
|
|
2285
|
+
@layer components {
|
|
2286
|
+
.marker {
|
|
2287
|
+
@apply relative flex w-full min-w-0 items-center;
|
|
2288
|
+
}
|
|
2289
|
+
.marker > svg {
|
|
2290
|
+
@apply shrink-0;
|
|
2291
|
+
}
|
|
2292
|
+
.marker > span {
|
|
2293
|
+
@apply min-w-0 wrap-break-word;
|
|
2294
|
+
}
|
|
2295
|
+
.marker[data-variant='separator']::before,
|
|
2296
|
+
.marker[data-variant='separator']::after {
|
|
2297
|
+
content: '';
|
|
2298
|
+
@apply min-w-0 flex-1 border-t;
|
|
2299
|
+
}
|
|
2300
|
+
.marker[data-variant='separator'] > span {
|
|
2301
|
+
@apply flex-none text-center;
|
|
2302
|
+
}
|
|
2303
|
+
}
|
|
2304
|
+
/* Message */
|
|
2305
|
+
@layer components {
|
|
2306
|
+
.message-group {
|
|
2307
|
+
@apply flex min-w-0 flex-col;
|
|
2308
|
+
}
|
|
2309
|
+
.message {
|
|
2310
|
+
@apply flex w-full min-w-0;
|
|
2311
|
+
}
|
|
2312
|
+
.message > .avatar {
|
|
2313
|
+
@apply shrink-0 self-end;
|
|
2314
|
+
}
|
|
2315
|
+
.message > div:last-child {
|
|
2316
|
+
@apply flex min-w-0 flex-1 flex-col wrap-break-word;
|
|
2317
|
+
}
|
|
2318
|
+
.message > div:last-child > :is(header, footer) {
|
|
2319
|
+
@apply flex max-w-full min-w-0 items-center;
|
|
2320
|
+
}
|
|
2321
|
+
.message[data-align='end'] {
|
|
2322
|
+
@apply flex-row-reverse;
|
|
2323
|
+
}
|
|
2324
|
+
.message[data-align='end'] > div:last-child {
|
|
2325
|
+
@apply items-end;
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
@keyframes sheet-scroll-lock {
|
|
2329
|
+
from, to {
|
|
2330
|
+
scrollbar-gutter: stable;
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
/* Sheet */
|
|
2335
|
+
@layer components {
|
|
2336
|
+
/* Reserve the scrollbar gutter only when the page can scroll. */
|
|
2337
|
+
html:has(.sheet:modal) {
|
|
2338
|
+
overflow: hidden;
|
|
2339
|
+
animation: sheet-scroll-lock linear both;
|
|
2340
|
+
animation-timeline: scroll(self);
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
.sheet {
|
|
2344
|
+
--_sheet-duration: 200ms;
|
|
2345
|
+
--_sheet-ease: ease-in-out;
|
|
2346
|
+
--_sheet-travel: 2.5rem;
|
|
2347
|
+
@apply fixed inset-0 m-0 size-auto max-h-none max-w-none overflow-visible bg-transparent p-0 text-inherit opacity-0 transition-all transition-discrete duration-(--_sheet-duration) ease-(--_sheet-ease) backdrop:opacity-0 backdrop:transition-all backdrop:transition-discrete backdrop:duration-200 backdrop:ease-in-out;
|
|
2348
|
+
|
|
2349
|
+
> * {
|
|
2350
|
+
@apply fixed z-50 flex h-auto flex-col transition-transform duration-(--_sheet-duration) ease-(--_sheet-ease) will-change-transform outline-hidden;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
&[data-side='bottom'] > * {
|
|
2354
|
+
@apply inset-x-0 bottom-0 translate-y-(--_sheet-travel);
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
&[data-side='top'] > * {
|
|
2358
|
+
@apply inset-x-0 top-0 -translate-y-(--_sheet-travel);
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
&[data-side='left'] > * {
|
|
2362
|
+
@apply inset-y-0 left-0 w-3/4 -translate-x-(--_sheet-travel);
|
|
2363
|
+
}
|
|
2364
|
+
|
|
2365
|
+
&:not([data-side]) > *,
|
|
2366
|
+
&[data-side='right'] > * {
|
|
2367
|
+
@apply inset-y-0 right-0 w-3/4 translate-x-(--_sheet-travel);
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
&[data-closing] {
|
|
2371
|
+
@apply opacity-0 backdrop:opacity-0;
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
&[data-closing][data-side='bottom'] > * {
|
|
2375
|
+
@apply translate-y-(--_sheet-travel);
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
&[data-closing][data-side='top'] > * {
|
|
2379
|
+
@apply -translate-y-(--_sheet-travel);
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
&[data-closing][data-side='left'] > * {
|
|
2383
|
+
@apply -translate-x-(--_sheet-travel);
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
&[data-closing]:not([data-side]) > *,
|
|
2387
|
+
&[data-closing][data-side='right'] > * {
|
|
2388
|
+
@apply translate-x-(--_sheet-travel);
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
&:is([open], :popover-open):not([data-closing]) {
|
|
2392
|
+
@apply opacity-100 backdrop:opacity-100;
|
|
2393
|
+
|
|
2394
|
+
> * {
|
|
2395
|
+
@apply translate-x-0 translate-y-0;
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
@starting-style {
|
|
2399
|
+
@apply opacity-0 backdrop:opacity-0;
|
|
2400
|
+
|
|
2401
|
+
&[data-side='bottom'] > * {
|
|
2402
|
+
@apply translate-y-(--_sheet-travel);
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
&[data-side='top'] > * {
|
|
2406
|
+
@apply -translate-y-(--_sheet-travel);
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
&[data-side='left'] > * {
|
|
2410
|
+
@apply -translate-x-(--_sheet-travel);
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
&:not([data-side]) > *,
|
|
2414
|
+
&[data-side='right'] > * {
|
|
2415
|
+
@apply translate-x-(--_sheet-travel);
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
> * > header {
|
|
2421
|
+
@apply flex flex-col;
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
> * > section {
|
|
2425
|
+
@apply min-h-0 flex-1 overflow-y-auto;
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
> * > footer {
|
|
2429
|
+
@apply mt-auto flex flex-col;
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
.sheet:not([data-side]) > *,
|
|
2434
|
+
.sheet:is([data-side='left'], [data-side='right']) > * {
|
|
2435
|
+
@apply h-full sm:max-w-sm;
|
|
2436
|
+
}
|
|
2437
|
+
.sheet > * {
|
|
2438
|
+
@apply max-h-dvh;
|
|
2439
|
+
}
|
|
2440
|
+
.sheet > * > button:last-child {
|
|
2441
|
+
@apply absolute;
|
|
2442
|
+
}
|
|
2443
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2444
|
+
.sheet,
|
|
2445
|
+
.sheet::backdrop,
|
|
2446
|
+
.sheet > * {
|
|
2447
|
+
transition: none;
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
/* Shimmer */
|
|
2452
|
+
@keyframes basecoat-shimmer {
|
|
2453
|
+
from { background-position: 100% 0; }
|
|
2454
|
+
to { background-position: 0 0; }
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
@source inline("shimmer");
|
|
2458
|
+
|
|
2459
|
+
@utility shimmer {
|
|
2460
|
+
-webkit-text-fill-color: currentColor;
|
|
2461
|
+
|
|
2462
|
+
/* Keep text readable where the relative-color gradient is unsupported. */
|
|
2463
|
+
@supports (color: oklch(from currentColor l c h)) {
|
|
2464
|
+
--_shimmer-spread: var(--shimmer-spread, calc(3ch + 40px));
|
|
2465
|
+
--_shimmer-highlight: var(--shimmer-color, oklch(from currentColor l c h / calc(alpha * 0.2)));
|
|
2466
|
+
background-image: linear-gradient(
|
|
2467
|
+
calc(90deg + var(--shimmer-angle, 20deg)),
|
|
2468
|
+
currentColor calc(50% - var(--_shimmer-spread)),
|
|
2469
|
+
color-mix(in oklch, var(--_shimmer-highlight), currentColor 50%) calc(50% - var(--_shimmer-spread) * 0.5),
|
|
2470
|
+
var(--_shimmer-highlight) 50%,
|
|
2471
|
+
color-mix(in oklch, var(--_shimmer-highlight), currentColor 50%) calc(50% + var(--_shimmer-spread) * 0.5),
|
|
2472
|
+
currentColor calc(50% + var(--_shimmer-spread))
|
|
2473
|
+
);
|
|
2474
|
+
background-repeat: no-repeat;
|
|
2475
|
+
background-size: calc(200% + var(--_shimmer-spread) * 2) 100%;
|
|
2476
|
+
background-clip: text;
|
|
2477
|
+
-webkit-background-clip: text;
|
|
2478
|
+
-webkit-text-fill-color: transparent;
|
|
2479
|
+
animation: basecoat-shimmer var(--shimmer-duration, 2s) linear infinite;
|
|
2480
|
+
|
|
2481
|
+
html.dark & {
|
|
2482
|
+
--_shimmer-highlight: var(--shimmer-color, oklch(from currentColor max(0.8, calc(l + 0.4)) c h / calc(alpha + 0.4)));
|
|
2483
|
+
}
|
|
2484
|
+
&:dir(rtl) { animation-direction: reverse; }
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
|
|
2488
|
+
animation: none;
|
|
2489
|
+
background-image: none;
|
|
2490
|
+
-webkit-text-fill-color: currentColor;
|
|
2491
|
+
}
|
|
2492
|
+
@media (forced-colors: active) { -webkit-text-fill-color: CanvasText; }
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
@layer utilities {
|
|
2496
|
+
:where(.attachment:is([data-state='uploading'], [data-state='processing']) > section > :first-child) {
|
|
2497
|
+
@apply shimmer;
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
/* Trace */
|
|
2502
|
+
@layer components {
|
|
2503
|
+
.trace {
|
|
2504
|
+
@apply flex w-full min-w-0 flex-col;
|
|
2505
|
+
}
|
|
2506
|
+
.trace-line {
|
|
2507
|
+
@apply flex w-fit max-w-full min-w-0 items-center text-start;
|
|
2508
|
+
}
|
|
2509
|
+
.trace-line > span {
|
|
2510
|
+
@apply min-w-0 truncate;
|
|
2511
|
+
}
|
|
2512
|
+
.trace-line > :is(svg, small) {
|
|
2513
|
+
@apply shrink-0;
|
|
2514
|
+
}
|
|
2515
|
+
:is(a, button, summary).trace-line {
|
|
2516
|
+
@apply cursor-pointer;
|
|
2517
|
+
}
|
|
2518
|
+
details:has(> summary.trace-line) { @apply transition-details; }
|
|
2519
|
+
summary.trace-line::-webkit-details-marker { display: none; }
|
|
2520
|
+
summary.trace-line::after {
|
|
2521
|
+
content: '';
|
|
2522
|
+
@apply size-1.5 shrink-0 rotate-45 border-e border-t transition-transform motion-reduce:transition-none;
|
|
2523
|
+
}
|
|
2524
|
+
details[open] > summary.trace-line::after {
|
|
2525
|
+
@apply rotate-[135deg];
|
|
2526
|
+
}
|
|
2527
|
+
summary.trace-line:dir(rtl)::after { rotate: -45deg; }
|
|
2528
|
+
details[open] > summary.trace-line:dir(rtl)::after { rotate: -135deg; }
|
|
2529
|
+
summary.trace-line + div {
|
|
2530
|
+
@apply min-w-0 wrap-break-word;
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
/* Accordion */
|
|
2534
|
+
@layer components {
|
|
2535
|
+
.accordion > details {
|
|
2536
|
+
@apply not-last:border-b;
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
.accordion > details > summary {
|
|
2540
|
+
@apply focus-visible:ring-ring/30 focus-visible:border-ring rounded-none gap-6 py-4 text-left text-sm font-semibold hover:underline focus-visible:ring-2;
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
.accordion > details > summary > svg:last-child {
|
|
2544
|
+
@apply text-muted-foreground ms-auto size-3.5;
|
|
2545
|
+
}
|
|
2546
|
+
|
|
2547
|
+
.accordion > details > :not(summary) {
|
|
2548
|
+
@apply pt-0 pb-4 text-sm;
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
/* Button */
|
|
2552
|
+
.btn {
|
|
2553
|
+
@apply rounded-none border border-transparent bg-clip-padding text-xs font-semibold uppercase tracking-widest focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[2px] aria-invalid:border-destructive aria-invalid:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*='size-'])]:size-3.5;
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
.btn:not([data-size]),
|
|
2557
|
+
.btn[data-size='default'] {
|
|
2558
|
+
@apply h-10 gap-1.5 px-6 has-[[data-icon='inline-end']]:pe-4 has-[[data-icon='inline-start']]:ps-4;
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
.btn[data-size='xs'] {
|
|
2562
|
+
@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;
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
.btn[data-size='sm'] {
|
|
2566
|
+
@apply h-9 gap-1 px-4 has-[[data-icon='inline-end']]:pe-3 has-[[data-icon='inline-start']]:ps-3;
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
.btn[data-size='lg'] {
|
|
2570
|
+
@apply h-11 gap-1.5 px-8 has-[[data-icon='inline-end']]:pe-5 has-[[data-icon='inline-start']]:ps-5;
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
.btn[data-size='icon'] {
|
|
2574
|
+
@apply size-10;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
.btn[data-size='icon-xs'] {
|
|
2578
|
+
@apply size-7 [&_svg:not([class*='size-'])]:size-3;
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
.btn[data-size='icon-sm'] {
|
|
2582
|
+
@apply size-9;
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
.btn[data-size='icon-lg'] {
|
|
2586
|
+
@apply size-11;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
.btn:not([data-variant]),
|
|
2590
|
+
.btn[data-variant='primary'] {
|
|
2591
|
+
@apply bg-primary text-primary-foreground hover:bg-primary/80;
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2594
|
+
.btn[data-variant='secondary'] {
|
|
2595
|
+
@apply bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground;
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2598
|
+
.btn[data-variant='outline'] {
|
|
2599
|
+
@apply border-border bg-transparent hover:bg-muted hover:text-foreground dark:hover:bg-input/30 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
.btn[data-variant='ghost'] {
|
|
2603
|
+
@apply hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
2604
|
+
}
|
|
2605
|
+
|
|
2606
|
+
.btn[data-variant='link'] {
|
|
2607
|
+
@apply text-primary underline underline-offset-4 hover:underline;
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
.btn[data-variant='destructive'] {
|
|
2611
|
+
@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;
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
.btn:has(> input:checked) {
|
|
2615
|
+
@apply bg-muted text-foreground hover:bg-muted dark:bg-muted dark:hover:bg-muted;
|
|
2616
|
+
}
|
|
2617
|
+
.btn:has(> input:focus-visible) {
|
|
2618
|
+
@apply border-ring ring-ring/30 ring-[2px] dark:border-ring;
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
/* Button Group */
|
|
2622
|
+
.button-group {
|
|
2623
|
+
@apply has-[>.button-group]:gap-2;
|
|
2624
|
+
|
|
2625
|
+
> .input {
|
|
2626
|
+
@apply px-4;
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
.button-group:has(> .btn[data-variant='outline']),
|
|
2631
|
+
.button-group:has(> .select > button.btn[data-variant='outline']) {
|
|
2632
|
+
> .input,
|
|
2633
|
+
> .select > button {
|
|
2634
|
+
@apply border-border focus-visible:border-ring;
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
> :is(span, label, output):not(.btn) {
|
|
2638
|
+
@apply border-border;
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2642
|
+
.button-group:not([data-orientation='vertical']) {
|
|
2643
|
+
> :last-child,
|
|
2644
|
+
> :is(.dropdown-menu, .popover, .select):last-child > button {
|
|
2645
|
+
@apply rounded-e-none!;
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2648
|
+
|
|
2649
|
+
.button-group[data-orientation='vertical'] {
|
|
2650
|
+
> :last-child,
|
|
2651
|
+
> :is(.dropdown-menu, .popover, .select):last-child > button {
|
|
2652
|
+
@apply rounded-b-none!;
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
.button-group > :is(span, label, output):not(.btn) {
|
|
2657
|
+
@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;
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
.button-group > hr[role='separator'] {
|
|
2661
|
+
@apply bg-input;
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
|
|
2665
|
+
/* Tabs */
|
|
2666
|
+
.tabs {
|
|
2667
|
+
@apply gap-2;
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
.tabs > [role='tablist'] {
|
|
2671
|
+
@apply p-1 h-10;
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
.tabs > [role='tablist']:not([data-variant='line']) {
|
|
2675
|
+
@apply bg-muted;
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2678
|
+
.tabs > [role='tablist'][data-variant='line'] {
|
|
2679
|
+
@apply gap-1 rounded-none bg-transparent;
|
|
2680
|
+
}
|
|
2681
|
+
|
|
2682
|
+
.tabs > [role='tablist'][aria-orientation='vertical'] {
|
|
2683
|
+
@apply h-fit ;
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
.tabs > [role='tablist'] > [role='tab'] {
|
|
2687
|
+
@apply text-foreground/60 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:text-muted-foreground dark:hover:text-foreground gap-2 border border-transparent px-4 py-1.5 text-xs font-semibold uppercase tracking-wider [&_svg:not([class*='size-'])]:size-3.5 focus-visible:ring-[3px] focus-visible:outline-1;
|
|
2688
|
+
@apply after:absolute after:bg-foreground after:opacity-0 after:transition-opacity;
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
.tabs > [role='tablist'][aria-orientation='vertical'] > [role='tab'] {
|
|
2692
|
+
@apply w-full justify-start px-4 py-2;
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
.tabs > [role='tablist'][data-variant='line'][aria-orientation='horizontal'] > [role='tab'] {
|
|
2696
|
+
@apply bg-transparent shadow-none after:inset-x-0 after:bottom-[-5px] after:h-0.5;
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
.tabs > [role='tablist'][data-variant='line'][aria-orientation='vertical'] > [role='tab'] {
|
|
2700
|
+
@apply bg-transparent shadow-none after:inset-y-0 after:end-[-4px] after:w-0.5;
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
.tabs > [role='tablist']:not([data-variant='line']) > [role='tab'][aria-selected='true'] {
|
|
2704
|
+
@apply bg-background text-foreground dark:border-input dark:bg-input/30 dark:text-foreground shadow-sm;
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
.tabs > [role='tablist'][data-variant='line'] > [role='tab'][aria-selected='true'] {
|
|
2708
|
+
@apply bg-transparent text-foreground shadow-none dark:border-transparent dark:bg-transparent dark:text-foreground after:opacity-100;
|
|
2709
|
+
}
|
|
2710
|
+
|
|
2711
|
+
.tabs > [role='tablist'] > [role='tab']:has(> svg:first-child) {
|
|
2712
|
+
@apply ps-2.5;
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2715
|
+
.tabs > [role='tablist'] > [role='tab']:has(> svg:last-child) {
|
|
2716
|
+
@apply pe-2.5;
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
.tabs > [role='tabpanel'] {
|
|
2720
|
+
@apply text-sm;
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
/* Textarea */
|
|
2724
|
+
.field > textarea,
|
|
2725
|
+
.textarea {
|
|
2726
|
+
@apply border-transparent border-b-input bg-transparent focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 resize-none rounded-none border px-0 py-3 text-base transition-[color,border-color] md:text-sm;
|
|
2727
|
+
}
|
|
2728
|
+
/* Input */
|
|
2729
|
+
.field > input[type='text']:not(:is(.command > header input, .dialog > * > header input)),
|
|
2730
|
+
.field > input[type='email'],
|
|
2731
|
+
.field > input[type='password'],
|
|
2732
|
+
.field > input[type='number'],
|
|
2733
|
+
.field > input[type='file'],
|
|
2734
|
+
.field > input[type='tel'],
|
|
2735
|
+
.field > input[type='url'],
|
|
2736
|
+
.field > input[type='search']:not(:is(.command > header input, .dialog > * > header input)),
|
|
2737
|
+
.field > input[type='date'],
|
|
2738
|
+
.field > input[type='datetime-local'],
|
|
2739
|
+
.field > input[type='month'],
|
|
2740
|
+
.field > input[type='week'],
|
|
2741
|
+
.field > input[type='time'],
|
|
2742
|
+
.field > input:not([type]),
|
|
2743
|
+
.input[type='text'],
|
|
2744
|
+
.input[type='email'],
|
|
2745
|
+
.input[type='password'],
|
|
2746
|
+
.input[type='number'],
|
|
2747
|
+
.input[type='file'],
|
|
2748
|
+
.input[type='tel'],
|
|
2749
|
+
.input[type='url'],
|
|
2750
|
+
.input[type='search'],
|
|
2751
|
+
.input[type='date'],
|
|
2752
|
+
.input[type='datetime-local'],
|
|
2753
|
+
.input[type='month'],
|
|
2754
|
+
.input[type='week'],
|
|
2755
|
+
.input[type='time'],
|
|
2756
|
+
.input:not([type]) {
|
|
2757
|
+
@apply border-transparent border-b-input bg-transparent focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 border px-0 py-1 text-base transition-[color,border-color] file:h-7 file:text-sm file:font-medium md:text-sm;
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
/* Native Select */
|
|
2761
|
+
.field > select,
|
|
2762
|
+
select.select {
|
|
2763
|
+
@apply border-transparent border-b-input bg-transparent placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 w-fit rounded-none border py-2 ps-0 pe-8 text-base md:text-sm transition-[color,border-color] data-[size=sm]:h-9;
|
|
2764
|
+
@apply bg-[image:var(--chevron-down-icon-50)] bg-no-repeat bg-position-[center_right_0] bg-size-[0.875rem];
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
:is(.field > select, select.select):dir(rtl) {
|
|
2768
|
+
@apply bg-position-[center_left_0];
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
/* Alert */
|
|
2772
|
+
.alert {
|
|
2773
|
+
@apply grid gap-1 bg-background border px-4 py-3 text-start text-sm has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 [&>svg]:row-span-2 [&>svg]:translate-y-0.5 [&>svg]:text-current [&>svg:not([class*='size-'])]:size-4 relative after:-inset-y-px after:-start-px after:w-0.5 after:absolute;
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
.alert {
|
|
2777
|
+
@apply bg-card text-card-foreground after:bg-foreground;
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
.alert[data-variant='destructive'] {
|
|
2781
|
+
@apply text-destructive bg-card [&>svg]:text-current after:bg-destructive;
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
.alert > :is(h2, h3, h4, h5, h6, strong, [data-title]),
|
|
2785
|
+
.alert[data-variant='destructive'] > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
2786
|
+
@apply font-semibold text-sm;
|
|
2787
|
+
}
|
|
2788
|
+
|
|
2789
|
+
|
|
2790
|
+
.alert:has(> svg) > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
2791
|
+
@apply col-start-2;
|
|
2792
|
+
}
|
|
2793
|
+
.alert > section {
|
|
2794
|
+
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
.alert[data-variant='destructive'] > section {
|
|
2798
|
+
@apply text-destructive/90 text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
.alert > footer,
|
|
2802
|
+
.alert[data-variant='destructive'] > footer {
|
|
2803
|
+
@apply top-2.5 end-3;
|
|
2804
|
+
}
|
|
2805
|
+
/* Avatar */
|
|
2806
|
+
.avatar {
|
|
2807
|
+
@apply rounded-full after:rounded-[inherit];
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2810
|
+
.avatar {
|
|
2811
|
+
@apply size-8;
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
.avatar[data-size='sm'] {
|
|
2815
|
+
@apply size-6;
|
|
2816
|
+
}
|
|
2817
|
+
|
|
2818
|
+
.avatar[data-size='lg'] {
|
|
2819
|
+
@apply size-10;
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
.avatar > span:not(.avatar-badge) {
|
|
2823
|
+
@apply bg-muted text-muted-foreground rounded-[inherit];
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
.avatar > img {
|
|
2827
|
+
@apply rounded-[inherit];
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
.avatar > .avatar-badge {
|
|
2831
|
+
@apply bg-primary text-primary-foreground ring-background;
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
.avatar-group > [data-count] {
|
|
2835
|
+
@apply bg-muted text-muted-foreground size-8 rounded-full text-sm [&>svg]:size-4;
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
.avatar-group:has(> .avatar[data-size='sm']) > [data-count] {
|
|
2839
|
+
@apply size-6 [&>svg]:size-3;
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
.avatar-group:has(> .avatar[data-size='lg']) > [data-count] {
|
|
2843
|
+
@apply size-10 [&>svg]:size-5;
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
/* Badge */
|
|
2847
|
+
.badge {
|
|
2848
|
+
@apply gap-1.5 rounded-none border-0 bg-transparent px-0 py-0 text-[0.625rem] font-semibold uppercase tracking-widest transition-colors [&>svg]:size-3!;
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2851
|
+
.badge:not([data-variant]),
|
|
2852
|
+
.badge[data-variant='primary'] {
|
|
2853
|
+
@apply text-foreground [a]:hover:text-foreground/70;
|
|
2854
|
+
}
|
|
2855
|
+
|
|
2856
|
+
.badge[data-variant='secondary'] {
|
|
2857
|
+
@apply text-muted-foreground [a]:hover:text-foreground;
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
.badge[data-variant='outline'] {
|
|
2861
|
+
@apply text-foreground [a]:hover:text-foreground/70;
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
.badge[data-variant='destructive'] {
|
|
2865
|
+
@apply text-destructive [a]:hover:text-destructive/70 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40;
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
.badge[data-variant='ghost'] {
|
|
2869
|
+
@apply text-muted-foreground hover:text-foreground;
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
.badge[data-variant='link'] {
|
|
2873
|
+
@apply text-foreground underline-offset-4 hover:underline;
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
/* Breadcrumb */
|
|
2877
|
+
.breadcrumb > ol {
|
|
2878
|
+
@apply text-muted-foreground gap-1.5 text-sm sm:gap-2.5;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
.breadcrumb li {
|
|
2882
|
+
@apply gap-1.5;
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
.breadcrumb a {
|
|
2886
|
+
@apply transition-colors hover:text-foreground;
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
.breadcrumb [aria-current='page'] {
|
|
2890
|
+
@apply font-normal text-foreground;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
.breadcrumb li[aria-hidden='true'] > svg {
|
|
2894
|
+
@apply size-3.5;
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2897
|
+
.breadcrumb li > span[aria-hidden='true'] {
|
|
2898
|
+
@apply size-5 [&>svg]:size-4;
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2901
|
+
/* Command */
|
|
2902
|
+
.command {
|
|
2903
|
+
@apply bg-popover text-popover-foreground rounded-none!;
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
.command-dialog > .command {
|
|
2907
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 rounded-none! shadow-md ring-1 duration-100;
|
|
2908
|
+
}
|
|
2909
|
+
|
|
2910
|
+
.command > header {
|
|
2911
|
+
@apply m-1 gap-0 border-b border-b-input bg-transparent px-3;
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
.command > header svg {
|
|
2915
|
+
@apply size-3.5 opacity-50;
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
.command > header input {
|
|
2919
|
+
@apply h-9 ps-1.5 pe-2 text-base md:text-sm placeholder:text-muted-foreground;
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
.command [role='menu'] {
|
|
2923
|
+
@apply max-h-72 scroll-py-1;
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
.command [role='menu']:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
2927
|
+
@apply py-6 text-center text-sm;
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
.command [role='group'] {
|
|
2931
|
+
@apply p-1.5 text-foreground;
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2934
|
+
.command [role='heading'] {
|
|
2935
|
+
@apply text-muted-foreground px-3 py-2 text-xs font-semibold tracking-wider uppercase;
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
.command [role='separator'] {
|
|
2939
|
+
@apply bg-border/50 -mx-1.5 my-1.5 h-px;
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
.command [role='menuitem'] {
|
|
2943
|
+
@apply gap-2 rounded-none px-3 py-2 text-sm [&_svg:not([class*='size-'])]:size-3.5;
|
|
2944
|
+
}
|
|
2945
|
+
|
|
2946
|
+
.command [role='menuitem'].active {
|
|
2947
|
+
@apply bg-muted text-foreground [&_svg]:text-foreground;
|
|
2948
|
+
}
|
|
2949
|
+
|
|
2950
|
+
.command [data-shortcut] {
|
|
2951
|
+
@apply text-muted-foreground text-xs tracking-widest;
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
.command [role='menuitem'].active [data-shortcut] {
|
|
2955
|
+
@apply text-foreground;
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2958
|
+
|
|
2959
|
+
/* Combobox */
|
|
2960
|
+
.combobox > input[role='combobox'] {
|
|
2961
|
+
@apply border-transparent border-b-input bg-transparent focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 rounded-none border py-2 ps-0 pe-8 text-base md:text-sm transition-[color,border-color];
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2964
|
+
.combobox > svg,
|
|
2965
|
+
.combobox-trigger-icon {
|
|
2966
|
+
@apply text-muted-foreground end-0 top-1/2 size-3.5 -translate-y-1/2;
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
.combobox [data-popover] {
|
|
2970
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 gap-0 rounded-none p-0 shadow-md ring-1 duration-100;
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
.combobox [role='listbox'] {
|
|
2974
|
+
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1.5 overflow-y-auto p-1.5;
|
|
2975
|
+
}
|
|
2976
|
+
|
|
2977
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true']))) {
|
|
2978
|
+
@apply p-0;
|
|
2979
|
+
}
|
|
2980
|
+
|
|
2981
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
2982
|
+
@apply px-3 py-2 text-center text-sm text-muted-foreground;
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2985
|
+
.combobox [role='heading'] {
|
|
2986
|
+
@apply px-3 py-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase;
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
.combobox [role='option'] {
|
|
2990
|
+
@apply gap-2.5 rounded-none py-2 ps-3 pe-8 text-sm [&_svg:not([class*='size-'])]:size-3.5;
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
.combobox [role='option'].active,
|
|
2994
|
+
.combobox [role='option']:focus-visible {
|
|
2995
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
.combobox [role='group'] {
|
|
2999
|
+
@apply scroll-my-1.5 p-1.5;
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
.combobox [role='separator'] {
|
|
3003
|
+
@apply bg-border/50 -mx-1.5 my-1.5 h-px;
|
|
3004
|
+
}
|
|
3005
|
+
|
|
3006
|
+
.combobox-chips {
|
|
3007
|
+
@apply border-transparent border-b-input bg-transparent focus-within:border-b-ring has-[[aria-invalid=true]]:border-b-destructive dark:has-[[aria-invalid=true]]:border-b-destructive/50 min-h-10 gap-1.5 rounded-none border bg-clip-padding px-0 py-1.5 text-sm transition-[color,border-color];
|
|
3008
|
+
}
|
|
3009
|
+
|
|
3010
|
+
.combobox-chips > input[role='combobox'] {
|
|
3011
|
+
@apply text-base md:text-sm;
|
|
3012
|
+
}
|
|
3013
|
+
|
|
3014
|
+
.combobox-chip {
|
|
3015
|
+
@apply bg-muted text-foreground h-5.5 gap-1 rounded-none px-2 text-xs font-medium has-[>.combobox-chip-remove]:pe-0;
|
|
3016
|
+
}
|
|
3017
|
+
|
|
3018
|
+
.combobox-chip-remove {
|
|
3019
|
+
@apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
.combobox [data-popover] > .input-group {
|
|
3023
|
+
@apply m-1.5 mb-0 h-8 w-auto border-transparent border-b-input bg-transparent px-2.5 shadow-none focus-within:border-transparent focus-within:ring-0;
|
|
3024
|
+
}
|
|
3025
|
+
|
|
3026
|
+
.combobox [data-popover] > input[role='combobox'] {
|
|
3027
|
+
@apply mb-1 w-full;
|
|
3028
|
+
}
|
|
3029
|
+
/* Select */
|
|
3030
|
+
.select:not(select) > button {
|
|
3031
|
+
@apply border-transparent border-b-input bg-transparent focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 data-[size=sm]:h-9 gap-1.5 rounded-none border px-0 py-2 text-sm transition-[color,border-color] [&_svg:not([class*='size-'])]:size-3.5;
|
|
3032
|
+
}
|
|
3033
|
+
|
|
3034
|
+
.select:not(select) > button > span {
|
|
3035
|
+
@apply gap-1.5;
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3038
|
+
.select:not(select) > button > svg {
|
|
3039
|
+
@apply text-muted-foreground size-3.5;
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
.select:not(select) [data-popover] {
|
|
3043
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 rounded-none p-1.5 shadow-md ring-1 duration-100;
|
|
3044
|
+
}
|
|
3045
|
+
|
|
3046
|
+
|
|
3047
|
+
|
|
3048
|
+
|
|
3049
|
+
.select:not(select) [role='listbox'] {
|
|
3050
|
+
@apply scroll-py-1.5;
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
.select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
3054
|
+
@apply py-6 text-center text-sm;
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
.select:not(select) [role='heading'] {
|
|
3058
|
+
@apply px-3 py-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase;
|
|
3059
|
+
}
|
|
3060
|
+
|
|
3061
|
+
.select:not(select) [role='option'] {
|
|
3062
|
+
@apply gap-2.5 rounded-none py-2 ps-3 pe-8 text-sm [&_svg:not([class*='size-'])]:size-3.5;
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
.select:not(select) [role='option'].active,
|
|
3066
|
+
.select:not(select) [role='option']:focus-visible {
|
|
3067
|
+
@apply bg-muted text-foreground [&_svg]:text-foreground;
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
.select:not(select) [role='group'] {
|
|
3071
|
+
@apply scroll-my-1.5 p-1.5;
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
.select:not(select) [role='separator'] {
|
|
3075
|
+
@apply bg-border/50 -mx-1.5 my-1.5 h-px;
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
|
|
3079
|
+
/* Dialog */
|
|
3080
|
+
.dialog::backdrop,
|
|
3081
|
+
.alert-dialog::backdrop,
|
|
3082
|
+
.command-dialog::backdrop {
|
|
3083
|
+
@apply bg-black/20 backdrop-blur-sm duration-100;
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
.alert-dialog > * {
|
|
3087
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-w-xs gap-6 rounded-none p-6 shadow-md ring-1 duration-100 sm:max-w-md;
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
.alert-dialog:is([data-size='sm']) > *,
|
|
3091
|
+
.alert-dialog > [data-size='sm'] {
|
|
3092
|
+
@apply sm:max-w-xs;
|
|
3093
|
+
}
|
|
3094
|
+
|
|
3095
|
+
.dialog > * {
|
|
3096
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-w-[calc(100%-2rem)] gap-6 rounded-none p-6 text-sm shadow-md ring-1 duration-100 sm:max-w-md;
|
|
3097
|
+
}
|
|
3098
|
+
|
|
3099
|
+
.dialog > * > :is(button, form[method='dialog']) {
|
|
3100
|
+
@apply top-5 end-5;
|
|
3101
|
+
}
|
|
3102
|
+
|
|
3103
|
+
.dialog > * > :is(button, form[method='dialog'] > button) {
|
|
3104
|
+
@apply bg-secondary;
|
|
3105
|
+
}
|
|
3106
|
+
|
|
3107
|
+
.dialog > * > header {
|
|
3108
|
+
@apply gap-2;
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3111
|
+
.alert-dialog > * > header {
|
|
3112
|
+
@apply gap-x-6 gap-y-1.5;
|
|
3113
|
+
}
|
|
3114
|
+
|
|
3115
|
+
.alert-dialog > * > header > figure {
|
|
3116
|
+
@apply bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-none [&>svg:not([class*='size-'])]:size-8;
|
|
3117
|
+
}
|
|
3118
|
+
|
|
3119
|
+
.alert-dialog > * > footer,
|
|
3120
|
+
.dialog > * > footer {
|
|
3121
|
+
@apply gap-2;
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
.dialog > * > header > h2,
|
|
3125
|
+
.dialog > * > [data-title] {
|
|
3126
|
+
@apply text-lg leading-none font-semibold tracking-wider uppercase;
|
|
3127
|
+
}
|
|
3128
|
+
|
|
3129
|
+
.alert-dialog > * > header > h2,
|
|
3130
|
+
.alert-dialog > * > [data-title] {
|
|
3131
|
+
@apply text-lg font-semibold tracking-wider uppercase;
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
.dialog > * > header > p,
|
|
3135
|
+
.dialog > * > [data-description] {
|
|
3136
|
+
@apply text-muted-foreground mt-0.5 text-sm leading-relaxed [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
3137
|
+
}
|
|
3138
|
+
|
|
3139
|
+
.alert-dialog > * > header > p,
|
|
3140
|
+
.alert-dialog > * > [data-description] {
|
|
3141
|
+
@apply text-muted-foreground mt-0.5 text-sm leading-relaxed text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
/* Drawer */
|
|
3145
|
+
.drawer::backdrop {
|
|
3146
|
+
@apply bg-black/20 backdrop-blur-sm;
|
|
3147
|
+
}
|
|
3148
|
+
|
|
3149
|
+
.drawer > * {
|
|
3150
|
+
@apply bg-popover text-popover-foreground text-sm;
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3153
|
+
.drawer:not([data-side]) > *,
|
|
3154
|
+
.drawer[data-side='bottom'] > * {
|
|
3155
|
+
@apply rounded-none border-t;
|
|
3156
|
+
}
|
|
3157
|
+
|
|
3158
|
+
.drawer[data-side='top'] > * {
|
|
3159
|
+
@apply rounded-none border-b;
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
.drawer[data-side='left'] > * {
|
|
3163
|
+
@apply rounded-none border-r;
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
.drawer[data-side='right'] > * {
|
|
3167
|
+
@apply rounded-none border-l;
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3170
|
+
.drawer > * > header {
|
|
3171
|
+
@apply gap-1 p-4 text-start md:gap-2;
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
.drawer:not([data-side]) > * > header,
|
|
3175
|
+
.drawer[data-side='bottom'] > * > header,
|
|
3176
|
+
.drawer[data-side='top'] > * > header {
|
|
3177
|
+
@apply text-center;
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
.drawer > * > footer {
|
|
3181
|
+
@apply gap-2 p-4;
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3184
|
+
.drawer > * > header > h2,
|
|
3185
|
+
.drawer > * > [data-title] {
|
|
3186
|
+
@apply text-lg font-semibold tracking-wider uppercase;
|
|
3187
|
+
}
|
|
3188
|
+
|
|
3189
|
+
.drawer > * > header > p,
|
|
3190
|
+
.drawer > * > [data-description] {
|
|
3191
|
+
@apply text-muted-foreground mt-0.5 text-sm leading-relaxed;
|
|
3192
|
+
}
|
|
3193
|
+
|
|
3194
|
+
/* Sheet */
|
|
3195
|
+
.sheet::backdrop {
|
|
3196
|
+
@apply bg-black/20 supports-backdrop-filter:backdrop-blur-sm;
|
|
3197
|
+
}
|
|
3198
|
+
|
|
3199
|
+
.sheet > * {
|
|
3200
|
+
@apply bg-popover text-popover-foreground bg-clip-padding text-sm shadow-md;
|
|
3201
|
+
}
|
|
3202
|
+
|
|
3203
|
+
.sheet[data-side='bottom'] > * {
|
|
3204
|
+
@apply border-t;
|
|
3205
|
+
}
|
|
3206
|
+
|
|
3207
|
+
.sheet[data-side='top'] > * {
|
|
3208
|
+
@apply border-b;
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
.sheet[data-side='left'] > * {
|
|
3212
|
+
@apply border-r;
|
|
3213
|
+
}
|
|
3214
|
+
|
|
3215
|
+
.sheet:not([data-side]) > *,
|
|
3216
|
+
.sheet[data-side='right'] > * {
|
|
3217
|
+
@apply border-l;
|
|
3218
|
+
}
|
|
3219
|
+
|
|
3220
|
+
.sheet > * > header {
|
|
3221
|
+
@apply gap-1.5 p-8;
|
|
3222
|
+
}
|
|
3223
|
+
|
|
3224
|
+
.sheet > * > footer {
|
|
3225
|
+
@apply gap-2 p-8;
|
|
3226
|
+
}
|
|
3227
|
+
|
|
3228
|
+
.sheet > * > header > h2 {
|
|
3229
|
+
@apply text-foreground text-lg font-semibold uppercase tracking-wider;
|
|
3230
|
+
}
|
|
3231
|
+
|
|
3232
|
+
.sheet > * > header > p {
|
|
3233
|
+
@apply text-muted-foreground text-sm leading-relaxed mt-0.5;
|
|
3234
|
+
}
|
|
3235
|
+
|
|
3236
|
+
.sheet > * > button:last-child {
|
|
3237
|
+
@apply top-4 end-4 bg-secondary;
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
/* Dropdown Menu */
|
|
3241
|
+
.dropdown-menu > [data-popover] {
|
|
3242
|
+
@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;
|
|
3243
|
+
}
|
|
3244
|
+
|
|
3245
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
3246
|
+
@apply gap-2.5 rounded-none px-3 py-2 text-xs font-medium tracking-wider uppercase focus-visible:bg-accent focus-visible:text-accent-foreground [&_svg:not([class*='size-'])]:size-3.5;
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']).active {
|
|
3250
|
+
@apply bg-muted text-foreground;
|
|
3251
|
+
}
|
|
3252
|
+
|
|
3253
|
+
.dropdown-menu [data-variant='destructive'] {
|
|
3254
|
+
@apply text-destructive;
|
|
3255
|
+
}
|
|
3256
|
+
|
|
3257
|
+
.dropdown-menu [data-variant='destructive']:is(:focus-visible, .active) {
|
|
3258
|
+
@apply bg-destructive/10 text-destructive dark:bg-destructive/20;
|
|
3259
|
+
}
|
|
3260
|
+
|
|
3261
|
+
.dropdown-menu [data-variant='destructive'] svg {
|
|
3262
|
+
@apply text-destructive;
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
.dropdown-menu :is([role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
3266
|
+
@apply py-2 pe-8 ps-3;
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-inset],
|
|
3270
|
+
.dropdown-menu [role='heading'][data-inset] {
|
|
3271
|
+
@apply ps-9.5;
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
.dropdown-menu [data-indicator] {
|
|
3275
|
+
@apply absolute end-2 flex items-center justify-center;
|
|
3276
|
+
}
|
|
3277
|
+
|
|
3278
|
+
.dropdown-menu [role='heading'] {
|
|
3279
|
+
@apply text-muted-foreground px-3 py-2 text-xs font-semibold tracking-wider uppercase;
|
|
3280
|
+
}
|
|
3281
|
+
|
|
3282
|
+
.dropdown-menu [role='separator'] {
|
|
3283
|
+
@apply bg-border/50 -mx-1.5 my-1.5 h-px;
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
3287
|
+
@apply text-muted-foreground font-sans text-xs tracking-widest;
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child, .kbd:last-child) {
|
|
3291
|
+
@apply text-accent-foreground;
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
/* Popover */
|
|
3295
|
+
[data-popover] {
|
|
3296
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 flex flex-col gap-4 rounded-none p-4 text-sm shadow-md ring-1 duration-100;
|
|
3297
|
+
}
|
|
3298
|
+
.popover > [data-popover] > header,
|
|
3299
|
+
.popover > [data-popover] > [data-header] {
|
|
3300
|
+
@apply flex flex-col gap-1 text-sm;
|
|
3301
|
+
}
|
|
3302
|
+
|
|
3303
|
+
.popover > [data-popover] > header > :is(h1, h2, h3, h4, h5, h6),
|
|
3304
|
+
.popover > [data-popover] > :is(h1, h2, h3, h4, h5, h6, [data-title]) {
|
|
3305
|
+
@apply text-xs font-semibold uppercase;
|
|
3306
|
+
}
|
|
3307
|
+
|
|
3308
|
+
.popover > [data-popover] > header > p,
|
|
3309
|
+
.popover > [data-popover] > [data-description] {
|
|
3310
|
+
@apply text-muted-foreground text-sm leading-relaxed mt-0.5;
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
/* Carousel */
|
|
3314
|
+
.carousel > ul > li {
|
|
3315
|
+
@apply p-1;
|
|
3316
|
+
}
|
|
3317
|
+
.carousel > ul:focus-visible {
|
|
3318
|
+
@apply outline-2 outline-ring outline-offset-2;
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3321
|
+
/* Card */
|
|
3322
|
+
.card {
|
|
3323
|
+
@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;
|
|
3324
|
+
}
|
|
3325
|
+
|
|
3326
|
+
.card {
|
|
3327
|
+
@apply gap-8 py-8;
|
|
3328
|
+
}
|
|
3329
|
+
|
|
3330
|
+
.card[data-size='sm'] {
|
|
3331
|
+
@apply gap-5 py-5;
|
|
3332
|
+
}
|
|
3333
|
+
|
|
3334
|
+
.card > header {
|
|
3335
|
+
@apply gap-1.5 rounded-none px-8 [.border-b]:pb-8;
|
|
3336
|
+
}
|
|
3337
|
+
|
|
3338
|
+
.card[data-size='sm'] > header {
|
|
3339
|
+
@apply px-5 [.border-b]:pb-5;
|
|
3340
|
+
}
|
|
3341
|
+
|
|
3342
|
+
.card > header > :is(h2, h3, [data-title], .card-title) {
|
|
3343
|
+
@apply text-lg font-semibold tracking-wider uppercase;
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
.card > header > :is(p, [data-description], .card-description) {
|
|
3347
|
+
@apply text-muted-foreground text-sm leading-relaxed;
|
|
3348
|
+
}
|
|
3349
|
+
|
|
3350
|
+
.card > section {
|
|
3351
|
+
@apply px-8;
|
|
3352
|
+
}
|
|
3353
|
+
|
|
3354
|
+
.card[data-size='sm'] > section {
|
|
3355
|
+
@apply px-5;
|
|
3356
|
+
}
|
|
3357
|
+
|
|
3358
|
+
.card > footer {
|
|
3359
|
+
@apply px-8 [.border-t]:pt-8;
|
|
3360
|
+
}
|
|
3361
|
+
|
|
3362
|
+
.card[data-size='sm'] > footer {
|
|
3363
|
+
@apply px-5 [.border-t]:pt-5;
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
/* Chart */
|
|
3367
|
+
.chart {
|
|
3368
|
+
--chart-bar-radius: 0;
|
|
3369
|
+
}
|
|
3370
|
+
|
|
3371
|
+
.chart-tooltip {
|
|
3372
|
+
@apply border-border/50 bg-background text-foreground gap-1.5 rounded-none border px-2.5 py-1.5 text-xs shadow-xl;
|
|
3373
|
+
}
|
|
3374
|
+
|
|
3375
|
+
.chart-tooltip-title {
|
|
3376
|
+
@apply font-medium;
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
.chart-legend-item {
|
|
3380
|
+
@apply text-foreground;
|
|
3381
|
+
}
|
|
3382
|
+
|
|
3383
|
+
.chart-legend-item[aria-pressed='false'] {
|
|
3384
|
+
@apply text-muted-foreground;
|
|
3385
|
+
}
|
|
3386
|
+
|
|
3387
|
+
/* Checkbox */
|
|
3388
|
+
.field > input[type='checkbox']:not([role='switch']),
|
|
3389
|
+
.input[type='checkbox']:not([role='switch']) {
|
|
3390
|
+
@apply border-input bg-transparent checked:bg-primary checked:text-primary-foreground dark:checked:bg-primary checked:border-primary aria-invalid:checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4.5 items-center justify-center rounded-none border transition-shadow in-data-[disabled=true]:opacity-50 focus-visible:ring-2 aria-invalid:ring-2;
|
|
3391
|
+
}
|
|
3392
|
+
|
|
3393
|
+
:is(.field > input[type='checkbox']:not([role='switch']), .input[type='checkbox']:not([role='switch'])):checked:after {
|
|
3394
|
+
@apply size-3.5;
|
|
3395
|
+
}
|
|
3396
|
+
|
|
3397
|
+
/* Radio */
|
|
3398
|
+
[role='radiogroup'] {
|
|
3399
|
+
@apply grid gap-3;
|
|
3400
|
+
}
|
|
3401
|
+
|
|
3402
|
+
.field > input[type='radio'],
|
|
3403
|
+
.input[type='radio'] {
|
|
3404
|
+
@apply border-input bg-transparent checked:border-foreground aria-invalid:checked:border-foreground aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 dark:aria-invalid:border-destructive/50 flex size-4.5 rounded-full border focus-visible:ring-2 aria-invalid:ring-2;
|
|
3405
|
+
}
|
|
3406
|
+
|
|
3407
|
+
:is(.field > input[type='radio'], .input[type='radio']):checked:before {
|
|
3408
|
+
@apply bg-foreground size-2;
|
|
3409
|
+
}
|
|
3410
|
+
|
|
3411
|
+
/* Switch */
|
|
3412
|
+
.field > input[type='checkbox'][role='switch'],
|
|
3413
|
+
.input[type='checkbox'][role='switch'] {
|
|
3414
|
+
@apply checked:bg-primary not-checked:bg-input checked:border-primary border not-checked:border-input/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-none focus-visible:ring-2 aria-invalid:ring-2;
|
|
3415
|
+
}
|
|
3416
|
+
|
|
3417
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']) {
|
|
3418
|
+
@apply h-4.5 w-8.25;
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch'])[data-size='sm'] {
|
|
3422
|
+
@apply h-3.5 w-6.25;
|
|
3423
|
+
}
|
|
3424
|
+
|
|
3425
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
3426
|
+
@apply bg-background;
|
|
3427
|
+
}
|
|
3428
|
+
|
|
3429
|
+
html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
|
|
3430
|
+
@apply bg-foreground;
|
|
3431
|
+
}
|
|
3432
|
+
|
|
3433
|
+
html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
|
|
3434
|
+
@apply bg-primary-foreground;
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3437
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
|
|
3438
|
+
@apply size-3.5;
|
|
3439
|
+
}
|
|
3440
|
+
|
|
3441
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch'])[data-size='sm']:before {
|
|
3442
|
+
@apply size-2.5;
|
|
3443
|
+
}
|
|
3444
|
+
|
|
3445
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:not([data-size='sm']):before {
|
|
3446
|
+
@apply translate-x-[calc(100%+2px)];
|
|
3447
|
+
}
|
|
3448
|
+
|
|
3449
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked[data-size='sm']:before {
|
|
3450
|
+
@apply translate-x-[calc(100%+2px)];
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):dir(rtl):checked:not([data-size='sm']):before {
|
|
3454
|
+
@apply -translate-x-[calc(100%+2px)];
|
|
3455
|
+
}
|
|
3456
|
+
|
|
3457
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):dir(rtl):checked[data-size='sm']:before {
|
|
3458
|
+
@apply -translate-x-[calc(100%+2px)];
|
|
3459
|
+
}
|
|
3460
|
+
|
|
3461
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
|
|
3462
|
+
@apply translate-x-0.25;
|
|
3463
|
+
}
|
|
3464
|
+
|
|
3465
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):dir(rtl):not(:checked):before {
|
|
3466
|
+
@apply -translate-x-0.25;
|
|
3467
|
+
}
|
|
3468
|
+
|
|
3469
|
+
|
|
3470
|
+
/* Field */
|
|
3471
|
+
.fieldset {
|
|
3472
|
+
@apply gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3;
|
|
3473
|
+
}
|
|
3474
|
+
|
|
3475
|
+
.fieldset > legend {
|
|
3476
|
+
@apply mb-3 font-semibold uppercase data-[variant=label]:text-xs data-[variant=legend]:text-xs;
|
|
3477
|
+
}
|
|
3478
|
+
|
|
3479
|
+
.fieldset > :is([role='group'], [role='radiogroup']):not(.field),
|
|
3480
|
+
.field > :is(fieldset, [role='group'], [role='radiogroup']):not(.field) {
|
|
3481
|
+
@apply gap-10;
|
|
3482
|
+
|
|
3483
|
+
&[role='radiogroup'],
|
|
3484
|
+
&:has(> .field > input[type='checkbox']:not([role='switch'])),
|
|
3485
|
+
&:has(> .field > input[type='radio']),
|
|
3486
|
+
&[data-slot='checkbox-group'],
|
|
3487
|
+
&[data-slot='radio-group'] {
|
|
3488
|
+
@apply gap-3;
|
|
3489
|
+
}
|
|
3490
|
+
}
|
|
3491
|
+
|
|
3492
|
+
:is(.fieldset, .field) > :is([role='group'], [role='radiogroup']):not(.field) > :is([role='group'], [role='radiogroup']):not(.field),
|
|
3493
|
+
.field > fieldset:not(.field) > :is([role='group'], [role='radiogroup']):not(.field) {
|
|
3494
|
+
@apply gap-4;
|
|
3495
|
+
}
|
|
3496
|
+
|
|
3497
|
+
.field {
|
|
3498
|
+
@apply data-invalid:text-destructive data-[invalid=true]:text-destructive gap-3;
|
|
3499
|
+
}
|
|
3500
|
+
|
|
3501
|
+
.field > section {
|
|
3502
|
+
@apply gap-1;
|
|
3503
|
+
}
|
|
3504
|
+
|
|
3505
|
+
.field > label,
|
|
3506
|
+
.field > section > label,
|
|
3507
|
+
label:has(> .field) {
|
|
3508
|
+
@apply has-[:checked]:bg-primary/5 has-[:checked]:border-primary/30 dark:has-[:checked]:border-primary/20 dark:has-[:checked]:bg-primary/10 gap-2 in-data-[disabled=true]:opacity-50 leading-relaxed;
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
.field > label:has(input[type='radio']),
|
|
3512
|
+
.field > label:has(input[type='checkbox']),
|
|
3513
|
+
.field > label:has(input[role='switch']),
|
|
3514
|
+
.field > label:has(> .field),
|
|
3515
|
+
label:has(> .field) {
|
|
3516
|
+
@apply rounded-none border;
|
|
3517
|
+
}
|
|
3518
|
+
|
|
3519
|
+
.field > label:has(input[type='radio']),
|
|
3520
|
+
.field > label:has(input[type='checkbox']),
|
|
3521
|
+
.field > label:has(input[role='switch']) {
|
|
3522
|
+
@apply p-4;
|
|
3523
|
+
}
|
|
3524
|
+
|
|
3525
|
+
:is(.field > label, label:has(> .field)) > .field {
|
|
3526
|
+
@apply p-4;
|
|
3527
|
+
}
|
|
3528
|
+
.field h2,
|
|
3529
|
+
.field h3 {
|
|
3530
|
+
@apply gap-2 in-data-[disabled=true]:opacity-50 leading-normal font-semibold uppercase text-xs;
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
.fieldset legend + p,
|
|
3534
|
+
.field > p,
|
|
3535
|
+
.field section > p {
|
|
3536
|
+
@apply text-muted-foreground text-start text-sm [[data-variant=legend]+&]:-mt-1.5 normal-case tracking-normal;
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
.fieldset > legend[data-variant='label'] {
|
|
3540
|
+
@apply mb-0;
|
|
3541
|
+
}
|
|
3542
|
+
|
|
3543
|
+
.fieldset > legend:not([data-variant]) + p,
|
|
3544
|
+
.fieldset > legend[data-variant='legend'] + p {
|
|
3545
|
+
@apply -mt-1.5;
|
|
3546
|
+
}
|
|
3547
|
+
|
|
3548
|
+
.field-separator {
|
|
3549
|
+
@apply -my-2 h-5 text-sm in-data-[variant=outline]:-mb-2;
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3552
|
+
.field-separator > span {
|
|
3553
|
+
@apply text-muted-foreground px-2;
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3556
|
+
.field [role="alert"] {
|
|
3557
|
+
@apply text-destructive text-sm;
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3560
|
+
/* Input Group */
|
|
3561
|
+
.input-group {
|
|
3562
|
+
@apply h-10 has-[>textarea]:h-auto rounded-none border border-transparent border-b-input bg-transparent transition-[color,border-color] focus-within:border-b-ring has-[[aria-invalid=true]]:border-b-destructive has-[>textarea]:rounded-none dark:has-[[aria-invalid=true]]:border-b-destructive/50;
|
|
3563
|
+
}
|
|
3564
|
+
|
|
3565
|
+
|
|
3566
|
+
.input-group:has(> :is(input, textarea, select, [data-control]):disabled) {
|
|
3567
|
+
@apply opacity-50;
|
|
3568
|
+
}
|
|
3569
|
+
.input-group > :is(input, select, [data-control]) {
|
|
3570
|
+
@apply px-0 py-1 text-base md:text-sm;
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
.input-group:not([data-orientation='vertical']):has(> :is([data-align='start'], [data-align='inline-start'])) > :is(input, select, [data-control]) {
|
|
3574
|
+
@apply ps-2;
|
|
3575
|
+
}
|
|
3576
|
+
|
|
3577
|
+
.input-group:not([data-orientation='vertical']):has(> :is([data-align='end'], [data-align='inline-end'])) > :is(input, select, [data-control]) {
|
|
3578
|
+
@apply pe-2;
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3581
|
+
.input-group > textarea {
|
|
3582
|
+
@apply px-0 py-2.5 text-base md:text-sm;
|
|
3583
|
+
}
|
|
3584
|
+
|
|
3585
|
+
.input-group > :is(span, [role='group'], header, footer),
|
|
3586
|
+
.input-group > :is(svg, kbd, .popover, .dropdown-menu) {
|
|
3587
|
+
@apply gap-2 py-2 text-sm font-medium text-muted-foreground select-none [&>svg:not([class*='size-'])]:size-3.5;
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3590
|
+
.input-group > :is([data-align='start'], [data-align='inline-start']):has(> button) {
|
|
3591
|
+
@apply -ms-1;
|
|
3592
|
+
}
|
|
3593
|
+
|
|
3594
|
+
.input-group > :is([data-align='end'], [data-align='inline-end']):has(> button) {
|
|
3595
|
+
@apply -me-1;
|
|
3596
|
+
}
|
|
3597
|
+
|
|
3598
|
+
.input-group > :is([data-align='start'], [data-align='inline-start']):has(> kbd) {
|
|
3599
|
+
@apply -ms-0.5;
|
|
3600
|
+
}
|
|
3601
|
+
|
|
3602
|
+
.input-group > :is([data-align='end'], [data-align='inline-end']):has(> kbd) {
|
|
3603
|
+
@apply -me-0.5;
|
|
3604
|
+
}
|
|
3605
|
+
.input-group[data-orientation='vertical'] > :is(header, footer, [role='group'], [data-align]) {
|
|
3606
|
+
@apply px-0;
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3609
|
+
.input-group > [data-align='block-start'] {
|
|
3610
|
+
@apply px-0 pt-2;
|
|
3611
|
+
}
|
|
3612
|
+
|
|
3613
|
+
.input-group > [data-align='block-end'] {
|
|
3614
|
+
@apply px-0 pb-2;
|
|
3615
|
+
}
|
|
3616
|
+
|
|
3617
|
+
.input-group[data-orientation='vertical'] > :is(header[data-align='start'], [data-align='block-start']) {
|
|
3618
|
+
@apply px-0 pt-3;
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
.input-group[data-orientation='vertical'] > :is(footer[data-align='end'], [data-align='block-end']) {
|
|
3622
|
+
@apply px-0 pb-3;
|
|
3623
|
+
}
|
|
3624
|
+
|
|
3625
|
+
.input-group[data-orientation='vertical']:has(> input) > :is(header[data-align='start'], [data-align='block-start']) {
|
|
3626
|
+
@apply pt-3.5;
|
|
3627
|
+
}
|
|
3628
|
+
|
|
3629
|
+
.input-group[data-orientation='vertical']:has(> input) > :is(footer[data-align='end'], [data-align='block-end']) {
|
|
3630
|
+
@apply pb-3.5;
|
|
3631
|
+
}
|
|
3632
|
+
|
|
3633
|
+
.input-group[data-orientation='vertical'] > :is(header[data-align='start'], [data-align='block-start']).border-b {
|
|
3634
|
+
@apply pb-3.5;
|
|
3635
|
+
}
|
|
3636
|
+
|
|
3637
|
+
.input-group[data-orientation='vertical'] > :is(footer[data-align='end'], [data-align='block-end']).border-t {
|
|
3638
|
+
@apply pt-3.5;
|
|
3639
|
+
}
|
|
3640
|
+
|
|
3641
|
+
|
|
3642
|
+
.input-group > :is(kbd, span > kbd, [role='group'] > kbd, header > kbd, footer > kbd) {
|
|
3643
|
+
@apply rounded-none bg-muted-foreground/10 px-1.5;
|
|
3644
|
+
}
|
|
3645
|
+
|
|
3646
|
+
.input-group > :is(button, [role='group'] > button, header > button, footer > button) {
|
|
3647
|
+
@apply gap-2 rounded-none text-sm shadow-none [&>svg:not([class*='size-'])]:size-3.5;
|
|
3648
|
+
}
|
|
3649
|
+
|
|
3650
|
+
|
|
3651
|
+
.input-group > :is(button, [role='group'] > button, header > button, footer > button):has(> svg):not(:has(> :not(svg))) {
|
|
3652
|
+
@apply size-6 rounded-none p-0 text-xs;
|
|
3653
|
+
}
|
|
3654
|
+
|
|
3655
|
+
/* Empty */
|
|
3656
|
+
.empty {
|
|
3657
|
+
@apply gap-4 border-dashed p-12;
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3660
|
+
.empty > header {
|
|
3661
|
+
@apply gap-2;
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3664
|
+
.empty figure {
|
|
3665
|
+
@apply mb-2;
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3668
|
+
.empty figure:has(> svg:only-child) {
|
|
3669
|
+
@apply bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-none [&_svg:not([class*='size-'])]:size-5;
|
|
3670
|
+
}
|
|
3671
|
+
|
|
3672
|
+
.empty :is(h2, h3, h4) {
|
|
3673
|
+
@apply text-lg font-semibold tracking-wider uppercase;
|
|
3674
|
+
}
|
|
3675
|
+
|
|
3676
|
+
.empty > header > p {
|
|
3677
|
+
@apply text-muted-foreground mt-0.5 text-sm/relaxed;
|
|
3678
|
+
}
|
|
3679
|
+
|
|
3680
|
+
.empty > :is(section, footer) {
|
|
3681
|
+
@apply gap-4 text-sm;
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3684
|
+
/* Message */
|
|
3685
|
+
.message-group { @apply gap-2; }
|
|
3686
|
+
.message { @apply gap-2 text-sm; }
|
|
3687
|
+
.message > div:last-child { @apply gap-2.5; }
|
|
3688
|
+
.message > div:last-child > :is(header, footer) {
|
|
3689
|
+
@apply px-4 text-xs uppercase tracking-wide font-medium text-muted-foreground;
|
|
3690
|
+
}
|
|
3691
|
+
.message:has(.bubble[data-variant='ghost']) > div:last-child > :is(header, footer) { @apply px-0; }
|
|
3692
|
+
.message:has(> div:last-child > footer) > .avatar { @apply -translate-y-8; }
|
|
3693
|
+
|
|
3694
|
+
/* Trace */
|
|
3695
|
+
.trace { @apply gap-3; }
|
|
3696
|
+
.trace-line { @apply gap-2 text-sm text-muted-foreground; }
|
|
3697
|
+
.trace-line > svg { @apply size-4; }
|
|
3698
|
+
.trace-line > small { @apply [font-size:inherit] text-muted-foreground/70 tabular-nums; }
|
|
3699
|
+
:is(a, button, summary).trace-line {
|
|
3700
|
+
@apply rounded-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/30;
|
|
3701
|
+
}
|
|
3702
|
+
summary.trace-line + div {
|
|
3703
|
+
@apply mt-3 mb-1 ms-[calc(--spacing(2)-1px)] border-s ps-4 pe-1 text-muted-foreground leading-relaxed;
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3706
|
+
/* Marker */
|
|
3707
|
+
.marker {
|
|
3708
|
+
@apply min-h-4 gap-2 text-xs text-muted-foreground text-start uppercase tracking-wide [&_svg:not([class*='size-'])]:size-4;
|
|
3709
|
+
}
|
|
3710
|
+
.marker[data-variant='border'] {
|
|
3711
|
+
@apply border-b border-border pb-2;
|
|
3712
|
+
}
|
|
3713
|
+
.marker[data-variant='separator']::before,
|
|
3714
|
+
.marker[data-variant='separator']::after {
|
|
3715
|
+
@apply border-border;
|
|
3716
|
+
}
|
|
3717
|
+
.marker[data-variant='separator']::before { @apply me-1; }
|
|
3718
|
+
.marker[data-variant='separator']::after { @apply ms-1; }
|
|
3719
|
+
a.marker, .marker a { @apply underline underline-offset-3 hover:text-foreground; }
|
|
3720
|
+
button.marker { @apply hover:text-foreground; }
|
|
3721
|
+
|
|
3722
|
+
/* Item */
|
|
3723
|
+
.item {
|
|
3724
|
+
@apply rounded-none border text-sm;
|
|
3725
|
+
}
|
|
3726
|
+
|
|
3727
|
+
.item:not([data-variant]),
|
|
3728
|
+
.item[data-variant='default'] {
|
|
3729
|
+
@apply border-transparent;
|
|
3730
|
+
}
|
|
3731
|
+
|
|
3732
|
+
.item[data-variant='outline'] {
|
|
3733
|
+
@apply border-border;
|
|
3734
|
+
}
|
|
3735
|
+
|
|
3736
|
+
.item[data-variant='muted'] {
|
|
3737
|
+
@apply bg-muted/50 border-transparent;
|
|
3738
|
+
}
|
|
3739
|
+
|
|
3740
|
+
.item:not([data-size]),
|
|
3741
|
+
.item[data-size='default'] {
|
|
3742
|
+
@apply gap-3.5 px-4 py-3.5;
|
|
3743
|
+
}
|
|
3744
|
+
|
|
3745
|
+
.item[data-size='sm'] {
|
|
3746
|
+
@apply gap-3.5 px-3.5 py-3;
|
|
3747
|
+
}
|
|
3748
|
+
|
|
3749
|
+
.item[data-size='xs'] {
|
|
3750
|
+
@apply gap-2.5 px-3 py-2.5;
|
|
3751
|
+
}
|
|
3752
|
+
|
|
3753
|
+
.item > figure {
|
|
3754
|
+
@apply gap-2;
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3757
|
+
.item:has(p) > figure {
|
|
3758
|
+
@apply translate-y-0.5 self-start;
|
|
3759
|
+
}
|
|
3760
|
+
|
|
3761
|
+
.item > figure:has(> svg:only-child) {
|
|
3762
|
+
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3765
|
+
.item > figure:has(> img) {
|
|
3766
|
+
@apply size-10 overflow-hidden rounded-none;
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3769
|
+
.item[data-size='sm'] > figure:has(> img) {
|
|
3770
|
+
@apply size-8;
|
|
3771
|
+
}
|
|
3772
|
+
|
|
3773
|
+
.item[data-size='xs'] > figure:has(> img) {
|
|
3774
|
+
@apply size-6 rounded-none;
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
.item > section {
|
|
3778
|
+
@apply gap-1;
|
|
3779
|
+
}
|
|
3780
|
+
|
|
3781
|
+
.item[data-size='xs'] > section {
|
|
3782
|
+
@apply gap-0.5;
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
.item :is(h2, h3, h4) {
|
|
3786
|
+
@apply gap-2 text-xs leading-snug font-semibold uppercase underline-offset-4;
|
|
3787
|
+
}
|
|
3788
|
+
|
|
3789
|
+
.item p {
|
|
3790
|
+
@apply text-sm leading-relaxed;
|
|
3791
|
+
}
|
|
3792
|
+
|
|
3793
|
+
.item[data-size='xs'] p {
|
|
3794
|
+
@apply text-sm leading-relaxed;
|
|
3795
|
+
}
|
|
3796
|
+
|
|
3797
|
+
.item > aside,
|
|
3798
|
+
.item > :is(header, footer) {
|
|
3799
|
+
@apply gap-2;
|
|
3800
|
+
}
|
|
3801
|
+
|
|
3802
|
+
.item-group {
|
|
3803
|
+
@apply gap-4;
|
|
3804
|
+
}
|
|
3805
|
+
|
|
3806
|
+
.item-group:has(> .item[data-size='sm']) {
|
|
3807
|
+
@apply gap-2.5;
|
|
3808
|
+
}
|
|
3809
|
+
|
|
3810
|
+
.item-group:has(> .item[data-size='xs']) {
|
|
3811
|
+
@apply gap-2;
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3814
|
+
.item-group > hr {
|
|
3815
|
+
@apply my-2;
|
|
3816
|
+
}
|
|
3817
|
+
|
|
3818
|
+
/* Kbd */
|
|
3819
|
+
.kbd {
|
|
3820
|
+
@apply bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5.5 w-fit min-w-5.5 gap-1 rounded-none px-1.5 font-sans text-xs font-medium [&_svg:not([class*='size-'])]:size-3;
|
|
3821
|
+
}
|
|
3822
|
+
|
|
3823
|
+
/* Label */
|
|
3824
|
+
.field > label,
|
|
3825
|
+
.label {
|
|
3826
|
+
@apply gap-2 font-semibold leading-relaxed in-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 uppercase text-xs tracking-wide;
|
|
3827
|
+
}
|
|
3828
|
+
|
|
3829
|
+
.field > section > label {
|
|
3830
|
+
@apply gap-2 font-semibold leading-relaxed in-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 uppercase text-xs tracking-wide;
|
|
3831
|
+
}
|
|
3832
|
+
|
|
3833
|
+
:is(.field > label, .field > section > label, .label):has(input[type='checkbox']),
|
|
3834
|
+
:is(.field > label, .field > section > label, .label):has(input[type='radio']),
|
|
3835
|
+
:is(.field > label, .field > section > label, .label):has(input[role='switch']),
|
|
3836
|
+
:is(input[type='checkbox'], input[type='radio'], input[role='switch']) + :is(.field > label, .field > section > label, .label) {
|
|
3837
|
+
@apply text-sm font-normal normal-case tracking-normal;
|
|
3838
|
+
}
|
|
3839
|
+
|
|
3840
|
+
/* Sidebar */
|
|
3841
|
+
.sidebar > nav {
|
|
3842
|
+
@apply bg-sidebar text-sidebar-foreground;
|
|
3843
|
+
}
|
|
3844
|
+
|
|
3845
|
+
.sidebar > nav > header,
|
|
3846
|
+
.sidebar > nav > footer {
|
|
3847
|
+
@apply gap-2 p-2 [--radius:0];
|
|
3848
|
+
}
|
|
3849
|
+
|
|
3850
|
+
.sidebar > nav > section {
|
|
3851
|
+
@apply gap-2 [--radius:0];
|
|
3852
|
+
}
|
|
3853
|
+
|
|
3854
|
+
.sidebar > nav [role=separator] {
|
|
3855
|
+
@apply border-sidebar-border mx-2;
|
|
3856
|
+
}
|
|
3857
|
+
|
|
3858
|
+
.sidebar > nav > section > [role=group] {
|
|
3859
|
+
@apply p-2;
|
|
3860
|
+
}
|
|
3861
|
+
|
|
3862
|
+
.sidebar > nav h3 {
|
|
3863
|
+
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-none px-3 text-xs font-semibold uppercase tracking-wider focus-visible:ring-2 [&>svg]:size-3.5 transition-[margin,opacity] duration-200 ease-linear;
|
|
3864
|
+
}
|
|
3865
|
+
|
|
3866
|
+
.sidebar > nav > section > [role=group] > ul {
|
|
3867
|
+
@apply gap-0.5;
|
|
3868
|
+
}
|
|
3869
|
+
|
|
3870
|
+
.sidebar > nav > section > [role=group] {
|
|
3871
|
+
@apply text-sm;
|
|
3872
|
+
}
|
|
3873
|
+
|
|
3874
|
+
.sidebar > nav li > :is(a, button),
|
|
3875
|
+
.sidebar > nav li > details > summary {
|
|
3876
|
+
@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-none px-3 py-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-3.5;
|
|
3877
|
+
}
|
|
3878
|
+
|
|
3879
|
+
.sidebar > nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
3880
|
+
.sidebar > nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
3881
|
+
@apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
|
|
3882
|
+
}
|
|
3883
|
+
|
|
3884
|
+
.sidebar > nav li > :is(a, button):not([data-variant]),
|
|
3885
|
+
.sidebar > nav li > details > summary:not([data-variant]),
|
|
3886
|
+
.sidebar > nav li > :is(a, button)[data-variant=default],
|
|
3887
|
+
.sidebar > nav li > details > summary[data-variant=default] {
|
|
3888
|
+
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
3889
|
+
}
|
|
3890
|
+
|
|
3891
|
+
.sidebar > nav li > :is(a, button)[data-variant=outline],
|
|
3892
|
+
.sidebar > nav li > details > summary[data-variant=outline] {
|
|
3893
|
+
@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;
|
|
3894
|
+
}
|
|
3895
|
+
|
|
3896
|
+
.sidebar > nav li > :is(a, button):not([data-size]),
|
|
3897
|
+
.sidebar > nav li > details > summary:not([data-size]),
|
|
3898
|
+
.sidebar > nav li > :is(a, button)[data-size=default],
|
|
3899
|
+
.sidebar > nav li > details > summary[data-size=default] {
|
|
3900
|
+
@apply h-9 text-sm;
|
|
3901
|
+
}
|
|
3902
|
+
|
|
3903
|
+
.sidebar > nav li > :is(a, button)[data-size=sm],
|
|
3904
|
+
.sidebar > nav li > details > summary[data-size=sm] {
|
|
3905
|
+
@apply h-8 text-xs;
|
|
3906
|
+
}
|
|
3907
|
+
|
|
3908
|
+
.sidebar > nav li > :is(a, button)[data-size=lg],
|
|
3909
|
+
.sidebar > nav li > details > summary[data-size=lg] {
|
|
3910
|
+
@apply h-14 px-3 text-sm;
|
|
3911
|
+
}
|
|
3912
|
+
|
|
3913
|
+
.sidebar > nav li > details > summary::after {
|
|
3914
|
+
@apply size-3.5;
|
|
3915
|
+
}
|
|
3916
|
+
|
|
3917
|
+
.sidebar > nav li > details::details-content {
|
|
3918
|
+
@apply px-3.5;
|
|
3919
|
+
}
|
|
3920
|
+
|
|
3921
|
+
.sidebar > nav ul ul {
|
|
3922
|
+
@apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
|
|
3923
|
+
}
|
|
3924
|
+
|
|
3925
|
+
.sidebar > nav ul ul > li > :is(a, button),
|
|
3926
|
+
.sidebar > nav ul ul > li > details > summary {
|
|
3927
|
+
@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-none px-3 text-sm focus-visible:ring-2 [&>svg]:size-3.5;
|
|
3928
|
+
}
|
|
3929
|
+
/* Progress */
|
|
3930
|
+
.progress {
|
|
3931
|
+
@apply bg-muted h-0.5 rounded-none;
|
|
3932
|
+
}
|
|
3933
|
+
|
|
3934
|
+
.progress > span {
|
|
3935
|
+
@apply bg-primary;
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3938
|
+
/* Skeleton */
|
|
3939
|
+
.skeleton {
|
|
3940
|
+
@apply bg-muted;
|
|
3941
|
+
}
|
|
3942
|
+
|
|
3943
|
+
/* Table */
|
|
3944
|
+
.table-container {
|
|
3945
|
+
@apply relative w-full overflow-x-auto;
|
|
3946
|
+
}
|
|
3947
|
+
|
|
3948
|
+
.table {
|
|
3949
|
+
@apply w-full caption-bottom text-sm;
|
|
3950
|
+
}
|
|
3951
|
+
|
|
3952
|
+
.table thead {
|
|
3953
|
+
@apply [&_tr]:border-b;
|
|
3954
|
+
}
|
|
3955
|
+
|
|
3956
|
+
.table tbody {
|
|
3957
|
+
@apply [&_tr:last-child]:border-0;
|
|
3958
|
+
}
|
|
3959
|
+
|
|
3960
|
+
.table tfoot {
|
|
3961
|
+
@apply bg-muted/50 border-t font-medium [&>tr]:last:border-b-0;
|
|
3962
|
+
}
|
|
3963
|
+
|
|
3964
|
+
.table tr {
|
|
3965
|
+
@apply hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors;
|
|
3966
|
+
}
|
|
3967
|
+
|
|
3968
|
+
.table th {
|
|
3969
|
+
@apply text-muted-foreground h-12 px-3 text-start align-middle text-xs font-medium uppercase tracking-wider whitespace-nowrap [&:has([role=checkbox])]:pe-0;
|
|
3970
|
+
}
|
|
3971
|
+
|
|
3972
|
+
.table td {
|
|
3973
|
+
@apply p-3 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0;
|
|
3974
|
+
}
|
|
3975
|
+
|
|
3976
|
+
.table caption {
|
|
3977
|
+
@apply text-muted-foreground mt-4 text-sm;
|
|
3978
|
+
}
|
|
3979
|
+
|
|
3980
|
+
|
|
3981
|
+
/* Tooltip */
|
|
3982
|
+
[data-tooltip]::before {
|
|
3983
|
+
@apply bg-foreground text-background rounded-none px-3 py-1.5 text-xs;
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
[data-tooltip][data-arrow]::after {
|
|
3987
|
+
@apply bg-foreground absolute z-[60] size-2.5 rotate-45 rounded-none;
|
|
3988
|
+
}
|
|
3989
|
+
|
|
3990
|
+
/* Toast */
|
|
3991
|
+
.toast {
|
|
3992
|
+
@apply bg-popover text-popover-foreground border shadow-lg rounded-none;
|
|
3993
|
+
}
|
|
3994
|
+
.toast > .toast-content { @apply gap-3 p-4; }
|
|
3995
|
+
.toast > .toast-content > svg { @apply size-4; }
|
|
3996
|
+
.toast > .toast-content > section { @apply gap-1; }
|
|
3997
|
+
.toast > .toast-content > section > h2 { @apply text-sm font-medium; }
|
|
3998
|
+
.toast > .toast-content > section > p { @apply text-sm text-muted-foreground; }
|
|
3999
|
+
.toast > .toast-content > footer { @apply gap-3; }
|
|
4000
|
+
.toast > .toast-content > footer > .btn[data-size='icon-sm'] { @apply text-muted-foreground hover:text-foreground; }
|
|
4001
|
+
.toast[data-category='error'] > .toast-content > svg { @apply text-destructive; }
|
|
4002
|
+
|
|
4003
|
+
/* Slider */
|
|
4004
|
+
.field > input[type='range'],
|
|
4005
|
+
.input[type='range'] {
|
|
4006
|
+
@apply h-5;
|
|
4007
|
+
--slider-track-height: 0.125rem;
|
|
4008
|
+
--slider-thumb-size: 0.75rem;
|
|
4009
|
+
}
|
|
4010
|
+
|
|
4011
|
+
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-runnable-track {
|
|
4012
|
+
@apply bg-input/50 h-0.5;
|
|
4013
|
+
}
|
|
4014
|
+
|
|
4015
|
+
:is(.field > input[type='range'], .input[type='range'])::-moz-range-track {
|
|
4016
|
+
@apply bg-input/50 h-0.5;
|
|
4017
|
+
}
|
|
4018
|
+
|
|
4019
|
+
:is(.field > input[type='range'], .input[type='range'])::-ms-track {
|
|
4020
|
+
@apply bg-input/50 h-0.5;
|
|
4021
|
+
}
|
|
4022
|
+
|
|
4023
|
+
:is(.field > input[type='range'], .input[type='range'])::-ms-fill-lower,
|
|
4024
|
+
:is(.field > input[type='range'], .input[type='range'])::-ms-fill-upper {
|
|
4025
|
+
@apply rounded-[inherit];
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4028
|
+
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
4029
|
+
@apply size-3 border-none bg-primary transition-colors -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)];
|
|
4030
|
+
}
|
|
4031
|
+
|
|
4032
|
+
:is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
4033
|
+
@apply size-3 border-none bg-primary transition-colors;
|
|
4034
|
+
}
|
|
4035
|
+
|
|
4036
|
+
:is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
4037
|
+
@apply size-3 border-none bg-primary transition-colors;
|
|
4038
|
+
}
|
|
4039
|
+
|
|
4040
|
+
/* States go before the thumb pseudo-element so they still apply with native CSS nesting. */
|
|
4041
|
+
@media (hover: hover) {
|
|
4042
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-webkit-slider-thumb {
|
|
4043
|
+
@apply ring-2 ring-ring/30;
|
|
4044
|
+
}
|
|
4045
|
+
|
|
4046
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-moz-range-thumb {
|
|
4047
|
+
@apply ring-2 ring-ring/30;
|
|
4048
|
+
}
|
|
4049
|
+
|
|
4050
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-ms-thumb {
|
|
4051
|
+
@apply ring-2 ring-ring/30;
|
|
4052
|
+
}
|
|
4053
|
+
}
|
|
4054
|
+
|
|
4055
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-webkit-slider-thumb {
|
|
4056
|
+
@apply ring-2 ring-ring/30 outline-hidden;
|
|
4057
|
+
}
|
|
4058
|
+
|
|
4059
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-moz-range-thumb {
|
|
4060
|
+
@apply ring-2 ring-ring/30 outline-hidden;
|
|
4061
|
+
}
|
|
4062
|
+
|
|
4063
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-ms-thumb {
|
|
4064
|
+
@apply ring-2 ring-ring/30 outline-hidden;
|
|
4065
|
+
}
|
|
4066
|
+
|
|
4067
|
+
|
|
4068
|
+
/* Bubble */
|
|
4069
|
+
.bubble-group {
|
|
4070
|
+
@apply gap-2;
|
|
4071
|
+
}
|
|
4072
|
+
.bubble {
|
|
4073
|
+
@apply gap-1 max-w-[80%];
|
|
4074
|
+
}
|
|
4075
|
+
.bubble[data-align='end'],
|
|
4076
|
+
.bubble[data-align='end'] > :first-child {
|
|
4077
|
+
@apply self-end;
|
|
4078
|
+
}
|
|
4079
|
+
.bubble > :first-child {
|
|
4080
|
+
@apply rounded-none border border-transparent px-4 py-3 text-sm leading-relaxed;
|
|
4081
|
+
}
|
|
4082
|
+
.bubble > :is(a, button):first-child {
|
|
4083
|
+
@apply focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30;
|
|
4084
|
+
}
|
|
4085
|
+
.bubble:not([data-variant]) > :first-child,
|
|
4086
|
+
.bubble[data-variant='default'] > :first-child {
|
|
4087
|
+
@apply bg-primary text-primary-foreground;
|
|
4088
|
+
}
|
|
4089
|
+
.bubble:not([data-variant]) > :is(a, button):first-child:hover,
|
|
4090
|
+
.bubble[data-variant='default'] > :is(a, button):first-child:hover {
|
|
4091
|
+
@apply bg-primary/80;
|
|
4092
|
+
}
|
|
4093
|
+
.bubble[data-variant='secondary'] > :first-child {
|
|
4094
|
+
@apply bg-secondary text-secondary-foreground;
|
|
4095
|
+
}
|
|
4096
|
+
.bubble[data-variant='secondary'] > :is(a, button):first-child:hover {
|
|
4097
|
+
@apply bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)];
|
|
4098
|
+
}
|
|
4099
|
+
.bubble[data-variant='muted'] > :first-child {
|
|
4100
|
+
@apply bg-muted;
|
|
4101
|
+
}
|
|
4102
|
+
.bubble[data-variant='muted'] > :is(a, button):first-child:hover {
|
|
4103
|
+
@apply bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)];
|
|
4104
|
+
}
|
|
4105
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
4106
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_15%,var(--background))] text-foreground;
|
|
4107
|
+
}
|
|
4108
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
4109
|
+
@apply bg-[color-mix(in_oklch,var(--primary)_25%,var(--background))];
|
|
4110
|
+
}
|
|
4111
|
+
/* Keep a tint in browsers without relative colors. */
|
|
4112
|
+
@supports (color: oklch(from currentColor l c h)) {
|
|
4113
|
+
.bubble[data-variant='tinted'] > :first-child {
|
|
4114
|
+
@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)];
|
|
4115
|
+
}
|
|
4116
|
+
.bubble[data-variant='tinted'] > :is(a, button):first-child:hover {
|
|
4117
|
+
@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)];
|
|
4118
|
+
}
|
|
4119
|
+
}
|
|
4120
|
+
.bubble[data-variant='outline'] > :first-child {
|
|
4121
|
+
@apply bg-background border-border;
|
|
4122
|
+
}
|
|
4123
|
+
.bubble[data-variant='outline'] > :is(a, button):first-child:hover {
|
|
4124
|
+
@apply bg-muted text-foreground dark:bg-input/30;
|
|
4125
|
+
}
|
|
4126
|
+
.bubble[data-variant='ghost'] {
|
|
4127
|
+
@apply max-w-full border-none;
|
|
4128
|
+
}
|
|
4129
|
+
.bubble[data-variant='ghost'] > :first-child {
|
|
4130
|
+
@apply rounded-none bg-transparent p-0;
|
|
4131
|
+
}
|
|
4132
|
+
.bubble[data-variant='ghost'] > :is(a, button):first-child:hover {
|
|
4133
|
+
@apply bg-muted text-foreground dark:bg-muted/50;
|
|
4134
|
+
}
|
|
4135
|
+
.bubble[data-variant='destructive'] > :first-child {
|
|
4136
|
+
@apply bg-destructive/10 dark:bg-destructive/20 text-destructive;
|
|
4137
|
+
}
|
|
4138
|
+
.bubble[data-variant='destructive'] > :is(a, button):first-child:hover {
|
|
4139
|
+
@apply bg-destructive/20 dark:bg-destructive/30;
|
|
4140
|
+
}
|
|
4141
|
+
|
|
4142
|
+
.bubble > div:not(:first-child) {
|
|
4143
|
+
@apply rounded-none ring-3 ring-card bg-muted gap-1 px-2 py-0.5 has-[button]:p-0 text-sm;
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4146
|
+
.bubble > div:not(:first-child):not([data-side='top']) {
|
|
4147
|
+
@apply bottom-0 translate-y-3/4;
|
|
4148
|
+
}
|
|
4149
|
+
|
|
4150
|
+
.bubble > div:not(:first-child)[data-side='top'] {
|
|
4151
|
+
@apply top-0 -translate-y-3/4;
|
|
4152
|
+
}
|
|
4153
|
+
|
|
4154
|
+
.bubble > div:not(:first-child):not([data-align='start']) {
|
|
4155
|
+
@apply end-3;
|
|
4156
|
+
}
|
|
4157
|
+
|
|
4158
|
+
.bubble > div:not(:first-child)[data-align='start'] {
|
|
4159
|
+
@apply start-3;
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4162
|
+
/* Attachment */
|
|
4163
|
+
.attachment {
|
|
4164
|
+
@apply rounded-none w-fit has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-ring/30 border bg-card text-card-foreground;
|
|
4165
|
+
}
|
|
4166
|
+
.attachment:has(> a, > button:enabled):hover {
|
|
4167
|
+
@apply bg-muted/50;
|
|
4168
|
+
}
|
|
4169
|
+
.attachment[data-state='error'] {
|
|
4170
|
+
@apply border-destructive/30;
|
|
4171
|
+
}
|
|
4172
|
+
.attachment[data-state='idle'] {
|
|
4173
|
+
@apply border-dashed;
|
|
4174
|
+
}
|
|
4175
|
+
.attachment:not([data-orientation='vertical']) {
|
|
4176
|
+
@apply min-w-40;
|
|
4177
|
+
}
|
|
4178
|
+
.attachment[data-orientation='vertical'] {
|
|
4179
|
+
@apply w-24 has-[>section]:w-30;
|
|
4180
|
+
}
|
|
4181
|
+
.attachment:not([data-size]),
|
|
4182
|
+
.attachment[data-size='default'] {
|
|
4183
|
+
@apply gap-2 text-sm;
|
|
4184
|
+
}
|
|
4185
|
+
.attachment:not([data-size]):has(> section),
|
|
4186
|
+
.attachment[data-size='default']:has(> section) {
|
|
4187
|
+
@apply px-3 py-2.5;
|
|
4188
|
+
}
|
|
4189
|
+
.attachment:not([data-size]):has(> figure),
|
|
4190
|
+
.attachment[data-size='default']:has(> figure) {
|
|
4191
|
+
@apply p-2.5;
|
|
4192
|
+
}
|
|
4193
|
+
.attachment[data-size='sm'] {
|
|
4194
|
+
@apply gap-2.5 text-xs;
|
|
4195
|
+
}
|
|
4196
|
+
.attachment[data-size='sm']:has(> section) {
|
|
4197
|
+
@apply px-2.5 py-2;
|
|
4198
|
+
}
|
|
4199
|
+
.attachment[data-size='sm']:has(> figure) {
|
|
4200
|
+
@apply p-2;
|
|
4201
|
+
}
|
|
4202
|
+
.attachment[data-size='xs'] {
|
|
4203
|
+
@apply gap-1.5 text-xs rounded-none;
|
|
4204
|
+
}
|
|
4205
|
+
.attachment[data-size='xs']:has(> section) {
|
|
4206
|
+
@apply px-2 py-1.5;
|
|
4207
|
+
}
|
|
4208
|
+
.attachment[data-size='xs']:has(> figure) {
|
|
4209
|
+
@apply p-1.5;
|
|
4210
|
+
}
|
|
4211
|
+
.attachment > figure {
|
|
4212
|
+
@apply bg-muted text-foreground w-10 rounded-none;
|
|
4213
|
+
}
|
|
4214
|
+
.attachment[data-size='sm'] > figure {
|
|
4215
|
+
@apply w-8;
|
|
4216
|
+
}
|
|
4217
|
+
.attachment[data-size='xs'] > figure {
|
|
4218
|
+
@apply w-7 rounded-none;
|
|
4219
|
+
}
|
|
4220
|
+
.attachment > figure > svg {
|
|
4221
|
+
@apply size-4;
|
|
4222
|
+
}
|
|
4223
|
+
.attachment[data-size='xs'] > figure > svg {
|
|
4224
|
+
@apply size-3.5;
|
|
4225
|
+
}
|
|
4226
|
+
.attachment[data-orientation='vertical'] > figure {
|
|
4227
|
+
@apply w-full;
|
|
4228
|
+
}
|
|
4229
|
+
.attachment[data-orientation='vertical'] > figure > svg {
|
|
4230
|
+
@apply size-6;
|
|
4231
|
+
}
|
|
4232
|
+
.attachment:is([data-state='uploading'], [data-state='processing'], [data-state='error']) > figure:has(> img) {
|
|
4233
|
+
@apply opacity-60;
|
|
4234
|
+
}
|
|
4235
|
+
.attachment[data-state='error'] > figure {
|
|
4236
|
+
@apply bg-destructive/10 text-destructive;
|
|
4237
|
+
}
|
|
4238
|
+
.attachment > section {
|
|
4239
|
+
@apply leading-tight;
|
|
4240
|
+
}
|
|
4241
|
+
.attachment[data-orientation='vertical'] > section {
|
|
4242
|
+
@apply px-1;
|
|
4243
|
+
}
|
|
4244
|
+
.attachment > section > :first-child {
|
|
4245
|
+
@apply font-medium;
|
|
4246
|
+
}
|
|
4247
|
+
.attachment > section > :not(:first-child) {
|
|
4248
|
+
@apply mt-0.5 text-xs text-muted-foreground;
|
|
4249
|
+
}
|
|
4250
|
+
.attachment[data-state='error'] > section > :not(:first-child) {
|
|
4251
|
+
@apply text-destructive/80;
|
|
4252
|
+
}
|
|
4253
|
+
|
|
4254
|
+
.attachment[data-orientation='vertical'] > div {
|
|
4255
|
+
@apply top-3 end-3 gap-1;
|
|
4256
|
+
}
|
|
4257
|
+
.attachment-group {
|
|
4258
|
+
@apply gap-3 py-1;
|
|
4259
|
+
}
|
|
4260
|
+
|
|
4261
|
+
|
|
4262
|
+
/* Code Block */
|
|
4263
|
+
.code-block {
|
|
4264
|
+
@apply rounded-none text-sm data-[size=sm]:text-xs has-[>pre:focus-visible]:ring-2 has-[>pre:focus-visible]:ring-ring/30;
|
|
4265
|
+
--_code-padding: calc(var(--spacing, 0.25rem) * 4);
|
|
4266
|
+
}
|
|
4267
|
+
.code-block:not([data-variant='destructive']) { @apply border border-input text-foreground dark:bg-input/30 has-[>pre:focus-visible]:border-ring; }
|
|
4268
|
+
.code-block[data-variant='destructive'] { @apply border border-destructive/30 text-destructive dark:border-destructive/40; }
|
|
4269
|
+
.code-block[data-size='sm'] { --_code-padding: calc(var(--spacing, 0.25rem) * 3); }
|
|
4270
|
+
.code-block > header { @apply gap-2 text-muted-foreground; padding: var(--_code-padding) var(--_code-padding) 0; }
|
|
4271
|
+
.code-block > footer { @apply gap-2 text-muted-foreground; padding: 0 var(--_code-padding) var(--_code-padding); }
|
|
4272
|
+
.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; }
|
|
4273
|
+
.code-block[data-size='sm'] > header > :first-child:not(div) { @apply text-xs [&_svg:not([class*='size-'])]:size-3.5; }
|
|
4274
|
+
.code-block[data-variant='destructive'] > :is(header, footer),
|
|
4275
|
+
.code-block[data-variant='destructive'] > header > :first-child:not(div) { @apply text-destructive; }
|
|
4276
|
+
.code-block > header > div { @apply -my-1 -me-1.5 gap-1; }
|
|
4277
|
+
.code-block > div { @apply top-3 end-3 gap-1; }
|
|
4278
|
+
.code-block[data-size='sm'] > div { @apply top-2 end-2; }
|
|
4279
|
+
.code-block > div > button { @apply bg-background ring-1 ring-foreground/10; }
|
|
4280
|
+
.code-block > pre { @apply leading-relaxed; padding: var(--_code-padding); }
|
|
4281
|
+
.code-block:has(> header) > pre { @apply pt-2; }
|
|
4282
|
+
.code-block:has(> footer) > pre { @apply pb-2; }
|
|
4283
|
+
.code-block[data-size='sm']:has(> header) > pre { @apply pt-1.5; }
|
|
4284
|
+
.code-block > pre > code > span { margin-inline: calc(-1 * var(--_code-padding)); padding-inline: var(--_code-padding); }
|
|
4285
|
+
.code-block > pre > code > span::before { @apply text-end text-muted-foreground; }
|
|
4286
|
+
|
|
4287
|
+
/* Input OTP */
|
|
4288
|
+
.input-otp > div { @apply gap-2; }
|
|
4289
|
+
.input-otp > div > div { @apply rounded-none gap-1; }
|
|
4290
|
+
.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; }
|
|
4291
|
+
.input-otp > div > svg { @apply size-3.5 shrink-0; }
|
|
4292
|
+
.input-otp > div > div > span[data-caret]::after { @apply h-4 w-px bg-foreground; }
|
|
4293
|
+
.input-otp:has(> input[aria-invalid='true']) > div > div > span { @apply border-b-destructive dark:border-b-destructive/50; }
|
|
4294
|
+
|
|
4295
|
+
}
|