basecoat-css 1.0.1 → 1.1.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/dist/base/base.css +11 -2
- package/dist/basecoat-base.bundle.css +1884 -0
- package/dist/basecoat-base.cdn.css +58 -12
- package/dist/basecoat-base.cdn.min.css +1 -2
- package/dist/basecoat-compat.cdn.css +1 -1
- package/dist/basecoat-compat.cdn.min.css +1 -2
- package/dist/basecoat-luma.bundle.css +3319 -0
- package/dist/basecoat-luma.cdn.css +200 -167
- package/dist/basecoat-luma.cdn.min.css +1 -2
- package/dist/basecoat-lyra.bundle.css +3302 -0
- package/dist/basecoat-lyra.cdn.css +131 -108
- package/dist/basecoat-lyra.cdn.min.css +1 -2
- package/dist/basecoat-maia.bundle.css +3287 -0
- package/dist/basecoat-maia.cdn.css +167 -116
- package/dist/basecoat-maia.cdn.min.css +1 -2
- package/dist/basecoat-mira.bundle.css +3296 -0
- package/dist/basecoat-mira.cdn.css +138 -110
- package/dist/basecoat-mira.cdn.min.css +1 -2
- package/dist/basecoat-nova.bundle.css +3314 -0
- package/dist/basecoat-nova.cdn.css +169 -118
- package/dist/basecoat-nova.cdn.min.css +1 -2
- package/dist/basecoat-rhea.bundle.css +3324 -0
- package/dist/basecoat-rhea.cdn.css +200 -167
- package/dist/basecoat-rhea.cdn.min.css +1 -2
- package/dist/basecoat-sera.bundle.css +3312 -0
- package/dist/basecoat-sera.cdn.css +176 -143
- package/dist/basecoat-sera.cdn.min.css +1 -2
- package/dist/basecoat-vega.bundle.css +3301 -0
- package/dist/basecoat-vega.cdn.css +159 -108
- package/dist/basecoat-vega.cdn.min.css +1 -2
- package/dist/basecoat.bundle.css +3301 -0
- package/dist/basecoat.cdn.css +159 -108
- package/dist/basecoat.cdn.min.css +1 -2
- package/dist/components/dialog.css +34 -0
- package/dist/components/sidebar.css +10 -7
- package/dist/components/tooltip.css +1 -1
- package/dist/js/all.js +28 -13
- package/dist/js/all.min.js +1 -1
- package/dist/js/combobox.js +6 -2
- package/dist/js/combobox.min.js +1 -1
- package/dist/js/dropdown-menu.js +1 -1
- package/dist/js/dropdown-menu.min.js +1 -1
- 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/toast.js +18 -7
- package/dist/js/toast.min.js +1 -1
- package/dist/styles/luma.css +108 -44
- package/dist/styles/lyra.css +80 -36
- package/dist/styles/maia.css +86 -42
- package/dist/styles/mira.css +81 -37
- package/dist/styles/nova.css +89 -41
- package/dist/styles/rhea.css +108 -44
- package/dist/styles/sera.css +77 -41
- package/dist/styles/vega.css +77 -41
- package/package.json +4 -1
- package/templates/jinja/command.html.jinja +1 -1
- package/templates/jinja/dialog.html.jinja +1 -1
- package/templates/nunjucks/command.njk +1 -1
- package/templates/nunjucks/dialog.njk +1 -1
package/dist/styles/rhea.css
CHANGED
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
/* Native Select */
|
|
218
218
|
.field > select,
|
|
219
219
|
select.select {
|
|
220
|
-
@apply bg-input/50 border-transparent placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground 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 h-8 w-fit rounded-2xl border py-1 ps-2.5 pe-8 text-sm transition-[color,box-shadow] duration-200 focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-7;
|
|
220
|
+
@apply bg-input/50 border-transparent placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground 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 h-8 w-fit rounded-2xl border py-1 ps-2.5 pe-8 text-base md:text-sm transition-[color,box-shadow] duration-200 focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-7;
|
|
221
221
|
@apply bg-[image:var(--chevron-down-icon-50)] bg-no-repeat bg-position-[center_right_0.625rem] bg-size-[1rem];
|
|
222
222
|
}
|
|
223
223
|
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
.command > header input {
|
|
376
|
-
@apply ps-1.5 text-sm placeholder:text-muted-foreground;
|
|
376
|
+
@apply ps-1.5 text-base md:text-sm placeholder:text-muted-foreground;
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
.command [role='menu'] {
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
|
|
416
416
|
/* Combobox */
|
|
417
417
|
.combobox > input[role='combobox'] {
|
|
418
|
-
@apply bg-input/50 border-transparent 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 h-8 rounded-2xl border py-1 ps-2.5 pe-8 text-sm transition-[color,box-shadow] duration-200 focus-visible:ring-3 aria-invalid:ring-3;
|
|
418
|
+
@apply bg-input/50 border-transparent 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 h-8 rounded-2xl border py-1 ps-2.5 pe-8 text-base md:text-sm transition-[color,box-shadow] duration-200 focus-visible:ring-3 aria-invalid:ring-3;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
.combobox > svg,
|
|
@@ -464,6 +464,10 @@
|
|
|
464
464
|
@apply bg-input/50 border-transparent focus-within:border-ring focus-within:ring-ring/30 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-2xl border bg-clip-padding px-1 py-1 text-sm transition-[color,box-shadow] duration-200 focus-within:ring-3 has-[[aria-invalid=true]]:ring-3;
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
+
.combobox-chips > input[role='combobox'] {
|
|
468
|
+
@apply text-base md:text-sm;
|
|
469
|
+
}
|
|
470
|
+
|
|
467
471
|
.combobox-chip {
|
|
468
472
|
@apply bg-input text-foreground dark:bg-input/60 h-5.25 gap-1 rounded-2xl px-1.5 text-xs font-medium has-[>.combobox-chip-remove]:pe-0.5;
|
|
469
473
|
}
|
|
@@ -540,6 +544,11 @@
|
|
|
540
544
|
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 max-w-xs gap-6 rounded-3xl p-6 shadow-xl ring-1 duration-100 sm:max-w-md;
|
|
541
545
|
}
|
|
542
546
|
|
|
547
|
+
.alert-dialog:is([data-size='sm']) > *,
|
|
548
|
+
.alert-dialog > [data-size='sm'] {
|
|
549
|
+
@apply sm:max-w-xs;
|
|
550
|
+
}
|
|
551
|
+
|
|
543
552
|
.dialog > * {
|
|
544
553
|
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 max-w-[calc(100%-2rem)] gap-6 rounded-3xl p-6 text-sm shadow-xl ring-1 duration-100 sm:max-w-md;
|
|
545
554
|
}
|
|
@@ -782,7 +791,11 @@
|
|
|
782
791
|
}
|
|
783
792
|
|
|
784
793
|
:is(.field > input[type='radio'], .input[type='radio']):checked:before {
|
|
785
|
-
@apply bg-primary-foreground size-2
|
|
794
|
+
@apply bg-primary-foreground size-2;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
html.dark :is(.field > input[type='radio'], .input[type='radio']):checked:before {
|
|
798
|
+
@apply size-2.5;
|
|
786
799
|
}
|
|
787
800
|
|
|
788
801
|
/* Switch */
|
|
@@ -800,7 +813,11 @@
|
|
|
800
813
|
}
|
|
801
814
|
|
|
802
815
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
803
|
-
@apply bg-background rounded-2xl shadow-sm
|
|
816
|
+
@apply bg-background rounded-2xl shadow-sm;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
html:not(.dark) :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
820
|
+
@apply bg-clip-padding;
|
|
804
821
|
}
|
|
805
822
|
|
|
806
823
|
html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
|
|
@@ -940,7 +957,7 @@
|
|
|
940
957
|
@apply opacity-50;
|
|
941
958
|
}
|
|
942
959
|
.input-group > :is(input, select, [data-control]) {
|
|
943
|
-
@apply px-2.5 py-1 text-sm;
|
|
960
|
+
@apply px-2.5 py-1 text-base md:text-sm;
|
|
944
961
|
}
|
|
945
962
|
|
|
946
963
|
.input-group:not([data-orientation='vertical']):has(> :is([data-align='start'], [data-align='inline-start'])) > :is(input, select, [data-control]) {
|
|
@@ -952,7 +969,7 @@
|
|
|
952
969
|
}
|
|
953
970
|
|
|
954
971
|
.input-group > textarea {
|
|
955
|
-
@apply px-2.5 py-2 text-sm;
|
|
972
|
+
@apply px-2.5 py-2 text-base md:text-sm;
|
|
956
973
|
}
|
|
957
974
|
|
|
958
975
|
.input-group > :is(span, [role='group'], header, footer),
|
|
@@ -1182,92 +1199,92 @@
|
|
|
1182
1199
|
}
|
|
1183
1200
|
|
|
1184
1201
|
/* Sidebar */
|
|
1185
|
-
.sidebar nav {
|
|
1202
|
+
.sidebar > nav {
|
|
1186
1203
|
@apply bg-sidebar text-sidebar-foreground;
|
|
1187
1204
|
}
|
|
1188
1205
|
|
|
1189
|
-
.sidebar nav > header,
|
|
1190
|
-
.sidebar nav > footer {
|
|
1206
|
+
.sidebar > nav > header,
|
|
1207
|
+
.sidebar > nav > footer {
|
|
1191
1208
|
@apply gap-2 p-2 [--radius:var(--radius-xl)];
|
|
1192
1209
|
}
|
|
1193
1210
|
|
|
1194
|
-
.sidebar nav > section {
|
|
1211
|
+
.sidebar > nav > section {
|
|
1195
1212
|
@apply gap-2 [--radius:var(--radius-xl)];
|
|
1196
1213
|
}
|
|
1197
1214
|
|
|
1198
|
-
.sidebar nav [role=separator] {
|
|
1215
|
+
.sidebar > nav [role=separator] {
|
|
1199
1216
|
@apply border-sidebar-border mx-2;
|
|
1200
1217
|
}
|
|
1201
1218
|
|
|
1202
|
-
.sidebar nav > section > [role=group] {
|
|
1219
|
+
.sidebar > nav > section > [role=group] {
|
|
1203
1220
|
@apply p-2;
|
|
1204
1221
|
}
|
|
1205
1222
|
|
|
1206
|
-
.sidebar nav h3 {
|
|
1223
|
+
.sidebar > nav h3 {
|
|
1207
1224
|
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-xl px-3 text-xs font-medium focus-visible:ring-3 [&>svg]:size-4 transition-[margin,opacity] duration-200 ease-linear;
|
|
1208
1225
|
}
|
|
1209
1226
|
|
|
1210
|
-
.sidebar nav > section > [role=group] > ul {
|
|
1227
|
+
.sidebar > nav > section > [role=group] > ul {
|
|
1211
1228
|
@apply gap-0.5;
|
|
1212
1229
|
}
|
|
1213
1230
|
|
|
1214
|
-
.sidebar nav > section > [role=group] {
|
|
1231
|
+
.sidebar > nav > section > [role=group] {
|
|
1215
1232
|
@apply text-sm;
|
|
1216
1233
|
}
|
|
1217
1234
|
|
|
1218
|
-
.sidebar nav li > :is(a, button),
|
|
1219
|
-
.sidebar nav li > details > summary {
|
|
1235
|
+
.sidebar > nav li > :is(a, button),
|
|
1236
|
+
.sidebar > nav li > details > summary {
|
|
1220
1237
|
@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-xl px-3 py-2 text-sm duration-200 focus-visible:ring-3 whitespace-nowrap has-[>svg:first-child]:ps-2.5 has-[>svg:last-child]:pe-2.5 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;
|
|
1221
1238
|
}
|
|
1222
1239
|
|
|
1223
|
-
.sidebar nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1224
|
-
.sidebar nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1240
|
+
.sidebar > nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1241
|
+
.sidebar > nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1225
1242
|
@apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
|
|
1226
1243
|
}
|
|
1227
1244
|
|
|
1228
|
-
.sidebar nav li > :is(a, button):not([data-variant]),
|
|
1229
|
-
.sidebar nav li > details > summary:not([data-variant]),
|
|
1230
|
-
.sidebar nav li > :is(a, button)[data-variant=default],
|
|
1231
|
-
.sidebar nav li > details > summary[data-variant=default] {
|
|
1245
|
+
.sidebar > nav li > :is(a, button):not([data-variant]),
|
|
1246
|
+
.sidebar > nav li > details > summary:not([data-variant]),
|
|
1247
|
+
.sidebar > nav li > :is(a, button)[data-variant=default],
|
|
1248
|
+
.sidebar > nav li > details > summary[data-variant=default] {
|
|
1232
1249
|
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1233
1250
|
}
|
|
1234
1251
|
|
|
1235
|
-
.sidebar nav li > :is(a, button)[data-variant=outline],
|
|
1236
|
-
.sidebar nav li > details > summary[data-variant=outline] {
|
|
1252
|
+
.sidebar > nav li > :is(a, button)[data-variant=outline],
|
|
1253
|
+
.sidebar > nav li > details > summary[data-variant=outline] {
|
|
1237
1254
|
@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;
|
|
1238
1255
|
}
|
|
1239
1256
|
|
|
1240
|
-
.sidebar nav li > :is(a, button):not([data-size]),
|
|
1241
|
-
.sidebar nav li > details > summary:not([data-size]),
|
|
1242
|
-
.sidebar nav li > :is(a, button)[data-size=default],
|
|
1243
|
-
.sidebar nav li > details > summary[data-size=default] {
|
|
1257
|
+
.sidebar > nav li > :is(a, button):not([data-size]),
|
|
1258
|
+
.sidebar > nav li > details > summary:not([data-size]),
|
|
1259
|
+
.sidebar > nav li > :is(a, button)[data-size=default],
|
|
1260
|
+
.sidebar > nav li > details > summary[data-size=default] {
|
|
1244
1261
|
@apply h-8 text-sm;
|
|
1245
1262
|
}
|
|
1246
1263
|
|
|
1247
|
-
.sidebar nav li > :is(a, button)[data-size=sm],
|
|
1248
|
-
.sidebar nav li > details > summary[data-size=sm] {
|
|
1264
|
+
.sidebar > nav li > :is(a, button)[data-size=sm],
|
|
1265
|
+
.sidebar > nav li > details > summary[data-size=sm] {
|
|
1249
1266
|
@apply h-7 text-xs;
|
|
1250
1267
|
}
|
|
1251
1268
|
|
|
1252
|
-
.sidebar nav li > :is(a, button)[data-size=lg],
|
|
1253
|
-
.sidebar nav li > details > summary[data-size=lg] {
|
|
1269
|
+
.sidebar > nav li > :is(a, button)[data-size=lg],
|
|
1270
|
+
.sidebar > nav li > details > summary[data-size=lg] {
|
|
1254
1271
|
@apply h-12 px-3 text-sm;
|
|
1255
1272
|
}
|
|
1256
1273
|
|
|
1257
|
-
.sidebar nav li > details > summary::after {
|
|
1274
|
+
.sidebar > nav li > details > summary::after {
|
|
1258
1275
|
@apply size-4;
|
|
1259
1276
|
}
|
|
1260
1277
|
|
|
1261
|
-
.sidebar nav li > details::details-content {
|
|
1278
|
+
.sidebar > nav li > details::details-content {
|
|
1262
1279
|
@apply px-3.5;
|
|
1263
1280
|
}
|
|
1264
1281
|
|
|
1265
|
-
.sidebar nav ul ul {
|
|
1282
|
+
.sidebar > nav ul ul {
|
|
1266
1283
|
@apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
|
|
1267
1284
|
}
|
|
1268
1285
|
|
|
1269
|
-
.sidebar nav ul ul > li > :is(a, button),
|
|
1270
|
-
.sidebar nav ul ul > li > details > summary {
|
|
1286
|
+
.sidebar > nav ul ul > li > :is(a, button),
|
|
1287
|
+
.sidebar > nav ul ul > li > details > summary {
|
|
1271
1288
|
@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-xl px-3 text-sm focus-visible:ring-3 [&>svg]:size-4;
|
|
1272
1289
|
}
|
|
1273
1290
|
/* Progress */
|
|
@@ -1324,11 +1341,19 @@
|
|
|
1324
1341
|
|
|
1325
1342
|
/* Tooltip */
|
|
1326
1343
|
[data-tooltip]::before {
|
|
1327
|
-
@apply bg-foreground text-background
|
|
1344
|
+
@apply bg-foreground text-background rounded-xl px-3 py-1.5 text-xs;
|
|
1328
1345
|
}
|
|
1329
1346
|
|
|
1330
1347
|
[data-tooltip][data-arrow]::after {
|
|
1331
|
-
@apply bg-foreground absolute z-[60] size-2.5 rotate-45 rounded-[2px]
|
|
1348
|
+
@apply bg-foreground absolute z-[60] size-2.5 rotate-45 rounded-[2px];
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
[data-tooltip][data-arrow][data-side='left']::after {
|
|
1352
|
+
@apply translate-x-[-1.5px];
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
[data-tooltip][data-arrow][data-side='right']::after {
|
|
1356
|
+
@apply translate-x-[1.5px];
|
|
1332
1357
|
}
|
|
1333
1358
|
|
|
1334
1359
|
/* Toast */
|
|
@@ -1362,15 +1387,54 @@
|
|
|
1362
1387
|
}
|
|
1363
1388
|
|
|
1364
1389
|
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
1365
|
-
@apply ring-black/10
|
|
1390
|
+
@apply ring-black/10 ring-1 size-4 rounded-2xl bg-white shadow-md transition-[color,box-shadow] duration-200 -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)];
|
|
1366
1391
|
}
|
|
1367
1392
|
|
|
1368
1393
|
:is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
1369
|
-
@apply ring-black/10
|
|
1394
|
+
@apply ring-black/10 ring-1 size-4 rounded-2xl bg-white shadow-md transition-[color,box-shadow] duration-200;
|
|
1370
1395
|
}
|
|
1371
1396
|
|
|
1372
1397
|
:is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
1373
|
-
@apply ring-black/10
|
|
1398
|
+
@apply ring-black/10 ring-1 size-4 rounded-2xl bg-white shadow-md transition-[color,box-shadow] duration-200;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/* States go before the thumb pseudo-element so they still apply with native CSS nesting. */
|
|
1402
|
+
html:not(.dark) :is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
1403
|
+
@apply bg-clip-padding;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
html:not(.dark) :is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
1407
|
+
@apply bg-clip-padding;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
html:not(.dark) :is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
1411
|
+
@apply bg-clip-padding;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
@media (hover: hover) {
|
|
1415
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-webkit-slider-thumb {
|
|
1416
|
+
@apply ring-4 ring-ring/30;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-moz-range-thumb {
|
|
1420
|
+
@apply ring-4 ring-ring/30;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-ms-thumb {
|
|
1424
|
+
@apply ring-4 ring-ring/30;
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-webkit-slider-thumb {
|
|
1429
|
+
@apply ring-4 ring-ring/30 outline-hidden;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-moz-range-thumb {
|
|
1433
|
+
@apply ring-4 ring-ring/30 outline-hidden;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-ms-thumb {
|
|
1437
|
+
@apply ring-4 ring-ring/30 outline-hidden;
|
|
1374
1438
|
}
|
|
1375
1439
|
|
|
1376
1440
|
}
|
package/dist/styles/sera.css
CHANGED
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
/* Native Select */
|
|
222
222
|
.field > select,
|
|
223
223
|
select.select {
|
|
224
|
-
@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-sm transition-[color,border-color] data-[size=sm]:h-9;
|
|
224
|
+
@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;
|
|
225
225
|
@apply bg-[image:var(--chevron-down-icon-50)] bg-no-repeat bg-position-[center_right_0] bg-size-[0.875rem];
|
|
226
226
|
}
|
|
227
227
|
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
.command > header input {
|
|
380
|
-
@apply h-9 ps-1.5 pe-2 text-sm placeholder:text-muted-foreground;
|
|
380
|
+
@apply h-9 ps-1.5 pe-2 text-base md:text-sm placeholder:text-muted-foreground;
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
.command [role='menu'] {
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
|
|
420
420
|
/* Combobox */
|
|
421
421
|
.combobox > input[role='combobox'] {
|
|
422
|
-
@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-sm transition-[color,border-color];
|
|
422
|
+
@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];
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
.combobox > svg,
|
|
@@ -468,6 +468,10 @@
|
|
|
468
468
|
@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];
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
+
.combobox-chips > input[role='combobox'] {
|
|
472
|
+
@apply text-base md:text-sm;
|
|
473
|
+
}
|
|
474
|
+
|
|
471
475
|
.combobox-chip {
|
|
472
476
|
@apply bg-muted text-foreground h-5.5 gap-1 rounded-none px-2 text-xs font-medium has-[>.combobox-chip-remove]:pe-0;
|
|
473
477
|
}
|
|
@@ -544,6 +548,11 @@
|
|
|
544
548
|
@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;
|
|
545
549
|
}
|
|
546
550
|
|
|
551
|
+
.alert-dialog:is([data-size='sm']) > *,
|
|
552
|
+
.alert-dialog > [data-size='sm'] {
|
|
553
|
+
@apply sm:max-w-xs;
|
|
554
|
+
}
|
|
555
|
+
|
|
547
556
|
.dialog > * {
|
|
548
557
|
@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;
|
|
549
558
|
}
|
|
@@ -965,7 +974,7 @@
|
|
|
965
974
|
@apply opacity-50;
|
|
966
975
|
}
|
|
967
976
|
.input-group > :is(input, select, [data-control]) {
|
|
968
|
-
@apply px-0 py-1 text-sm;
|
|
977
|
+
@apply px-0 py-1 text-base md:text-sm;
|
|
969
978
|
}
|
|
970
979
|
|
|
971
980
|
.input-group:not([data-orientation='vertical']):has(> :is([data-align='start'], [data-align='inline-start'])) > :is(input, select, [data-control]) {
|
|
@@ -977,7 +986,7 @@
|
|
|
977
986
|
}
|
|
978
987
|
|
|
979
988
|
.input-group > textarea {
|
|
980
|
-
@apply px-0 py-2.5 text-sm;
|
|
989
|
+
@apply px-0 py-2.5 text-base md:text-sm;
|
|
981
990
|
}
|
|
982
991
|
|
|
983
992
|
.input-group > :is(span, [role='group'], header, footer),
|
|
@@ -1198,92 +1207,92 @@
|
|
|
1198
1207
|
}
|
|
1199
1208
|
|
|
1200
1209
|
/* Sidebar */
|
|
1201
|
-
.sidebar nav {
|
|
1210
|
+
.sidebar > nav {
|
|
1202
1211
|
@apply bg-sidebar text-sidebar-foreground;
|
|
1203
1212
|
}
|
|
1204
1213
|
|
|
1205
|
-
.sidebar nav > header,
|
|
1206
|
-
.sidebar nav > footer {
|
|
1214
|
+
.sidebar > nav > header,
|
|
1215
|
+
.sidebar > nav > footer {
|
|
1207
1216
|
@apply gap-2 p-2 [--radius:0];
|
|
1208
1217
|
}
|
|
1209
1218
|
|
|
1210
|
-
.sidebar nav > section {
|
|
1219
|
+
.sidebar > nav > section {
|
|
1211
1220
|
@apply gap-2 [--radius:0];
|
|
1212
1221
|
}
|
|
1213
1222
|
|
|
1214
|
-
.sidebar nav [role=separator] {
|
|
1223
|
+
.sidebar > nav [role=separator] {
|
|
1215
1224
|
@apply border-sidebar-border mx-2;
|
|
1216
1225
|
}
|
|
1217
1226
|
|
|
1218
|
-
.sidebar nav > section > [role=group] {
|
|
1227
|
+
.sidebar > nav > section > [role=group] {
|
|
1219
1228
|
@apply p-2;
|
|
1220
1229
|
}
|
|
1221
1230
|
|
|
1222
|
-
.sidebar nav h3 {
|
|
1231
|
+
.sidebar > nav h3 {
|
|
1223
1232
|
@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;
|
|
1224
1233
|
}
|
|
1225
1234
|
|
|
1226
|
-
.sidebar nav > section > [role=group] > ul {
|
|
1235
|
+
.sidebar > nav > section > [role=group] > ul {
|
|
1227
1236
|
@apply gap-0.5;
|
|
1228
1237
|
}
|
|
1229
1238
|
|
|
1230
|
-
.sidebar nav > section > [role=group] {
|
|
1239
|
+
.sidebar > nav > section > [role=group] {
|
|
1231
1240
|
@apply text-sm;
|
|
1232
1241
|
}
|
|
1233
1242
|
|
|
1234
|
-
.sidebar nav li > :is(a, button),
|
|
1235
|
-
.sidebar nav li > details > summary {
|
|
1243
|
+
.sidebar > nav li > :is(a, button),
|
|
1244
|
+
.sidebar > nav li > details > summary {
|
|
1236
1245
|
@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;
|
|
1237
1246
|
}
|
|
1238
1247
|
|
|
1239
|
-
.sidebar nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1240
|
-
.sidebar nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1248
|
+
.sidebar > nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1249
|
+
.sidebar > nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1241
1250
|
@apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
|
|
1242
1251
|
}
|
|
1243
1252
|
|
|
1244
|
-
.sidebar nav li > :is(a, button):not([data-variant]),
|
|
1245
|
-
.sidebar nav li > details > summary:not([data-variant]),
|
|
1246
|
-
.sidebar nav li > :is(a, button)[data-variant=default],
|
|
1247
|
-
.sidebar nav li > details > summary[data-variant=default] {
|
|
1253
|
+
.sidebar > nav li > :is(a, button):not([data-variant]),
|
|
1254
|
+
.sidebar > nav li > details > summary:not([data-variant]),
|
|
1255
|
+
.sidebar > nav li > :is(a, button)[data-variant=default],
|
|
1256
|
+
.sidebar > nav li > details > summary[data-variant=default] {
|
|
1248
1257
|
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1249
1258
|
}
|
|
1250
1259
|
|
|
1251
|
-
.sidebar nav li > :is(a, button)[data-variant=outline],
|
|
1252
|
-
.sidebar nav li > details > summary[data-variant=outline] {
|
|
1260
|
+
.sidebar > nav li > :is(a, button)[data-variant=outline],
|
|
1261
|
+
.sidebar > nav li > details > summary[data-variant=outline] {
|
|
1253
1262
|
@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;
|
|
1254
1263
|
}
|
|
1255
1264
|
|
|
1256
|
-
.sidebar nav li > :is(a, button):not([data-size]),
|
|
1257
|
-
.sidebar nav li > details > summary:not([data-size]),
|
|
1258
|
-
.sidebar nav li > :is(a, button)[data-size=default],
|
|
1259
|
-
.sidebar nav li > details > summary[data-size=default] {
|
|
1265
|
+
.sidebar > nav li > :is(a, button):not([data-size]),
|
|
1266
|
+
.sidebar > nav li > details > summary:not([data-size]),
|
|
1267
|
+
.sidebar > nav li > :is(a, button)[data-size=default],
|
|
1268
|
+
.sidebar > nav li > details > summary[data-size=default] {
|
|
1260
1269
|
@apply h-9 text-sm;
|
|
1261
1270
|
}
|
|
1262
1271
|
|
|
1263
|
-
.sidebar nav li > :is(a, button)[data-size=sm],
|
|
1264
|
-
.sidebar nav li > details > summary[data-size=sm] {
|
|
1272
|
+
.sidebar > nav li > :is(a, button)[data-size=sm],
|
|
1273
|
+
.sidebar > nav li > details > summary[data-size=sm] {
|
|
1265
1274
|
@apply h-8 text-xs;
|
|
1266
1275
|
}
|
|
1267
1276
|
|
|
1268
|
-
.sidebar nav li > :is(a, button)[data-size=lg],
|
|
1269
|
-
.sidebar nav li > details > summary[data-size=lg] {
|
|
1277
|
+
.sidebar > nav li > :is(a, button)[data-size=lg],
|
|
1278
|
+
.sidebar > nav li > details > summary[data-size=lg] {
|
|
1270
1279
|
@apply h-14 px-3 text-sm;
|
|
1271
1280
|
}
|
|
1272
1281
|
|
|
1273
|
-
.sidebar nav li > details > summary::after {
|
|
1282
|
+
.sidebar > nav li > details > summary::after {
|
|
1274
1283
|
@apply size-3.5;
|
|
1275
1284
|
}
|
|
1276
1285
|
|
|
1277
|
-
.sidebar nav li > details::details-content {
|
|
1286
|
+
.sidebar > nav li > details::details-content {
|
|
1278
1287
|
@apply px-3.5;
|
|
1279
1288
|
}
|
|
1280
1289
|
|
|
1281
|
-
.sidebar nav ul ul {
|
|
1290
|
+
.sidebar > nav ul ul {
|
|
1282
1291
|
@apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
|
|
1283
1292
|
}
|
|
1284
1293
|
|
|
1285
|
-
.sidebar nav ul ul > li > :is(a, button),
|
|
1286
|
-
.sidebar nav ul ul > li > details > summary {
|
|
1294
|
+
.sidebar > nav ul ul > li > :is(a, button),
|
|
1295
|
+
.sidebar > nav ul ul > li > details > summary {
|
|
1287
1296
|
@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;
|
|
1288
1297
|
}
|
|
1289
1298
|
/* Progress */
|
|
@@ -1340,7 +1349,7 @@
|
|
|
1340
1349
|
|
|
1341
1350
|
/* Tooltip */
|
|
1342
1351
|
[data-tooltip]::before {
|
|
1343
|
-
@apply bg-foreground text-background
|
|
1352
|
+
@apply bg-foreground text-background rounded-none px-3 py-1.5 text-xs;
|
|
1344
1353
|
}
|
|
1345
1354
|
|
|
1346
1355
|
[data-tooltip][data-arrow]::after {
|
|
@@ -1378,15 +1387,42 @@
|
|
|
1378
1387
|
}
|
|
1379
1388
|
|
|
1380
1389
|
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
1381
|
-
@apply size-3 border-none bg-primary transition-colors
|
|
1390
|
+
@apply size-3 border-none bg-primary transition-colors -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)];
|
|
1382
1391
|
}
|
|
1383
1392
|
|
|
1384
1393
|
:is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
1385
|
-
@apply size-3 border-none bg-primary transition-colors
|
|
1394
|
+
@apply size-3 border-none bg-primary transition-colors;
|
|
1386
1395
|
}
|
|
1387
1396
|
|
|
1388
1397
|
:is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
1389
|
-
@apply size-3 border-none bg-primary transition-colors
|
|
1398
|
+
@apply size-3 border-none bg-primary transition-colors;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/* States go before the thumb pseudo-element so they still apply with native CSS nesting. */
|
|
1402
|
+
@media (hover: hover) {
|
|
1403
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-webkit-slider-thumb {
|
|
1404
|
+
@apply ring-2 ring-ring/30;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-moz-range-thumb {
|
|
1408
|
+
@apply ring-2 ring-ring/30;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
:is(.field > input[type='range'], .input[type='range']):hover::-ms-thumb {
|
|
1412
|
+
@apply ring-2 ring-ring/30;
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-webkit-slider-thumb {
|
|
1417
|
+
@apply ring-2 ring-ring/30 outline-hidden;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-moz-range-thumb {
|
|
1421
|
+
@apply ring-2 ring-ring/30 outline-hidden;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
:is(.field > input[type='range'], .input[type='range']):focus-visible::-ms-thumb {
|
|
1425
|
+
@apply ring-2 ring-ring/30 outline-hidden;
|
|
1390
1426
|
}
|
|
1391
1427
|
|
|
1392
1428
|
}
|