@citrusworx/juiceui 0.9.0 → 0.9.2
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 +42 -7
- package/dist/index.css +1383 -114
- package/dist/index.d.ts +16 -0
- package/dist/index.js +2174 -913
- package/dist/js/juice.d.ts +16 -0
- package/dist/js/src/disclosure/disclosure-runtime.d.ts +51 -0
- package/dist/js/src/drawer/drawer-runtime.d.ts +6 -0
- package/dist/js/src/field/field-runtime.d.ts +53 -0
- package/dist/js/src/input/input-runtime.d.ts +55 -0
- package/dist/js/src/modal/modal-runtime.d.ts +6 -0
- package/dist/js/src/pagination/pagination-runtime.d.ts +79 -0
- package/dist/js/src/popover/popover-runtime.d.ts +5 -0
- package/dist/js/src/select/select-runtime.d.ts +52 -0
- package/dist/js/src/shared/motion.d.ts +48 -0
- package/dist/js/src/spinner/spinner-runtime.d.ts +51 -0
- package/dist/js/src/textarea/textarea-runtime.d.ts +51 -0
- package/dist/js/src/toast/toast-runtime.d.ts +5 -0
- package/dist/themes/aquaflux.css +411 -0
- package/dist/themes/citrusmint.css +404 -0
- package/dist/themes/kiwipress.css +410 -0
- package/dist/themes/retro-afterburn.css +2019 -0
- package/dist/themes/retro-arcade-glow.css +2019 -0
- package/dist/themes/retro-boardwalk.css +2082 -0
- package/dist/themes/retro-denim-dial.css +1871 -0
- package/dist/themes/retro-forest-radio.css +1871 -0
- package/dist/themes/retro-orchard-club.css +1871 -0
- package/dist/themes/retro-poolside-pop.css +1871 -0
- package/dist/themes/retro-signal-garden.css +1871 -0
- package/dist/themes/retro-sunset-motel.css +1871 -0
- package/dist/themes/retro-violet-parlor.css +1871 -0
- package/dist/themes/tide.css +403 -0
- package/package.json +92 -2
|
@@ -379,6 +379,120 @@
|
|
|
379
379
|
--juice-progress-fill: var(--cm-progress-fill);
|
|
380
380
|
--juice-progress-ink: var(--cm-progress-ink);
|
|
381
381
|
--juice-progress-focus-ring: var(--cm-progress-focus-ring);
|
|
382
|
+
/* Pagination chrome — thinner --cm-* set. Heading stands in for accent
|
|
383
|
+
on the current page, same as slider fill. Page controls are surfaces,
|
|
384
|
+
not heading-fill. The trail stays transparent. Distinct from
|
|
385
|
+
breadcrumb, nav[type="pagination"], tabs, and wizard steps. */
|
|
386
|
+
--cm-pagination-surface: var(--cm-surface);
|
|
387
|
+
--cm-pagination-surface-hover: var(--cm-surface-muted);
|
|
388
|
+
--cm-pagination-surface-current: var(--cm-heading);
|
|
389
|
+
--cm-pagination-ink: var(--cm-text);
|
|
390
|
+
--cm-pagination-ink-hover: var(--cm-heading);
|
|
391
|
+
--cm-pagination-ink-current: var(--cm-surface);
|
|
392
|
+
--cm-pagination-ink-disabled: var(--cm-text-muted);
|
|
393
|
+
--cm-pagination-border: var(--cm-border);
|
|
394
|
+
--cm-pagination-focus-ring: var(--cm-heading);
|
|
395
|
+
--cm-pagination-ellipsis: var(--cm-text-muted);
|
|
396
|
+
--juice-pagination-surface: var(--cm-pagination-surface);
|
|
397
|
+
--juice-pagination-surface-hover: var(--cm-pagination-surface-hover);
|
|
398
|
+
--juice-pagination-surface-current: var(--cm-pagination-surface-current);
|
|
399
|
+
--juice-pagination-ink: var(--cm-pagination-ink);
|
|
400
|
+
--juice-pagination-ink-hover: var(--cm-pagination-ink-hover);
|
|
401
|
+
--juice-pagination-ink-current: var(--cm-pagination-ink-current);
|
|
402
|
+
--juice-pagination-ink-disabled: var(--cm-pagination-ink-disabled);
|
|
403
|
+
--juice-pagination-border: var(--cm-pagination-border);
|
|
404
|
+
--juice-pagination-focus-ring: var(--cm-pagination-focus-ring);
|
|
405
|
+
--juice-pagination-ellipsis: var(--cm-pagination-ellipsis);
|
|
406
|
+
/* Disclosure chrome — standalone APG disclosure from the thinner --cm-* set.
|
|
407
|
+
No accent token: heading stands in for the chevron and focus ring.
|
|
408
|
+
Not an accordion and not a heading-fill CTA. */
|
|
409
|
+
--cm-disclosure-surface: var(--cm-surface);
|
|
410
|
+
--cm-disclosure-border: var(--cm-border);
|
|
411
|
+
--cm-disclosure-trigger: var(--cm-surface);
|
|
412
|
+
--cm-disclosure-trigger-hover: var(--cm-surface-muted);
|
|
413
|
+
--cm-disclosure-trigger-open: var(--cm-surface-muted);
|
|
414
|
+
--cm-disclosure-ink: var(--cm-text);
|
|
415
|
+
--cm-disclosure-chevron: var(--cm-heading);
|
|
416
|
+
--cm-disclosure-focus-ring: var(--cm-heading);
|
|
417
|
+
--juice-disclosure-surface: var(--cm-disclosure-surface);
|
|
418
|
+
--juice-disclosure-border: var(--cm-disclosure-border);
|
|
419
|
+
--juice-disclosure-trigger: var(--cm-disclosure-trigger);
|
|
420
|
+
--juice-disclosure-trigger-hover: var(--cm-disclosure-trigger-hover);
|
|
421
|
+
--juice-disclosure-trigger-open: var(--cm-disclosure-trigger-open);
|
|
422
|
+
--juice-disclosure-ink: var(--cm-disclosure-ink);
|
|
423
|
+
--juice-disclosure-chevron: var(--cm-disclosure-chevron);
|
|
424
|
+
--juice-disclosure-focus-ring: var(--cm-disclosure-focus-ring);
|
|
425
|
+
/* Spinner chrome — standalone indeterminate busy indicator. No accent
|
|
426
|
+
token: heading stands in for the indicator and focus ring. The ring
|
|
427
|
+
is a border stroke, not heading-fill and not a progress bar.
|
|
428
|
+
Inline status — no overlay. CSS owns the spin. Runtime is later. */
|
|
429
|
+
--cm-spinner-track: var(--cm-border);
|
|
430
|
+
--cm-spinner-indicator: var(--cm-heading);
|
|
431
|
+
--cm-spinner-ink: var(--cm-text);
|
|
432
|
+
--cm-spinner-focus-ring: var(--cm-heading);
|
|
433
|
+
--juice-spinner-track: var(--cm-spinner-track);
|
|
434
|
+
--juice-spinner-indicator: var(--cm-spinner-indicator);
|
|
435
|
+
--juice-spinner-ink: var(--cm-spinner-ink);
|
|
436
|
+
--juice-spinner-focus-ring: var(--cm-spinner-focus-ring);
|
|
437
|
+
/* Select chrome — styled native <select>. No accent token: heading
|
|
438
|
+
stands in for the chevron and focus ring. Field is a surface, not
|
|
439
|
+
a heading-fill CTA and not a combobox. The platform popup stays
|
|
440
|
+
native. Runtime is later. */
|
|
441
|
+
--cm-select-surface: var(--cm-surface);
|
|
442
|
+
--cm-select-border: var(--cm-border);
|
|
443
|
+
--cm-select-ink: var(--cm-text);
|
|
444
|
+
--cm-select-chevron: var(--cm-heading);
|
|
445
|
+
--cm-select-focus-ring: var(--cm-heading);
|
|
446
|
+
--juice-select-surface: var(--cm-select-surface);
|
|
447
|
+
--juice-select-border: var(--cm-select-border);
|
|
448
|
+
--juice-select-ink: var(--cm-select-ink);
|
|
449
|
+
--juice-select-chevron: var(--cm-select-chevron);
|
|
450
|
+
--juice-select-focus-ring: var(--cm-select-focus-ring);
|
|
451
|
+
/* Input chrome — styled native text field. No accent token: heading
|
|
452
|
+
stands in for the focus ring. Field is a surface, not a
|
|
453
|
+
heading-fill CTA and not a combobox. Placeholder is muted text.
|
|
454
|
+
Text-like types only. Runtime is later. */
|
|
455
|
+
--cm-input-surface: var(--cm-surface);
|
|
456
|
+
--cm-input-border: var(--cm-border);
|
|
457
|
+
--cm-input-ink: var(--cm-text);
|
|
458
|
+
--cm-input-placeholder: var(--cm-text-muted);
|
|
459
|
+
--cm-input-focus-ring: var(--cm-heading);
|
|
460
|
+
--juice-input-surface: var(--cm-input-surface);
|
|
461
|
+
--juice-input-border: var(--cm-input-border);
|
|
462
|
+
--juice-input-ink: var(--cm-input-ink);
|
|
463
|
+
--juice-input-placeholder: var(--cm-input-placeholder);
|
|
464
|
+
--juice-input-focus-ring: var(--cm-input-focus-ring);
|
|
465
|
+
/* Textarea chrome — styled native multi-line field. No accent token:
|
|
466
|
+
heading stands in for the focus ring. Field is a surface, not a
|
|
467
|
+
heading-fill CTA and not an input. Placeholder is muted text.
|
|
468
|
+
Runtime is later. */
|
|
469
|
+
--cm-textarea-surface: var(--cm-surface);
|
|
470
|
+
--cm-textarea-border: var(--cm-border);
|
|
471
|
+
--cm-textarea-ink: var(--cm-text);
|
|
472
|
+
--cm-textarea-placeholder: var(--cm-text-muted);
|
|
473
|
+
--cm-textarea-focus-ring: var(--cm-heading);
|
|
474
|
+
--juice-textarea-surface: var(--cm-textarea-surface);
|
|
475
|
+
--juice-textarea-border: var(--cm-textarea-border);
|
|
476
|
+
--juice-textarea-ink: var(--cm-textarea-ink);
|
|
477
|
+
--juice-textarea-placeholder: var(--cm-textarea-placeholder);
|
|
478
|
+
--juice-textarea-focus-ring: var(--cm-textarea-focus-ring);
|
|
479
|
+
/* Field chrome — wrapper around a control. No accent token:
|
|
480
|
+
error ink and the invalid border reuse banner error, not heading.
|
|
481
|
+
Surface is a field, not a heading-fill CTA. Help is muted text.
|
|
482
|
+
Not an input, not a textarea, and not a select.
|
|
483
|
+
Runtime is later. */
|
|
484
|
+
--cm-field-surface: var(--cm-surface);
|
|
485
|
+
--cm-field-gap: 0.5rem;
|
|
486
|
+
--cm-field-label-ink: var(--cm-text);
|
|
487
|
+
--cm-field-help-ink: var(--cm-text-muted);
|
|
488
|
+
--cm-field-error-ink: var(--cm-banner-error);
|
|
489
|
+
--cm-field-invalid-border: var(--cm-banner-error);
|
|
490
|
+
--juice-field-surface: var(--cm-field-surface);
|
|
491
|
+
--juice-field-gap: var(--cm-field-gap);
|
|
492
|
+
--juice-field-label-ink: var(--cm-field-label-ink);
|
|
493
|
+
--juice-field-help-ink: var(--cm-field-help-ink);
|
|
494
|
+
--juice-field-error-ink: var(--cm-field-error-ink);
|
|
495
|
+
--juice-field-invalid-border: var(--cm-field-invalid-border);
|
|
382
496
|
background-color: var(--cm-page);
|
|
383
497
|
color: var(--cm-text);
|
|
384
498
|
font-family: var(--cm-body-font);
|
|
@@ -1025,4 +1139,294 @@
|
|
|
1025
1139
|
[theme=citrusmint] [progress]:focus-visible {
|
|
1026
1140
|
outline: 2px solid var(--juice-progress-focus-ring);
|
|
1027
1141
|
outline-offset: 2px;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
/* Pagination chrome. Beat generic fills and button CTAs. Heading paints
|
|
1145
|
+
the current page, not a CTA. The trail stays inline. Runtime is later. */
|
|
1146
|
+
[theme=citrusmint] [pagination],
|
|
1147
|
+
[theme=citrusmint] nav[pagination] {
|
|
1148
|
+
background-color: transparent;
|
|
1149
|
+
border: none;
|
|
1150
|
+
box-shadow: none;
|
|
1151
|
+
-webkit-backdrop-filter: none;
|
|
1152
|
+
backdrop-filter: none;
|
|
1153
|
+
color: var(--juice-pagination-ink);
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
[theme=citrusmint] [pagination] a,
|
|
1157
|
+
[theme=citrusmint] [pagination-link],
|
|
1158
|
+
[theme=citrusmint] a[pagination-link],
|
|
1159
|
+
[theme=citrusmint] button[pagination-link],
|
|
1160
|
+
[theme=citrusmint] button[pagination-prev],
|
|
1161
|
+
[theme=citrusmint] button[pagination-next] {
|
|
1162
|
+
background-color: var(--juice-pagination-surface);
|
|
1163
|
+
border-color: var(--juice-pagination-border);
|
|
1164
|
+
color: var(--juice-pagination-ink);
|
|
1165
|
+
box-shadow: none;
|
|
1166
|
+
transform: none;
|
|
1167
|
+
text-decoration: none;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
[theme=citrusmint] [pagination] a:hover,
|
|
1171
|
+
[theme=citrusmint] [pagination-link]:hover,
|
|
1172
|
+
[theme=citrusmint] button[pagination-link]:hover,
|
|
1173
|
+
[theme=citrusmint] button[pagination-prev]:hover,
|
|
1174
|
+
[theme=citrusmint] button[pagination-next]:hover {
|
|
1175
|
+
background-color: var(--juice-pagination-surface-hover);
|
|
1176
|
+
color: var(--juice-pagination-ink-hover);
|
|
1177
|
+
box-shadow: none;
|
|
1178
|
+
transform: none;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
[theme=citrusmint] [pagination] [aria-current=page],
|
|
1182
|
+
[theme=citrusmint] [pagination] [aria-current=page] :is(a, button, [pagination-link]),
|
|
1183
|
+
[theme=citrusmint] [pagination-link][aria-current=page] {
|
|
1184
|
+
background-color: var(--juice-pagination-surface-current);
|
|
1185
|
+
color: var(--juice-pagination-ink-current);
|
|
1186
|
+
box-shadow: none;
|
|
1187
|
+
transform: none;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
[theme=citrusmint] [pagination] :is(a, button, [pagination-link]):is(:disabled, [disabled], [aria-disabled=true]),
|
|
1191
|
+
[theme=citrusmint] [pagination] [aria-disabled=true] :is(a, button, [pagination-link]) {
|
|
1192
|
+
background-color: var(--juice-pagination-surface);
|
|
1193
|
+
color: var(--juice-pagination-ink-disabled);
|
|
1194
|
+
box-shadow: none;
|
|
1195
|
+
transform: none;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
[theme=citrusmint] [pagination] a:focus-visible,
|
|
1199
|
+
[theme=citrusmint] [pagination-link]:focus-visible,
|
|
1200
|
+
[theme=citrusmint] button[pagination-link]:focus-visible,
|
|
1201
|
+
[theme=citrusmint] button[pagination-prev]:focus-visible,
|
|
1202
|
+
[theme=citrusmint] button[pagination-next]:focus-visible {
|
|
1203
|
+
outline: 2px solid var(--juice-pagination-focus-ring);
|
|
1204
|
+
outline-offset: 2px;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
/* Disclosure chrome. Beat generic fills and button CTAs. Heading paints
|
|
1208
|
+
the chevron, not a CTA. Not an accordion. Runtime is later. */
|
|
1209
|
+
[theme=citrusmint] [disclosure] {
|
|
1210
|
+
background-image: none;
|
|
1211
|
+
background-color: transparent;
|
|
1212
|
+
border-color: var(--juice-disclosure-border);
|
|
1213
|
+
box-shadow: none;
|
|
1214
|
+
color: var(--juice-disclosure-ink);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
[theme=citrusmint] button[disclosure-trigger],
|
|
1218
|
+
[theme=citrusmint] a[disclosure-trigger],
|
|
1219
|
+
[theme=citrusmint] [disclosure-trigger] {
|
|
1220
|
+
background-image: none;
|
|
1221
|
+
background-color: var(--juice-disclosure-trigger);
|
|
1222
|
+
color: var(--juice-disclosure-ink);
|
|
1223
|
+
box-shadow: none;
|
|
1224
|
+
transform: none;
|
|
1225
|
+
text-decoration: none;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
[theme=citrusmint] button[disclosure-trigger]:hover,
|
|
1229
|
+
[theme=citrusmint] a[disclosure-trigger]:hover,
|
|
1230
|
+
[theme=citrusmint] [disclosure-trigger]:hover {
|
|
1231
|
+
background-image: none;
|
|
1232
|
+
background-color: var(--juice-disclosure-trigger-hover);
|
|
1233
|
+
color: var(--juice-disclosure-ink);
|
|
1234
|
+
box-shadow: none;
|
|
1235
|
+
transform: none;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
[theme=citrusmint] button[disclosure-trigger][aria-expanded=true],
|
|
1239
|
+
[theme=citrusmint] a[disclosure-trigger][aria-expanded=true],
|
|
1240
|
+
[theme=citrusmint] [disclosure-trigger][aria-expanded=true] {
|
|
1241
|
+
background-image: none;
|
|
1242
|
+
background-color: var(--juice-disclosure-trigger-open);
|
|
1243
|
+
color: var(--juice-disclosure-ink);
|
|
1244
|
+
box-shadow: none;
|
|
1245
|
+
transform: none;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
[theme=citrusmint] [disclosure-trigger]::after {
|
|
1249
|
+
border-color: var(--juice-disclosure-chevron);
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
[theme=citrusmint] button[disclosure-trigger]:focus-visible,
|
|
1253
|
+
[theme=citrusmint] a[disclosure-trigger]:focus-visible,
|
|
1254
|
+
[theme=citrusmint] [disclosure-trigger]:focus-visible {
|
|
1255
|
+
outline: 2px solid var(--juice-disclosure-focus-ring);
|
|
1256
|
+
outline-offset: 2px;
|
|
1257
|
+
box-shadow: none;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
[theme=citrusmint] [disclosure-panel],
|
|
1261
|
+
[theme=citrusmint] [disclosure] > [disclosure-trigger] + :not([disclosure-trigger]) {
|
|
1262
|
+
background-image: none;
|
|
1263
|
+
background-color: var(--juice-disclosure-surface);
|
|
1264
|
+
border-color: var(--juice-disclosure-border);
|
|
1265
|
+
color: var(--juice-disclosure-ink);
|
|
1266
|
+
box-shadow: none;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
/* Spinner chrome. Beat generic div fills.
|
|
1270
|
+
Heading paints the indicator, not a CTA. Not a progress bar.
|
|
1271
|
+
CSS owns the spin. Runtime is later. */
|
|
1272
|
+
[theme=citrusmint] [spinner] {
|
|
1273
|
+
background-image: none;
|
|
1274
|
+
background-color: transparent;
|
|
1275
|
+
border: none;
|
|
1276
|
+
box-shadow: none;
|
|
1277
|
+
color: var(--juice-spinner-ink);
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
[theme=citrusmint] [spinner]::before {
|
|
1281
|
+
background-image: none;
|
|
1282
|
+
background-color: transparent;
|
|
1283
|
+
border-color: var(--juice-spinner-track);
|
|
1284
|
+
border-top-color: var(--juice-spinner-indicator);
|
|
1285
|
+
box-shadow: none;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
[theme=citrusmint] [spinner-label] {
|
|
1289
|
+
background-image: none;
|
|
1290
|
+
background-color: transparent;
|
|
1291
|
+
color: var(--juice-spinner-ink);
|
|
1292
|
+
box-shadow: none;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
[theme=citrusmint] [spinner]:focus-visible {
|
|
1296
|
+
outline: 2px solid var(--juice-spinner-focus-ring);
|
|
1297
|
+
outline-offset: 2px;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
/* Select chrome. Beat [theme] :where(select) defaults.
|
|
1301
|
+
Heading paints the chevron and focus ring, not a CTA.
|
|
1302
|
+
Not a combobox. Chevron stays a background so the control still opens.
|
|
1303
|
+
Runtime is later. */
|
|
1304
|
+
[theme=citrusmint] select[select] {
|
|
1305
|
+
background-color: var(--juice-select-surface);
|
|
1306
|
+
border-color: var(--juice-select-border);
|
|
1307
|
+
color: var(--juice-select-ink);
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
[theme=citrusmint] select[select]:focus-visible {
|
|
1311
|
+
outline: 2px solid var(--juice-select-focus-ring);
|
|
1312
|
+
outline-offset: 2px;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
[theme=citrusmint] [select-label] {
|
|
1316
|
+
background-image: none;
|
|
1317
|
+
background-color: transparent;
|
|
1318
|
+
color: var(--juice-select-ink);
|
|
1319
|
+
box-shadow: none;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
/* Input chrome. Beat [theme] :where(input) defaults.
|
|
1323
|
+
Styled native text field, not a combobox, not a select, and not a CTA.
|
|
1324
|
+
Text-like types only. Border color only, so KiwiPress keeps its 2px
|
|
1325
|
+
control border. Runtime is later. */
|
|
1326
|
+
[theme=citrusmint] input[input]:is(:not([type]),
|
|
1327
|
+
[type=""],
|
|
1328
|
+
[type=text i],
|
|
1329
|
+
[type=email i],
|
|
1330
|
+
[type=password i],
|
|
1331
|
+
[type=search i],
|
|
1332
|
+
[type=tel i],
|
|
1333
|
+
[type=url i],
|
|
1334
|
+
[type=number i]):not([combobox-input]) {
|
|
1335
|
+
background-color: var(--juice-input-surface);
|
|
1336
|
+
border-color: var(--juice-input-border);
|
|
1337
|
+
color: var(--juice-input-ink);
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
[theme=citrusmint] input[input]:is(:not([type]),
|
|
1341
|
+
[type=""],
|
|
1342
|
+
[type=text i],
|
|
1343
|
+
[type=email i],
|
|
1344
|
+
[type=password i],
|
|
1345
|
+
[type=search i],
|
|
1346
|
+
[type=tel i],
|
|
1347
|
+
[type=url i],
|
|
1348
|
+
[type=number i]):not([combobox-input])::placeholder {
|
|
1349
|
+
color: var(--juice-input-placeholder);
|
|
1350
|
+
opacity: 1;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
[theme=citrusmint] input[input]:is(:not([type]),
|
|
1354
|
+
[type=""],
|
|
1355
|
+
[type=text i],
|
|
1356
|
+
[type=email i],
|
|
1357
|
+
[type=password i],
|
|
1358
|
+
[type=search i],
|
|
1359
|
+
[type=tel i],
|
|
1360
|
+
[type=url i],
|
|
1361
|
+
[type=number i]):not([combobox-input]):focus-visible {
|
|
1362
|
+
outline: 2px solid var(--juice-input-focus-ring);
|
|
1363
|
+
outline-offset: 2px;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
[theme=citrusmint] [input-label] {
|
|
1367
|
+
background-image: none;
|
|
1368
|
+
background-color: transparent;
|
|
1369
|
+
color: var(--juice-input-ink);
|
|
1370
|
+
box-shadow: none;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
/* Textarea chrome. Beat [theme] :where(textarea) defaults.
|
|
1374
|
+
Styled native multi-line field, not an input, not a select, and not a
|
|
1375
|
+
combobox. Border color only, so KiwiPress keeps its 2px control border.
|
|
1376
|
+
Runtime is later. */
|
|
1377
|
+
[theme=citrusmint] textarea[textarea] {
|
|
1378
|
+
background-color: var(--juice-textarea-surface);
|
|
1379
|
+
border-color: var(--juice-textarea-border);
|
|
1380
|
+
color: var(--juice-textarea-ink);
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
[theme=citrusmint] textarea[textarea]::placeholder {
|
|
1384
|
+
color: var(--juice-textarea-placeholder);
|
|
1385
|
+
opacity: 1;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
[theme=citrusmint] textarea[textarea]:focus-visible {
|
|
1389
|
+
outline: 2px solid var(--juice-textarea-focus-ring);
|
|
1390
|
+
outline-offset: 2px;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
[theme=citrusmint] [textarea-label] {
|
|
1394
|
+
background-image: none;
|
|
1395
|
+
background-color: transparent;
|
|
1396
|
+
color: var(--juice-textarea-ink);
|
|
1397
|
+
box-shadow: none;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
/* Field chrome. Wrapper around a control — label, help, error, invalid.
|
|
1401
|
+
Not an input, not a textarea, not a select, and not the legacy form
|
|
1402
|
+
layout. Paint is surface, gap, ink, and the invalid border, so nested
|
|
1403
|
+
controls keep their own chrome. Runtime is later. */
|
|
1404
|
+
[theme=citrusmint] [field] {
|
|
1405
|
+
background-color: var(--juice-field-surface);
|
|
1406
|
+
gap: var(--juice-field-gap);
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
[theme=citrusmint] [field][invalid] {
|
|
1410
|
+
border-color: var(--juice-field-invalid-border);
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
[theme=citrusmint] [field-label] {
|
|
1414
|
+
background-image: none;
|
|
1415
|
+
background-color: transparent;
|
|
1416
|
+
color: var(--juice-field-label-ink);
|
|
1417
|
+
box-shadow: none;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
[theme=citrusmint] [field-help] {
|
|
1421
|
+
background-image: none;
|
|
1422
|
+
background-color: transparent;
|
|
1423
|
+
color: var(--juice-field-help-ink);
|
|
1424
|
+
box-shadow: none;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
[theme=citrusmint] [field-error] {
|
|
1428
|
+
background-image: none;
|
|
1429
|
+
background-color: transparent;
|
|
1430
|
+
color: var(--juice-field-error-ink);
|
|
1431
|
+
box-shadow: none;
|
|
1028
1432
|
}
|