basecoat-css 0.3.11 → 1.0.0-beta.1
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 +8 -1
- package/dist/base/base.css +150 -0
- package/dist/basecoat-base.cdn.css +2942 -0
- package/dist/basecoat-base.cdn.min.css +2 -0
- package/dist/basecoat-base.css +2 -0
- package/dist/basecoat-components.css +32 -0
- package/dist/basecoat-luma.cdn.css +6073 -0
- package/dist/basecoat-luma.cdn.min.css +2 -0
- package/dist/basecoat-luma.css +2 -0
- package/dist/basecoat-lyra.cdn.css +6004 -0
- package/dist/basecoat-lyra.cdn.min.css +2 -0
- package/dist/basecoat-lyra.css +2 -0
- package/dist/basecoat-maia.cdn.css +6012 -0
- package/dist/basecoat-maia.cdn.min.css +2 -0
- package/dist/basecoat-maia.css +2 -0
- package/dist/basecoat-mira.cdn.css +6063 -0
- package/dist/basecoat-mira.cdn.min.css +2 -0
- package/dist/basecoat-mira.css +2 -0
- package/dist/basecoat-nova.cdn.css +6067 -0
- package/dist/basecoat-nova.cdn.min.css +2 -0
- package/dist/basecoat-nova.css +2 -0
- package/dist/basecoat-rhea.cdn.css +6092 -0
- package/dist/basecoat-rhea.cdn.min.css +2 -0
- package/dist/basecoat-rhea.css +2 -0
- package/dist/basecoat-sera.cdn.css +5840 -0
- package/dist/basecoat-sera.cdn.min.css +2 -0
- package/dist/basecoat-sera.css +2 -0
- package/dist/basecoat-vega.cdn.css +6023 -0
- package/dist/basecoat-vega.cdn.min.css +2 -0
- package/dist/basecoat-vega.css +2 -0
- package/dist/basecoat.all.css +1 -0
- package/dist/basecoat.cdn.css +5084 -2646
- package/dist/basecoat.cdn.min.css +1 -1
- package/dist/basecoat.css +1 -1311
- package/dist/components/alert.css +21 -0
- package/dist/components/badge.css +12 -0
- package/dist/components/button-group.css +54 -0
- package/dist/components/button.css +61 -0
- package/dist/components/card.css +22 -0
- package/dist/components/checkbox.css +12 -0
- package/dist/components/collapsible.css +21 -0
- package/dist/components/combobox.css +78 -0
- package/dist/components/command.css +133 -0
- package/dist/components/dialog.css +52 -0
- package/dist/components/dropdown-menu.css +48 -0
- package/dist/components/empty.css +26 -0
- package/dist/components/field.css +86 -0
- package/dist/components/form.css +9 -0
- package/dist/components/input-group.css +50 -0
- package/dist/components/input.css +32 -0
- package/dist/components/item.css +50 -0
- package/dist/components/kbd.css +10 -0
- package/dist/components/label.css +12 -0
- package/dist/components/native-select.css +12 -0
- package/dist/components/popover.css +81 -0
- package/dist/components/radio.css +11 -0
- package/dist/components/range.css +50 -0
- package/dist/components/select.css +64 -0
- package/dist/components/sidebar.css +101 -0
- package/dist/components/skeleton.css +6 -0
- package/dist/components/switch.css +8 -0
- package/dist/components/table.css +34 -0
- package/dist/components/tabs.css +31 -0
- package/dist/components/textarea.css +7 -0
- package/dist/components/toast.css +57 -0
- package/dist/components/tooltip.css +82 -0
- package/dist/js/all.js +1435 -755
- package/dist/js/all.min.js +1 -1
- package/dist/js/basecoat.js +95 -40
- package/dist/js/basecoat.min.js +1 -1
- package/dist/js/combobox.js +483 -0
- package/dist/js/combobox.min.js +1 -0
- package/dist/js/command.js +165 -126
- package/dist/js/command.min.js +1 -1
- package/dist/js/dropdown-menu.js +158 -133
- package/dist/js/dropdown-menu.min.js +1 -1
- package/dist/js/popover.js +22 -8
- package/dist/js/popover.min.js +1 -1
- package/dist/js/range.js +25 -0
- package/dist/js/range.min.js +1 -0
- package/dist/js/select.js +347 -359
- package/dist/js/select.min.js +1 -1
- package/dist/js/sidebar.js +27 -31
- package/dist/js/sidebar.min.js +1 -1
- package/dist/js/tabs.js +82 -38
- package/dist/js/tabs.min.js +1 -1
- package/dist/js/toast.js +42 -37
- package/dist/js/toast.min.js +1 -1
- package/dist/styles/luma.css +1308 -0
- package/dist/styles/lyra.css +1289 -0
- package/dist/styles/maia.css +1296 -0
- package/dist/styles/mira.css +1297 -0
- package/dist/styles/nova.css +1293 -0
- package/dist/styles/rhea.css +1305 -0
- package/dist/styles/sera.css +1316 -0
- package/dist/styles/vega.css +1293 -0
- package/package.json +51 -3
|
@@ -0,0 +1,1289 @@
|
|
|
1
|
+
/* Button */
|
|
2
|
+
@layer components {
|
|
3
|
+
.btn,
|
|
4
|
+
.btn-primary,
|
|
5
|
+
.btn-secondary,
|
|
6
|
+
.btn-outline,
|
|
7
|
+
.btn-ghost,
|
|
8
|
+
.btn-link,
|
|
9
|
+
.btn-destructive,
|
|
10
|
+
.btn-xs,
|
|
11
|
+
.btn-xs-primary,
|
|
12
|
+
.btn-xs-secondary,
|
|
13
|
+
.btn-xs-outline,
|
|
14
|
+
.btn-xs-ghost,
|
|
15
|
+
.btn-xs-link,
|
|
16
|
+
.btn-xs-destructive,
|
|
17
|
+
.btn-sm,
|
|
18
|
+
.btn-sm-primary,
|
|
19
|
+
.btn-sm-secondary,
|
|
20
|
+
.btn-sm-outline,
|
|
21
|
+
.btn-sm-ghost,
|
|
22
|
+
.btn-sm-link,
|
|
23
|
+
.btn-sm-destructive,
|
|
24
|
+
.btn-lg,
|
|
25
|
+
.btn-lg-primary,
|
|
26
|
+
.btn-lg-secondary,
|
|
27
|
+
.btn-lg-outline,
|
|
28
|
+
.btn-lg-ghost,
|
|
29
|
+
.btn-lg-link,
|
|
30
|
+
.btn-lg-destructive,
|
|
31
|
+
.btn-icon,
|
|
32
|
+
.btn-icon-primary,
|
|
33
|
+
.btn-icon-secondary,
|
|
34
|
+
.btn-icon-outline,
|
|
35
|
+
.btn-icon-ghost,
|
|
36
|
+
.btn-icon-link,
|
|
37
|
+
.btn-icon-destructive,
|
|
38
|
+
.btn-xs-icon,
|
|
39
|
+
.btn-xs-icon-primary,
|
|
40
|
+
.btn-xs-icon-secondary,
|
|
41
|
+
.btn-xs-icon-outline,
|
|
42
|
+
.btn-xs-icon-ghost,
|
|
43
|
+
.btn-xs-icon-link,
|
|
44
|
+
.btn-xs-icon-destructive,
|
|
45
|
+
.btn-sm-icon,
|
|
46
|
+
.btn-sm-icon-primary,
|
|
47
|
+
.btn-sm-icon-secondary,
|
|
48
|
+
.btn-sm-icon-outline,
|
|
49
|
+
.btn-sm-icon-ghost,
|
|
50
|
+
.btn-sm-icon-link,
|
|
51
|
+
.btn-sm-icon-destructive,
|
|
52
|
+
.btn-lg-icon,
|
|
53
|
+
.btn-lg-icon-primary,
|
|
54
|
+
.btn-lg-icon-secondary,
|
|
55
|
+
.btn-lg-icon-outline,
|
|
56
|
+
.btn-lg-icon-ghost,
|
|
57
|
+
.btn-lg-icon-link,
|
|
58
|
+
.btn-lg-icon-destructive {
|
|
59
|
+
@apply rounded-none border border-transparent bg-clip-padding text-xs font-medium focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[1px] aria-invalid:border-destructive aria-invalid:ring-[1px] 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-4;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.btn,
|
|
63
|
+
.btn-primary,
|
|
64
|
+
.btn-secondary,
|
|
65
|
+
.btn-outline,
|
|
66
|
+
.btn-ghost,
|
|
67
|
+
.btn-link,
|
|
68
|
+
.btn-destructive {
|
|
69
|
+
@apply h-8 gap-1.5 px-2.5;
|
|
70
|
+
|
|
71
|
+
&:has(> [data-icon=inline-start]) {
|
|
72
|
+
@apply ps-2;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:has(> [data-icon=inline-end]) {
|
|
76
|
+
@apply pe-2;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.btn-xs,
|
|
81
|
+
.btn-xs-primary,
|
|
82
|
+
.btn-xs-secondary,
|
|
83
|
+
.btn-xs-outline,
|
|
84
|
+
.btn-xs-ghost,
|
|
85
|
+
.btn-xs-link,
|
|
86
|
+
.btn-xs-destructive {
|
|
87
|
+
@apply h-6 gap-1 px-2 text-xs rounded-none [&_svg:not([class*='size-'])]:size-3;
|
|
88
|
+
|
|
89
|
+
&:has(> [data-icon=inline-start]) {
|
|
90
|
+
@apply ps-1.5;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:has(> [data-icon=inline-end]) {
|
|
94
|
+
@apply pe-1.5;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.btn-sm,
|
|
99
|
+
.btn-sm-primary,
|
|
100
|
+
.btn-sm-secondary,
|
|
101
|
+
.btn-sm-outline,
|
|
102
|
+
.btn-sm-ghost,
|
|
103
|
+
.btn-sm-link,
|
|
104
|
+
.btn-sm-destructive {
|
|
105
|
+
@apply h-7 gap-1 px-2.5 rounded-none [&_svg:not([class*='size-'])]:size-3.5;
|
|
106
|
+
|
|
107
|
+
&:has(> [data-icon=inline-start]) {
|
|
108
|
+
@apply ps-1.5;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:has(> [data-icon=inline-end]) {
|
|
112
|
+
@apply pe-1.5;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.btn-lg,
|
|
117
|
+
.btn-lg-primary,
|
|
118
|
+
.btn-lg-secondary,
|
|
119
|
+
.btn-lg-outline,
|
|
120
|
+
.btn-lg-ghost,
|
|
121
|
+
.btn-lg-link,
|
|
122
|
+
.btn-lg-destructive {
|
|
123
|
+
@apply h-9 gap-1.5 px-2.5;
|
|
124
|
+
|
|
125
|
+
&:has(> [data-icon=inline-start]) {
|
|
126
|
+
@apply ps-2;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&:has(> [data-icon=inline-end]) {
|
|
130
|
+
@apply pe-2;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.btn-icon,
|
|
135
|
+
.btn-icon-primary,
|
|
136
|
+
.btn-icon-secondary,
|
|
137
|
+
.btn-icon-outline,
|
|
138
|
+
.btn-icon-ghost,
|
|
139
|
+
.btn-icon-link,
|
|
140
|
+
.btn-icon-destructive {
|
|
141
|
+
@apply size-8;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.btn-xs-icon,
|
|
145
|
+
.btn-xs-icon-primary,
|
|
146
|
+
.btn-xs-icon-secondary,
|
|
147
|
+
.btn-xs-icon-outline,
|
|
148
|
+
.btn-xs-icon-ghost,
|
|
149
|
+
.btn-xs-icon-link,
|
|
150
|
+
.btn-xs-icon-destructive {
|
|
151
|
+
@apply size-6 rounded-none [&_svg:not([class*='size-'])]:size-3;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.btn-sm-icon,
|
|
155
|
+
.btn-sm-icon-primary,
|
|
156
|
+
.btn-sm-icon-secondary,
|
|
157
|
+
.btn-sm-icon-outline,
|
|
158
|
+
.btn-sm-icon-ghost,
|
|
159
|
+
.btn-sm-icon-link,
|
|
160
|
+
.btn-sm-icon-destructive {
|
|
161
|
+
@apply size-7 rounded-none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.btn-lg-icon,
|
|
165
|
+
.btn-lg-icon-primary,
|
|
166
|
+
.btn-lg-icon-secondary,
|
|
167
|
+
.btn-lg-icon-outline,
|
|
168
|
+
.btn-lg-icon-ghost,
|
|
169
|
+
.btn-lg-icon-link,
|
|
170
|
+
.btn-lg-icon-destructive {
|
|
171
|
+
@apply size-9;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.btn,
|
|
175
|
+
.btn-primary,
|
|
176
|
+
.btn-xs,
|
|
177
|
+
.btn-xs-primary,
|
|
178
|
+
.btn-sm,
|
|
179
|
+
.btn-sm-primary,
|
|
180
|
+
.btn-lg,
|
|
181
|
+
.btn-lg-primary,
|
|
182
|
+
.btn-icon,
|
|
183
|
+
.btn-icon-primary,
|
|
184
|
+
.btn-xs-icon,
|
|
185
|
+
.btn-xs-icon-primary,
|
|
186
|
+
.btn-sm-icon,
|
|
187
|
+
.btn-sm-icon-primary,
|
|
188
|
+
.btn-lg-icon,
|
|
189
|
+
.btn-lg-icon-primary {
|
|
190
|
+
@apply bg-primary text-primary-foreground hover:bg-primary/80;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.btn-secondary,
|
|
194
|
+
.btn-xs-secondary,
|
|
195
|
+
.btn-sm-secondary,
|
|
196
|
+
.btn-lg-secondary,
|
|
197
|
+
.btn-icon-secondary,
|
|
198
|
+
.btn-xs-icon-secondary,
|
|
199
|
+
.btn-sm-icon-secondary,
|
|
200
|
+
.btn-lg-icon-secondary {
|
|
201
|
+
@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;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.btn-outline,
|
|
205
|
+
.btn-xs-outline,
|
|
206
|
+
.btn-sm-outline,
|
|
207
|
+
.btn-lg-outline,
|
|
208
|
+
.btn-icon-outline,
|
|
209
|
+
.btn-xs-icon-outline,
|
|
210
|
+
.btn-sm-icon-outline,
|
|
211
|
+
.btn-lg-icon-outline {
|
|
212
|
+
@apply border-border bg-background hover:bg-muted hover:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.btn-ghost,
|
|
216
|
+
.btn-xs-ghost,
|
|
217
|
+
.btn-sm-ghost,
|
|
218
|
+
.btn-lg-ghost,
|
|
219
|
+
.btn-icon-ghost,
|
|
220
|
+
.btn-xs-icon-ghost,
|
|
221
|
+
.btn-sm-icon-ghost,
|
|
222
|
+
.btn-lg-icon-ghost {
|
|
223
|
+
@apply hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.btn-link,
|
|
227
|
+
.btn-xs-link,
|
|
228
|
+
.btn-sm-link,
|
|
229
|
+
.btn-lg-link,
|
|
230
|
+
.btn-icon-link,
|
|
231
|
+
.btn-xs-icon-link,
|
|
232
|
+
.btn-sm-icon-link,
|
|
233
|
+
.btn-lg-icon-link {
|
|
234
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.btn-destructive,
|
|
238
|
+
.btn-xs-destructive,
|
|
239
|
+
.btn-sm-destructive,
|
|
240
|
+
.btn-lg-destructive,
|
|
241
|
+
.btn-icon-destructive,
|
|
242
|
+
.btn-xs-icon-destructive,
|
|
243
|
+
.btn-sm-icon-destructive,
|
|
244
|
+
.btn-lg-icon-destructive {
|
|
245
|
+
@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;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* Button Group */
|
|
249
|
+
.button-group {
|
|
250
|
+
@apply rounded-none has-[>.button-group]:gap-2;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.button-group:not([data-orientation='vertical']) {
|
|
254
|
+
> :last-child,
|
|
255
|
+
> :is(.dropdown-menu, .popover, .select):last-child > button {
|
|
256
|
+
@apply rounded-e-none!;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.button-group[data-orientation='vertical'] {
|
|
261
|
+
> :last-child,
|
|
262
|
+
> :is(.dropdown-menu, .popover, .select):last-child > button {
|
|
263
|
+
@apply rounded-b-none!;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.button-group-text {
|
|
268
|
+
@apply bg-muted gap-2 rounded-none border px-2.5 text-xs font-medium [&_svg:not([class*='size-'])]:size-4;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.button-group > hr[role='separator'],
|
|
272
|
+
.button-group-separator {
|
|
273
|
+
@apply bg-input;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
/* Tabs */
|
|
278
|
+
.tabs {
|
|
279
|
+
@apply gap-2;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.tabs > [role='tablist'] {
|
|
283
|
+
@apply rounded-none p-[3px] h-8;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.tabs > [role='tablist']:not([data-variant='line']) {
|
|
287
|
+
@apply bg-muted;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.tabs > [role='tablist'][data-variant='line'] {
|
|
291
|
+
@apply gap-1 rounded-none bg-transparent;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.tabs > [role='tablist'][aria-orientation='vertical'] {
|
|
295
|
+
@apply h-fit ;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.tabs > [role='tablist'] > [role='tab'] {
|
|
299
|
+
@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-1.5 rounded-none border border-transparent px-1.5 py-0.5 text-xs font-medium [&_svg:not([class*='size-'])]:size-4 focus-visible:ring-[3px] focus-visible:outline-1;
|
|
300
|
+
@apply after:absolute after:bg-foreground after:opacity-0 after:transition-opacity;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.tabs > [role='tablist'][aria-orientation='vertical'] > [role='tab'] {
|
|
304
|
+
@apply w-full justify-start py-[calc(--spacing(1.25))];
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.tabs > [role='tablist'][data-variant='line'][aria-orientation='horizontal'] > [role='tab'] {
|
|
308
|
+
@apply bg-transparent shadow-none after:inset-x-0 after:bottom-[-5px] after:h-0.5;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.tabs > [role='tablist'][data-variant='line'][aria-orientation='vertical'] > [role='tab'] {
|
|
312
|
+
@apply bg-transparent shadow-none after:inset-y-0 after:end-[-4px] after:w-0.5;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.tabs > [role='tablist']:not([data-variant='line']) > [role='tab'][aria-selected='true'] {
|
|
316
|
+
@apply bg-background text-foreground dark:border-input dark:bg-input/30 dark:text-foreground shadow-sm;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.tabs > [role='tablist'][data-variant='line'] > [role='tab'][aria-selected='true'] {
|
|
320
|
+
@apply bg-transparent text-foreground shadow-none dark:border-transparent dark:bg-transparent dark:text-foreground after:opacity-100;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.tabs > [role='tablist'] > [role='tab']:has(> svg:first-child) {
|
|
324
|
+
@apply ps-1;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.tabs > [role='tablist'] > [role='tab']:has(> svg:last-child) {
|
|
328
|
+
@apply pe-1;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.tabs > [role='tabpanel'] {
|
|
332
|
+
@apply text-xs/relaxed;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/* Textarea */
|
|
336
|
+
.field > textarea,
|
|
337
|
+
.textarea {
|
|
338
|
+
@apply border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 rounded-none border bg-transparent px-2.5 py-2 text-xs transition-colors focus-visible:ring-1 aria-invalid:ring-1 md:text-xs;
|
|
339
|
+
}
|
|
340
|
+
/* Input */
|
|
341
|
+
.field > input[type='text']:not(:is(.command > header input, .dialog > * > header input)),
|
|
342
|
+
.field > input[type='email'],
|
|
343
|
+
.field > input[type='password'],
|
|
344
|
+
.field > input[type='number'],
|
|
345
|
+
.field > input[type='file'],
|
|
346
|
+
.field > input[type='tel'],
|
|
347
|
+
.field > input[type='url'],
|
|
348
|
+
.field > input[type='search']:not(:is(.command > header input, .dialog > * > header input)),
|
|
349
|
+
.field > input[type='date'],
|
|
350
|
+
.field > input[type='datetime-local'],
|
|
351
|
+
.field > input[type='month'],
|
|
352
|
+
.field > input[type='week'],
|
|
353
|
+
.field > input[type='time'],
|
|
354
|
+
.field > input:not([type]),
|
|
355
|
+
.input[type='text'],
|
|
356
|
+
.input[type='email'],
|
|
357
|
+
.input[type='password'],
|
|
358
|
+
.input[type='number'],
|
|
359
|
+
.input[type='file'],
|
|
360
|
+
.input[type='tel'],
|
|
361
|
+
.input[type='url'],
|
|
362
|
+
.input[type='search'],
|
|
363
|
+
.input[type='date'],
|
|
364
|
+
.input[type='datetime-local'],
|
|
365
|
+
.input[type='month'],
|
|
366
|
+
.input[type='week'],
|
|
367
|
+
.input[type='time'],
|
|
368
|
+
.input:not([type]) {
|
|
369
|
+
@apply dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-none border bg-transparent px-2.5 py-1 text-xs transition-colors file:h-6 file:text-xs file:font-medium focus-visible:ring-1 aria-invalid:ring-1 md:text-xs;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/* Native Select */
|
|
373
|
+
.field > select,
|
|
374
|
+
select.select {
|
|
375
|
+
@apply border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 w-fit rounded-none border bg-transparent py-1 ps-2.5 pe-8 text-xs transition-colors focus-visible:ring-1 aria-invalid:ring-1 data-[size=sm]:h-7 data-[size=sm]:rounded-none data-[size=sm]:py-0.5;
|
|
376
|
+
@apply bg-[image:var(--chevron-down-icon-50)] bg-no-repeat bg-position-[center_right_0.625rem] bg-size-[1rem];
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
:is(.field > select, select.select):dir(rtl) {
|
|
380
|
+
@apply bg-position-[center_left_0.625rem];
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/* Alert */
|
|
384
|
+
.alert,
|
|
385
|
+
.alert-destructive {
|
|
386
|
+
@apply grid gap-0.5 rounded-none border px-2.5 py-2 text-start text-xs has-[>[data-action]]:relative has-[>[data-action]]:pe-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 [&>svg]:row-span-2 [&>svg]:translate-y-0 [&>svg]:text-current [&>svg:not([class*='size-'])]:size-4;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.alert {
|
|
390
|
+
@apply bg-card text-card-foreground;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.alert-destructive {
|
|
394
|
+
@apply text-destructive bg-card [&>section]:text-destructive/90 [&>svg]:text-current;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.alert > :is(h2, h3, h4, h5, h6, strong, [data-title]),
|
|
398
|
+
.alert-destructive > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
399
|
+
@apply font-medium;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
:is(.alert, .alert-destructive):has(> svg) > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
404
|
+
@apply col-start-2;
|
|
405
|
+
}
|
|
406
|
+
.alert > section,
|
|
407
|
+
.alert-destructive > section {
|
|
408
|
+
@apply text-muted-foreground text-xs/relaxed text-balance md:text-pretty [&_p:not(:last-child)]:mb-2;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.alert > [data-action],
|
|
412
|
+
.alert-destructive > [data-action] {
|
|
413
|
+
@apply absolute top-[calc(--spacing(1.25))] end-[calc(--spacing(1.25))];
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/* Badge */
|
|
417
|
+
.badge,
|
|
418
|
+
.badge-primary,
|
|
419
|
+
.badge-secondary,
|
|
420
|
+
.badge-destructive,
|
|
421
|
+
.badge-outline,
|
|
422
|
+
.badge-ghost,
|
|
423
|
+
.badge-link {
|
|
424
|
+
@apply h-5 gap-1 rounded-none border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&>svg]:size-3!;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.badge,
|
|
428
|
+
.badge-primary {
|
|
429
|
+
@apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.badge-secondary {
|
|
433
|
+
@apply bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.badge-outline {
|
|
437
|
+
@apply border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.badge-destructive {
|
|
441
|
+
@apply bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.badge-ghost {
|
|
445
|
+
@apply hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.badge-link {
|
|
449
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/* Command */
|
|
453
|
+
.command {
|
|
454
|
+
@apply bg-popover text-popover-foreground rounded-none;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.command-dialog > * {
|
|
458
|
+
@apply rounded-none p-0;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.command > header {
|
|
462
|
+
@apply h-8 gap-2 border-b bg-input/30 px-2;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.command > header svg {
|
|
466
|
+
@apply size-4 opacity-50;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.command > header input {
|
|
470
|
+
@apply h-full text-xs placeholder:text-muted-foreground;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.command [role='menu'] {
|
|
474
|
+
@apply max-h-72 scroll-py-0;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.command [role='menu']:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
478
|
+
@apply py-6 text-center text-xs;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.command [role='group'] {
|
|
482
|
+
@apply text-foreground;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.command [role='heading'] {
|
|
486
|
+
@apply text-muted-foreground px-2 py-1.5 text-xs;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.command [role='separator'] {
|
|
490
|
+
@apply bg-border -mx-1 h-px;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.command [role='menuitem'] {
|
|
494
|
+
@apply gap-2 rounded-none px-2 py-2 text-xs [&_svg:not([class*='size-'])]:size-4;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.command [role='menuitem'].active {
|
|
498
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.command [data-shortcut] {
|
|
502
|
+
@apply text-muted-foreground text-xs tracking-widest;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.command [role='menuitem'].active [data-shortcut] {
|
|
506
|
+
@apply text-foreground;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
/* Combobox */
|
|
511
|
+
.combobox > input[role='combobox'] {
|
|
512
|
+
@apply border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 rounded-none border bg-transparent py-2 ps-2.5 pe-8 text-xs transition-colors focus-visible:ring-1 aria-invalid:ring-1;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.combobox > svg,
|
|
516
|
+
.combobox-trigger-icon {
|
|
517
|
+
@apply text-muted-foreground end-2.5 top-1/2 size-4 -translate-y-1/2;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.combobox [data-popover] {
|
|
521
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 rounded-none shadow-md ring-1 duration-100;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.combobox [role='listbox'] {
|
|
525
|
+
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
529
|
+
@apply px-3 py-2 text-center text-xs text-muted-foreground;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.combobox [role='heading'] {
|
|
533
|
+
@apply text-muted-foreground px-2 py-2 text-xs;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.combobox [role='option'] {
|
|
537
|
+
@apply gap-2 rounded-none py-2 ps-2 pe-8 text-xs [&_svg:not([class*='size-'])]:size-4;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.combobox [role='option'].active,
|
|
541
|
+
.combobox [role='option']:focus-visible {
|
|
542
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.combobox [role='separator'] {
|
|
546
|
+
@apply bg-border -mx-1 h-px;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.combobox-chips {
|
|
550
|
+
@apply dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50 has-[[aria-invalid=true]]:ring-destructive/20 dark:has-[[aria-invalid=true]]:ring-destructive/40 has-[[aria-invalid=true]]:border-destructive dark:has-[[aria-invalid=true]]:border-destructive/50 min-h-8 gap-1 rounded-none border bg-transparent bg-clip-padding px-1 py-1 text-xs transition-colors focus-within:ring-1 has-[[aria-invalid=true]]:ring-1;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.combobox-chip {
|
|
554
|
+
@apply bg-muted text-foreground h-5.25 gap-1 rounded-none px-1.5 text-xs font-medium has-[>.combobox-chip-remove]:pe-0;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.combobox-chip-remove {
|
|
558
|
+
@apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
|
|
559
|
+
}
|
|
560
|
+
/* Select */
|
|
561
|
+
*:not(select).select > button {
|
|
562
|
+
@apply border-input dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 data-[size=sm]:h-7 gap-1.5 rounded-none data-[size=sm]:rounded-none border bg-transparent py-2 ps-2.5 pe-2 text-xs transition-colors select-none focus-visible:ring-1 aria-invalid:ring-1 [&_svg:not([class*='size-'])]:size-4;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
*:not(select).select > button > span {
|
|
566
|
+
@apply gap-1.5;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
*:not(select).select > button > svg {
|
|
570
|
+
@apply text-muted-foreground size-4;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
*:not(select).select [data-popover] {
|
|
574
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 rounded-none shadow-md ring-1 duration-100;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
*:not(select).select [role='listbox'] {
|
|
581
|
+
@apply scroll-py-1;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
*:not(select).select [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
585
|
+
@apply py-6 text-center text-xs;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
*:not(select).select [role='heading'] {
|
|
589
|
+
@apply text-muted-foreground px-2 py-2 text-xs;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
*:not(select).select [role='option'] {
|
|
593
|
+
@apply gap-2 rounded-none py-2 ps-2 pe-8 text-xs [&_svg:not([class*='size-'])]:size-4;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
*:not(select).select [role='option'].active,
|
|
597
|
+
*:not(select).select [role='option']:focus-visible {
|
|
598
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
*:not(select).select [role='group'] {
|
|
602
|
+
@apply scroll-my-1;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
*:not(select).select [role='separator'] {
|
|
606
|
+
@apply bg-border -mx-1 h-px;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
/* Dialog */
|
|
611
|
+
.dialog::backdrop,
|
|
612
|
+
.command-dialog::backdrop {
|
|
613
|
+
@apply bg-black/10 backdrop-blur-xs duration-100;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.dialog > * {
|
|
617
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-w-[calc(100%-2rem)] gap-4 rounded-none p-4 text-xs/relaxed ring-1 duration-100 sm:max-w-sm;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.dialog > * > :is(button, form[method='dialog']) {
|
|
621
|
+
@apply top-2 end-2;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.dialog > * > header {
|
|
625
|
+
@apply gap-1 text-start;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
.dialog > * > footer {
|
|
629
|
+
@apply gap-2;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.dialog > * > header > h2,
|
|
633
|
+
.dialog > * > [data-title] {
|
|
634
|
+
@apply text-sm font-medium;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.dialog > * > header > p,
|
|
638
|
+
.dialog > * > [data-description] {
|
|
639
|
+
@apply text-muted-foreground text-xs/relaxed [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/* Dropdown Menu */
|
|
643
|
+
.dropdown-menu > [data-popover] {
|
|
644
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 gap-0 overflow-x-hidden overflow-y-auto rounded-none p-0 shadow-md ring-1 duration-100;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
648
|
+
@apply gap-2 rounded-none px-2 py-2 text-xs focus-visible:bg-accent focus-visible:text-accent-foreground [&_svg:not([class*='size-'])]:size-4;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']).active {
|
|
652
|
+
@apply bg-accent text-accent-foreground;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.dropdown-menu [data-variant='destructive'] {
|
|
656
|
+
@apply text-destructive;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.dropdown-menu [data-variant='destructive']:is(:focus-visible, .active) {
|
|
660
|
+
@apply bg-destructive/10 text-destructive dark:bg-destructive/20;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.dropdown-menu [data-variant='destructive'] svg {
|
|
664
|
+
@apply text-destructive;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.dropdown-menu :is([role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
668
|
+
@apply py-2 pe-8 ps-2;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-inset],
|
|
672
|
+
.dropdown-menu [role='heading'][data-inset] {
|
|
673
|
+
@apply ps-7;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.dropdown-menu [data-indicator] {
|
|
677
|
+
@apply absolute end-2 flex items-center justify-center;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.dropdown-menu [role='heading'] {
|
|
681
|
+
@apply text-muted-foreground px-2 py-2 text-xs;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.dropdown-menu [role='separator'] {
|
|
685
|
+
@apply bg-border -mx-1 h-px;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.dropdown-menu [data-shortcut] {
|
|
689
|
+
@apply text-muted-foreground text-xs tracking-widest;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) [data-shortcut] {
|
|
693
|
+
@apply text-accent-foreground;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
/* Popover */
|
|
697
|
+
[data-popover] {
|
|
698
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 flex flex-col gap-2.5 rounded-none p-2.5 text-xs shadow-md ring-1 duration-100;
|
|
699
|
+
}
|
|
700
|
+
.popover > [data-popover] > header,
|
|
701
|
+
.popover > [data-popover] > [data-header] {
|
|
702
|
+
@apply flex flex-col gap-1 text-xs;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.popover > [data-popover] > header > :is(h1, h2, h3, h4, h5, h6),
|
|
706
|
+
.popover > [data-popover] > :is(h1, h2, h3, h4, h5, h6, [data-title]) {
|
|
707
|
+
@apply text-sm font-medium;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.popover > [data-popover] > header > p,
|
|
711
|
+
.popover > [data-popover] > [data-description] {
|
|
712
|
+
@apply text-muted-foreground text-xs/relaxed;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/* Card */
|
|
716
|
+
.card {
|
|
717
|
+
@apply ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-none py-4 text-xs/relaxed ring-1 has-[>footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-2 data-[size=sm]:py-3 data-[size=sm]:has-[>footer]:pb-0 [&>img:first-child]:rounded-none [&>img:last-child]:rounded-none;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.card > header {
|
|
721
|
+
@apply gap-1 rounded-none px-4 in-data-[size=sm]:px-3 [.border-b]:pb-4 in-data-[size=sm]:[.border-b]:pb-3;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
.card > header > :is(h2, h3, [data-title], .card-title) {
|
|
725
|
+
@apply text-sm font-medium in-data-[size=sm]:text-sm;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.card > header > :is(p, [data-description], .card-description) {
|
|
729
|
+
@apply text-muted-foreground text-xs/relaxed;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.card > section {
|
|
733
|
+
@apply px-4 in-data-[size=sm]:px-3;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.card > footer {
|
|
737
|
+
@apply rounded-none border-t p-4 in-data-[size=sm]:p-3;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
/* Checkbox */
|
|
741
|
+
.field > input[type='checkbox']:not([role='switch']),
|
|
742
|
+
.input[type='checkbox']:not([role='switch']) {
|
|
743
|
+
@apply border-input dark:bg-input/30 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/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-none border transition-colors in-data-[disabled=true]:opacity-50 focus-visible:ring-1 aria-invalid:ring-1;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
:is(.field > input[type='checkbox']:not([role='switch']), .input[type='checkbox']:not([role='switch'])):checked:after {
|
|
747
|
+
@apply size-3.5;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/* Radio */
|
|
751
|
+
[role='radiogroup'] {
|
|
752
|
+
@apply grid gap-2;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
.field > input[type='radio'],
|
|
756
|
+
.input[type='radio'] {
|
|
757
|
+
@apply border-input dark:bg-input/30 checked:bg-primary checked:text-primary-foreground dark:checked:bg-primary checked:border-primary aria-invalid:checked:border-primary aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 dark:aria-invalid:border-destructive/50 flex size-4 rounded-full focus-visible:ring-3 aria-invalid:ring-3;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
:is(.field > input[type='radio'], .input[type='radio']):checked:before {
|
|
761
|
+
@apply bg-primary-foreground size-2;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/* Switch */
|
|
765
|
+
.field > input[type='checkbox'][role='switch'],
|
|
766
|
+
.input[type='checkbox'][role='switch'] {
|
|
767
|
+
@apply checked:bg-primary not-checked:bg-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 dark:not-checked:bg-input/80 rounded-full border border-transparent focus-visible:ring-1 aria-invalid:ring-1;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']) {
|
|
771
|
+
@apply h-[18.4px] w-[32px];
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch'])[data-size='sm'] {
|
|
775
|
+
@apply h-[14px] w-[24px];
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
779
|
+
@apply bg-background dark:not-checked:bg-foreground dark:checked:bg-primary-foreground rounded-full;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
|
|
783
|
+
@apply size-4;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch'])[data-size='sm']:before {
|
|
787
|
+
@apply size-3;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:not([data-size='sm']):before {
|
|
791
|
+
@apply translate-x-[calc(100%-2px)];
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked[data-size='sm']:before {
|
|
795
|
+
@apply translate-x-[calc(100%-2px)];
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):dir(rtl):checked:not([data-size='sm']):before {
|
|
799
|
+
@apply -translate-x-[calc(100%-2px)];
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):dir(rtl):checked[data-size='sm']:before {
|
|
803
|
+
@apply -translate-x-[calc(100%-2px)];
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
|
|
807
|
+
@apply translate-x-0;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
/* Field */
|
|
812
|
+
.fieldset {
|
|
813
|
+
@apply gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.fieldset > legend,
|
|
817
|
+
.field-legend {
|
|
818
|
+
@apply mb-2.5 font-medium data-[variant=label]:text-xs data-[variant=legend]:text-sm;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.fieldset > :is([role='group'], [role='radiogroup']):not(.field),
|
|
822
|
+
.field > :is(fieldset, [role='group'], [role='radiogroup']):not(.field) {
|
|
823
|
+
@apply gap-5;
|
|
824
|
+
|
|
825
|
+
&[role='radiogroup'],
|
|
826
|
+
&[data-slot='checkbox-group'],
|
|
827
|
+
&[data-slot='radio-group'] {
|
|
828
|
+
@apply gap-3;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
:is(.fieldset, .field) > :is([role='group'], [role='radiogroup']):not(.field) > :is([role='group'], [role='radiogroup']):not(.field),
|
|
833
|
+
.field > fieldset:not(.field) > :is([role='group'], [role='radiogroup']):not(.field) {
|
|
834
|
+
@apply gap-4;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
.field {
|
|
838
|
+
@apply data-[invalid=true]:text-destructive gap-2;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
.field > section,
|
|
842
|
+
.field-content {
|
|
843
|
+
@apply gap-0.5;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
.field > label,
|
|
847
|
+
label:has(> .field) {
|
|
848
|
+
@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 leading-snug in-data-[disabled=true]:opacity-50;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
.field > label:has(input[type='radio']),
|
|
852
|
+
.field > label:has(input[type='checkbox']),
|
|
853
|
+
.field > label:has(input[role='switch']),
|
|
854
|
+
.field > label:has(> .field),
|
|
855
|
+
label:has(> .field) {
|
|
856
|
+
@apply rounded-none border;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.field > label:has(input[type='radio']),
|
|
860
|
+
.field > label:has(input[type='checkbox']),
|
|
861
|
+
.field > label:has(input[role='switch']) {
|
|
862
|
+
@apply p-2;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
:is(.field > label, label:has(> .field)) > .field {
|
|
866
|
+
@apply p-2;
|
|
867
|
+
}
|
|
868
|
+
.field h2,
|
|
869
|
+
.field h3,
|
|
870
|
+
.field-title {
|
|
871
|
+
@apply gap-2 text-xs/relaxed in-data-[disabled=true]:opacity-50;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.fieldset legend + p,
|
|
875
|
+
.field > p,
|
|
876
|
+
.field section > p,
|
|
877
|
+
.field-description {
|
|
878
|
+
@apply text-muted-foreground text-start text-xs/relaxed [[data-variant=legend]+&]:-mt-1.5;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.field-separator {
|
|
882
|
+
@apply -my-2 h-5 text-xs in-data-[variant=outline]:-mb-2;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.field-separator > span {
|
|
886
|
+
@apply text-muted-foreground px-2;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.field [role="alert"],
|
|
890
|
+
.field-error {
|
|
891
|
+
@apply text-destructive text-xs;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
/* Input Group */
|
|
895
|
+
.input-group {
|
|
896
|
+
@apply h-8 has-[>textarea]:h-auto rounded-none border border-input transition-colors focus-within:border-ring focus-within:ring-1 focus-within:ring-ring/50 has-[[aria-invalid=true]]:border-destructive has-[[aria-invalid=true]]:ring-1 has-[[aria-invalid=true]]:ring-destructive/20 dark:bg-input/30 dark:has-[[aria-invalid=true]]:ring-destructive/40;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
.input-group:has(> :is(input, textarea, select, [data-control]):disabled) {
|
|
901
|
+
@apply opacity-50;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.input-group > :is(input, select, [data-control]) {
|
|
905
|
+
@apply px-2.5 py-1 text-xs;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
.input-group:not([data-orientation='vertical']):has(> [data-align='start']) > :is(input, select, [data-control]) {
|
|
909
|
+
@apply ps-1.5;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.input-group:not([data-orientation='vertical']):has(> [data-align='end']) > :is(input, select, [data-control]) {
|
|
913
|
+
@apply pe-1.5;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
.input-group > textarea {
|
|
917
|
+
@apply px-2.5 py-2 text-xs;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
.input-group > :is(span, [role='group'], header, footer),
|
|
921
|
+
.input-group > :is(svg, kbd, .popover, .dropdown-menu) {
|
|
922
|
+
@apply gap-2 py-1.5 text-xs font-medium text-muted-foreground select-none [&>svg:not([class*='size-'])]:size-4;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.input-group > [data-align='start'] {
|
|
926
|
+
@apply ps-2;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.input-group > [data-align='end'] {
|
|
930
|
+
@apply pe-2;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.input-group > [data-align='start']:has(> button) {
|
|
934
|
+
@apply -ms-1;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
.input-group > [data-align='end']:has(> button) {
|
|
938
|
+
@apply -me-1;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.input-group > [data-align='start']:has(> kbd) {
|
|
942
|
+
@apply -ms-0.5;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
.input-group > [data-align='end']:has(> kbd) {
|
|
946
|
+
@apply -me-0.5;
|
|
947
|
+
}
|
|
948
|
+
.input-group[data-orientation='vertical'] > :is(header, footer, [role='group'], [data-align]) {
|
|
949
|
+
@apply px-2.5;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.input-group > :is(kbd, span > kbd, [role='group'] > kbd, header > kbd, footer > kbd) {
|
|
953
|
+
@apply rounded-none;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
.input-group > :is(button, [role='group'] > button, header > button, footer > button) {
|
|
957
|
+
@apply gap-2 rounded-none text-xs shadow-none [&>svg:not([class*='size-'])]:size-3.5;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
.input-group > :is(button, [role='group'] > button, header > button, footer > button):has(> svg):not(:has(> :not(svg))) {
|
|
962
|
+
@apply size-6 rounded-none p-0;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/* Empty */
|
|
966
|
+
.empty {
|
|
967
|
+
@apply gap-4 rounded-none border-dashed p-6;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.empty > header {
|
|
971
|
+
@apply gap-2;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
.empty figure {
|
|
975
|
+
@apply mb-2;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.empty figure:has(> svg:only-child) {
|
|
979
|
+
@apply bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-none [&_svg:not([class*='size-'])]:size-4;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
.empty :is(h2, h3, h4) {
|
|
983
|
+
@apply text-sm font-medium;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
.empty p {
|
|
987
|
+
@apply text-muted-foreground text-xs/relaxed;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.empty > :is(section, footer) {
|
|
991
|
+
@apply gap-2.5 text-xs;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
/* Item */
|
|
995
|
+
.item {
|
|
996
|
+
@apply rounded-none border text-xs;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.item:not([data-variant]),
|
|
1000
|
+
.item[data-variant='default'] {
|
|
1001
|
+
@apply border-transparent;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.item[data-variant='outline'] {
|
|
1005
|
+
@apply border-border;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.item[data-variant='muted'] {
|
|
1009
|
+
@apply bg-muted/50 border-transparent;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
.item:not([data-size]),
|
|
1013
|
+
.item[data-size='default'] {
|
|
1014
|
+
@apply gap-2.5 px-3 py-2.5;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
.item[data-size='sm'] {
|
|
1018
|
+
@apply gap-2.5 px-3 py-2.5;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.item[data-size='xs'] {
|
|
1022
|
+
@apply gap-2 px-2.5 py-2;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.item > figure {
|
|
1026
|
+
@apply gap-2;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
.item:has(p) > figure {
|
|
1030
|
+
@apply translate-y-0.5 self-start;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
.item > figure:has(> svg:only-child) {
|
|
1034
|
+
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.item > figure:has(img) {
|
|
1038
|
+
@apply size-10 overflow-hidden rounded-none;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
.item[data-size='sm'] > figure:has(img) {
|
|
1042
|
+
@apply size-8;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
.item[data-size='xs'] > figure:has(img) {
|
|
1046
|
+
@apply size-6;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
.item > section {
|
|
1050
|
+
@apply gap-1;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.item[data-size='xs'] > section {
|
|
1054
|
+
@apply gap-0;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
.item :is(h2, h3, h4) {
|
|
1058
|
+
@apply gap-2 text-xs font-medium underline-offset-4;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
.item p {
|
|
1062
|
+
@apply text-xs/relaxed;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
.item[data-size='xs'] p {
|
|
1066
|
+
@apply text-xs/relaxed;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
.item > aside,
|
|
1070
|
+
.item > :is(header, footer) {
|
|
1071
|
+
@apply gap-2;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
.item-group {
|
|
1075
|
+
@apply gap-4;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
.item-group:has(> .item[data-size='sm']) {
|
|
1079
|
+
@apply gap-2.5;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
.item-group:has(> .item[data-size='xs']) {
|
|
1083
|
+
@apply gap-2;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
.item-group > hr {
|
|
1087
|
+
@apply my-2;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/* Kbd */
|
|
1091
|
+
.kbd {
|
|
1092
|
+
@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 w-fit min-w-5 gap-1 rounded-none px-1 font-sans text-xs font-medium [&_svg:not([class*='size-'])]:size-3;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
.kbd-group {
|
|
1096
|
+
@apply gap-1;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
/* Label */
|
|
1100
|
+
.field > label,
|
|
1101
|
+
.label {
|
|
1102
|
+
@apply gap-2 text-xs leading-none in-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
/* Sidebar */
|
|
1106
|
+
.sidebar nav {
|
|
1107
|
+
@apply bg-sidebar text-sidebar-foreground;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
.sidebar nav > header,
|
|
1111
|
+
.sidebar nav > footer {
|
|
1112
|
+
@apply gap-2 p-2;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
.sidebar nav > section {
|
|
1116
|
+
@apply gap-0;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.sidebar nav [role=separator] {
|
|
1120
|
+
@apply border-sidebar-border mx-2;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
.sidebar nav > section > [role=group] {
|
|
1124
|
+
@apply p-2;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
.sidebar nav h3 {
|
|
1128
|
+
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-none px-2 text-xs focus-visible:ring-2 [&>svg]:size-4 transition-[margin,opacity] duration-200 ease-linear;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
.sidebar nav > section > [role=group] > ul {
|
|
1132
|
+
@apply gap-0;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
.sidebar nav > section > [role=group] {
|
|
1136
|
+
@apply text-xs;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
.sidebar nav li > :is(a, button),
|
|
1140
|
+
.sidebar nav li > details > summary {
|
|
1141
|
+
@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 p-2 text-xs focus-visible:ring-2 text-left focus-visible:outline-hidden data-[open]:hover:bg-sidebar-accent data-[open]:hover:text-sidebar-accent-foreground [&>svg]:shrink-0 [&>svg]:size-4;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
.sidebar nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1145
|
+
.sidebar nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1146
|
+
@apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
.sidebar nav li > :is(a, button):not([data-variant]),
|
|
1150
|
+
.sidebar nav li > details > summary:not([data-variant]),
|
|
1151
|
+
.sidebar nav li > :is(a, button)[data-variant=default],
|
|
1152
|
+
.sidebar nav li > details > summary[data-variant=default] {
|
|
1153
|
+
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
.sidebar nav li > :is(a, button)[data-variant=outline],
|
|
1157
|
+
.sidebar nav li > details > summary[data-variant=outline] {
|
|
1158
|
+
@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;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
.sidebar nav li > :is(a, button):not([data-size]),
|
|
1162
|
+
.sidebar nav li > details > summary:not([data-size]),
|
|
1163
|
+
.sidebar nav li > :is(a, button)[data-size=default],
|
|
1164
|
+
.sidebar nav li > details > summary[data-size=default] {
|
|
1165
|
+
@apply h-8 text-xs;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
.sidebar nav li > :is(a, button)[data-size=sm],
|
|
1169
|
+
.sidebar nav li > details > summary[data-size=sm] {
|
|
1170
|
+
@apply h-7 text-xs;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
.sidebar nav li > :is(a, button)[data-size=lg],
|
|
1174
|
+
.sidebar nav li > details > summary[data-size=lg] {
|
|
1175
|
+
@apply h-12 text-xs;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
.sidebar nav li > details > summary::after {
|
|
1179
|
+
@apply size-4;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
.sidebar nav li > details::details-content {
|
|
1183
|
+
@apply px-3.5;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
.sidebar nav ul ul {
|
|
1187
|
+
@apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
.sidebar nav ul ul > li > :is(a, button),
|
|
1191
|
+
.sidebar nav ul ul > li > details > summary {
|
|
1192
|
+
@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-2 text-xs focus-visible:ring-2 [&>svg]:size-4;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
/* Skeleton */
|
|
1196
|
+
.skeleton {
|
|
1197
|
+
@apply bg-muted rounded-none;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
/* Table */
|
|
1201
|
+
.table-container {
|
|
1202
|
+
@apply relative w-full overflow-x-auto;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.table {
|
|
1206
|
+
@apply w-full caption-bottom text-xs;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
.table thead {
|
|
1210
|
+
@apply [&_tr]:border-b;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
.table tbody {
|
|
1214
|
+
@apply [&_tr:last-child]:border-0;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
.table tfoot {
|
|
1218
|
+
@apply bg-muted/50 border-t font-medium [&>tr]:last:border-b-0;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
.table tr {
|
|
1222
|
+
@apply hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
.table th {
|
|
1226
|
+
@apply text-foreground h-10 px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.table td {
|
|
1230
|
+
@apply p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
.table caption {
|
|
1234
|
+
@apply text-muted-foreground mt-4 text-xs;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
/* Tooltip */
|
|
1239
|
+
[data-tooltip]::before {
|
|
1240
|
+
@apply bg-foreground text-background inline-flex items-center gap-1.5 rounded-none px-3 py-1.5 text-xs has-[.kbd]:pe-1.5 [&_.kbd]:relative [&_.kbd]:isolate [&_.kbd]:z-50 [&_.kbd]:rounded-none;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
[data-tooltip][data-arrow]::after {
|
|
1244
|
+
@apply bg-foreground absolute z-[60] size-2.5 rotate-45 rounded-none;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
/* Toast */
|
|
1248
|
+
.toast-content {
|
|
1249
|
+
@apply bg-popover text-popover-foreground border shadow-lg rounded-none;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
/* Slider */
|
|
1253
|
+
.field > input[type='range'],
|
|
1254
|
+
.input[type='range'] {
|
|
1255
|
+
@apply h-5;
|
|
1256
|
+
--slider-track-height: 0.25rem;
|
|
1257
|
+
--slider-thumb-size: 0.75rem;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-runnable-track {
|
|
1261
|
+
@apply bg-muted h-1 rounded-none;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
:is(.field > input[type='range'], .input[type='range'])::-moz-range-track {
|
|
1265
|
+
@apply bg-muted h-1 rounded-none;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
:is(.field > input[type='range'], .input[type='range'])::-ms-track {
|
|
1269
|
+
@apply bg-muted h-1 rounded-none;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
:is(.field > input[type='range'], .input[type='range'])::-ms-fill-lower,
|
|
1273
|
+
:is(.field > input[type='range'], .input[type='range'])::-ms-fill-upper {
|
|
1274
|
+
@apply rounded-[inherit];
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
1278
|
+
@apply border-ring ring-ring/50 relative size-3 rounded-none border bg-white transition-[color,box-shadow] hover:ring-1 focus-visible:ring-1 active:ring-1 -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)] focus-visible:outline-hidden;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
:is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
1282
|
+
@apply border-ring ring-ring/50 relative size-3 rounded-none border bg-white transition-[color,box-shadow] hover:ring-1 focus-visible:ring-1 active:ring-1 focus-visible:outline-hidden;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
:is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
1286
|
+
@apply border-ring ring-ring/50 relative size-3 rounded-none border bg-white transition-[color,box-shadow] hover:ring-1 focus-visible:ring-1 active:ring-1 focus-visible:outline-hidden;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
}
|