@salemcobalt/ui 0.2.0-rc.2 → 0.2.0-rc.20
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 +96 -19
- package/dist/codemirror-D3Z4MYFA.js +376 -0
- package/dist/codemirror-D3Z4MYFA.js.map +1 -0
- package/dist/editor.d.ts +46 -0
- package/dist/editor.js +149 -0
- package/dist/editor.js.map +1 -0
- package/dist/index.d.ts +1362 -60
- package/dist/index.js +2275 -76
- package/dist/index.js.map +1 -1
- package/dist/markdown-5O5GUVBJ.js +10 -0
- package/dist/markdown-5O5GUVBJ.js.map +1 -0
- package/dist/styles.css +3677 -46
- package/package.json +59 -6
package/dist/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @salemcobalt/ui 0.2.0-rc.
|
|
1
|
+
/* @salemcobalt/ui 0.2.0-rc.20 — requires @salemcobalt/tokens/css. */
|
|
2
2
|
@layer sc {
|
|
3
3
|
/* ---- base.css ---- */
|
|
4
4
|
/* Shared: focus ring, reduced motion. Component files follow. */
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
.sc-input:focus-visible,
|
|
11
11
|
.sc-select:focus-visible,
|
|
12
12
|
.sc-select__item:focus-visible,
|
|
13
|
+
.sc-select__clear:focus-visible,
|
|
13
14
|
.sc-checkbox:focus-visible,
|
|
14
15
|
.sc-switch:focus-visible,
|
|
15
16
|
.sc-tabs__tab:focus-visible,
|
|
@@ -72,6 +73,16 @@
|
|
|
72
73
|
line-height: var(--sc-font-line-height-tight);
|
|
73
74
|
letter-spacing: var(--sc-font-tracking-tight);
|
|
74
75
|
}
|
|
76
|
+
/* Overline: a section label. 12px uppercase mono with wide tracking; muted unless a tone is set. */
|
|
77
|
+
.sc-heading[data-size='overline'] {
|
|
78
|
+
font-family: var(--sc-font-family-mono);
|
|
79
|
+
font-size: var(--sc-font-size-xs);
|
|
80
|
+
font-weight: var(--sc-font-weight-medium);
|
|
81
|
+
line-height: var(--sc-font-line-height-snug);
|
|
82
|
+
letter-spacing: var(--sc-font-tracking-wider);
|
|
83
|
+
text-transform: uppercase;
|
|
84
|
+
text-wrap: wrap;
|
|
85
|
+
}
|
|
75
86
|
.sc-heading[data-truncate] {
|
|
76
87
|
overflow: hidden;
|
|
77
88
|
text-overflow: ellipsis;
|
|
@@ -116,6 +127,9 @@
|
|
|
116
127
|
.sc-text[data-numeric] {
|
|
117
128
|
font-variant-numeric: tabular-nums;
|
|
118
129
|
}
|
|
130
|
+
.sc-text[data-family='mono'] {
|
|
131
|
+
font-family: var(--sc-font-family-mono);
|
|
132
|
+
}
|
|
119
133
|
.sc-text[data-truncate=''] {
|
|
120
134
|
overflow: hidden;
|
|
121
135
|
text-overflow: ellipsis;
|
|
@@ -305,6 +319,10 @@
|
|
|
305
319
|
.sc-button[data-loading] > .sc-button__label {
|
|
306
320
|
opacity: 0;
|
|
307
321
|
}
|
|
322
|
+
/* Its own line box, so descenders sit inside the label (the button sets line-height: 1 for centring). */
|
|
323
|
+
.sc-button__label {
|
|
324
|
+
line-height: var(--sc-font-line-height-ui);
|
|
325
|
+
}
|
|
308
326
|
.sc-button__icon {
|
|
309
327
|
display: inline-flex;
|
|
310
328
|
inline-size: 1.125em;
|
|
@@ -324,6 +342,51 @@
|
|
|
324
342
|
border-inline-end-color: transparent;
|
|
325
343
|
animation: sc-spin 0.8s linear infinite;
|
|
326
344
|
}
|
|
345
|
+
/* Icon-only: square, the label kept for assistive tech only, no shortcut hint. Same element, so focus and
|
|
346
|
+
any open tooltip survive the switch. */
|
|
347
|
+
.sc-button[data-icon-only] {
|
|
348
|
+
inline-size: var(--_h);
|
|
349
|
+
padding-inline: 0;
|
|
350
|
+
}
|
|
351
|
+
.sc-button[data-icon-only] > .sc-button__label {
|
|
352
|
+
position: absolute;
|
|
353
|
+
inline-size: 1px;
|
|
354
|
+
block-size: 1px;
|
|
355
|
+
overflow: hidden;
|
|
356
|
+
clip-path: inset(50%);
|
|
357
|
+
white-space: nowrap;
|
|
358
|
+
}
|
|
359
|
+
.sc-button[data-icon-only] > .sc-button__shortcut {
|
|
360
|
+
display: none;
|
|
361
|
+
}
|
|
362
|
+
/* A shortcut hint after the label: a Kbd tinted to the button's own colour, so it reads on every variant. */
|
|
363
|
+
.sc-button__shortcut {
|
|
364
|
+
display: inline-flex;
|
|
365
|
+
align-items: center;
|
|
366
|
+
gap: var(--sc-spacing-3xs);
|
|
367
|
+
flex: none;
|
|
368
|
+
margin-inline-start: var(--sc-spacing-3xs);
|
|
369
|
+
}
|
|
370
|
+
.sc-button__shortcut .sc-kbd {
|
|
371
|
+
background: transparent;
|
|
372
|
+
color: inherit;
|
|
373
|
+
border-color: currentColor;
|
|
374
|
+
box-shadow: none;
|
|
375
|
+
opacity: 0.72;
|
|
376
|
+
}
|
|
377
|
+
.sc-button__shortcut .sc-kbd-group {
|
|
378
|
+
color: inherit;
|
|
379
|
+
}
|
|
380
|
+
.sc-button[data-loading] > .sc-button__shortcut {
|
|
381
|
+
opacity: 0;
|
|
382
|
+
}
|
|
383
|
+
/* No hint where there is no fine pointer (phones, tablets without a trackpad): touch users rarely have the keys,
|
|
384
|
+
and the hint costs width. A tablet with a trackpad (any-pointer: fine) keeps it. `aria-keyshortcuts` stays. */
|
|
385
|
+
@media not all and (any-pointer: fine) {
|
|
386
|
+
.sc-button__shortcut {
|
|
387
|
+
display: none;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
327
390
|
@keyframes sc-spin {
|
|
328
391
|
to {
|
|
329
392
|
rotate: 1turn;
|
|
@@ -360,6 +423,40 @@
|
|
|
360
423
|
.sc-icon-button[data-loading] > .sc-button__icon {
|
|
361
424
|
opacity: 0;
|
|
362
425
|
}
|
|
426
|
+
/* Status dot, top-left: icons such as the broom own the top-right and fill the bottom. Physical corner on
|
|
427
|
+
purpose, because the glyph does not mirror in RTL either. */
|
|
428
|
+
.sc-icon-button__dot {
|
|
429
|
+
--_dot: var(--sc-color-accent-default);
|
|
430
|
+
position: absolute;
|
|
431
|
+
inset: var(--sc-spacing-2xs) auto auto var(--sc-spacing-2xs);
|
|
432
|
+
inline-size: 8px;
|
|
433
|
+
block-size: 8px;
|
|
434
|
+
border-radius: var(--sc-radius-full);
|
|
435
|
+
background: var(--_dot);
|
|
436
|
+
box-shadow: 0 0 0 var(--sc-border-width-focus)
|
|
437
|
+
var(--sc-icon-button-dot-ring, var(--sc-color-surface-default));
|
|
438
|
+
pointer-events: none;
|
|
439
|
+
}
|
|
440
|
+
.sc-icon-button[data-size='sm'] > .sc-icon-button__dot {
|
|
441
|
+
inset: var(--sc-spacing-3xs) auto auto var(--sc-spacing-3xs);
|
|
442
|
+
inline-size: 6px;
|
|
443
|
+
block-size: 6px;
|
|
444
|
+
}
|
|
445
|
+
.sc-icon-button__dot[data-tone='neutral'] {
|
|
446
|
+
--_dot: var(--sc-color-text-subtle);
|
|
447
|
+
}
|
|
448
|
+
.sc-icon-button__dot[data-tone='success'] {
|
|
449
|
+
--_dot: var(--sc-color-success-solid);
|
|
450
|
+
}
|
|
451
|
+
.sc-icon-button__dot[data-tone='warning'] {
|
|
452
|
+
--_dot: var(--sc-color-warning-solid);
|
|
453
|
+
}
|
|
454
|
+
.sc-icon-button__dot[data-tone='danger'] {
|
|
455
|
+
--_dot: var(--sc-color-danger-solid);
|
|
456
|
+
}
|
|
457
|
+
.sc-icon-button__dot[data-tone='info'] {
|
|
458
|
+
--_dot: var(--sc-color-info-solid);
|
|
459
|
+
}
|
|
363
460
|
.sc-button[data-popup-open] {
|
|
364
461
|
background: var(--sc-color-surface-active);
|
|
365
462
|
}
|
|
@@ -513,6 +610,9 @@
|
|
|
513
610
|
--_p: var(--sc-spacing-lg);
|
|
514
611
|
}
|
|
515
612
|
.sc-card[data-variant='elevated'] {
|
|
613
|
+
/* Hover and pressed washes inside a raised surface use the raised tokens, so they show against it (docs/adr/0003). */
|
|
614
|
+
--sc-color-surface-hover: var(--sc-color-surface-raised-hover);
|
|
615
|
+
--sc-color-surface-active: var(--sc-color-surface-raised-active);
|
|
516
616
|
box-shadow: var(--sc-elevation-1);
|
|
517
617
|
border-color: transparent;
|
|
518
618
|
}
|
|
@@ -547,6 +647,26 @@
|
|
|
547
647
|
border-color: var(--sc-color-accent-default);
|
|
548
648
|
box-shadow: inset 0 0 0 1px var(--sc-color-accent-default);
|
|
549
649
|
}
|
|
650
|
+
/* Plain: a quiet row. No surface or shadow; interactive hover is a wash (no border or elevation, so a long list
|
|
651
|
+
does not flicker); selected is the accent wash with a 1px accent border (3:1, the selection cue). */
|
|
652
|
+
.sc-card[data-variant='plain'] {
|
|
653
|
+
background: transparent;
|
|
654
|
+
border-color: transparent;
|
|
655
|
+
}
|
|
656
|
+
.sc-card[data-variant='plain'][data-interactive]:hover {
|
|
657
|
+
background: var(--sc-color-surface-hover);
|
|
658
|
+
border-color: transparent;
|
|
659
|
+
box-shadow: none;
|
|
660
|
+
}
|
|
661
|
+
.sc-card[data-variant='plain'][data-interactive]:active {
|
|
662
|
+
background: var(--sc-color-surface-active);
|
|
663
|
+
}
|
|
664
|
+
.sc-card[data-variant='plain'][data-selected],
|
|
665
|
+
.sc-card[data-variant='plain'][data-selected]:hover {
|
|
666
|
+
background: var(--sc-color-accent-wash);
|
|
667
|
+
border-color: var(--sc-color-accent-border);
|
|
668
|
+
box-shadow: none;
|
|
669
|
+
}
|
|
550
670
|
@media (prefers-reduced-motion: reduce) {
|
|
551
671
|
.sc-card {
|
|
552
672
|
transition: none;
|
|
@@ -731,19 +851,27 @@
|
|
|
731
851
|
transition-duration: calc(var(--sc-duration-base) * 0.75);
|
|
732
852
|
transition-timing-function: var(--sc-ease-exit);
|
|
733
853
|
}
|
|
854
|
+
/* The popup never exceeds the viewport minus a gutter each side, whatever `size` says. 100dvw rather than
|
|
855
|
+
100% so the clamp holds inside a transformed or narrow portal container too. */
|
|
734
856
|
.sc-dialog__popup {
|
|
857
|
+
--_gutter: var(--sc-spacing-md);
|
|
858
|
+
--_max: calc(100dvw - 2 * var(--_gutter));
|
|
735
859
|
position: fixed;
|
|
736
860
|
inset: 0;
|
|
737
861
|
margin: auto;
|
|
738
862
|
z-index: var(--sc-z-dialog);
|
|
739
863
|
box-sizing: border-box;
|
|
740
|
-
inline-size: min(
|
|
741
|
-
max-
|
|
864
|
+
inline-size: min(var(--_max), var(--sc-size-dialog-md));
|
|
865
|
+
max-inline-size: var(--_max);
|
|
866
|
+
max-block-size: min(100dvh - 2 * var(--_gutter), 85dvh);
|
|
742
867
|
block-size: fit-content;
|
|
743
868
|
overflow: auto;
|
|
744
869
|
padding: var(--sc-spacing-lg);
|
|
745
870
|
border-radius: var(--sc-radius-xl);
|
|
746
871
|
background: var(--sc-color-surface-raised);
|
|
872
|
+
/* Hover and pressed washes inside a raised surface use the raised tokens, so they show against it (docs/adr/0003). */
|
|
873
|
+
--sc-color-surface-hover: var(--sc-color-surface-raised-hover);
|
|
874
|
+
--sc-color-surface-active: var(--sc-color-surface-raised-active);
|
|
747
875
|
color: var(--sc-color-text-default);
|
|
748
876
|
border: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
749
877
|
box-shadow: var(--sc-elevation-3);
|
|
@@ -764,10 +892,10 @@
|
|
|
764
892
|
transition-timing-function: var(--sc-ease-exit);
|
|
765
893
|
}
|
|
766
894
|
.sc-dialog__popup[data-size='sm'] {
|
|
767
|
-
inline-size: min(
|
|
895
|
+
inline-size: min(var(--_max), var(--sc-size-dialog-sm));
|
|
768
896
|
}
|
|
769
897
|
.sc-dialog__popup[data-size='lg'] {
|
|
770
|
-
inline-size: min(
|
|
898
|
+
inline-size: min(var(--_max), var(--sc-size-dialog-lg));
|
|
771
899
|
}
|
|
772
900
|
.sc-dialog__title {
|
|
773
901
|
margin: 0;
|
|
@@ -788,6 +916,20 @@
|
|
|
788
916
|
font-size: var(--sc-font-size-sm);
|
|
789
917
|
line-height: var(--sc-font-line-height-normal);
|
|
790
918
|
}
|
|
919
|
+
/* Content wraps instead of widening the popup: long URLs break, fields and media stay inside the box. */
|
|
920
|
+
.sc-dialog__title,
|
|
921
|
+
.sc-dialog__description,
|
|
922
|
+
.sc-dialog__body {
|
|
923
|
+
min-inline-size: 0;
|
|
924
|
+
overflow-wrap: anywhere;
|
|
925
|
+
}
|
|
926
|
+
.sc-dialog__body > *,
|
|
927
|
+
.sc-dialog__body :where(img, video, table, pre, .sc-select) {
|
|
928
|
+
max-inline-size: 100%;
|
|
929
|
+
}
|
|
930
|
+
.sc-dialog__body :where(pre) {
|
|
931
|
+
overflow: auto;
|
|
932
|
+
}
|
|
791
933
|
.sc-dialog__actions {
|
|
792
934
|
margin-block-start: var(--sc-spacing-lg);
|
|
793
935
|
}
|
|
@@ -810,6 +952,128 @@
|
|
|
810
952
|
background: var(--sc-color-surface-hover);
|
|
811
953
|
color: var(--sc-color-text-default);
|
|
812
954
|
}
|
|
955
|
+
/* Sheet: title and actions stay put, the body scrolls. Same centred box as `dialog` on wide viewports. */
|
|
956
|
+
.sc-dialog__popup[data-variant='sheet'] {
|
|
957
|
+
display: flex;
|
|
958
|
+
flex-direction: column;
|
|
959
|
+
overflow: hidden;
|
|
960
|
+
}
|
|
961
|
+
.sc-dialog__popup[data-variant='sheet'] > .sc-dialog__title,
|
|
962
|
+
.sc-dialog__popup[data-variant='sheet'] > .sc-dialog__description,
|
|
963
|
+
.sc-dialog__popup[data-variant='sheet'] > .sc-dialog__actions {
|
|
964
|
+
flex: none;
|
|
965
|
+
}
|
|
966
|
+
.sc-dialog__popup[data-variant='sheet'] > .sc-dialog__body {
|
|
967
|
+
flex: 1 1 auto;
|
|
968
|
+
min-block-size: 0;
|
|
969
|
+
overflow: auto;
|
|
970
|
+
overscroll-behavior: contain;
|
|
971
|
+
}
|
|
972
|
+
/* Below 640px the sheet docks to the bottom edge, full width, and slides up. The breakpoint is fixed
|
|
973
|
+
here because custom properties cannot drive a media query. */
|
|
974
|
+
@media (width < 640px) {
|
|
975
|
+
.sc-dialog__popup[data-variant='sheet'] {
|
|
976
|
+
inset: auto 0 0 0;
|
|
977
|
+
margin: 0;
|
|
978
|
+
inline-size: 100%;
|
|
979
|
+
max-inline-size: none;
|
|
980
|
+
max-block-size: calc(100dvh - env(safe-area-inset-top, 0px) - var(--sc-spacing-xl));
|
|
981
|
+
padding-block-end: calc(var(--sc-spacing-lg) + env(safe-area-inset-bottom, 0px));
|
|
982
|
+
padding-inline: calc(var(--sc-spacing-lg) + env(safe-area-inset-left, 0px))
|
|
983
|
+
calc(var(--sc-spacing-lg) + env(safe-area-inset-right, 0px));
|
|
984
|
+
border-block-end: 0;
|
|
985
|
+
border-radius: var(--sc-radius-xl) var(--sc-radius-xl) 0 0;
|
|
986
|
+
transition:
|
|
987
|
+
opacity var(--sc-duration-base) var(--sc-ease-enter),
|
|
988
|
+
translate var(--sc-duration-base) var(--sc-ease-enter);
|
|
989
|
+
}
|
|
990
|
+
.sc-dialog__popup[data-variant='sheet']::before {
|
|
991
|
+
content: '';
|
|
992
|
+
flex: none;
|
|
993
|
+
align-self: center;
|
|
994
|
+
inline-size: 36px;
|
|
995
|
+
block-size: 4px;
|
|
996
|
+
margin-block: calc(-1 * var(--sc-spacing-sm)) var(--sc-spacing-md);
|
|
997
|
+
border-radius: var(--sc-radius-full);
|
|
998
|
+
background: var(--sc-color-border-strong);
|
|
999
|
+
}
|
|
1000
|
+
.sc-dialog__popup[data-variant='sheet'][data-starting-style],
|
|
1001
|
+
.sc-dialog__popup[data-variant='sheet'][data-ending-style] {
|
|
1002
|
+
opacity: 1;
|
|
1003
|
+
translate: 0 100%;
|
|
1004
|
+
scale: none;
|
|
1005
|
+
}
|
|
1006
|
+
/* Actions stack full width, confirming action on top, in thumb reach. */
|
|
1007
|
+
.sc-dialog__popup[data-variant='sheet'] > .sc-dialog__actions {
|
|
1008
|
+
flex-wrap: wrap-reverse;
|
|
1009
|
+
}
|
|
1010
|
+
.sc-dialog__popup[data-variant='sheet'] > .sc-dialog__actions > * {
|
|
1011
|
+
flex: 1 1 100%;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
/* Full screen: covers the viewport and slides in from the inline end. Title and actions stay put while
|
|
1015
|
+
`Dialog.Body` scrolls, as in a sheet. The surface is `surface-default`, not raised, because it replaces
|
|
1016
|
+
the page rather than floating over it, so the hover washes go back to the page's own. */
|
|
1017
|
+
.sc-dialog__popup[data-variant='fullscreen'] {
|
|
1018
|
+
--_slide: 1;
|
|
1019
|
+
inset: 0;
|
|
1020
|
+
margin: 0;
|
|
1021
|
+
inline-size: auto;
|
|
1022
|
+
max-inline-size: none;
|
|
1023
|
+
block-size: auto;
|
|
1024
|
+
max-block-size: none;
|
|
1025
|
+
display: flex;
|
|
1026
|
+
flex-direction: column;
|
|
1027
|
+
overflow: hidden;
|
|
1028
|
+
padding-block: calc(var(--sc-spacing-lg) + env(safe-area-inset-top, 0px))
|
|
1029
|
+
calc(var(--sc-spacing-lg) + env(safe-area-inset-bottom, 0px));
|
|
1030
|
+
padding-inline: calc(var(--sc-spacing-lg) + env(safe-area-inset-left, 0px))
|
|
1031
|
+
calc(var(--sc-spacing-lg) + env(safe-area-inset-right, 0px));
|
|
1032
|
+
border: 0;
|
|
1033
|
+
border-radius: 0;
|
|
1034
|
+
box-shadow: none;
|
|
1035
|
+
background: var(--sc-color-surface-default);
|
|
1036
|
+
--sc-color-surface-hover: inherit;
|
|
1037
|
+
--sc-color-surface-active: inherit;
|
|
1038
|
+
transition:
|
|
1039
|
+
opacity var(--sc-duration-slower) var(--sc-ease-enter),
|
|
1040
|
+
translate var(--sc-duration-slower) var(--sc-ease-enter);
|
|
1041
|
+
}
|
|
1042
|
+
.sc-dialog__popup[data-variant='fullscreen'][data-starting-style] {
|
|
1043
|
+
opacity: 0;
|
|
1044
|
+
translate: calc(var(--_slide) * 96px) 0;
|
|
1045
|
+
scale: none;
|
|
1046
|
+
}
|
|
1047
|
+
.sc-dialog__popup[data-variant='fullscreen'][data-ending-style] {
|
|
1048
|
+
opacity: 0;
|
|
1049
|
+
translate: calc(var(--_slide) * 64px) 0;
|
|
1050
|
+
scale: none;
|
|
1051
|
+
transition-duration: var(--sc-duration-slow);
|
|
1052
|
+
transition-timing-function: var(--sc-ease-exit);
|
|
1053
|
+
}
|
|
1054
|
+
.sc-dialog__popup[data-variant='fullscreen']:dir(rtl) {
|
|
1055
|
+
--_slide: -1;
|
|
1056
|
+
}
|
|
1057
|
+
.sc-dialog__popup[data-variant='fullscreen'] > .sc-dialog__title,
|
|
1058
|
+
.sc-dialog__popup[data-variant='fullscreen'] > .sc-dialog__description,
|
|
1059
|
+
.sc-dialog__popup[data-variant='fullscreen'] > .sc-dialog__actions {
|
|
1060
|
+
flex: none;
|
|
1061
|
+
}
|
|
1062
|
+
.sc-dialog__popup[data-variant='fullscreen'] > .sc-dialog__body {
|
|
1063
|
+
flex: 1 1 auto;
|
|
1064
|
+
min-block-size: 0;
|
|
1065
|
+
overflow: auto;
|
|
1066
|
+
overscroll-behavior: contain;
|
|
1067
|
+
}
|
|
1068
|
+
/* From 900px the backdrop shows a margin around it, so it still reads as a layer over the app. */
|
|
1069
|
+
@media (width >= 900px) {
|
|
1070
|
+
.sc-dialog__popup[data-variant='fullscreen'] {
|
|
1071
|
+
inset: var(--sc-spacing-md);
|
|
1072
|
+
border: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
1073
|
+
border-radius: var(--sc-radius-xl);
|
|
1074
|
+
box-shadow: var(--sc-elevation-3);
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
813
1077
|
@media (prefers-reduced-motion: reduce) {
|
|
814
1078
|
.sc-dialog__backdrop,
|
|
815
1079
|
.sc-dialog__popup {
|
|
@@ -821,6 +1085,19 @@
|
|
|
821
1085
|
scale: none;
|
|
822
1086
|
}
|
|
823
1087
|
}
|
|
1088
|
+
/* Reduced motion: the full-screen surface crossfades instead of sliding. */
|
|
1089
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1090
|
+
.sc-dialog__popup[data-variant='fullscreen'] {
|
|
1091
|
+
transition-duration: var(--sc-duration-base);
|
|
1092
|
+
}
|
|
1093
|
+
.sc-dialog__popup[data-variant='fullscreen'][data-starting-style],
|
|
1094
|
+
.sc-dialog__popup[data-variant='fullscreen'][data-ending-style] {
|
|
1095
|
+
translate: none;
|
|
1096
|
+
}
|
|
1097
|
+
.sc-dialog__popup[data-variant='fullscreen'][data-ending-style] {
|
|
1098
|
+
transition-duration: var(--sc-duration-fast);
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
824
1101
|
|
|
825
1102
|
/* ---- tooltip.css ---- */
|
|
826
1103
|
/* ---- Tooltip --------------------------------------------------------------- */
|
|
@@ -928,6 +1205,9 @@
|
|
|
928
1205
|
padding: var(--sc-spacing-2xs);
|
|
929
1206
|
border-radius: var(--sc-radius-lg);
|
|
930
1207
|
background: var(--sc-color-surface-raised);
|
|
1208
|
+
/* Hover and pressed washes inside a raised surface use the raised tokens, so they show against it (docs/adr/0003). */
|
|
1209
|
+
--sc-color-surface-hover: var(--sc-color-surface-raised-hover);
|
|
1210
|
+
--sc-color-surface-active: var(--sc-color-surface-raised-active);
|
|
931
1211
|
color: var(--sc-color-text-default);
|
|
932
1212
|
border: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
933
1213
|
box-shadow: var(--sc-elevation-2);
|
|
@@ -963,7 +1243,7 @@
|
|
|
963
1243
|
border-radius: var(--sc-radius-sm);
|
|
964
1244
|
color: var(--sc-color-text-default);
|
|
965
1245
|
text-decoration: none;
|
|
966
|
-
cursor:
|
|
1246
|
+
cursor: pointer;
|
|
967
1247
|
user-select: none;
|
|
968
1248
|
outline: 0;
|
|
969
1249
|
}
|
|
@@ -1100,6 +1380,7 @@
|
|
|
1100
1380
|
min-inline-size: 0;
|
|
1101
1381
|
}
|
|
1102
1382
|
.sc-input {
|
|
1383
|
+
appearance: none;
|
|
1103
1384
|
box-sizing: border-box;
|
|
1104
1385
|
inline-size: 100%;
|
|
1105
1386
|
min-inline-size: 0;
|
|
@@ -1137,6 +1418,30 @@
|
|
|
1137
1418
|
color: var(--sc-color-text-subtle);
|
|
1138
1419
|
cursor: not-allowed;
|
|
1139
1420
|
}
|
|
1421
|
+
/* Native date, time and number fields: same box, tabular digits, the picker indicator at the end edge. */
|
|
1422
|
+
.sc-input:is(
|
|
1423
|
+
[type='date'],
|
|
1424
|
+
[type='time'],
|
|
1425
|
+
[type='datetime-local'],
|
|
1426
|
+
[type='month'],
|
|
1427
|
+
[type='week'],
|
|
1428
|
+
[type='number']
|
|
1429
|
+
) {
|
|
1430
|
+
font-variant-numeric: tabular-nums;
|
|
1431
|
+
}
|
|
1432
|
+
.sc-input::-webkit-date-and-time-value {
|
|
1433
|
+
min-block-size: 1lh;
|
|
1434
|
+
text-align: start;
|
|
1435
|
+
}
|
|
1436
|
+
.sc-input::-webkit-calendar-picker-indicator {
|
|
1437
|
+
margin-inline-start: var(--sc-spacing-xs);
|
|
1438
|
+
padding: 0;
|
|
1439
|
+
opacity: 0.7;
|
|
1440
|
+
cursor: pointer;
|
|
1441
|
+
}
|
|
1442
|
+
.sc-input::-webkit-calendar-picker-indicator:hover {
|
|
1443
|
+
opacity: 1;
|
|
1444
|
+
}
|
|
1140
1445
|
.sc-input-wrap[data-icon-start] > .sc-input {
|
|
1141
1446
|
padding-inline-start: calc(var(--_px) + var(--sc-size-icon-md) + var(--sc-spacing-xs));
|
|
1142
1447
|
}
|
|
@@ -1174,7 +1479,38 @@
|
|
|
1174
1479
|
.sc-textarea[data-resize='none'] {
|
|
1175
1480
|
resize: none;
|
|
1176
1481
|
}
|
|
1482
|
+
.sc-textarea[data-variant='code'] {
|
|
1483
|
+
font-family: var(--sc-font-family-mono);
|
|
1484
|
+
font-size: calc(var(--_fs) * 0.95);
|
|
1485
|
+
line-height: var(--sc-font-line-height-normal);
|
|
1486
|
+
tab-size: 2;
|
|
1487
|
+
hyphens: none;
|
|
1488
|
+
overflow-wrap: normal;
|
|
1489
|
+
}
|
|
1490
|
+
.sc-textarea[wrap='off'] {
|
|
1491
|
+
white-space: pre;
|
|
1492
|
+
overflow-x: auto;
|
|
1493
|
+
}
|
|
1177
1494
|
/* Select */
|
|
1495
|
+
/* iOS Safari zooms the page when a focused text field's font is under 16px, and stays zoomed. On touch screens,
|
|
1496
|
+
text fields render at 16px or more; mouse-and-keyboard density is unchanged. 16px is Safari's threshold, not a
|
|
1497
|
+
design value, so it is a literal. Disabling zoom in the viewport meta instead would also block pinch-zoom. */
|
|
1498
|
+
@media (pointer: coarse) {
|
|
1499
|
+
.sc-input,
|
|
1500
|
+
.sc-textarea[data-variant='code'] {
|
|
1501
|
+
font-size: max(16px, var(--_fs));
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
.sc-select__wrap {
|
|
1505
|
+
position: relative;
|
|
1506
|
+
display: inline-flex;
|
|
1507
|
+
max-inline-size: 100%;
|
|
1508
|
+
align-self: flex-start;
|
|
1509
|
+
}
|
|
1510
|
+
.sc-select__wrap[data-full-width] {
|
|
1511
|
+
display: flex;
|
|
1512
|
+
align-self: stretch;
|
|
1513
|
+
}
|
|
1178
1514
|
.sc-select {
|
|
1179
1515
|
box-sizing: border-box;
|
|
1180
1516
|
display: inline-flex;
|
|
@@ -1206,6 +1542,30 @@
|
|
|
1206
1542
|
inline-size: 100%;
|
|
1207
1543
|
align-self: stretch;
|
|
1208
1544
|
}
|
|
1545
|
+
/* Room for the × between the value and the chevron. The clear button is a sibling, never nested in the trigger. */
|
|
1546
|
+
.sc-select[data-clearable] > .sc-select__icon {
|
|
1547
|
+
margin-inline-start: calc(var(--sc-size-icon-lg) + var(--sc-spacing-2xs));
|
|
1548
|
+
}
|
|
1549
|
+
.sc-select__clear {
|
|
1550
|
+
position: absolute;
|
|
1551
|
+
inset-block-start: 50%;
|
|
1552
|
+
inset-inline-end: calc(var(--sc-spacing-xs) + var(--sc-size-icon-md) + var(--sc-spacing-2xs));
|
|
1553
|
+
translate: 0 -50%;
|
|
1554
|
+
display: inline-grid;
|
|
1555
|
+
place-items: center;
|
|
1556
|
+
inline-size: var(--sc-size-icon-lg);
|
|
1557
|
+
block-size: var(--sc-size-icon-lg);
|
|
1558
|
+
padding: 0;
|
|
1559
|
+
border: 0;
|
|
1560
|
+
border-radius: var(--sc-radius-sm);
|
|
1561
|
+
background: transparent;
|
|
1562
|
+
color: var(--sc-color-text-muted);
|
|
1563
|
+
cursor: pointer;
|
|
1564
|
+
}
|
|
1565
|
+
.sc-select__clear:hover {
|
|
1566
|
+
background: var(--sc-color-surface-hover);
|
|
1567
|
+
color: var(--sc-color-text-default);
|
|
1568
|
+
}
|
|
1209
1569
|
.sc-select:hover:not([data-disabled]) {
|
|
1210
1570
|
border-color: var(--sc-color-text-muted);
|
|
1211
1571
|
}
|
|
@@ -1224,9 +1584,12 @@
|
|
|
1224
1584
|
color: var(--sc-color-text-subtle);
|
|
1225
1585
|
cursor: not-allowed;
|
|
1226
1586
|
}
|
|
1587
|
+
/* The value clips for the ellipsis, so it needs a real line box: the trigger's line-height of 1 cut off descenders
|
|
1588
|
+
("Any age"). Same fix as .sc-chip__label. */
|
|
1227
1589
|
.sc-select__value {
|
|
1228
1590
|
overflow: hidden;
|
|
1229
1591
|
text-overflow: ellipsis;
|
|
1592
|
+
line-height: var(--sc-font-line-height-ui);
|
|
1230
1593
|
}
|
|
1231
1594
|
.sc-select__value[data-placeholder] {
|
|
1232
1595
|
color: var(--sc-color-text-subtle);
|
|
@@ -1248,6 +1611,9 @@
|
|
|
1248
1611
|
padding: var(--sc-spacing-2xs);
|
|
1249
1612
|
border-radius: var(--sc-radius-lg);
|
|
1250
1613
|
background: var(--sc-color-surface-raised);
|
|
1614
|
+
/* Hover and pressed washes inside a raised surface use the raised tokens, so they show against it (docs/adr/0003). */
|
|
1615
|
+
--sc-color-surface-hover: var(--sc-color-surface-raised-hover);
|
|
1616
|
+
--sc-color-surface-active: var(--sc-color-surface-raised-active);
|
|
1251
1617
|
color: var(--sc-color-text-default);
|
|
1252
1618
|
border: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
1253
1619
|
box-shadow: var(--sc-elevation-2);
|
|
@@ -1275,7 +1641,7 @@
|
|
|
1275
1641
|
padding-inline: var(--sc-spacing-xs);
|
|
1276
1642
|
padding-block: var(--sc-spacing-2xs);
|
|
1277
1643
|
border-radius: var(--sc-radius-sm);
|
|
1278
|
-
cursor:
|
|
1644
|
+
cursor: pointer;
|
|
1279
1645
|
user-select: none;
|
|
1280
1646
|
outline: 0;
|
|
1281
1647
|
}
|
|
@@ -1541,6 +1907,50 @@
|
|
|
1541
1907
|
.sc-tabs__panel[data-hidden] {
|
|
1542
1908
|
display: none;
|
|
1543
1909
|
}
|
|
1910
|
+
/* Segmented: a quiet control. Sunken track, the active tab raised on `surface-default` by the sliding
|
|
1911
|
+
indicator, no accent colour; counts are plain muted numbers
|
|
1912
|
+
(`text-muted`, not `text-subtle`, which fails AA on the sunken track). */
|
|
1913
|
+
.sc-tabs__list[data-variant='segmented'] {
|
|
1914
|
+
display: inline-flex;
|
|
1915
|
+
align-self: flex-start;
|
|
1916
|
+
max-inline-size: 100%;
|
|
1917
|
+
gap: var(--sc-spacing-3xs);
|
|
1918
|
+
padding: var(--sc-spacing-3xs);
|
|
1919
|
+
border-block-end: 0;
|
|
1920
|
+
border-radius: var(--sc-radius-md);
|
|
1921
|
+
background: var(--sc-color-surface-sunken);
|
|
1922
|
+
isolation: isolate;
|
|
1923
|
+
}
|
|
1924
|
+
.sc-tabs__list[data-variant='segmented'][data-fill] {
|
|
1925
|
+
display: flex;
|
|
1926
|
+
align-self: stretch;
|
|
1927
|
+
}
|
|
1928
|
+
.sc-tabs__list[data-variant='segmented'] > .sc-tabs__tab {
|
|
1929
|
+
position: relative;
|
|
1930
|
+
z-index: 1;
|
|
1931
|
+
block-size: var(--sc-size-control-sm);
|
|
1932
|
+
padding-inline: var(--sc-spacing-sm);
|
|
1933
|
+
border-radius: var(--sc-radius-sm);
|
|
1934
|
+
}
|
|
1935
|
+
.sc-tabs__list[data-variant='segmented'] > .sc-tabs__tab:hover:not([data-disabled]) {
|
|
1936
|
+
background: transparent;
|
|
1937
|
+
}
|
|
1938
|
+
.sc-tabs__list[data-variant='segmented'] .sc-tabs__count,
|
|
1939
|
+
.sc-tabs__list[data-variant='segmented'] > .sc-tabs__tab[data-active] > .sc-tabs__count {
|
|
1940
|
+
padding-inline: 0;
|
|
1941
|
+
background: transparent;
|
|
1942
|
+
color: var(--sc-color-text-muted);
|
|
1943
|
+
font-weight: var(--sc-font-weight-regular);
|
|
1944
|
+
}
|
|
1945
|
+
.sc-tabs__list[data-variant='segmented'] > .sc-tabs__indicator {
|
|
1946
|
+
inset-block: 0 auto;
|
|
1947
|
+
z-index: 0;
|
|
1948
|
+
block-size: var(--active-tab-height);
|
|
1949
|
+
translate: var(--active-tab-left) var(--active-tab-top);
|
|
1950
|
+
background: var(--sc-color-surface-default);
|
|
1951
|
+
border-radius: var(--sc-radius-sm);
|
|
1952
|
+
box-shadow: var(--sc-elevation-1);
|
|
1953
|
+
}
|
|
1544
1954
|
@media (prefers-reduced-motion: reduce) {
|
|
1545
1955
|
.sc-tabs__tab,
|
|
1546
1956
|
.sc-tabs__indicator {
|
|
@@ -1548,37 +1958,513 @@
|
|
|
1548
1958
|
}
|
|
1549
1959
|
}
|
|
1550
1960
|
|
|
1551
|
-
/* ----
|
|
1552
|
-
/* ----
|
|
1553
|
-
|
|
1961
|
+
/* ---- priority-nav.css ---- */
|
|
1962
|
+
/* ---- PriorityNav ----------------------------------------------------------- */
|
|
1963
|
+
/* Takes the free space in a flex header (brand · nav · actions) without sizing to its own links, so the
|
|
1964
|
+
row can grow back after collapsing. In a grid, give it a `minmax(0, 1fr)` track. */
|
|
1965
|
+
.sc-priority-nav {
|
|
1966
|
+
position: relative;
|
|
1967
|
+
flex: 1 1 0%;
|
|
1968
|
+
min-inline-size: 0;
|
|
1969
|
+
/* The toggle goes icon-only when the nav itself is narrow (below), whatever the viewport. */
|
|
1970
|
+
container: sc-priority-nav / inline-size;
|
|
1971
|
+
font-family: var(--sc-font-family-sans);
|
|
1972
|
+
font-size: var(--sc-font-size-sm);
|
|
1973
|
+
}
|
|
1974
|
+
.sc-priority-nav__list {
|
|
1554
1975
|
display: flex;
|
|
1555
1976
|
flex-wrap: nowrap;
|
|
1556
1977
|
align-items: center;
|
|
1557
|
-
gap: var(--sc-spacing-
|
|
1978
|
+
gap: var(--sc-spacing-2xs);
|
|
1979
|
+
min-inline-size: 0;
|
|
1980
|
+
margin: 0;
|
|
1981
|
+
padding: 0;
|
|
1982
|
+
list-style: none;
|
|
1983
|
+
}
|
|
1984
|
+
.sc-priority-nav__item,
|
|
1985
|
+
.sc-priority-nav__more {
|
|
1986
|
+
flex: none;
|
|
1987
|
+
display: flex;
|
|
1988
|
+
}
|
|
1989
|
+
.sc-priority-nav__more[hidden] {
|
|
1990
|
+
display: none;
|
|
1991
|
+
}
|
|
1992
|
+
/* Once measured, the current link is the one item that may shrink (ellipsis) when the row cannot hold it
|
|
1993
|
+
and "More". While measuring it keeps its full width like the others. */
|
|
1994
|
+
.sc-priority-nav:not([data-measuring]) .sc-priority-nav__item[data-current] {
|
|
1995
|
+
flex: 0 1 auto;
|
|
1558
1996
|
min-inline-size: 0;
|
|
1997
|
+
}
|
|
1998
|
+
/* Before measurement (server HTML, pre-hydration, no JS): one line that never wraps. With JS the line
|
|
1999
|
+
clips for the few frames before hydration measures it; without JS it scrolls sideways (below). */
|
|
2000
|
+
.sc-priority-nav[data-measuring] > .sc-priority-nav__list {
|
|
1559
2001
|
overflow-x: auto;
|
|
2002
|
+
overflow-y: hidden;
|
|
1560
2003
|
scrollbar-width: none;
|
|
1561
2004
|
}
|
|
1562
|
-
.sc-
|
|
1563
|
-
|
|
1564
|
-
|
|
2005
|
+
.sc-priority-nav[data-measuring] .sc-priority-nav__more[hidden] {
|
|
2006
|
+
display: flex;
|
|
2007
|
+
position: absolute;
|
|
2008
|
+
visibility: hidden;
|
|
2009
|
+
pointer-events: none;
|
|
1565
2010
|
}
|
|
1566
|
-
|
|
2011
|
+
@media (scripting: none) {
|
|
2012
|
+
.sc-priority-nav[data-measuring] > .sc-priority-nav__list {
|
|
2013
|
+
scrollbar-width: thin;
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
.sc-priority-nav__link,
|
|
2017
|
+
.sc-priority-nav__toggle {
|
|
1567
2018
|
display: inline-flex;
|
|
1568
|
-
flex: none;
|
|
1569
2019
|
align-items: center;
|
|
1570
2020
|
gap: var(--sc-spacing-2xs);
|
|
2021
|
+
box-sizing: border-box;
|
|
2022
|
+
block-size: var(--sc-size-control-sm);
|
|
2023
|
+
margin: 0;
|
|
2024
|
+
padding-inline: var(--sc-spacing-sm);
|
|
2025
|
+
border: 0;
|
|
2026
|
+
border-radius: var(--sc-radius-sm);
|
|
2027
|
+
background: transparent;
|
|
2028
|
+
color: var(--sc-color-text-muted);
|
|
2029
|
+
font: inherit;
|
|
2030
|
+
font-weight: var(--sc-font-weight-medium);
|
|
2031
|
+
line-height: var(--sc-font-line-height-ui);
|
|
2032
|
+
white-space: nowrap;
|
|
2033
|
+
text-decoration: none;
|
|
2034
|
+
cursor: pointer;
|
|
2035
|
+
user-select: none;
|
|
2036
|
+
transition:
|
|
2037
|
+
background-color var(--sc-duration-fast) var(--sc-ease-standard),
|
|
2038
|
+
color var(--sc-duration-fast) var(--sc-ease-standard);
|
|
1571
2039
|
}
|
|
1572
|
-
.sc-
|
|
1573
|
-
|
|
1574
|
-
inline-size: var(--sc-border-width-hairline);
|
|
1575
|
-
block-size: var(--sc-size-icon-lg);
|
|
1576
|
-
margin-inline: var(--sc-spacing-2xs);
|
|
1577
|
-
background: var(--sc-color-border-default);
|
|
2040
|
+
.sc-priority-nav__link {
|
|
2041
|
+
min-inline-size: 0;
|
|
1578
2042
|
}
|
|
1579
|
-
.sc-
|
|
1580
|
-
|
|
1581
|
-
|
|
2043
|
+
.sc-priority-nav__label {
|
|
2044
|
+
min-inline-size: 0;
|
|
2045
|
+
overflow: hidden;
|
|
2046
|
+
text-overflow: ellipsis;
|
|
2047
|
+
}
|
|
2048
|
+
.sc-priority-nav__link:hover,
|
|
2049
|
+
.sc-priority-nav__toggle:hover {
|
|
2050
|
+
background: var(--sc-color-surface-hover);
|
|
2051
|
+
color: var(--sc-color-text-default);
|
|
2052
|
+
}
|
|
2053
|
+
.sc-priority-nav__link:active,
|
|
2054
|
+
.sc-priority-nav__toggle:active {
|
|
2055
|
+
background: var(--sc-color-surface-active);
|
|
2056
|
+
}
|
|
2057
|
+
.sc-priority-nav__link[aria-current='page'] {
|
|
2058
|
+
color: var(--sc-color-text-default);
|
|
2059
|
+
box-shadow: inset 0 calc(-1 * var(--sc-border-width-focus)) 0 var(--sc-color-accent-default);
|
|
2060
|
+
border-end-start-radius: 0;
|
|
2061
|
+
border-end-end-radius: 0;
|
|
2062
|
+
}
|
|
2063
|
+
.sc-priority-nav__link:focus-visible,
|
|
2064
|
+
.sc-priority-nav__toggle:focus-visible {
|
|
2065
|
+
outline: var(--sc-border-width-focus) solid var(--sc-color-border-focus);
|
|
2066
|
+
outline-offset: calc(-1 * var(--sc-border-width-focus));
|
|
2067
|
+
}
|
|
2068
|
+
.sc-priority-nav__toggle[aria-expanded='true'] {
|
|
2069
|
+
background: var(--sc-color-surface-active);
|
|
2070
|
+
color: var(--sc-color-text-default);
|
|
2071
|
+
}
|
|
2072
|
+
.sc-priority-nav__ellipsis {
|
|
2073
|
+
display: none;
|
|
2074
|
+
}
|
|
2075
|
+
/* Item badge (`badge`): a count pill or a dot after the label, in accent. Decorative (aria-hidden); the link's
|
|
2076
|
+
name carries `badgeLabel`. "More" shows the collapsed items' badges summed. No transition or animation. */
|
|
2077
|
+
.sc-priority-nav__badge {
|
|
2078
|
+
display: inline-grid;
|
|
2079
|
+
place-items: center;
|
|
2080
|
+
flex: none;
|
|
2081
|
+
box-sizing: border-box;
|
|
2082
|
+
border-radius: var(--sc-radius-full);
|
|
2083
|
+
background: var(--sc-color-accent-default);
|
|
2084
|
+
color: var(--sc-color-text-on-accent);
|
|
2085
|
+
pointer-events: none;
|
|
2086
|
+
}
|
|
2087
|
+
.sc-priority-nav__badge[data-kind='count'] {
|
|
2088
|
+
min-inline-size: var(--sc-size-icon-md);
|
|
2089
|
+
block-size: var(--sc-size-icon-md);
|
|
2090
|
+
padding-inline: var(--sc-spacing-3xs);
|
|
2091
|
+
font-size: var(--sc-font-size-xs);
|
|
2092
|
+
font-weight: var(--sc-font-weight-semibold);
|
|
2093
|
+
font-variant-numeric: tabular-nums;
|
|
2094
|
+
line-height: 1;
|
|
2095
|
+
}
|
|
2096
|
+
.sc-priority-nav__badge[data-kind='dot'] {
|
|
2097
|
+
inline-size: 8px;
|
|
2098
|
+
block-size: 8px;
|
|
2099
|
+
}
|
|
2100
|
+
.sc-priority-nav__panel .sc-priority-nav__badge {
|
|
2101
|
+
margin-inline-start: auto;
|
|
2102
|
+
}
|
|
2103
|
+
.sc-priority-nav__toggle {
|
|
2104
|
+
position: relative;
|
|
2105
|
+
}
|
|
2106
|
+
@container sc-priority-nav (inline-size <= 400px) {
|
|
2107
|
+
.sc-priority-nav__toggle {
|
|
2108
|
+
justify-content: center;
|
|
2109
|
+
inline-size: var(--sc-size-control-sm);
|
|
2110
|
+
padding-inline: 0;
|
|
2111
|
+
}
|
|
2112
|
+
.sc-priority-nav__ellipsis {
|
|
2113
|
+
display: inline-block;
|
|
2114
|
+
}
|
|
2115
|
+
.sc-priority-nav__chevron {
|
|
2116
|
+
display: none;
|
|
2117
|
+
}
|
|
2118
|
+
/* Icon-only: the badge sits on the toggle's inline-end corner, ringed like IconButton's dot. */
|
|
2119
|
+
.sc-priority-nav__toggle > .sc-priority-nav__badge {
|
|
2120
|
+
position: absolute;
|
|
2121
|
+
inset-block-start: 0;
|
|
2122
|
+
inset-inline-end: 0;
|
|
2123
|
+
box-shadow: 0 0 0 var(--sc-border-width-focus) var(--sc-color-surface-default);
|
|
2124
|
+
}
|
|
2125
|
+
.sc-priority-nav__toggle > .sc-priority-nav__badge[data-kind='dot'] {
|
|
2126
|
+
inset-block-start: var(--sc-spacing-2xs);
|
|
2127
|
+
inset-inline-end: var(--sc-spacing-2xs);
|
|
2128
|
+
}
|
|
2129
|
+
/* Visually hidden, still part of the accessible name ("More, 3 links"). */
|
|
2130
|
+
.sc-priority-nav__toggle-label {
|
|
2131
|
+
position: absolute;
|
|
2132
|
+
inline-size: 1px;
|
|
2133
|
+
block-size: 1px;
|
|
2134
|
+
overflow: hidden;
|
|
2135
|
+
clip-path: inset(50%);
|
|
2136
|
+
white-space: nowrap;
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
.sc-priority-nav__chevron {
|
|
2140
|
+
transition: rotate var(--sc-duration-fast) var(--sc-ease-standard);
|
|
2141
|
+
}
|
|
2142
|
+
.sc-priority-nav__toggle[aria-expanded='true'] > .sc-priority-nav__chevron {
|
|
2143
|
+
rotate: 180deg;
|
|
2144
|
+
}
|
|
2145
|
+
/* The panel: Menu's surface, a list of the collapsed links. While open it is in the top layer (Popover
|
|
2146
|
+
API), so no ancestor's overflow clips it; it is fixed-positioned against the viewport either way. */
|
|
2147
|
+
.sc-priority-nav__toggle {
|
|
2148
|
+
anchor-name: var(--_anchor);
|
|
2149
|
+
}
|
|
2150
|
+
.sc-priority-nav__panel {
|
|
2151
|
+
--_gutter: var(--sc-spacing-md);
|
|
2152
|
+
position: fixed;
|
|
2153
|
+
inset: auto;
|
|
2154
|
+
z-index: var(--sc-z-dropdown);
|
|
2155
|
+
display: flex;
|
|
2156
|
+
flex-direction: column;
|
|
2157
|
+
box-sizing: border-box;
|
|
2158
|
+
inline-size: max-content;
|
|
2159
|
+
min-inline-size: min(180px, 100vw - 2 * var(--_gutter));
|
|
2160
|
+
max-inline-size: min(320px, 100vw - 2 * var(--_gutter));
|
|
2161
|
+
max-block-size: min(28rem, 100dvh - 2 * var(--_gutter));
|
|
2162
|
+
overflow-y: auto;
|
|
2163
|
+
overscroll-behavior: contain;
|
|
2164
|
+
margin: 0;
|
|
2165
|
+
padding: var(--sc-spacing-2xs);
|
|
2166
|
+
list-style: none;
|
|
2167
|
+
border-radius: var(--sc-radius-lg);
|
|
2168
|
+
background: var(--sc-color-surface-raised);
|
|
2169
|
+
--sc-color-surface-hover: var(--sc-color-surface-raised-hover);
|
|
2170
|
+
--sc-color-surface-active: var(--sc-color-surface-raised-active);
|
|
2171
|
+
color: var(--sc-color-text-default);
|
|
2172
|
+
border: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
2173
|
+
box-shadow: var(--sc-elevation-2);
|
|
2174
|
+
font-family: var(--sc-font-family-sans);
|
|
2175
|
+
font-size: var(--sc-font-size-sm);
|
|
2176
|
+
transition:
|
|
2177
|
+
opacity var(--sc-duration-fast) var(--sc-ease-enter),
|
|
2178
|
+
translate var(--sc-duration-fast) var(--sc-ease-enter);
|
|
2179
|
+
}
|
|
2180
|
+
/* Anchored below the toggle, aligned to its inline-end edge; flips to its inline-start edge (and above
|
|
2181
|
+
it) when that would leave the viewport; when no edge fits, it spans the viewport row under the toggle,
|
|
2182
|
+
centred on it and kept a gutter from both edges. Without anchor positioning, JS sets left/top (place.ts). */
|
|
2183
|
+
@supports (anchor-name: --a) {
|
|
2184
|
+
.sc-priority-nav__panel {
|
|
2185
|
+
position-anchor: var(--_anchor);
|
|
2186
|
+
position-area: block-end span-inline-start;
|
|
2187
|
+
margin-block: var(--sc-spacing-2xs);
|
|
2188
|
+
/* Makes an option that ends closer than the gutter to the viewport edge count as overflowing. */
|
|
2189
|
+
margin-inline-start: var(--_gutter);
|
|
2190
|
+
position-try-fallbacks:
|
|
2191
|
+
flip-inline,
|
|
2192
|
+
flip-block,
|
|
2193
|
+
flip-block flip-inline,
|
|
2194
|
+
--sc-priority-nav-fit;
|
|
2195
|
+
}
|
|
2196
|
+
}
|
|
2197
|
+
@position-try --sc-priority-nav-fit {
|
|
2198
|
+
position-area: block-end span-all;
|
|
2199
|
+
justify-self: anchor-center;
|
|
2200
|
+
margin-inline: var(--_gutter);
|
|
2201
|
+
}
|
|
2202
|
+
@starting-style {
|
|
2203
|
+
.sc-priority-nav__panel {
|
|
2204
|
+
opacity: 0;
|
|
2205
|
+
translate: 0 calc(-1 * var(--sc-spacing-2xs));
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
.sc-priority-nav__panel[hidden] {
|
|
2209
|
+
display: none;
|
|
2210
|
+
}
|
|
2211
|
+
.sc-priority-nav__panel .sc-priority-nav__link {
|
|
2212
|
+
display: flex;
|
|
2213
|
+
inline-size: 100%;
|
|
2214
|
+
padding-inline: var(--sc-spacing-xs);
|
|
2215
|
+
color: var(--sc-color-text-default);
|
|
2216
|
+
}
|
|
2217
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2218
|
+
.sc-priority-nav__link,
|
|
2219
|
+
.sc-priority-nav__toggle,
|
|
2220
|
+
.sc-priority-nav__chevron,
|
|
2221
|
+
.sc-priority-nav__panel {
|
|
2222
|
+
transition: none;
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
/* ---- popover.css ---- */
|
|
2227
|
+
/* ---- Popover --------------------------------------------------------------- */
|
|
2228
|
+
.sc-popover__positioner {
|
|
2229
|
+
z-index: var(--sc-z-dropdown);
|
|
2230
|
+
outline: 0;
|
|
2231
|
+
}
|
|
2232
|
+
/* Menu's surface: raised background, hairline border, large radius, elevation 2. */
|
|
2233
|
+
.sc-popover {
|
|
2234
|
+
position: relative;
|
|
2235
|
+
box-sizing: border-box;
|
|
2236
|
+
inline-size: max-content;
|
|
2237
|
+
max-inline-size: min(100vw - 2 * var(--sc-spacing-md), 360px);
|
|
2238
|
+
max-block-size: var(--available-height);
|
|
2239
|
+
overflow: auto;
|
|
2240
|
+
padding: var(--sc-spacing-md);
|
|
2241
|
+
border-radius: var(--sc-radius-lg);
|
|
2242
|
+
background: var(--sc-color-surface-raised);
|
|
2243
|
+
--sc-color-surface-hover: var(--sc-color-surface-raised-hover);
|
|
2244
|
+
--sc-color-surface-active: var(--sc-color-surface-raised-active);
|
|
2245
|
+
color: var(--sc-color-text-default);
|
|
2246
|
+
border: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
2247
|
+
box-shadow: var(--sc-elevation-2);
|
|
2248
|
+
font-family: var(--sc-font-family-sans);
|
|
2249
|
+
font-size: var(--sc-font-size-sm);
|
|
2250
|
+
line-height: var(--sc-font-line-height-normal);
|
|
2251
|
+
outline: 0;
|
|
2252
|
+
transform-origin: var(--transform-origin);
|
|
2253
|
+
transition:
|
|
2254
|
+
opacity var(--sc-duration-fast) var(--sc-ease-enter),
|
|
2255
|
+
scale var(--sc-duration-fast) var(--sc-ease-enter);
|
|
2256
|
+
}
|
|
2257
|
+
/* With an arrow the popup must not clip it. */
|
|
2258
|
+
.sc-popover:has(> .sc-popover__arrow) {
|
|
2259
|
+
overflow: visible;
|
|
2260
|
+
}
|
|
2261
|
+
.sc-popover[data-starting-style],
|
|
2262
|
+
.sc-popover[data-ending-style] {
|
|
2263
|
+
opacity: 0;
|
|
2264
|
+
scale: 0.97;
|
|
2265
|
+
}
|
|
2266
|
+
.sc-popover[data-ending-style] {
|
|
2267
|
+
transition-timing-function: var(--sc-ease-exit);
|
|
2268
|
+
}
|
|
2269
|
+
.sc-popover[data-instant] {
|
|
2270
|
+
transition: none;
|
|
2271
|
+
}
|
|
2272
|
+
.sc-popover__title {
|
|
2273
|
+
margin: 0;
|
|
2274
|
+
font-size: var(--sc-font-size-md);
|
|
2275
|
+
line-height: var(--sc-font-line-height-snug);
|
|
2276
|
+
font-weight: var(--sc-font-weight-semibold);
|
|
2277
|
+
}
|
|
2278
|
+
.sc-popover__title:has(~ .sc-popover__close),
|
|
2279
|
+
.sc-popover__close ~ .sc-popover__title {
|
|
2280
|
+
padding-inline-end: var(--sc-spacing-xl);
|
|
2281
|
+
}
|
|
2282
|
+
.sc-popover__description {
|
|
2283
|
+
margin: var(--sc-spacing-2xs) 0 0;
|
|
2284
|
+
color: var(--sc-color-text-muted);
|
|
2285
|
+
}
|
|
2286
|
+
.sc-popover__close {
|
|
2287
|
+
position: absolute;
|
|
2288
|
+
inset-block-start: var(--sc-spacing-xs);
|
|
2289
|
+
inset-inline-end: var(--sc-spacing-xs);
|
|
2290
|
+
display: inline-grid;
|
|
2291
|
+
place-items: center;
|
|
2292
|
+
inline-size: var(--sc-size-control-sm);
|
|
2293
|
+
block-size: var(--sc-size-control-sm);
|
|
2294
|
+
padding: 0;
|
|
2295
|
+
border: 0;
|
|
2296
|
+
border-radius: var(--sc-radius-md);
|
|
2297
|
+
background: transparent;
|
|
2298
|
+
color: var(--sc-color-text-muted);
|
|
2299
|
+
cursor: pointer;
|
|
2300
|
+
}
|
|
2301
|
+
.sc-popover__close:hover {
|
|
2302
|
+
background: var(--sc-color-surface-hover);
|
|
2303
|
+
color: var(--sc-color-text-default);
|
|
2304
|
+
}
|
|
2305
|
+
.sc-popover__close:focus-visible {
|
|
2306
|
+
outline: var(--sc-border-width-focus) solid var(--sc-color-border-focus);
|
|
2307
|
+
outline-offset: calc(-1 * var(--sc-border-width-focus));
|
|
2308
|
+
}
|
|
2309
|
+
/* A 16×8 tip with the popup's fill and border, placed by Base UI on the side facing the trigger. It overlaps
|
|
2310
|
+
the popup's border by one hairline so the border does not run across its base. */
|
|
2311
|
+
.sc-popover__arrow {
|
|
2312
|
+
--_w: 16px;
|
|
2313
|
+
--_h: 8px;
|
|
2314
|
+
display: block;
|
|
2315
|
+
inline-size: var(--_w);
|
|
2316
|
+
block-size: calc(var(--_h) + var(--sc-border-width-hairline));
|
|
2317
|
+
overflow: clip;
|
|
2318
|
+
pointer-events: none;
|
|
2319
|
+
}
|
|
2320
|
+
.sc-popover__arrow::before {
|
|
2321
|
+
content: '';
|
|
2322
|
+
position: absolute;
|
|
2323
|
+
inset-block-end: 0;
|
|
2324
|
+
inset-inline-start: 50%;
|
|
2325
|
+
box-sizing: border-box;
|
|
2326
|
+
inline-size: calc(var(--_h) * 1.4142);
|
|
2327
|
+
block-size: calc(var(--_h) * 1.4142);
|
|
2328
|
+
background: var(--sc-color-surface-raised);
|
|
2329
|
+
border: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
2330
|
+
translate: -50% 50%;
|
|
2331
|
+
rotate: 45deg;
|
|
2332
|
+
}
|
|
2333
|
+
.sc-popover__arrow[data-side='top'] {
|
|
2334
|
+
inset-block-end: calc(-1 * var(--_h));
|
|
2335
|
+
rotate: 180deg;
|
|
2336
|
+
}
|
|
2337
|
+
.sc-popover__arrow[data-side='bottom'] {
|
|
2338
|
+
inset-block-start: calc(-1 * var(--_h));
|
|
2339
|
+
}
|
|
2340
|
+
.sc-popover__arrow[data-side='left'],
|
|
2341
|
+
.sc-popover__arrow[data-side='inline-start'] {
|
|
2342
|
+
inset-inline-end: calc(-1 * (var(--_w) + var(--_h)) / 2);
|
|
2343
|
+
rotate: 90deg;
|
|
2344
|
+
}
|
|
2345
|
+
.sc-popover__arrow[data-side='right'],
|
|
2346
|
+
.sc-popover__arrow[data-side='inline-end'] {
|
|
2347
|
+
inset-inline-start: calc(-1 * (var(--_w) + var(--_h)) / 2);
|
|
2348
|
+
rotate: -90deg;
|
|
2349
|
+
}
|
|
2350
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2351
|
+
.sc-popover {
|
|
2352
|
+
transition-duration: 0ms;
|
|
2353
|
+
}
|
|
2354
|
+
.sc-popover[data-starting-style],
|
|
2355
|
+
.sc-popover[data-ending-style] {
|
|
2356
|
+
scale: none;
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2360
|
+
/* ---- broom-icon.css ---- */
|
|
2361
|
+
/* ---- BroomIcon ------------------------------------------------------------- */
|
|
2362
|
+
/* Geometry and motion as approved: the body pivots on the handle top (20.2, 2.2) from -14deg to 8deg while
|
|
2363
|
+
the dust fades in and drifts left in step; strokes stay a fixed screen width at any size. */
|
|
2364
|
+
.sc-broom {
|
|
2365
|
+
--sc-broom-stroke: 1.25px;
|
|
2366
|
+
}
|
|
2367
|
+
/* `display` (72px) is a one-off for the broom's showcase and empty states. Move it into the Icon sizes and
|
|
2368
|
+
tokens if a second icon ever needs it. */
|
|
2369
|
+
.sc-icon.sc-broom[data-size='display'] {
|
|
2370
|
+
--_s: calc(var(--sc-size-icon-xl) * 3);
|
|
2371
|
+
--sc-broom-stroke: 1.75px;
|
|
2372
|
+
}
|
|
2373
|
+
.sc-broom__body,
|
|
2374
|
+
.sc-broom__dust {
|
|
2375
|
+
transform-box: view-box;
|
|
2376
|
+
stroke-width: var(--sc-broom-stroke);
|
|
2377
|
+
}
|
|
2378
|
+
.sc-broom__body {
|
|
2379
|
+
transform-origin: 20.2px 2.2px;
|
|
2380
|
+
}
|
|
2381
|
+
.sc-broom * {
|
|
2382
|
+
vector-effect: non-scaling-stroke;
|
|
2383
|
+
}
|
|
2384
|
+
.sc-broom__band {
|
|
2385
|
+
fill: currentColor;
|
|
2386
|
+
stroke: none;
|
|
2387
|
+
}
|
|
2388
|
+
.sc-broom__dust {
|
|
2389
|
+
opacity: 0;
|
|
2390
|
+
}
|
|
2391
|
+
.sc-broom[data-sweeping] .sc-broom__body {
|
|
2392
|
+
animation: sc-broom-sweep 0.9s ease-in-out infinite alternate;
|
|
2393
|
+
}
|
|
2394
|
+
.sc-broom[data-sweeping] .sc-broom__dust {
|
|
2395
|
+
animation: sc-broom-dust 0.9s ease-in-out infinite alternate;
|
|
2396
|
+
}
|
|
2397
|
+
@keyframes sc-broom-sweep {
|
|
2398
|
+
from {
|
|
2399
|
+
transform: rotate(-14deg);
|
|
2400
|
+
}
|
|
2401
|
+
to {
|
|
2402
|
+
transform: rotate(8deg);
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
/* At the top of the sweep (8deg) the head stays about 2 grid units clear of the dust. */
|
|
2406
|
+
@keyframes sc-broom-dust {
|
|
2407
|
+
from {
|
|
2408
|
+
opacity: 0;
|
|
2409
|
+
transform: translateX(0.5px);
|
|
2410
|
+
}
|
|
2411
|
+
to {
|
|
2412
|
+
opacity: 0.9;
|
|
2413
|
+
transform: translateX(-1px);
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2417
|
+
.sc-broom[data-sweeping] .sc-broom__body,
|
|
2418
|
+
.sc-broom[data-sweeping] .sc-broom__dust {
|
|
2419
|
+
animation: none;
|
|
2420
|
+
}
|
|
2421
|
+
.sc-broom[data-sweeping] .sc-broom__dust {
|
|
2422
|
+
opacity: 0.9;
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
/* Drawn on a 24px grid (the shipped icons use 16px), so inside an IconButton it takes the next icon size up:
|
|
2426
|
+
20px in an md button, as in the approved nav mock. */
|
|
2427
|
+
.sc-icon-button > .sc-button__icon:has(> .sc-broom) {
|
|
2428
|
+
--_icon: var(--sc-size-icon-lg);
|
|
2429
|
+
}
|
|
2430
|
+
.sc-icon-button[data-size='sm'] > .sc-button__icon:has(> .sc-broom) {
|
|
2431
|
+
--_icon: var(--sc-size-icon-md);
|
|
2432
|
+
}
|
|
2433
|
+
.sc-icon-button[data-size='lg'] > .sc-button__icon:has(> .sc-broom) {
|
|
2434
|
+
--_icon: var(--sc-size-icon-xl);
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
/* ---- toolbar.css ---- */
|
|
2438
|
+
/* ---- Toolbar --------------------------------------------------------------- */
|
|
2439
|
+
.sc-toolbar {
|
|
2440
|
+
display: flex;
|
|
2441
|
+
flex-wrap: nowrap;
|
|
2442
|
+
align-items: center;
|
|
2443
|
+
gap: var(--sc-spacing-xs);
|
|
2444
|
+
min-inline-size: 0;
|
|
2445
|
+
overflow-x: auto;
|
|
2446
|
+
scrollbar-width: none;
|
|
2447
|
+
}
|
|
2448
|
+
.sc-toolbar[data-wrap] {
|
|
2449
|
+
flex-wrap: wrap;
|
|
2450
|
+
overflow: visible;
|
|
2451
|
+
}
|
|
2452
|
+
.sc-toolbar__group {
|
|
2453
|
+
display: inline-flex;
|
|
2454
|
+
flex: none;
|
|
2455
|
+
align-items: center;
|
|
2456
|
+
gap: var(--sc-spacing-2xs);
|
|
2457
|
+
}
|
|
2458
|
+
.sc-toolbar__separator {
|
|
2459
|
+
flex: none;
|
|
2460
|
+
inline-size: var(--sc-border-width-hairline);
|
|
2461
|
+
block-size: var(--sc-size-icon-lg);
|
|
2462
|
+
margin-inline: var(--sc-spacing-2xs);
|
|
2463
|
+
background: var(--sc-color-border-default);
|
|
2464
|
+
}
|
|
2465
|
+
.sc-toolbar[data-orientation='vertical'] {
|
|
2466
|
+
flex-direction: column;
|
|
2467
|
+
align-items: stretch;
|
|
1582
2468
|
}
|
|
1583
2469
|
.sc-toolbar[data-orientation='vertical'] > .sc-toolbar__separator {
|
|
1584
2470
|
inline-size: auto;
|
|
@@ -1634,6 +2520,12 @@
|
|
|
1634
2520
|
.sc-toolbar__group[data-gap='4xl'] {
|
|
1635
2521
|
gap: var(--sc-spacing-4xl);
|
|
1636
2522
|
}
|
|
2523
|
+
/* Toolbar.Button stays focusable when disabled (aria-disabled + data-disabled, no `disabled` attribute), so the
|
|
2524
|
+
Button's :disabled look is repeated for it here. */
|
|
2525
|
+
.sc-toolbar .sc-button[data-disabled] {
|
|
2526
|
+
opacity: 0.5;
|
|
2527
|
+
cursor: not-allowed;
|
|
2528
|
+
}
|
|
1637
2529
|
|
|
1638
2530
|
/* ---- banner.css ---- */
|
|
1639
2531
|
/* ---- Banner ---------------------------------------------------------------- */
|
|
@@ -1905,28 +2797,84 @@
|
|
|
1905
2797
|
background: var(--sc-color-surface-canvas);
|
|
1906
2798
|
border-block-end: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
1907
2799
|
}
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
font-weight: var(--sc-font-weight-medium);
|
|
1912
|
-
letter-spacing: 0;
|
|
1913
|
-
text-transform: none;
|
|
1914
|
-
background: transparent;
|
|
1915
|
-
border-block-end: 0;
|
|
1916
|
-
}
|
|
1917
|
-
.sc-table-wrap[data-sticky-header] .sc-table__head .sc-table__header {
|
|
1918
|
-
position: sticky;
|
|
1919
|
-
inset-block-start: 0;
|
|
1920
|
-
z-index: var(--sc-z-sticky);
|
|
1921
|
-
}
|
|
1922
|
-
.sc-table[data-divided] .sc-table__body .sc-table__row:not(:last-child) > .sc-table__cell,
|
|
1923
|
-
.sc-table[data-divided] .sc-table__body .sc-table__row:not(:last-child) > .sc-table__header {
|
|
1924
|
-
border-block-end: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
2800
|
+
/* Sortable column headers: the whole label is the button. */
|
|
2801
|
+
.sc-table__header[data-sortable] {
|
|
2802
|
+
padding: 0;
|
|
1925
2803
|
}
|
|
1926
|
-
.sc-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
2804
|
+
.sc-table__sort {
|
|
2805
|
+
display: inline-flex;
|
|
2806
|
+
align-items: center;
|
|
2807
|
+
gap: var(--sc-spacing-2xs);
|
|
2808
|
+
box-sizing: border-box;
|
|
2809
|
+
inline-size: 100%;
|
|
2810
|
+
min-block-size: var(--_h);
|
|
2811
|
+
margin: 0;
|
|
2812
|
+
padding: var(--_py) var(--_px);
|
|
2813
|
+
border: 0;
|
|
2814
|
+
border-radius: var(--sc-radius-sm);
|
|
2815
|
+
background: transparent;
|
|
2816
|
+
color: inherit;
|
|
2817
|
+
font: inherit;
|
|
2818
|
+
letter-spacing: inherit;
|
|
2819
|
+
text-transform: inherit;
|
|
2820
|
+
text-align: inherit;
|
|
2821
|
+
white-space: inherit;
|
|
2822
|
+
cursor: pointer;
|
|
2823
|
+
user-select: none;
|
|
2824
|
+
}
|
|
2825
|
+
.sc-table__header[data-align='end'] > .sc-table__sort {
|
|
2826
|
+
justify-content: flex-end;
|
|
2827
|
+
}
|
|
2828
|
+
.sc-table__header[data-align='center'] > .sc-table__sort {
|
|
2829
|
+
justify-content: center;
|
|
2830
|
+
}
|
|
2831
|
+
.sc-table__sort:hover {
|
|
2832
|
+
background: var(--sc-color-surface-hover);
|
|
2833
|
+
color: var(--sc-color-text-default);
|
|
2834
|
+
}
|
|
2835
|
+
.sc-table__sort:focus-visible {
|
|
2836
|
+
outline: var(--sc-border-width-focus) solid var(--sc-color-border-focus);
|
|
2837
|
+
outline-offset: calc(-1 * var(--sc-border-width-focus));
|
|
2838
|
+
}
|
|
2839
|
+
.sc-table__sort-icon {
|
|
2840
|
+
display: inline-flex;
|
|
2841
|
+
flex: none;
|
|
2842
|
+
opacity: 0;
|
|
2843
|
+
transition: opacity var(--sc-duration-fast) var(--sc-ease-standard);
|
|
2844
|
+
}
|
|
2845
|
+
.sc-table__sort:hover > .sc-table__sort-icon,
|
|
2846
|
+
.sc-table__sort:focus-visible > .sc-table__sort-icon {
|
|
2847
|
+
opacity: 0.6;
|
|
2848
|
+
}
|
|
2849
|
+
.sc-table__header[data-sorted] {
|
|
2850
|
+
color: var(--sc-color-text-default);
|
|
2851
|
+
}
|
|
2852
|
+
.sc-table__header[data-sorted] .sc-table__sort-icon {
|
|
2853
|
+
opacity: 1;
|
|
2854
|
+
color: var(--sc-color-accent-text);
|
|
2855
|
+
}
|
|
2856
|
+
.sc-table__body .sc-table__header {
|
|
2857
|
+
color: var(--sc-color-text-default);
|
|
2858
|
+
font-size: inherit;
|
|
2859
|
+
font-weight: var(--sc-font-weight-medium);
|
|
2860
|
+
letter-spacing: 0;
|
|
2861
|
+
text-transform: none;
|
|
2862
|
+
background: transparent;
|
|
2863
|
+
border-block-end: 0;
|
|
2864
|
+
}
|
|
2865
|
+
.sc-table-wrap[data-sticky-header] .sc-table__head .sc-table__header {
|
|
2866
|
+
position: sticky;
|
|
2867
|
+
inset-block-start: 0;
|
|
2868
|
+
z-index: var(--sc-z-sticky);
|
|
2869
|
+
}
|
|
2870
|
+
.sc-table[data-divided] .sc-table__body .sc-table__row:not(:last-child) > .sc-table__cell,
|
|
2871
|
+
.sc-table[data-divided] .sc-table__body .sc-table__row:not(:last-child) > .sc-table__header {
|
|
2872
|
+
border-block-end: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
2873
|
+
}
|
|
2874
|
+
.sc-table__foot .sc-table__cell,
|
|
2875
|
+
.sc-table__foot .sc-table__header {
|
|
2876
|
+
border-block-start: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
2877
|
+
font-weight: var(--sc-font-weight-medium);
|
|
1930
2878
|
}
|
|
1931
2879
|
.sc-table__row[data-interactive] {
|
|
1932
2880
|
cursor: pointer;
|
|
@@ -1939,6 +2887,25 @@
|
|
|
1939
2887
|
.sc-table__row[data-selected] > .sc-table__header {
|
|
1940
2888
|
background: var(--sc-color-accent-subtle);
|
|
1941
2889
|
}
|
|
2890
|
+
/* A selected row still shows its hover (docs/adr/0003): the selected wash, a step towards the accent. */
|
|
2891
|
+
.sc-table__row[data-selected][data-interactive]:hover > .sc-table__cell,
|
|
2892
|
+
.sc-table__row[data-selected][data-interactive]:hover > .sc-table__header {
|
|
2893
|
+
background: color-mix(in oklab, var(--sc-color-accent-subtle), var(--sc-color-accent-default) 10%);
|
|
2894
|
+
}
|
|
2895
|
+
/* Selection column: the cell is the hit area, the checkbox the control (the checkbox inherits the cursor). */
|
|
2896
|
+
.sc-table__select {
|
|
2897
|
+
inline-size: 1px;
|
|
2898
|
+
padding-inline-end: var(--sc-spacing-2xs);
|
|
2899
|
+
text-align: center;
|
|
2900
|
+
cursor: pointer;
|
|
2901
|
+
user-select: none;
|
|
2902
|
+
}
|
|
2903
|
+
.sc-table__select > .sc-checkbox {
|
|
2904
|
+
vertical-align: middle;
|
|
2905
|
+
}
|
|
2906
|
+
.sc-table__select[data-disabled] {
|
|
2907
|
+
cursor: not-allowed;
|
|
2908
|
+
}
|
|
1942
2909
|
.sc-table__header[data-align='center'],
|
|
1943
2910
|
.sc-table__cell[data-align='center'] {
|
|
1944
2911
|
text-align: center;
|
|
@@ -1967,6 +2934,156 @@
|
|
|
1967
2934
|
vertical-align: middle;
|
|
1968
2935
|
}
|
|
1969
2936
|
|
|
2937
|
+
/* ---- selection-bar.css ---- */
|
|
2938
|
+
/* ---- SelectionBar ---------------------------------------------------------- */
|
|
2939
|
+
/* Floats centred at the bottom of the viewport, sized to its content. A raised surface like Menu and Popover, so
|
|
2940
|
+
washes inside use the raised tokens (docs/adr/0003). */
|
|
2941
|
+
.sc-selection-bar {
|
|
2942
|
+
--_gutter: var(--sc-spacing-md);
|
|
2943
|
+
--sc-color-surface-hover: var(--sc-color-surface-raised-hover);
|
|
2944
|
+
--sc-color-surface-active: var(--sc-color-surface-raised-active);
|
|
2945
|
+
position: fixed;
|
|
2946
|
+
inset-inline: var(--_gutter);
|
|
2947
|
+
inset-block-end: calc(var(--_gutter) + env(safe-area-inset-bottom, 0px));
|
|
2948
|
+
z-index: var(--sc-z-sticky);
|
|
2949
|
+
box-sizing: border-box;
|
|
2950
|
+
inline-size: fit-content;
|
|
2951
|
+
max-inline-size: min(100vw - 2 * var(--_gutter), 48rem);
|
|
2952
|
+
margin-inline: auto;
|
|
2953
|
+
padding: var(--sc-spacing-2xs) var(--sc-spacing-xs) var(--sc-spacing-2xs) var(--sc-spacing-sm);
|
|
2954
|
+
border: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
2955
|
+
border-radius: var(--sc-radius-lg);
|
|
2956
|
+
background: var(--sc-color-surface-raised);
|
|
2957
|
+
box-shadow: var(--sc-elevation-2);
|
|
2958
|
+
color: var(--sc-color-text-default);
|
|
2959
|
+
font-family: var(--sc-font-family-sans);
|
|
2960
|
+
font-size: var(--sc-font-size-sm);
|
|
2961
|
+
line-height: var(--sc-font-line-height-ui);
|
|
2962
|
+
opacity: 0;
|
|
2963
|
+
translate: 0 var(--sc-spacing-sm);
|
|
2964
|
+
pointer-events: none;
|
|
2965
|
+
transition:
|
|
2966
|
+
opacity var(--sc-duration-base) var(--sc-ease-standard),
|
|
2967
|
+
translate var(--sc-duration-base) var(--sc-ease-standard);
|
|
2968
|
+
}
|
|
2969
|
+
.sc-selection-bar[data-open] {
|
|
2970
|
+
opacity: 1;
|
|
2971
|
+
translate: none;
|
|
2972
|
+
pointer-events: auto;
|
|
2973
|
+
}
|
|
2974
|
+
@starting-style {
|
|
2975
|
+
.sc-selection-bar[data-open] {
|
|
2976
|
+
opacity: 0;
|
|
2977
|
+
translate: 0 var(--sc-spacing-sm);
|
|
2978
|
+
}
|
|
2979
|
+
}
|
|
2980
|
+
/* Phones: stretch between the gutters. */
|
|
2981
|
+
@media (width < 640px) {
|
|
2982
|
+
.sc-selection-bar {
|
|
2983
|
+
inline-size: auto;
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2987
|
+
.sc-selection-bar,
|
|
2988
|
+
.sc-selection-bar[data-open] {
|
|
2989
|
+
translate: none;
|
|
2990
|
+
transition: none;
|
|
2991
|
+
}
|
|
2992
|
+
}
|
|
2993
|
+
.sc-selection-bar__count {
|
|
2994
|
+
flex: none;
|
|
2995
|
+
font-weight: var(--sc-font-weight-medium);
|
|
2996
|
+
font-variant-numeric: tabular-nums;
|
|
2997
|
+
white-space: nowrap;
|
|
2998
|
+
}
|
|
2999
|
+
/* Left in the flow where the bar is mounted (the end of the scrolling content): the last rows scroll clear of it. */
|
|
3000
|
+
.sc-selection-bar__spacer {
|
|
3001
|
+
flex: none;
|
|
3002
|
+
block-size: calc(
|
|
3003
|
+
var(--sc-selection-bar-height, 0px) + var(--sc-spacing-md) + env(safe-area-inset-bottom, 0px)
|
|
3004
|
+
);
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
/* ---- toast.css ---- */
|
|
3008
|
+
/* ---- Toast ----------------------------------------------------------------- */
|
|
3009
|
+
.sc-toast-viewport {
|
|
3010
|
+
position: fixed;
|
|
3011
|
+
inset-block-end: var(--sc-spacing-lg);
|
|
3012
|
+
inset-inline-end: var(--sc-spacing-lg);
|
|
3013
|
+
z-index: var(--sc-z-toast);
|
|
3014
|
+
display: flex;
|
|
3015
|
+
flex-direction: column;
|
|
3016
|
+
align-items: flex-end;
|
|
3017
|
+
gap: var(--sc-spacing-xs);
|
|
3018
|
+
inline-size: min(360px, 100vw - 2 * var(--sc-spacing-md));
|
|
3019
|
+
outline: none;
|
|
3020
|
+
}
|
|
3021
|
+
/* A raised surface, so washes inside use the raised tokens (docs/adr/0003). */
|
|
3022
|
+
.sc-toast {
|
|
3023
|
+
--sc-color-surface-hover: var(--sc-color-surface-raised-hover);
|
|
3024
|
+
--sc-color-surface-active: var(--sc-color-surface-raised-active);
|
|
3025
|
+
box-sizing: border-box;
|
|
3026
|
+
display: flex;
|
|
3027
|
+
align-items: center;
|
|
3028
|
+
gap: var(--sc-spacing-xs);
|
|
3029
|
+
inline-size: 100%;
|
|
3030
|
+
padding: var(--sc-spacing-xs) var(--sc-spacing-xs) var(--sc-spacing-xs) var(--sc-spacing-sm);
|
|
3031
|
+
border: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
3032
|
+
border-inline-start: var(--sc-border-width-focus) solid var(--sc-color-border-strong);
|
|
3033
|
+
border-radius: var(--sc-radius-lg);
|
|
3034
|
+
background: var(--sc-color-surface-raised);
|
|
3035
|
+
box-shadow: var(--sc-elevation-2);
|
|
3036
|
+
color: var(--sc-color-text-default);
|
|
3037
|
+
font-family: var(--sc-font-family-sans);
|
|
3038
|
+
font-size: var(--sc-font-size-sm);
|
|
3039
|
+
line-height: var(--sc-font-line-height-ui);
|
|
3040
|
+
transition:
|
|
3041
|
+
opacity var(--sc-duration-fast) var(--sc-ease-standard),
|
|
3042
|
+
translate var(--sc-duration-fast) var(--sc-ease-standard);
|
|
3043
|
+
}
|
|
3044
|
+
.sc-toast:focus-visible {
|
|
3045
|
+
outline: var(--sc-border-width-focus) solid var(--sc-color-border-focus);
|
|
3046
|
+
outline-offset: var(--sc-border-width-focus);
|
|
3047
|
+
}
|
|
3048
|
+
.sc-toast[data-tone='success'] {
|
|
3049
|
+
border-inline-start-color: var(--sc-color-success-solid);
|
|
3050
|
+
}
|
|
3051
|
+
.sc-toast[data-tone='danger'] {
|
|
3052
|
+
border-inline-start-color: var(--sc-color-danger-solid);
|
|
3053
|
+
}
|
|
3054
|
+
.sc-toast[data-starting-style],
|
|
3055
|
+
.sc-toast[data-ending-style] {
|
|
3056
|
+
opacity: 0;
|
|
3057
|
+
translate: 0 var(--sc-spacing-xs);
|
|
3058
|
+
}
|
|
3059
|
+
.sc-toast__content {
|
|
3060
|
+
flex: 1 1 auto;
|
|
3061
|
+
min-inline-size: 0;
|
|
3062
|
+
}
|
|
3063
|
+
.sc-toast__title {
|
|
3064
|
+
margin: 0;
|
|
3065
|
+
font-size: inherit;
|
|
3066
|
+
font-weight: var(--sc-font-weight-medium);
|
|
3067
|
+
}
|
|
3068
|
+
.sc-toast__description {
|
|
3069
|
+
margin: 0;
|
|
3070
|
+
color: var(--sc-color-text-muted);
|
|
3071
|
+
font-size: var(--sc-font-size-xs);
|
|
3072
|
+
}
|
|
3073
|
+
.sc-toast__action,
|
|
3074
|
+
.sc-toast__close {
|
|
3075
|
+
flex: none;
|
|
3076
|
+
}
|
|
3077
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3078
|
+
.sc-toast {
|
|
3079
|
+
transition: none;
|
|
3080
|
+
}
|
|
3081
|
+
.sc-toast[data-starting-style],
|
|
3082
|
+
.sc-toast[data-ending-style] {
|
|
3083
|
+
translate: none;
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
|
|
1970
3087
|
/* ---- stat.css ---- */
|
|
1971
3088
|
/* ---- Stat ------------------------------------------------------------------ */
|
|
1972
3089
|
.sc-stat {
|
|
@@ -2058,4 +3175,2518 @@
|
|
|
2058
3175
|
font-size: var(--sc-font-size-xs);
|
|
2059
3176
|
}
|
|
2060
3177
|
|
|
3178
|
+
/* ---- chip.css ---- */
|
|
3179
|
+
/* ---- Chip ------------------------------------------------------------------ */
|
|
3180
|
+
.sc-chip {
|
|
3181
|
+
--_h: var(--sc-size-control-sm);
|
|
3182
|
+
--_px: var(--sc-spacing-sm);
|
|
3183
|
+
--_fs: var(--sc-font-size-sm);
|
|
3184
|
+
--_icon: var(--sc-size-icon-sm);
|
|
3185
|
+
--_bg: transparent;
|
|
3186
|
+
--_fg: var(--sc-color-text-default);
|
|
3187
|
+
--_bd: var(--sc-color-border-strong);
|
|
3188
|
+
--_bg-hover: var(--sc-color-surface-hover);
|
|
3189
|
+
--_bg-on: var(--sc-color-surface-active);
|
|
3190
|
+
--_fg-on: var(--sc-color-text-default);
|
|
3191
|
+
--_bd-on: var(--sc-color-text-muted);
|
|
3192
|
+
position: relative;
|
|
3193
|
+
display: inline-flex;
|
|
3194
|
+
align-items: center;
|
|
3195
|
+
box-sizing: border-box;
|
|
3196
|
+
max-inline-size: 100%;
|
|
3197
|
+
block-size: var(--_h);
|
|
3198
|
+
border-radius: var(--sc-radius-full);
|
|
3199
|
+
border: var(--sc-border-width-hairline) solid var(--_bd);
|
|
3200
|
+
background: var(--_bg);
|
|
3201
|
+
color: var(--_fg);
|
|
3202
|
+
font-family: var(--sc-font-family-sans);
|
|
3203
|
+
font-size: var(--_fs);
|
|
3204
|
+
font-weight: var(--sc-font-weight-medium);
|
|
3205
|
+
line-height: 1;
|
|
3206
|
+
white-space: nowrap;
|
|
3207
|
+
transition:
|
|
3208
|
+
background-color var(--sc-duration-fast) var(--sc-ease-standard),
|
|
3209
|
+
border-color var(--sc-duration-fast) var(--sc-ease-standard),
|
|
3210
|
+
color var(--sc-duration-fast) var(--sc-ease-standard);
|
|
3211
|
+
}
|
|
3212
|
+
.sc-chip[data-size='sm'] {
|
|
3213
|
+
--_h: var(--sc-size-badge-md);
|
|
3214
|
+
--_px: var(--sc-spacing-xs);
|
|
3215
|
+
--_fs: var(--sc-font-size-xs);
|
|
3216
|
+
--_icon: var(--sc-size-icon-xs);
|
|
3217
|
+
}
|
|
3218
|
+
.sc-chip[data-selected] {
|
|
3219
|
+
--_bg: var(--_bg-on);
|
|
3220
|
+
--_fg: var(--_fg-on);
|
|
3221
|
+
--_bd: var(--_bd-on);
|
|
3222
|
+
}
|
|
3223
|
+
.sc-chip[data-disabled] {
|
|
3224
|
+
opacity: 0.5;
|
|
3225
|
+
}
|
|
3226
|
+
/* The text, or the toggle button that holds it. */
|
|
3227
|
+
.sc-chip__action,
|
|
3228
|
+
.sc-chip > .sc-chip__icon,
|
|
3229
|
+
.sc-chip > .sc-chip__label {
|
|
3230
|
+
display: inline-flex;
|
|
3231
|
+
align-items: center;
|
|
3232
|
+
min-inline-size: 0;
|
|
3233
|
+
}
|
|
3234
|
+
.sc-chip > .sc-chip__icon {
|
|
3235
|
+
margin-inline-start: var(--_px);
|
|
3236
|
+
}
|
|
3237
|
+
.sc-chip > .sc-chip__label {
|
|
3238
|
+
padding-inline: var(--_px);
|
|
3239
|
+
}
|
|
3240
|
+
.sc-chip > .sc-chip__icon + .sc-chip__label {
|
|
3241
|
+
padding-inline-start: var(--sc-spacing-2xs);
|
|
3242
|
+
}
|
|
3243
|
+
.sc-chip__action {
|
|
3244
|
+
gap: var(--sc-spacing-2xs);
|
|
3245
|
+
box-sizing: border-box;
|
|
3246
|
+
block-size: 100%;
|
|
3247
|
+
margin: 0;
|
|
3248
|
+
padding-inline: var(--_px);
|
|
3249
|
+
border: 0;
|
|
3250
|
+
border-radius: inherit;
|
|
3251
|
+
background: transparent;
|
|
3252
|
+
color: inherit;
|
|
3253
|
+
font: inherit;
|
|
3254
|
+
line-height: 1;
|
|
3255
|
+
cursor: pointer;
|
|
3256
|
+
}
|
|
3257
|
+
.sc-chip__action:hover:not(:disabled) {
|
|
3258
|
+
background: var(--_bg-hover);
|
|
3259
|
+
}
|
|
3260
|
+
.sc-chip[data-selected] > .sc-chip__action:hover:not(:disabled) {
|
|
3261
|
+
background: transparent;
|
|
3262
|
+
filter: brightness(0.97);
|
|
3263
|
+
}
|
|
3264
|
+
.sc-chip__action:disabled {
|
|
3265
|
+
cursor: not-allowed;
|
|
3266
|
+
}
|
|
3267
|
+
.sc-chip__icon {
|
|
3268
|
+
flex: none;
|
|
3269
|
+
inline-size: var(--_icon);
|
|
3270
|
+
block-size: var(--_icon);
|
|
3271
|
+
}
|
|
3272
|
+
.sc-chip__icon > svg {
|
|
3273
|
+
inline-size: 100%;
|
|
3274
|
+
block-size: 100%;
|
|
3275
|
+
}
|
|
3276
|
+
/* The label clips for the ellipsis, so it needs a real line box or descenders get cut (the chip sets line-height: 1). */
|
|
3277
|
+
.sc-chip__label {
|
|
3278
|
+
overflow: hidden;
|
|
3279
|
+
text-overflow: ellipsis;
|
|
3280
|
+
line-height: var(--sc-font-line-height-ui);
|
|
3281
|
+
}
|
|
3282
|
+
.sc-chip[data-removable] > .sc-chip__action,
|
|
3283
|
+
.sc-chip[data-removable] > .sc-chip__label {
|
|
3284
|
+
padding-inline-end: var(--sc-spacing-2xs);
|
|
3285
|
+
}
|
|
3286
|
+
.sc-chip__remove {
|
|
3287
|
+
flex: none;
|
|
3288
|
+
display: inline-grid;
|
|
3289
|
+
place-items: center;
|
|
3290
|
+
box-sizing: border-box;
|
|
3291
|
+
inline-size: calc(var(--_h) - 2 * var(--sc-spacing-2xs) - 2px);
|
|
3292
|
+
block-size: calc(var(--_h) - 2 * var(--sc-spacing-2xs) - 2px);
|
|
3293
|
+
margin-inline-end: var(--sc-spacing-2xs);
|
|
3294
|
+
padding: 0;
|
|
3295
|
+
border: 0;
|
|
3296
|
+
border-radius: var(--sc-radius-full);
|
|
3297
|
+
background: transparent;
|
|
3298
|
+
color: inherit;
|
|
3299
|
+
opacity: 0.7;
|
|
3300
|
+
cursor: pointer;
|
|
3301
|
+
}
|
|
3302
|
+
.sc-chip__remove:hover:not(:disabled) {
|
|
3303
|
+
opacity: 1;
|
|
3304
|
+
background: var(--_bg-hover);
|
|
3305
|
+
}
|
|
3306
|
+
.sc-chip__remove:disabled {
|
|
3307
|
+
cursor: not-allowed;
|
|
3308
|
+
}
|
|
3309
|
+
.sc-chip__action:focus-visible,
|
|
3310
|
+
.sc-chip__remove:focus-visible {
|
|
3311
|
+
outline: var(--sc-border-width-focus) solid var(--sc-color-border-focus);
|
|
3312
|
+
outline-offset: 0;
|
|
3313
|
+
}
|
|
3314
|
+
/* 44px hit area on touch without changing layout. */
|
|
3315
|
+
@media (pointer: coarse) {
|
|
3316
|
+
.sc-chip__action::after,
|
|
3317
|
+
.sc-chip__remove::after {
|
|
3318
|
+
content: '';
|
|
3319
|
+
position: absolute;
|
|
3320
|
+
inset: 50% auto auto 50%;
|
|
3321
|
+
translate: -50% -50%;
|
|
3322
|
+
inline-size: max(100%, var(--sc-size-touch-target));
|
|
3323
|
+
block-size: max(100%, var(--sc-size-touch-target));
|
|
3324
|
+
}
|
|
3325
|
+
.sc-chip__action,
|
|
3326
|
+
.sc-chip__remove {
|
|
3327
|
+
position: relative;
|
|
3328
|
+
}
|
|
3329
|
+
}
|
|
3330
|
+
/* Tones: soft fill when selected, tinted outline otherwise. */
|
|
3331
|
+
.sc-chip[data-tone='accent'] {
|
|
3332
|
+
--_fg: var(--sc-color-accent-text);
|
|
3333
|
+
--_bd: var(--sc-color-accent-text);
|
|
3334
|
+
--_bg-hover: var(--sc-color-accent-subtle);
|
|
3335
|
+
--_bg-on: var(--sc-color-accent-subtle);
|
|
3336
|
+
--_fg-on: var(--sc-color-accent-text);
|
|
3337
|
+
--_bd-on: var(--sc-color-accent-default);
|
|
3338
|
+
}
|
|
3339
|
+
.sc-chip[data-tone='success'] {
|
|
3340
|
+
--_fg: var(--sc-color-success-text);
|
|
3341
|
+
--_bd: var(--sc-color-success-text);
|
|
3342
|
+
--_bg-hover: var(--sc-color-success-subtle);
|
|
3343
|
+
--_bg-on: var(--sc-color-success-subtle);
|
|
3344
|
+
--_fg-on: var(--sc-color-success-text);
|
|
3345
|
+
--_bd-on: var(--sc-color-success-solid);
|
|
3346
|
+
}
|
|
3347
|
+
.sc-chip[data-tone='warning'] {
|
|
3348
|
+
--_fg: var(--sc-color-warning-text);
|
|
3349
|
+
--_bd: var(--sc-color-warning-text);
|
|
3350
|
+
--_bg-hover: var(--sc-color-warning-subtle);
|
|
3351
|
+
--_bg-on: var(--sc-color-warning-subtle);
|
|
3352
|
+
--_fg-on: var(--sc-color-warning-text);
|
|
3353
|
+
--_bd-on: var(--sc-color-warning-solid);
|
|
3354
|
+
}
|
|
3355
|
+
.sc-chip[data-tone='danger'] {
|
|
3356
|
+
--_fg: var(--sc-color-danger-text);
|
|
3357
|
+
--_bd: var(--sc-color-danger-text);
|
|
3358
|
+
--_bg-hover: var(--sc-color-danger-subtle);
|
|
3359
|
+
--_bg-on: var(--sc-color-danger-subtle);
|
|
3360
|
+
--_fg-on: var(--sc-color-danger-text);
|
|
3361
|
+
--_bd-on: var(--sc-color-danger-solid);
|
|
3362
|
+
}
|
|
3363
|
+
.sc-chip[data-tone='info'] {
|
|
3364
|
+
--_fg: var(--sc-color-info-text);
|
|
3365
|
+
--_bd: var(--sc-color-info-text);
|
|
3366
|
+
--_bg-hover: var(--sc-color-info-subtle);
|
|
3367
|
+
--_bg-on: var(--sc-color-info-subtle);
|
|
3368
|
+
--_fg-on: var(--sc-color-info-text);
|
|
3369
|
+
--_bd-on: var(--sc-color-info-solid);
|
|
3370
|
+
}
|
|
3371
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3372
|
+
.sc-chip {
|
|
3373
|
+
transition: none;
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
|
|
3377
|
+
/* ---- disclosure.css ---- */
|
|
3378
|
+
/* ---- Disclosure ------------------------------------------------------------ */
|
|
3379
|
+
.sc-disclosure {
|
|
3380
|
+
display: flex;
|
|
3381
|
+
flex-direction: column;
|
|
3382
|
+
gap: var(--sc-spacing-xs);
|
|
3383
|
+
min-inline-size: 0;
|
|
3384
|
+
font-family: var(--sc-font-family-sans);
|
|
3385
|
+
font-size: var(--sc-font-size-sm);
|
|
3386
|
+
line-height: var(--sc-font-line-height-normal);
|
|
3387
|
+
color: var(--sc-color-text-default);
|
|
3388
|
+
}
|
|
3389
|
+
.sc-disclosure__summary {
|
|
3390
|
+
display: inline-flex;
|
|
3391
|
+
align-items: center;
|
|
3392
|
+
gap: var(--sc-spacing-2xs);
|
|
3393
|
+
inline-size: fit-content;
|
|
3394
|
+
margin-inline: calc(-1 * var(--sc-spacing-2xs));
|
|
3395
|
+
padding: var(--sc-spacing-2xs);
|
|
3396
|
+
border-radius: var(--sc-radius-sm);
|
|
3397
|
+
color: var(--sc-color-accent-text);
|
|
3398
|
+
font-weight: var(--sc-font-weight-medium);
|
|
3399
|
+
line-height: var(--sc-font-line-height-ui);
|
|
3400
|
+
list-style: none;
|
|
3401
|
+
cursor: pointer;
|
|
3402
|
+
user-select: none;
|
|
3403
|
+
}
|
|
3404
|
+
.sc-disclosure__summary::-webkit-details-marker,
|
|
3405
|
+
.sc-disclosure__summary::marker {
|
|
3406
|
+
display: none;
|
|
3407
|
+
content: '';
|
|
3408
|
+
}
|
|
3409
|
+
.sc-disclosure__summary:hover {
|
|
3410
|
+
background: var(--sc-color-surface-hover);
|
|
3411
|
+
}
|
|
3412
|
+
.sc-disclosure__summary:focus-visible {
|
|
3413
|
+
outline: var(--sc-border-width-focus) solid var(--sc-color-border-focus);
|
|
3414
|
+
outline-offset: 0;
|
|
3415
|
+
}
|
|
3416
|
+
.sc-disclosure__chevron {
|
|
3417
|
+
flex: none;
|
|
3418
|
+
inline-size: var(--sc-size-icon-md);
|
|
3419
|
+
block-size: var(--sc-size-icon-md);
|
|
3420
|
+
transition: rotate var(--sc-duration-fast) var(--sc-ease-standard);
|
|
3421
|
+
}
|
|
3422
|
+
.sc-disclosure[open] > .sc-disclosure__summary > .sc-disclosure__chevron {
|
|
3423
|
+
rotate: 180deg;
|
|
3424
|
+
}
|
|
3425
|
+
.sc-disclosure[data-summary-position='end'] > .sc-disclosure__summary {
|
|
3426
|
+
order: 1;
|
|
3427
|
+
}
|
|
3428
|
+
.sc-disclosure__content {
|
|
3429
|
+
min-inline-size: 0;
|
|
3430
|
+
}
|
|
3431
|
+
/* Preview: while closed, the content stays rendered, clipped to N lines and faded. Browsers without
|
|
3432
|
+
`::details-content` keep the native behaviour (content hidden until open). */
|
|
3433
|
+
.sc-disclosure[data-preview]:not([open])::details-content {
|
|
3434
|
+
content-visibility: visible;
|
|
3435
|
+
display: block;
|
|
3436
|
+
max-block-size: calc(var(--_lines, 3) * 1lh);
|
|
3437
|
+
overflow: clip;
|
|
3438
|
+
mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
|
|
3439
|
+
}
|
|
3440
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3441
|
+
.sc-disclosure__chevron {
|
|
3442
|
+
transition: none;
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3445
|
+
|
|
3446
|
+
/* ---- empty-state.css ---- */
|
|
3447
|
+
/* ---- EmptyState ------------------------------------------------------------ */
|
|
3448
|
+
.sc-empty-state {
|
|
3449
|
+
--_icon: var(--sc-size-icon-xl);
|
|
3450
|
+
--_ring: 48px;
|
|
3451
|
+
--_py: var(--sc-spacing-2xl);
|
|
3452
|
+
--_title: var(--sc-font-size-lg);
|
|
3453
|
+
display: flex;
|
|
3454
|
+
flex-direction: column;
|
|
3455
|
+
align-items: center;
|
|
3456
|
+
gap: var(--sc-spacing-xs);
|
|
3457
|
+
box-sizing: border-box;
|
|
3458
|
+
inline-size: 100%;
|
|
3459
|
+
margin: 0;
|
|
3460
|
+
padding: var(--_py) var(--sc-spacing-lg);
|
|
3461
|
+
list-style: none;
|
|
3462
|
+
text-align: center;
|
|
3463
|
+
font-family: var(--sc-font-family-sans);
|
|
3464
|
+
color: var(--sc-color-text-default);
|
|
3465
|
+
}
|
|
3466
|
+
.sc-empty-state[data-size='sm'] {
|
|
3467
|
+
--_icon: var(--sc-size-icon-lg);
|
|
3468
|
+
--_ring: 40px;
|
|
3469
|
+
--_py: var(--sc-spacing-lg);
|
|
3470
|
+
--_title: var(--sc-font-size-md);
|
|
3471
|
+
gap: var(--sc-spacing-2xs);
|
|
3472
|
+
}
|
|
3473
|
+
.sc-empty-state__icon {
|
|
3474
|
+
display: inline-grid;
|
|
3475
|
+
place-items: center;
|
|
3476
|
+
inline-size: var(--_ring);
|
|
3477
|
+
block-size: var(--_ring);
|
|
3478
|
+
margin-block-end: var(--sc-spacing-xs);
|
|
3479
|
+
border-radius: var(--sc-radius-full);
|
|
3480
|
+
background: var(--sc-color-surface-sunken);
|
|
3481
|
+
color: var(--sc-color-text-muted);
|
|
3482
|
+
}
|
|
3483
|
+
.sc-empty-state__icon > svg {
|
|
3484
|
+
inline-size: var(--_icon);
|
|
3485
|
+
block-size: var(--_icon);
|
|
3486
|
+
}
|
|
3487
|
+
.sc-empty-state__title {
|
|
3488
|
+
margin: 0;
|
|
3489
|
+
max-inline-size: 36ch;
|
|
3490
|
+
font-size: var(--_title);
|
|
3491
|
+
font-weight: var(--sc-font-weight-semibold);
|
|
3492
|
+
line-height: var(--sc-font-line-height-snug);
|
|
3493
|
+
letter-spacing: var(--sc-font-tracking-snug);
|
|
3494
|
+
text-wrap: balance;
|
|
3495
|
+
}
|
|
3496
|
+
.sc-empty-state__description {
|
|
3497
|
+
margin: 0;
|
|
3498
|
+
max-inline-size: 48ch;
|
|
3499
|
+
font-size: var(--sc-font-size-sm);
|
|
3500
|
+
line-height: var(--sc-font-line-height-normal);
|
|
3501
|
+
color: var(--sc-color-text-muted);
|
|
3502
|
+
text-wrap: pretty;
|
|
3503
|
+
}
|
|
3504
|
+
.sc-empty-state__actions {
|
|
3505
|
+
display: flex;
|
|
3506
|
+
flex-wrap: wrap;
|
|
3507
|
+
justify-content: center;
|
|
3508
|
+
gap: var(--sc-spacing-xs);
|
|
3509
|
+
margin-block-start: var(--sc-spacing-sm);
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
/* ---- skeleton.css ---- */
|
|
3513
|
+
/* ---- Skeleton -------------------------------------------------------------- */
|
|
3514
|
+
.sc-skeleton {
|
|
3515
|
+
--_base: var(--sc-color-surface-active);
|
|
3516
|
+
--_sheen: var(--sc-color-surface-hover);
|
|
3517
|
+
display: block;
|
|
3518
|
+
box-sizing: border-box;
|
|
3519
|
+
inline-size: 100%;
|
|
3520
|
+
block-size: 1em;
|
|
3521
|
+
border-radius: var(--sc-radius-sm);
|
|
3522
|
+
background: var(--_base);
|
|
3523
|
+
background-image: linear-gradient(90deg, var(--_base) 0%, var(--_sheen) 50%, var(--_base) 100%);
|
|
3524
|
+
background-size: 200% 100%;
|
|
3525
|
+
animation: sc-shimmer 1.6s ease-in-out infinite;
|
|
3526
|
+
}
|
|
3527
|
+
.sc-skeleton[data-variant='text'] {
|
|
3528
|
+
display: inline-block;
|
|
3529
|
+
vertical-align: middle;
|
|
3530
|
+
block-size: 1em;
|
|
3531
|
+
border-radius: var(--sc-radius-sm);
|
|
3532
|
+
}
|
|
3533
|
+
.sc-skeleton[data-variant='rect'] {
|
|
3534
|
+
block-size: 80px;
|
|
3535
|
+
border-radius: var(--sc-radius-md);
|
|
3536
|
+
}
|
|
3537
|
+
.sc-skeleton[data-variant='circle'] {
|
|
3538
|
+
inline-size: 40px;
|
|
3539
|
+
aspect-ratio: 1;
|
|
3540
|
+
block-size: auto;
|
|
3541
|
+
border-radius: var(--sc-radius-full);
|
|
3542
|
+
}
|
|
3543
|
+
.sc-skeleton[data-still] {
|
|
3544
|
+
animation: none;
|
|
3545
|
+
background-image: none;
|
|
3546
|
+
}
|
|
3547
|
+
.sc-skeleton-lines {
|
|
3548
|
+
display: flex;
|
|
3549
|
+
flex-direction: column;
|
|
3550
|
+
gap: calc(1lh - 1em);
|
|
3551
|
+
inline-size: 100%;
|
|
3552
|
+
}
|
|
3553
|
+
.sc-skeleton-lines > .sc-skeleton {
|
|
3554
|
+
display: block;
|
|
3555
|
+
}
|
|
3556
|
+
.sc-skeleton-lines > .sc-skeleton[data-last] {
|
|
3557
|
+
inline-size: 60%;
|
|
3558
|
+
}
|
|
3559
|
+
@keyframes sc-shimmer {
|
|
3560
|
+
from {
|
|
3561
|
+
background-position: 200% 0;
|
|
3562
|
+
}
|
|
3563
|
+
to {
|
|
3564
|
+
background-position: -200% 0;
|
|
3565
|
+
}
|
|
3566
|
+
}
|
|
3567
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3568
|
+
.sc-skeleton {
|
|
3569
|
+
animation: none;
|
|
3570
|
+
background-image: none;
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3574
|
+
/* ---- filepond/dist/filepond.css ---- */
|
|
3575
|
+
/*!
|
|
3576
|
+
* FilePond 4.32.12
|
|
3577
|
+
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
3578
|
+
* Please visit https://pqina.nl/filepond/ for details.
|
|
3579
|
+
*/
|
|
3580
|
+
|
|
3581
|
+
/* eslint-disable */
|
|
3582
|
+
.filepond--assistant {
|
|
3583
|
+
position: absolute;
|
|
3584
|
+
overflow: hidden;
|
|
3585
|
+
height: 1px;
|
|
3586
|
+
width: 1px;
|
|
3587
|
+
padding: 0;
|
|
3588
|
+
border: 0;
|
|
3589
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
3590
|
+
-webkit-clip-path: inset(50%);
|
|
3591
|
+
clip-path: inset(50%);
|
|
3592
|
+
white-space: nowrap;
|
|
3593
|
+
}
|
|
3594
|
+
/* Hard to override styles */
|
|
3595
|
+
.filepond--browser.filepond--browser {
|
|
3596
|
+
/* is positioned absolute so it is focusable for form validation errors */
|
|
3597
|
+
position: absolute;
|
|
3598
|
+
margin: 0;
|
|
3599
|
+
padding: 0;
|
|
3600
|
+
|
|
3601
|
+
/* is positioned ~behind drop label */
|
|
3602
|
+
left: 1em;
|
|
3603
|
+
top: 1.75em;
|
|
3604
|
+
width: calc(100% - 2em);
|
|
3605
|
+
|
|
3606
|
+
/* hide visually */
|
|
3607
|
+
opacity: 0;
|
|
3608
|
+
font-size: 0; /* removes text cursor in Internet Explorer 11 */
|
|
3609
|
+
}
|
|
3610
|
+
.filepond--data {
|
|
3611
|
+
position: absolute;
|
|
3612
|
+
width: 0;
|
|
3613
|
+
height: 0;
|
|
3614
|
+
padding: 0;
|
|
3615
|
+
margin: 0;
|
|
3616
|
+
border: none;
|
|
3617
|
+
visibility: hidden;
|
|
3618
|
+
pointer-events: none;
|
|
3619
|
+
contain: strict;
|
|
3620
|
+
}
|
|
3621
|
+
.filepond--drip {
|
|
3622
|
+
position: absolute;
|
|
3623
|
+
top: 0;
|
|
3624
|
+
left: 0;
|
|
3625
|
+
right: 0;
|
|
3626
|
+
bottom: 0;
|
|
3627
|
+
overflow: hidden;
|
|
3628
|
+
opacity: 0.1;
|
|
3629
|
+
|
|
3630
|
+
/* can't interact with this element */
|
|
3631
|
+
pointer-events: none;
|
|
3632
|
+
|
|
3633
|
+
/* inherit border radius from parent (needed for drip-blob cut of) */
|
|
3634
|
+
border-radius: 0.5em;
|
|
3635
|
+
|
|
3636
|
+
/* this seems to prevent Chrome from redrawing this layer constantly */
|
|
3637
|
+
background: rgba(0, 0, 0, 0.01);
|
|
3638
|
+
}
|
|
3639
|
+
.filepond--drip-blob {
|
|
3640
|
+
position: absolute;
|
|
3641
|
+
-webkit-transform-origin: center center;
|
|
3642
|
+
transform-origin: center center;
|
|
3643
|
+
top: 0;
|
|
3644
|
+
left: 0;
|
|
3645
|
+
width: 8em;
|
|
3646
|
+
height: 8em;
|
|
3647
|
+
margin-left: -4em;
|
|
3648
|
+
margin-top: -4em;
|
|
3649
|
+
background: #292625;
|
|
3650
|
+
border-radius: 50%;
|
|
3651
|
+
|
|
3652
|
+
/* will be animated */
|
|
3653
|
+
will-change: transform, opacity;
|
|
3654
|
+
}
|
|
3655
|
+
.filepond--drop-label {
|
|
3656
|
+
position: absolute;
|
|
3657
|
+
left: 0;
|
|
3658
|
+
right: 0;
|
|
3659
|
+
top: 0;
|
|
3660
|
+
margin: 0;
|
|
3661
|
+
color: #4f4f4f;
|
|
3662
|
+
|
|
3663
|
+
/* center contents */
|
|
3664
|
+
display: flex;
|
|
3665
|
+
justify-content: center;
|
|
3666
|
+
align-items: center;
|
|
3667
|
+
|
|
3668
|
+
/* fixes IE11 centering problems (is overruled by label min-height) */
|
|
3669
|
+
height: 0px;
|
|
3670
|
+
|
|
3671
|
+
/* dont allow selection */
|
|
3672
|
+
-webkit-user-select: none;
|
|
3673
|
+
-moz-user-select: none;
|
|
3674
|
+
-ms-user-select: none;
|
|
3675
|
+
user-select: none;
|
|
3676
|
+
|
|
3677
|
+
/* will be animated */
|
|
3678
|
+
will-change: transform, opacity;
|
|
3679
|
+
}
|
|
3680
|
+
/* Hard to override styles on purpose */
|
|
3681
|
+
.filepond--drop-label.filepond--drop-label label {
|
|
3682
|
+
display: block;
|
|
3683
|
+
margin: 0;
|
|
3684
|
+
padding: 0.5em; /* use padding instead of margin so click area is not impacted */
|
|
3685
|
+
}
|
|
3686
|
+
.filepond--drop-label label {
|
|
3687
|
+
cursor: default;
|
|
3688
|
+
font-size: 0.875em;
|
|
3689
|
+
font-weight: normal;
|
|
3690
|
+
text-align: center;
|
|
3691
|
+
line-height: 1.5;
|
|
3692
|
+
}
|
|
3693
|
+
.filepond--label-action {
|
|
3694
|
+
text-decoration: underline;
|
|
3695
|
+
-webkit-text-decoration-skip: ink;
|
|
3696
|
+
text-decoration-skip-ink: auto;
|
|
3697
|
+
-webkit-text-decoration-color: #a7a4a4;
|
|
3698
|
+
text-decoration-color: #a7a4a4;
|
|
3699
|
+
cursor: pointer;
|
|
3700
|
+
}
|
|
3701
|
+
.filepond--root[data-disabled] .filepond--drop-label label {
|
|
3702
|
+
opacity: 0.5;
|
|
3703
|
+
}
|
|
3704
|
+
/* Hard to override styles */
|
|
3705
|
+
.filepond--file-action-button.filepond--file-action-button {
|
|
3706
|
+
font-size: 1em;
|
|
3707
|
+
width: 1.625em;
|
|
3708
|
+
height: 1.625em;
|
|
3709
|
+
|
|
3710
|
+
font-family: inherit;
|
|
3711
|
+
line-height: inherit;
|
|
3712
|
+
|
|
3713
|
+
margin: 0;
|
|
3714
|
+
padding: 0;
|
|
3715
|
+
border: none;
|
|
3716
|
+
outline: none;
|
|
3717
|
+
|
|
3718
|
+
will-change: transform, opacity;
|
|
3719
|
+
|
|
3720
|
+
/* hidden label */
|
|
3721
|
+
}
|
|
3722
|
+
.filepond--file-action-button.filepond--file-action-button span {
|
|
3723
|
+
position: absolute;
|
|
3724
|
+
overflow: hidden;
|
|
3725
|
+
height: 1px;
|
|
3726
|
+
width: 1px;
|
|
3727
|
+
padding: 0;
|
|
3728
|
+
border: 0;
|
|
3729
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
3730
|
+
-webkit-clip-path: inset(50%);
|
|
3731
|
+
clip-path: inset(50%);
|
|
3732
|
+
white-space: nowrap;
|
|
3733
|
+
}
|
|
3734
|
+
.filepond--file-action-button.filepond--file-action-button {
|
|
3735
|
+
/* scale SVG to fill button */
|
|
3736
|
+
}
|
|
3737
|
+
.filepond--file-action-button.filepond--file-action-button svg {
|
|
3738
|
+
width: 100%;
|
|
3739
|
+
height: 100%;
|
|
3740
|
+
}
|
|
3741
|
+
.filepond--file-action-button.filepond--file-action-button {
|
|
3742
|
+
/* bigger touch area */
|
|
3743
|
+
}
|
|
3744
|
+
.filepond--file-action-button.filepond--file-action-button::after {
|
|
3745
|
+
position: absolute;
|
|
3746
|
+
left: -0.75em;
|
|
3747
|
+
right: -0.75em;
|
|
3748
|
+
top: -0.75em;
|
|
3749
|
+
bottom: -0.75em;
|
|
3750
|
+
content: '';
|
|
3751
|
+
}
|
|
3752
|
+
/* Soft styles */
|
|
3753
|
+
.filepond--file-action-button {
|
|
3754
|
+
/* use default arrow cursor */
|
|
3755
|
+
cursor: auto;
|
|
3756
|
+
|
|
3757
|
+
/* reset default button styles */
|
|
3758
|
+
color: #fff;
|
|
3759
|
+
|
|
3760
|
+
/* set default look n feel */
|
|
3761
|
+
border-radius: 50%;
|
|
3762
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
3763
|
+
background-image: none;
|
|
3764
|
+
|
|
3765
|
+
/* we animate box shadow on focus */
|
|
3766
|
+
/* it's only slightly slower than animating */
|
|
3767
|
+
/* a pseudo-element with transforms and renders */
|
|
3768
|
+
/* a lot better on chrome */
|
|
3769
|
+
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
|
|
3770
|
+
transition: box-shadow 0.25s ease-in;
|
|
3771
|
+
}
|
|
3772
|
+
.filepond--file-action-button:hover,
|
|
3773
|
+
.filepond--file-action-button:focus {
|
|
3774
|
+
box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.9);
|
|
3775
|
+
}
|
|
3776
|
+
.filepond--file-action-button[disabled] {
|
|
3777
|
+
color: rgba(255, 255, 255, 0.5);
|
|
3778
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
3779
|
+
}
|
|
3780
|
+
.filepond--file-action-button[hidden] {
|
|
3781
|
+
display: none;
|
|
3782
|
+
}
|
|
3783
|
+
/* edit button */
|
|
3784
|
+
.filepond--action-edit-item.filepond--action-edit-item {
|
|
3785
|
+
width: 2em;
|
|
3786
|
+
height: 2em;
|
|
3787
|
+
padding: 0.1875em;
|
|
3788
|
+
}
|
|
3789
|
+
.filepond--action-edit-item.filepond--action-edit-item[data-align*='center'] {
|
|
3790
|
+
margin-left: -0.1875em;
|
|
3791
|
+
}
|
|
3792
|
+
.filepond--action-edit-item.filepond--action-edit-item[data-align*='bottom'] {
|
|
3793
|
+
margin-bottom: -0.1875em;
|
|
3794
|
+
}
|
|
3795
|
+
.filepond--action-edit-item-alt {
|
|
3796
|
+
border: none;
|
|
3797
|
+
line-height: inherit;
|
|
3798
|
+
background: transparent;
|
|
3799
|
+
font-family: inherit;
|
|
3800
|
+
color: inherit;
|
|
3801
|
+
outline: none;
|
|
3802
|
+
padding: 0;
|
|
3803
|
+
margin: 0 0 0 0.25em;
|
|
3804
|
+
pointer-events: all;
|
|
3805
|
+
position: absolute;
|
|
3806
|
+
}
|
|
3807
|
+
.filepond--action-edit-item-alt svg {
|
|
3808
|
+
width: 1.3125em;
|
|
3809
|
+
height: 1.3125em;
|
|
3810
|
+
}
|
|
3811
|
+
.filepond--action-edit-item-alt span {
|
|
3812
|
+
font-size: 0;
|
|
3813
|
+
opacity: 0;
|
|
3814
|
+
}
|
|
3815
|
+
.filepond--file-info {
|
|
3816
|
+
position: static;
|
|
3817
|
+
display: flex;
|
|
3818
|
+
flex-direction: column;
|
|
3819
|
+
align-items: flex-start;
|
|
3820
|
+
flex: 1;
|
|
3821
|
+
margin: 0 0.5em 0 0;
|
|
3822
|
+
min-width: 0;
|
|
3823
|
+
|
|
3824
|
+
/* will be animated */
|
|
3825
|
+
will-change: transform, opacity;
|
|
3826
|
+
|
|
3827
|
+
/* can't do anything with this info */
|
|
3828
|
+
pointer-events: none;
|
|
3829
|
+
-webkit-user-select: none;
|
|
3830
|
+
-moz-user-select: none;
|
|
3831
|
+
-ms-user-select: none;
|
|
3832
|
+
user-select: none;
|
|
3833
|
+
|
|
3834
|
+
/* no margins on children */
|
|
3835
|
+
}
|
|
3836
|
+
.filepond--file-info * {
|
|
3837
|
+
margin: 0;
|
|
3838
|
+
}
|
|
3839
|
+
.filepond--file-info {
|
|
3840
|
+
/* we don't want to have these overrules so these selectors are a bit more specific */
|
|
3841
|
+
}
|
|
3842
|
+
.filepond--file-info .filepond--file-info-main {
|
|
3843
|
+
font-size: 0.75em;
|
|
3844
|
+
line-height: 1.2;
|
|
3845
|
+
|
|
3846
|
+
/* we want ellipsis if this bar gets too wide */
|
|
3847
|
+
text-overflow: ellipsis;
|
|
3848
|
+
overflow: hidden;
|
|
3849
|
+
white-space: nowrap;
|
|
3850
|
+
width: 100%;
|
|
3851
|
+
}
|
|
3852
|
+
.filepond--file-info .filepond--file-info-sub {
|
|
3853
|
+
font-size: 0.625em;
|
|
3854
|
+
opacity: 0.5;
|
|
3855
|
+
transition: opacity 0.25s ease-in-out;
|
|
3856
|
+
white-space: nowrap;
|
|
3857
|
+
}
|
|
3858
|
+
.filepond--file-info .filepond--file-info-sub:empty {
|
|
3859
|
+
display: none;
|
|
3860
|
+
}
|
|
3861
|
+
.filepond--file-status {
|
|
3862
|
+
position: static;
|
|
3863
|
+
display: flex;
|
|
3864
|
+
flex-direction: column;
|
|
3865
|
+
align-items: flex-end;
|
|
3866
|
+
flex-grow: 0;
|
|
3867
|
+
flex-shrink: 0;
|
|
3868
|
+
|
|
3869
|
+
margin: 0;
|
|
3870
|
+
min-width: 2.25em;
|
|
3871
|
+
text-align: right;
|
|
3872
|
+
|
|
3873
|
+
/* will be animated */
|
|
3874
|
+
will-change: transform, opacity;
|
|
3875
|
+
|
|
3876
|
+
/* can't do anything with this info */
|
|
3877
|
+
pointer-events: none;
|
|
3878
|
+
-webkit-user-select: none;
|
|
3879
|
+
-moz-user-select: none;
|
|
3880
|
+
-ms-user-select: none;
|
|
3881
|
+
user-select: none;
|
|
3882
|
+
|
|
3883
|
+
/* no margins on children */
|
|
3884
|
+
}
|
|
3885
|
+
.filepond--file-status * {
|
|
3886
|
+
margin: 0;
|
|
3887
|
+
white-space: nowrap;
|
|
3888
|
+
}
|
|
3889
|
+
.filepond--file-status {
|
|
3890
|
+
/* font sizes */
|
|
3891
|
+
}
|
|
3892
|
+
.filepond--file-status .filepond--file-status-main {
|
|
3893
|
+
font-size: 0.75em;
|
|
3894
|
+
line-height: 1.2;
|
|
3895
|
+
}
|
|
3896
|
+
.filepond--file-status .filepond--file-status-sub {
|
|
3897
|
+
font-size: 0.625em;
|
|
3898
|
+
opacity: 0.5;
|
|
3899
|
+
transition: opacity 0.25s ease-in-out;
|
|
3900
|
+
}
|
|
3901
|
+
/* Hard to override styles */
|
|
3902
|
+
.filepond--file-wrapper.filepond--file-wrapper {
|
|
3903
|
+
border: none;
|
|
3904
|
+
margin: 0;
|
|
3905
|
+
padding: 0;
|
|
3906
|
+
min-width: 0;
|
|
3907
|
+
height: 100%;
|
|
3908
|
+
|
|
3909
|
+
/* hide legend for visual users */
|
|
3910
|
+
}
|
|
3911
|
+
.filepond--file-wrapper.filepond--file-wrapper > legend {
|
|
3912
|
+
position: absolute;
|
|
3913
|
+
overflow: hidden;
|
|
3914
|
+
height: 1px;
|
|
3915
|
+
width: 1px;
|
|
3916
|
+
padding: 0;
|
|
3917
|
+
border: 0;
|
|
3918
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
3919
|
+
-webkit-clip-path: inset(50%);
|
|
3920
|
+
clip-path: inset(50%);
|
|
3921
|
+
white-space: nowrap;
|
|
3922
|
+
}
|
|
3923
|
+
.filepond--file {
|
|
3924
|
+
position: static;
|
|
3925
|
+
display: flex;
|
|
3926
|
+
height: 100%;
|
|
3927
|
+
align-items: flex-start;
|
|
3928
|
+
|
|
3929
|
+
padding: 0.5625em 0.5625em;
|
|
3930
|
+
|
|
3931
|
+
color: #fff;
|
|
3932
|
+
border-radius: 0.5em;
|
|
3933
|
+
|
|
3934
|
+
/* control positions */
|
|
3935
|
+
}
|
|
3936
|
+
.filepond--file .filepond--file-status {
|
|
3937
|
+
margin-left: auto;
|
|
3938
|
+
margin-right: 2.25em;
|
|
3939
|
+
}
|
|
3940
|
+
.filepond--file .filepond--processing-complete-indicator {
|
|
3941
|
+
pointer-events: none;
|
|
3942
|
+
-webkit-user-select: none;
|
|
3943
|
+
-moz-user-select: none;
|
|
3944
|
+
-ms-user-select: none;
|
|
3945
|
+
user-select: none;
|
|
3946
|
+
z-index: 3;
|
|
3947
|
+
}
|
|
3948
|
+
.filepond--file .filepond--processing-complete-indicator,
|
|
3949
|
+
.filepond--file .filepond--progress-indicator,
|
|
3950
|
+
.filepond--file .filepond--file-action-button {
|
|
3951
|
+
position: absolute;
|
|
3952
|
+
}
|
|
3953
|
+
.filepond--file {
|
|
3954
|
+
/* .filepond--file-action-button */
|
|
3955
|
+
}
|
|
3956
|
+
.filepond--file [data-align*='left'] {
|
|
3957
|
+
left: 0.5625em;
|
|
3958
|
+
}
|
|
3959
|
+
.filepond--file [data-align*='right'] {
|
|
3960
|
+
right: 0.5625em;
|
|
3961
|
+
}
|
|
3962
|
+
.filepond--file [data-align*='center'] {
|
|
3963
|
+
left: calc(50% - 0.8125em); /* .8125 is half of button width */
|
|
3964
|
+
}
|
|
3965
|
+
.filepond--file [data-align*='bottom'] {
|
|
3966
|
+
bottom: 1.125em;
|
|
3967
|
+
}
|
|
3968
|
+
.filepond--file [data-align='center'] {
|
|
3969
|
+
top: calc(50% - 0.8125em);
|
|
3970
|
+
}
|
|
3971
|
+
.filepond--file .filepond--progress-indicator {
|
|
3972
|
+
margin-top: 0.1875em;
|
|
3973
|
+
}
|
|
3974
|
+
.filepond--file .filepond--progress-indicator[data-align*='right'] {
|
|
3975
|
+
margin-right: 0.1875em;
|
|
3976
|
+
}
|
|
3977
|
+
.filepond--file .filepond--progress-indicator[data-align*='left'] {
|
|
3978
|
+
margin-left: 0.1875em;
|
|
3979
|
+
}
|
|
3980
|
+
/* make sure text does not overlap */
|
|
3981
|
+
[data-filepond-item-state='cancelled'] .filepond--file-info,
|
|
3982
|
+
[data-filepond-item-state*='invalid'] .filepond--file-info,
|
|
3983
|
+
[data-filepond-item-state*='error'] .filepond--file-info {
|
|
3984
|
+
margin-right: 2.25em;
|
|
3985
|
+
}
|
|
3986
|
+
[data-filepond-item-state~='processing'] .filepond--file-status-sub {
|
|
3987
|
+
opacity: 0;
|
|
3988
|
+
}
|
|
3989
|
+
[data-filepond-item-state~='processing']
|
|
3990
|
+
.filepond--action-abort-item-processing
|
|
3991
|
+
~ .filepond--file-status
|
|
3992
|
+
.filepond--file-status-sub {
|
|
3993
|
+
opacity: 0.5;
|
|
3994
|
+
}
|
|
3995
|
+
[data-filepond-item-state='processing-error'] .filepond--file-status-sub {
|
|
3996
|
+
opacity: 0;
|
|
3997
|
+
}
|
|
3998
|
+
[data-filepond-item-state='processing-error']
|
|
3999
|
+
.filepond--action-retry-item-processing
|
|
4000
|
+
~ .filepond--file-status
|
|
4001
|
+
.filepond--file-status-sub {
|
|
4002
|
+
opacity: 0.5;
|
|
4003
|
+
}
|
|
4004
|
+
[data-filepond-item-state='processing-complete'] {
|
|
4005
|
+
/* busy state */
|
|
4006
|
+
}
|
|
4007
|
+
[data-filepond-item-state='processing-complete'] .filepond--action-revert-item-processing svg {
|
|
4008
|
+
-webkit-animation: fall 0.5s 0.125s linear both;
|
|
4009
|
+
animation: fall 0.5s 0.125s linear both;
|
|
4010
|
+
}
|
|
4011
|
+
[data-filepond-item-state='processing-complete'] {
|
|
4012
|
+
/* hide details by default, only show when can revert */
|
|
4013
|
+
}
|
|
4014
|
+
[data-filepond-item-state='processing-complete'] .filepond--file-status-sub {
|
|
4015
|
+
opacity: 0.5;
|
|
4016
|
+
}
|
|
4017
|
+
[data-filepond-item-state='processing-complete']
|
|
4018
|
+
.filepond--processing-complete-indicator:not([style*='hidden'])
|
|
4019
|
+
~ .filepond--file-status
|
|
4020
|
+
.filepond--file-status-sub {
|
|
4021
|
+
opacity: 0;
|
|
4022
|
+
}
|
|
4023
|
+
[data-filepond-item-state='processing-complete'] .filepond--file-info-sub {
|
|
4024
|
+
opacity: 0;
|
|
4025
|
+
}
|
|
4026
|
+
[data-filepond-item-state='processing-complete']
|
|
4027
|
+
.filepond--action-revert-item-processing
|
|
4028
|
+
~ .filepond--file-info
|
|
4029
|
+
.filepond--file-info-sub {
|
|
4030
|
+
opacity: 0.5;
|
|
4031
|
+
}
|
|
4032
|
+
/* file state can be invalid or error, both are visually similar but */
|
|
4033
|
+
/* having them as separate states might be useful */
|
|
4034
|
+
[data-filepond-item-state*='invalid'] .filepond--panel,
|
|
4035
|
+
[data-filepond-item-state*='invalid'] .filepond--file-wrapper,
|
|
4036
|
+
[data-filepond-item-state*='error'] .filepond--panel,
|
|
4037
|
+
[data-filepond-item-state*='error'] .filepond--file-wrapper {
|
|
4038
|
+
-webkit-animation: shake 0.65s linear both;
|
|
4039
|
+
animation: shake 0.65s linear both;
|
|
4040
|
+
}
|
|
4041
|
+
/* spins progress indicator when file is marked as busy */
|
|
4042
|
+
[data-filepond-item-state*='busy'] .filepond--progress-indicator svg {
|
|
4043
|
+
-webkit-animation: spin 1s linear infinite;
|
|
4044
|
+
animation: spin 1s linear infinite;
|
|
4045
|
+
}
|
|
4046
|
+
/**
|
|
4047
|
+
* States
|
|
4048
|
+
*/
|
|
4049
|
+
@-webkit-keyframes spin {
|
|
4050
|
+
0% {
|
|
4051
|
+
-webkit-transform: rotateZ(0deg);
|
|
4052
|
+
transform: rotateZ(0deg);
|
|
4053
|
+
}
|
|
4054
|
+
|
|
4055
|
+
100% {
|
|
4056
|
+
-webkit-transform: rotateZ(360deg);
|
|
4057
|
+
transform: rotateZ(360deg);
|
|
4058
|
+
}
|
|
4059
|
+
}
|
|
4060
|
+
@keyframes spin {
|
|
4061
|
+
0% {
|
|
4062
|
+
-webkit-transform: rotateZ(0deg);
|
|
4063
|
+
transform: rotateZ(0deg);
|
|
4064
|
+
}
|
|
4065
|
+
|
|
4066
|
+
100% {
|
|
4067
|
+
-webkit-transform: rotateZ(360deg);
|
|
4068
|
+
transform: rotateZ(360deg);
|
|
4069
|
+
}
|
|
4070
|
+
}
|
|
4071
|
+
@-webkit-keyframes shake {
|
|
4072
|
+
10%,
|
|
4073
|
+
90% {
|
|
4074
|
+
-webkit-transform: translateX(-0.0625em);
|
|
4075
|
+
transform: translateX(-0.0625em);
|
|
4076
|
+
}
|
|
4077
|
+
|
|
4078
|
+
20%,
|
|
4079
|
+
80% {
|
|
4080
|
+
-webkit-transform: translateX(0.125em);
|
|
4081
|
+
transform: translateX(0.125em);
|
|
4082
|
+
}
|
|
4083
|
+
|
|
4084
|
+
30%,
|
|
4085
|
+
50%,
|
|
4086
|
+
70% {
|
|
4087
|
+
-webkit-transform: translateX(-0.25em);
|
|
4088
|
+
transform: translateX(-0.25em);
|
|
4089
|
+
}
|
|
4090
|
+
|
|
4091
|
+
40%,
|
|
4092
|
+
60% {
|
|
4093
|
+
-webkit-transform: translateX(0.25em);
|
|
4094
|
+
transform: translateX(0.25em);
|
|
4095
|
+
}
|
|
4096
|
+
}
|
|
4097
|
+
@keyframes shake {
|
|
4098
|
+
10%,
|
|
4099
|
+
90% {
|
|
4100
|
+
-webkit-transform: translateX(-0.0625em);
|
|
4101
|
+
transform: translateX(-0.0625em);
|
|
4102
|
+
}
|
|
4103
|
+
|
|
4104
|
+
20%,
|
|
4105
|
+
80% {
|
|
4106
|
+
-webkit-transform: translateX(0.125em);
|
|
4107
|
+
transform: translateX(0.125em);
|
|
4108
|
+
}
|
|
4109
|
+
|
|
4110
|
+
30%,
|
|
4111
|
+
50%,
|
|
4112
|
+
70% {
|
|
4113
|
+
-webkit-transform: translateX(-0.25em);
|
|
4114
|
+
transform: translateX(-0.25em);
|
|
4115
|
+
}
|
|
4116
|
+
|
|
4117
|
+
40%,
|
|
4118
|
+
60% {
|
|
4119
|
+
-webkit-transform: translateX(0.25em);
|
|
4120
|
+
transform: translateX(0.25em);
|
|
4121
|
+
}
|
|
4122
|
+
}
|
|
4123
|
+
@-webkit-keyframes fall {
|
|
4124
|
+
0% {
|
|
4125
|
+
opacity: 0;
|
|
4126
|
+
-webkit-transform: scale(0.5);
|
|
4127
|
+
transform: scale(0.5);
|
|
4128
|
+
-webkit-animation-timing-function: ease-out;
|
|
4129
|
+
animation-timing-function: ease-out;
|
|
4130
|
+
}
|
|
4131
|
+
|
|
4132
|
+
70% {
|
|
4133
|
+
opacity: 1;
|
|
4134
|
+
-webkit-transform: scale(1.1);
|
|
4135
|
+
transform: scale(1.1);
|
|
4136
|
+
-webkit-animation-timing-function: ease-in-out;
|
|
4137
|
+
animation-timing-function: ease-in-out;
|
|
4138
|
+
}
|
|
4139
|
+
|
|
4140
|
+
100% {
|
|
4141
|
+
-webkit-transform: scale(1);
|
|
4142
|
+
transform: scale(1);
|
|
4143
|
+
-webkit-animation-timing-function: ease-out;
|
|
4144
|
+
animation-timing-function: ease-out;
|
|
4145
|
+
}
|
|
4146
|
+
}
|
|
4147
|
+
@keyframes fall {
|
|
4148
|
+
0% {
|
|
4149
|
+
opacity: 0;
|
|
4150
|
+
-webkit-transform: scale(0.5);
|
|
4151
|
+
transform: scale(0.5);
|
|
4152
|
+
-webkit-animation-timing-function: ease-out;
|
|
4153
|
+
animation-timing-function: ease-out;
|
|
4154
|
+
}
|
|
4155
|
+
|
|
4156
|
+
70% {
|
|
4157
|
+
opacity: 1;
|
|
4158
|
+
-webkit-transform: scale(1.1);
|
|
4159
|
+
transform: scale(1.1);
|
|
4160
|
+
-webkit-animation-timing-function: ease-in-out;
|
|
4161
|
+
animation-timing-function: ease-in-out;
|
|
4162
|
+
}
|
|
4163
|
+
|
|
4164
|
+
100% {
|
|
4165
|
+
-webkit-transform: scale(1);
|
|
4166
|
+
transform: scale(1);
|
|
4167
|
+
-webkit-animation-timing-function: ease-out;
|
|
4168
|
+
animation-timing-function: ease-out;
|
|
4169
|
+
}
|
|
4170
|
+
}
|
|
4171
|
+
/* ignore all other interaction elements while dragging a file */
|
|
4172
|
+
.filepond--hopper[data-hopper-state='drag-over'] > * {
|
|
4173
|
+
pointer-events: none;
|
|
4174
|
+
}
|
|
4175
|
+
/* capture all hit tests using a hidden layer, this speeds up the event flow */
|
|
4176
|
+
.filepond--hopper[data-hopper-state='drag-over']::after {
|
|
4177
|
+
content: '';
|
|
4178
|
+
position: absolute;
|
|
4179
|
+
left: 0;
|
|
4180
|
+
top: 0;
|
|
4181
|
+
right: 0;
|
|
4182
|
+
bottom: 0;
|
|
4183
|
+
z-index: 100;
|
|
4184
|
+
}
|
|
4185
|
+
.filepond--progress-indicator {
|
|
4186
|
+
z-index: 103;
|
|
4187
|
+
}
|
|
4188
|
+
.filepond--file-action-button {
|
|
4189
|
+
z-index: 102;
|
|
4190
|
+
}
|
|
4191
|
+
.filepond--file-status {
|
|
4192
|
+
z-index: 101;
|
|
4193
|
+
}
|
|
4194
|
+
.filepond--file-info {
|
|
4195
|
+
z-index: 100;
|
|
4196
|
+
}
|
|
4197
|
+
.filepond--item {
|
|
4198
|
+
position: absolute;
|
|
4199
|
+
top: 0;
|
|
4200
|
+
left: 0;
|
|
4201
|
+
right: 0;
|
|
4202
|
+
z-index: 1;
|
|
4203
|
+
|
|
4204
|
+
padding: 0;
|
|
4205
|
+
margin: 0.25em;
|
|
4206
|
+
|
|
4207
|
+
will-change: transform, opacity;
|
|
4208
|
+
|
|
4209
|
+
touch-action: auto;
|
|
4210
|
+
|
|
4211
|
+
/* item children order */
|
|
4212
|
+
}
|
|
4213
|
+
.filepond--item > .filepond--panel {
|
|
4214
|
+
z-index: -1;
|
|
4215
|
+
}
|
|
4216
|
+
/* has a slight shadow */
|
|
4217
|
+
.filepond--item > .filepond--panel .filepond--panel-bottom {
|
|
4218
|
+
box-shadow: 0 0.0625em 0.125em -0.0625em rgba(0, 0, 0, 0.25);
|
|
4219
|
+
}
|
|
4220
|
+
.filepond--item {
|
|
4221
|
+
/* drag related */
|
|
4222
|
+
}
|
|
4223
|
+
.filepond--item > .filepond--file-wrapper,
|
|
4224
|
+
.filepond--item > .filepond--panel {
|
|
4225
|
+
transition: opacity 0.15s ease-out;
|
|
4226
|
+
}
|
|
4227
|
+
.filepond--item[data-drag-state] {
|
|
4228
|
+
cursor: -webkit-grab;
|
|
4229
|
+
cursor: grab;
|
|
4230
|
+
}
|
|
4231
|
+
.filepond--item[data-drag-state] > .filepond--panel {
|
|
4232
|
+
transition: box-shadow 0.125s ease-in-out;
|
|
4233
|
+
box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
|
4234
|
+
}
|
|
4235
|
+
.filepond--item[data-drag-state='drag'] {
|
|
4236
|
+
cursor: -webkit-grabbing;
|
|
4237
|
+
cursor: grabbing;
|
|
4238
|
+
}
|
|
4239
|
+
.filepond--item[data-drag-state='drag'] > .filepond--panel {
|
|
4240
|
+
box-shadow: 0 0.125em 0.3125em rgba(0, 0, 0, 0.325);
|
|
4241
|
+
}
|
|
4242
|
+
.filepond--item[data-drag-state]:not([data-drag-state='idle']) {
|
|
4243
|
+
z-index: 2;
|
|
4244
|
+
}
|
|
4245
|
+
/* states */
|
|
4246
|
+
.filepond--item-panel {
|
|
4247
|
+
background-color: #64605e;
|
|
4248
|
+
}
|
|
4249
|
+
[data-filepond-item-state='processing-complete'] .filepond--item-panel {
|
|
4250
|
+
background-color: #369763;
|
|
4251
|
+
}
|
|
4252
|
+
[data-filepond-item-state*='invalid'] .filepond--item-panel,
|
|
4253
|
+
[data-filepond-item-state*='error'] .filepond--item-panel {
|
|
4254
|
+
background-color: #c44e47;
|
|
4255
|
+
}
|
|
4256
|
+
/* style of item panel */
|
|
4257
|
+
.filepond--item-panel {
|
|
4258
|
+
border-radius: 0.5em;
|
|
4259
|
+
transition: background-color 0.25s;
|
|
4260
|
+
}
|
|
4261
|
+
/* normal mode */
|
|
4262
|
+
.filepond--list-scroller {
|
|
4263
|
+
position: absolute;
|
|
4264
|
+
top: 0;
|
|
4265
|
+
left: 0;
|
|
4266
|
+
right: 0;
|
|
4267
|
+
margin: 0;
|
|
4268
|
+
will-change: transform;
|
|
4269
|
+
}
|
|
4270
|
+
/* scroll mode */
|
|
4271
|
+
.filepond--list-scroller[data-state='overflow'] .filepond--list {
|
|
4272
|
+
bottom: 0;
|
|
4273
|
+
right: 0;
|
|
4274
|
+
}
|
|
4275
|
+
.filepond--list-scroller[data-state='overflow'] {
|
|
4276
|
+
overflow-y: scroll;
|
|
4277
|
+
overflow-x: hidden;
|
|
4278
|
+
-webkit-overflow-scrolling: touch;
|
|
4279
|
+
-webkit-mask: linear-gradient(to bottom, #000 calc(100% - 0.5em), transparent 100%);
|
|
4280
|
+
mask: linear-gradient(to bottom, #000 calc(100% - 0.5em), transparent 100%);
|
|
4281
|
+
}
|
|
4282
|
+
/* style scrollbar */
|
|
4283
|
+
.filepond--list-scroller::-webkit-scrollbar {
|
|
4284
|
+
background: transparent;
|
|
4285
|
+
}
|
|
4286
|
+
.filepond--list-scroller::-webkit-scrollbar:vertical {
|
|
4287
|
+
width: 1em;
|
|
4288
|
+
}
|
|
4289
|
+
.filepond--list-scroller::-webkit-scrollbar:horizontal {
|
|
4290
|
+
height: 0;
|
|
4291
|
+
}
|
|
4292
|
+
.filepond--list-scroller::-webkit-scrollbar-thumb {
|
|
4293
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
4294
|
+
border-radius: 99999px;
|
|
4295
|
+
border: 0.3125em solid transparent;
|
|
4296
|
+
background-clip: content-box;
|
|
4297
|
+
}
|
|
4298
|
+
/* hard to overide styles on purpose */
|
|
4299
|
+
.filepond--list.filepond--list {
|
|
4300
|
+
position: absolute;
|
|
4301
|
+
top: 0;
|
|
4302
|
+
margin: 0;
|
|
4303
|
+
padding: 0;
|
|
4304
|
+
list-style-type: none;
|
|
4305
|
+
|
|
4306
|
+
/* prevents endless paint calls on filepond--list-scroller */
|
|
4307
|
+
will-change: transform;
|
|
4308
|
+
}
|
|
4309
|
+
/* used for padding so allowed to be restyled */
|
|
4310
|
+
.filepond--list {
|
|
4311
|
+
left: 0.75em;
|
|
4312
|
+
right: 0.75em;
|
|
4313
|
+
}
|
|
4314
|
+
.filepond--root[data-style-panel-layout~='integrated'] {
|
|
4315
|
+
width: 100%;
|
|
4316
|
+
height: 100%;
|
|
4317
|
+
max-width: none;
|
|
4318
|
+
margin: 0;
|
|
4319
|
+
}
|
|
4320
|
+
.filepond--root[data-style-panel-layout~='circle'] .filepond--panel-root,
|
|
4321
|
+
.filepond--root[data-style-panel-layout~='integrated'] .filepond--panel-root {
|
|
4322
|
+
border-radius: 0;
|
|
4323
|
+
}
|
|
4324
|
+
.filepond--root[data-style-panel-layout~='circle'] .filepond--panel-root > *,
|
|
4325
|
+
.filepond--root[data-style-panel-layout~='integrated'] .filepond--panel-root > * {
|
|
4326
|
+
display: none;
|
|
4327
|
+
}
|
|
4328
|
+
.filepond--root[data-style-panel-layout~='circle'] .filepond--drop-label,
|
|
4329
|
+
.filepond--root[data-style-panel-layout~='integrated'] .filepond--drop-label {
|
|
4330
|
+
bottom: 0;
|
|
4331
|
+
height: auto;
|
|
4332
|
+
display: flex;
|
|
4333
|
+
justify-content: center;
|
|
4334
|
+
align-items: center;
|
|
4335
|
+
z-index: 7;
|
|
4336
|
+
}
|
|
4337
|
+
.filepond--root[data-style-panel-layout~='circle'],
|
|
4338
|
+
.filepond--root[data-style-panel-layout~='integrated'] {
|
|
4339
|
+
/* we're only loading one item, this makes the intro animation a bit nicer */
|
|
4340
|
+
}
|
|
4341
|
+
.filepond--root[data-style-panel-layout~='circle'] .filepond--item-panel,
|
|
4342
|
+
.filepond--root[data-style-panel-layout~='integrated'] .filepond--item-panel {
|
|
4343
|
+
display: none;
|
|
4344
|
+
}
|
|
4345
|
+
.filepond--root[data-style-panel-layout~='compact'] .filepond--list-scroller,
|
|
4346
|
+
.filepond--root[data-style-panel-layout~='integrated'] .filepond--list-scroller {
|
|
4347
|
+
overflow: hidden;
|
|
4348
|
+
height: 100%;
|
|
4349
|
+
margin-top: 0;
|
|
4350
|
+
margin-bottom: 0;
|
|
4351
|
+
}
|
|
4352
|
+
.filepond--root[data-style-panel-layout~='compact'] .filepond--list,
|
|
4353
|
+
.filepond--root[data-style-panel-layout~='integrated'] .filepond--list {
|
|
4354
|
+
left: 0;
|
|
4355
|
+
right: 0;
|
|
4356
|
+
height: 100%;
|
|
4357
|
+
}
|
|
4358
|
+
.filepond--root[data-style-panel-layout~='compact'] .filepond--item,
|
|
4359
|
+
.filepond--root[data-style-panel-layout~='integrated'] .filepond--item {
|
|
4360
|
+
margin: 0;
|
|
4361
|
+
}
|
|
4362
|
+
.filepond--root[data-style-panel-layout~='compact'] .filepond--file-wrapper,
|
|
4363
|
+
.filepond--root[data-style-panel-layout~='integrated'] .filepond--file-wrapper {
|
|
4364
|
+
height: 100%;
|
|
4365
|
+
}
|
|
4366
|
+
.filepond--root[data-style-panel-layout~='compact'] .filepond--drop-label,
|
|
4367
|
+
.filepond--root[data-style-panel-layout~='integrated'] .filepond--drop-label {
|
|
4368
|
+
z-index: 7;
|
|
4369
|
+
}
|
|
4370
|
+
.filepond--root[data-style-panel-layout~='circle'] {
|
|
4371
|
+
border-radius: 99999rem;
|
|
4372
|
+
overflow: hidden;
|
|
4373
|
+
}
|
|
4374
|
+
.filepond--root[data-style-panel-layout~='circle'] > .filepond--panel {
|
|
4375
|
+
border-radius: inherit;
|
|
4376
|
+
}
|
|
4377
|
+
.filepond--root[data-style-panel-layout~='circle'] > .filepond--panel > * {
|
|
4378
|
+
display: none;
|
|
4379
|
+
}
|
|
4380
|
+
.filepond--root[data-style-panel-layout~='circle'] {
|
|
4381
|
+
/* circle cuts of this info, so best to hide it */
|
|
4382
|
+
}
|
|
4383
|
+
.filepond--root[data-style-panel-layout~='circle'] .filepond--file-info {
|
|
4384
|
+
display: none;
|
|
4385
|
+
}
|
|
4386
|
+
.filepond--root[data-style-panel-layout~='circle'] .filepond--file-status {
|
|
4387
|
+
display: none;
|
|
4388
|
+
}
|
|
4389
|
+
.filepond--root[data-style-panel-layout~='circle'] .filepond--action-edit-item {
|
|
4390
|
+
opacity: 1 !important;
|
|
4391
|
+
visibility: visible !important;
|
|
4392
|
+
}
|
|
4393
|
+
/* dirfty way to fix circular overflow issue on safari 11+ */
|
|
4394
|
+
@media not all and (min-resolution: 0.001dpcm) {
|
|
4395
|
+
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
|
|
4396
|
+
.filepond--root[data-style-panel-layout~='circle'] {
|
|
4397
|
+
will-change: transform;
|
|
4398
|
+
}
|
|
4399
|
+
}
|
|
4400
|
+
}
|
|
4401
|
+
.filepond--panel-root {
|
|
4402
|
+
border-radius: 0.5em;
|
|
4403
|
+
background-color: #f1f0ef;
|
|
4404
|
+
}
|
|
4405
|
+
.filepond--panel {
|
|
4406
|
+
position: absolute;
|
|
4407
|
+
left: 0;
|
|
4408
|
+
top: 0;
|
|
4409
|
+
right: 0;
|
|
4410
|
+
margin: 0;
|
|
4411
|
+
|
|
4412
|
+
/* defaults to 100% height (fixed height mode) this fixes problem with panel height in IE11 */
|
|
4413
|
+
height: 100% !important;
|
|
4414
|
+
|
|
4415
|
+
/* no interaction possible with panel */
|
|
4416
|
+
pointer-events: none;
|
|
4417
|
+
}
|
|
4418
|
+
.filepond-panel:not([data-scalable='false']) {
|
|
4419
|
+
height: auto !important;
|
|
4420
|
+
}
|
|
4421
|
+
.filepond--panel[data-scalable='false'] > div {
|
|
4422
|
+
display: none;
|
|
4423
|
+
}
|
|
4424
|
+
.filepond--panel[data-scalable='true'] {
|
|
4425
|
+
/* this seems to fix Chrome performance issues */
|
|
4426
|
+
/* - when box-shadow is enabled */
|
|
4427
|
+
/* - when multiple ponds are active on the same page */
|
|
4428
|
+
-webkit-transform-style: preserve-3d;
|
|
4429
|
+
transform-style: preserve-3d;
|
|
4430
|
+
|
|
4431
|
+
/* prevent borders and backgrounds */
|
|
4432
|
+
background-color: transparent !important;
|
|
4433
|
+
border: none !important;
|
|
4434
|
+
}
|
|
4435
|
+
.filepond--panel-top,
|
|
4436
|
+
.filepond--panel-bottom,
|
|
4437
|
+
.filepond--panel-center {
|
|
4438
|
+
position: absolute;
|
|
4439
|
+
left: 0;
|
|
4440
|
+
top: 0;
|
|
4441
|
+
right: 0;
|
|
4442
|
+
margin: 0;
|
|
4443
|
+
padding: 0;
|
|
4444
|
+
}
|
|
4445
|
+
.filepond--panel-top,
|
|
4446
|
+
.filepond--panel-bottom {
|
|
4447
|
+
height: 0.5em;
|
|
4448
|
+
}
|
|
4449
|
+
.filepond--panel-top {
|
|
4450
|
+
border-bottom-left-radius: 0 !important;
|
|
4451
|
+
border-bottom-right-radius: 0 !important;
|
|
4452
|
+
border-bottom: none !important;
|
|
4453
|
+
|
|
4454
|
+
/* fixes tiny transparant line between top and center panel */
|
|
4455
|
+
}
|
|
4456
|
+
.filepond--panel-top::after {
|
|
4457
|
+
content: '';
|
|
4458
|
+
position: absolute;
|
|
4459
|
+
height: 2px;
|
|
4460
|
+
left: 0;
|
|
4461
|
+
right: 0;
|
|
4462
|
+
bottom: -1px;
|
|
4463
|
+
background-color: inherit;
|
|
4464
|
+
}
|
|
4465
|
+
.filepond--panel-center,
|
|
4466
|
+
.filepond--panel-bottom {
|
|
4467
|
+
will-change: transform;
|
|
4468
|
+
-webkit-backface-visibility: hidden;
|
|
4469
|
+
backface-visibility: hidden;
|
|
4470
|
+
-webkit-transform-origin: left top;
|
|
4471
|
+
transform-origin: left top;
|
|
4472
|
+
-webkit-transform: translate3d(0, 0.5em, 0);
|
|
4473
|
+
transform: translate3d(0, 0.5em, 0);
|
|
4474
|
+
}
|
|
4475
|
+
.filepond--panel-bottom {
|
|
4476
|
+
border-top-left-radius: 0 !important;
|
|
4477
|
+
border-top-right-radius: 0 !important;
|
|
4478
|
+
border-top: none !important;
|
|
4479
|
+
|
|
4480
|
+
/* fixes tiny transparant line between bottom and center of panel */
|
|
4481
|
+
}
|
|
4482
|
+
.filepond--panel-bottom::before {
|
|
4483
|
+
content: '';
|
|
4484
|
+
position: absolute;
|
|
4485
|
+
height: 2px;
|
|
4486
|
+
left: 0;
|
|
4487
|
+
right: 0;
|
|
4488
|
+
top: -1px;
|
|
4489
|
+
background-color: inherit;
|
|
4490
|
+
}
|
|
4491
|
+
.filepond--panel-center {
|
|
4492
|
+
/* the center panel is scaled using scale3d to fit the correct height */
|
|
4493
|
+
/* we use 100px instead of 1px as scaling 1px to a huge height is really laggy on chrome */
|
|
4494
|
+
height: 100px !important;
|
|
4495
|
+
border-top: none !important;
|
|
4496
|
+
border-bottom: none !important;
|
|
4497
|
+
border-radius: 0 !important;
|
|
4498
|
+
|
|
4499
|
+
/* hide if not transformed, prevents a little flash when the panel is at 100px height while attached for first time */
|
|
4500
|
+
}
|
|
4501
|
+
.filepond--panel-center:not([style]) {
|
|
4502
|
+
visibility: hidden;
|
|
4503
|
+
}
|
|
4504
|
+
.filepond--progress-indicator {
|
|
4505
|
+
position: static;
|
|
4506
|
+
width: 1.25em;
|
|
4507
|
+
height: 1.25em;
|
|
4508
|
+
|
|
4509
|
+
color: #fff;
|
|
4510
|
+
|
|
4511
|
+
/* can't have margins */
|
|
4512
|
+
margin: 0;
|
|
4513
|
+
|
|
4514
|
+
/* no interaction possible with progress indicator */
|
|
4515
|
+
pointer-events: none;
|
|
4516
|
+
|
|
4517
|
+
/* will be animated */
|
|
4518
|
+
will-change: transform, opacity;
|
|
4519
|
+
}
|
|
4520
|
+
.filepond--progress-indicator svg {
|
|
4521
|
+
width: 100%;
|
|
4522
|
+
height: 100%;
|
|
4523
|
+
vertical-align: top;
|
|
4524
|
+
transform-box: fill-box; /* should center the animation correctly when zoomed in */
|
|
4525
|
+
}
|
|
4526
|
+
.filepond--progress-indicator path {
|
|
4527
|
+
fill: none;
|
|
4528
|
+
stroke: currentColor;
|
|
4529
|
+
}
|
|
4530
|
+
.filepond--list-scroller {
|
|
4531
|
+
z-index: 6;
|
|
4532
|
+
}
|
|
4533
|
+
.filepond--drop-label {
|
|
4534
|
+
z-index: 5;
|
|
4535
|
+
}
|
|
4536
|
+
.filepond--drip {
|
|
4537
|
+
z-index: 3;
|
|
4538
|
+
}
|
|
4539
|
+
.filepond--root > .filepond--panel {
|
|
4540
|
+
z-index: 2;
|
|
4541
|
+
}
|
|
4542
|
+
.filepond--browser {
|
|
4543
|
+
z-index: 1;
|
|
4544
|
+
}
|
|
4545
|
+
.filepond--root {
|
|
4546
|
+
/* layout*/
|
|
4547
|
+
box-sizing: border-box;
|
|
4548
|
+
position: relative;
|
|
4549
|
+
margin-bottom: 1em;
|
|
4550
|
+
|
|
4551
|
+
/* base font size for whole component */
|
|
4552
|
+
font-size: 1rem;
|
|
4553
|
+
|
|
4554
|
+
/* base line height */
|
|
4555
|
+
line-height: normal;
|
|
4556
|
+
|
|
4557
|
+
/* up uses default system font family */
|
|
4558
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
|
|
4559
|
+
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
4560
|
+
|
|
4561
|
+
/* will increase font weight a bit on Safari */
|
|
4562
|
+
font-weight: 450;
|
|
4563
|
+
|
|
4564
|
+
/* default text alignment */
|
|
4565
|
+
text-align: left;
|
|
4566
|
+
|
|
4567
|
+
/* better text rendering on Safari */
|
|
4568
|
+
text-rendering: optimizeLegibility;
|
|
4569
|
+
|
|
4570
|
+
/* text direction is ltr for now */
|
|
4571
|
+
direction: ltr;
|
|
4572
|
+
|
|
4573
|
+
/* optimize rendering */
|
|
4574
|
+
/* https://developer.mozilla.org/en-US/docs/Web/CSS/contain */
|
|
4575
|
+
contain: layout style size;
|
|
4576
|
+
|
|
4577
|
+
/* correct box sizing, line-height and positioning on child elements */
|
|
4578
|
+
}
|
|
4579
|
+
.filepond--root * {
|
|
4580
|
+
box-sizing: inherit;
|
|
4581
|
+
line-height: inherit;
|
|
4582
|
+
}
|
|
4583
|
+
.filepond--root *:not(text) {
|
|
4584
|
+
font-size: inherit;
|
|
4585
|
+
}
|
|
4586
|
+
.filepond--root {
|
|
4587
|
+
/* block everything */
|
|
4588
|
+
}
|
|
4589
|
+
.filepond--root[data-disabled] {
|
|
4590
|
+
pointer-events: none;
|
|
4591
|
+
}
|
|
4592
|
+
.filepond--root[data-disabled] .filepond--list-scroller {
|
|
4593
|
+
pointer-events: all;
|
|
4594
|
+
}
|
|
4595
|
+
.filepond--root[data-disabled] .filepond--list {
|
|
4596
|
+
pointer-events: none;
|
|
4597
|
+
}
|
|
4598
|
+
/**
|
|
4599
|
+
* Root element children layout
|
|
4600
|
+
*/
|
|
4601
|
+
.filepond--root .filepond--drop-label {
|
|
4602
|
+
min-height: 4.75em;
|
|
4603
|
+
}
|
|
4604
|
+
.filepond--root .filepond--list-scroller {
|
|
4605
|
+
margin-top: 1em;
|
|
4606
|
+
margin-bottom: 1em;
|
|
4607
|
+
}
|
|
4608
|
+
.filepond--root .filepond--credits {
|
|
4609
|
+
position: absolute;
|
|
4610
|
+
right: 0;
|
|
4611
|
+
opacity: 0.4;
|
|
4612
|
+
line-height: 0.85;
|
|
4613
|
+
font-size: 11px;
|
|
4614
|
+
color: inherit;
|
|
4615
|
+
text-decoration: none;
|
|
4616
|
+
z-index: 3;
|
|
4617
|
+
bottom: -14px;
|
|
4618
|
+
}
|
|
4619
|
+
.filepond--root .filepond--credits[style] {
|
|
4620
|
+
top: 0;
|
|
4621
|
+
bottom: auto;
|
|
4622
|
+
margin-top: 14px;
|
|
4623
|
+
}
|
|
4624
|
+
|
|
4625
|
+
/* ---- file-input.css ---- */
|
|
4626
|
+
/* ---- FileInput (FilePond, docs/adr/0004) ------------------------------------
|
|
4627
|
+
FilePond's own stylesheet (filepond/dist/filepond.css) is concatenated just before this file, inside the
|
|
4628
|
+
same layer. Everything here is scoped under .sc-file-input and wins by specificity, never !important.
|
|
4629
|
+
FilePond lays out its rows in JS from measured sizes, so spacing is set in em on its elements and the
|
|
4630
|
+
zone's height through min-height on the drop label. */
|
|
4631
|
+
.sc-file-input-field {
|
|
4632
|
+
/* Drop zone height: two control heights, so `size` and compact density move it with the other fields. */
|
|
4633
|
+
--_zone: calc(var(--_h) * 2);
|
|
4634
|
+
}
|
|
4635
|
+
.sc-file-input {
|
|
4636
|
+
position: relative;
|
|
4637
|
+
box-sizing: border-box;
|
|
4638
|
+
border: var(--sc-border-width-hairline) dashed var(--sc-color-border-strong);
|
|
4639
|
+
border-radius: var(--sc-radius-lg);
|
|
4640
|
+
background: var(--sc-color-surface-default);
|
|
4641
|
+
color: var(--sc-color-text-default);
|
|
4642
|
+
font-size: var(--_fs);
|
|
4643
|
+
transition:
|
|
4644
|
+
border-color var(--sc-duration-fast) var(--sc-ease-standard),
|
|
4645
|
+
background-color var(--sc-duration-fast) var(--sc-ease-standard);
|
|
4646
|
+
}
|
|
4647
|
+
.sc-file-input:not([data-disabled]):hover {
|
|
4648
|
+
border-color: var(--sc-color-text-muted);
|
|
4649
|
+
}
|
|
4650
|
+
/* The file input is FilePond's single tab stop and is invisible; the ring goes on the zone. */
|
|
4651
|
+
.sc-file-input:has(.filepond--browser:focus-visible) {
|
|
4652
|
+
border-color: var(--sc-color-border-focus);
|
|
4653
|
+
outline: var(--sc-border-width-focus) solid var(--sc-color-border-focus);
|
|
4654
|
+
outline-offset: var(--sc-border-width-focus);
|
|
4655
|
+
}
|
|
4656
|
+
.sc-file-input:has(.filepond--root[data-hopper-state='drag-over']) {
|
|
4657
|
+
border-style: solid;
|
|
4658
|
+
border-color: var(--sc-color-accent-default);
|
|
4659
|
+
background: var(--sc-color-accent-subtle);
|
|
4660
|
+
}
|
|
4661
|
+
.sc-file-input[data-invalid] {
|
|
4662
|
+
border-color: var(--sc-color-danger-solid);
|
|
4663
|
+
}
|
|
4664
|
+
.sc-file-input[data-disabled] {
|
|
4665
|
+
border-style: solid;
|
|
4666
|
+
border-color: var(--sc-color-border-default);
|
|
4667
|
+
background: var(--sc-color-surface-sunken);
|
|
4668
|
+
color: var(--sc-color-text-muted);
|
|
4669
|
+
cursor: not-allowed;
|
|
4670
|
+
}
|
|
4671
|
+
|
|
4672
|
+
/* Before FilePond loads (server render, first paint): the same zone, inert. */
|
|
4673
|
+
.sc-file-input__placeholder {
|
|
4674
|
+
display: flex;
|
|
4675
|
+
align-items: center;
|
|
4676
|
+
justify-content: center;
|
|
4677
|
+
min-block-size: var(--_zone);
|
|
4678
|
+
padding: var(--sc-spacing-xs);
|
|
4679
|
+
color: var(--sc-color-text-muted);
|
|
4680
|
+
text-align: center;
|
|
4681
|
+
}
|
|
4682
|
+
.sc-file-input__browse {
|
|
4683
|
+
color: var(--sc-color-text-link);
|
|
4684
|
+
text-decoration: underline;
|
|
4685
|
+
text-underline-offset: 0.2em;
|
|
4686
|
+
}
|
|
4687
|
+
|
|
4688
|
+
/* FilePond's root and the panel it animates behind the rows: the zone above paints the surface instead. */
|
|
4689
|
+
.sc-file-input .filepond--root {
|
|
4690
|
+
margin: 0;
|
|
4691
|
+
font-family: inherit;
|
|
4692
|
+
font-size: inherit;
|
|
4693
|
+
font-weight: inherit;
|
|
4694
|
+
line-height: var(--sc-font-line-height-ui);
|
|
4695
|
+
color: inherit;
|
|
4696
|
+
}
|
|
4697
|
+
.sc-file-input .filepond--panel-root {
|
|
4698
|
+
background-color: transparent;
|
|
4699
|
+
}
|
|
4700
|
+
.sc-file-input .filepond--drip {
|
|
4701
|
+
display: none;
|
|
4702
|
+
}
|
|
4703
|
+
.sc-file-input .filepond--root .filepond--drop-label {
|
|
4704
|
+
min-height: var(--_zone);
|
|
4705
|
+
color: var(--sc-color-text-muted);
|
|
4706
|
+
}
|
|
4707
|
+
/* Disabled reads through the sunken surface, solid border and cursor; the text stays at muted so it keeps AA
|
|
4708
|
+
(axe cannot tell this label belongs to a disabled control). */
|
|
4709
|
+
.sc-file-input[data-disabled] .filepond--root .filepond--drop-label {
|
|
4710
|
+
color: var(--sc-color-text-muted);
|
|
4711
|
+
}
|
|
4712
|
+
.sc-file-input .filepond--drop-label.filepond--drop-label label {
|
|
4713
|
+
padding: var(--sc-spacing-xs);
|
|
4714
|
+
font-size: 1em;
|
|
4715
|
+
line-height: var(--sc-font-line-height-ui);
|
|
4716
|
+
cursor: pointer;
|
|
4717
|
+
}
|
|
4718
|
+
.sc-file-input .filepond--root[data-disabled] .filepond--drop-label label {
|
|
4719
|
+
opacity: 1;
|
|
4720
|
+
}
|
|
4721
|
+
.sc-file-input .filepond--label-action {
|
|
4722
|
+
color: var(--sc-color-text-link);
|
|
4723
|
+
text-decoration-color: currentColor;
|
|
4724
|
+
text-underline-offset: 0.2em;
|
|
4725
|
+
}
|
|
4726
|
+
.sc-file-input[data-disabled] .filepond--label-action {
|
|
4727
|
+
color: inherit;
|
|
4728
|
+
}
|
|
4729
|
+
.sc-file-input .filepond--root .filepond--list-scroller {
|
|
4730
|
+
margin-block: 0 0.5em;
|
|
4731
|
+
}
|
|
4732
|
+
.sc-file-input .filepond--list.filepond--list {
|
|
4733
|
+
inset-inline: 0.5em;
|
|
4734
|
+
}
|
|
4735
|
+
|
|
4736
|
+
/* File rows */
|
|
4737
|
+
.sc-file-input .filepond--item {
|
|
4738
|
+
margin: 0.25em 0;
|
|
4739
|
+
}
|
|
4740
|
+
.sc-file-input .filepond--item-panel {
|
|
4741
|
+
border-radius: var(--sc-radius-md);
|
|
4742
|
+
background-color: var(--sc-color-surface-sunken);
|
|
4743
|
+
}
|
|
4744
|
+
.sc-file-input[data-disabled] .filepond--item-panel {
|
|
4745
|
+
background-color: var(--sc-color-surface-default);
|
|
4746
|
+
}
|
|
4747
|
+
.sc-file-input .filepond--item > .filepond--panel .filepond--panel-bottom {
|
|
4748
|
+
box-shadow: none;
|
|
4749
|
+
}
|
|
4750
|
+
.sc-file-input .filepond--file {
|
|
4751
|
+
align-items: center;
|
|
4752
|
+
padding: 0.5em 0.75em;
|
|
4753
|
+
color: var(--sc-color-text-default);
|
|
4754
|
+
}
|
|
4755
|
+
.sc-file-input[data-disabled] .filepond--file {
|
|
4756
|
+
color: var(--sc-color-text-muted);
|
|
4757
|
+
}
|
|
4758
|
+
.sc-file-input .filepond--file-info {
|
|
4759
|
+
flex-direction: row;
|
|
4760
|
+
align-items: baseline;
|
|
4761
|
+
gap: var(--sc-spacing-xs);
|
|
4762
|
+
margin-inline-end: 2.5em;
|
|
4763
|
+
}
|
|
4764
|
+
.sc-file-input .filepond--file-info .filepond--file-info-main {
|
|
4765
|
+
flex: 0 1 auto;
|
|
4766
|
+
inline-size: auto;
|
|
4767
|
+
font-size: 1em;
|
|
4768
|
+
font-weight: var(--sc-font-weight-medium);
|
|
4769
|
+
line-height: var(--sc-font-line-height-ui);
|
|
4770
|
+
}
|
|
4771
|
+
.sc-file-input .filepond--file-info .filepond--file-info-sub {
|
|
4772
|
+
flex: none;
|
|
4773
|
+
font-size: var(--sc-font-size-xs);
|
|
4774
|
+
font-variant-numeric: tabular-nums;
|
|
4775
|
+
color: var(--sc-color-text-muted);
|
|
4776
|
+
opacity: 1;
|
|
4777
|
+
}
|
|
4778
|
+
.sc-file-input .filepond--file-status {
|
|
4779
|
+
display: none;
|
|
4780
|
+
}
|
|
4781
|
+
.sc-file-input .filepond--progress-indicator {
|
|
4782
|
+
color: var(--sc-color-text-muted);
|
|
4783
|
+
}
|
|
4784
|
+
/* The × at the end of each row: a ghost icon button. */
|
|
4785
|
+
.sc-file-input .filepond--file-action-button.filepond--file-action-button {
|
|
4786
|
+
display: inline-grid;
|
|
4787
|
+
place-items: center;
|
|
4788
|
+
inline-size: var(--sc-size-control-sm);
|
|
4789
|
+
block-size: var(--sc-size-control-sm);
|
|
4790
|
+
border-radius: var(--sc-radius-sm);
|
|
4791
|
+
font-size: inherit;
|
|
4792
|
+
}
|
|
4793
|
+
.sc-file-input .filepond--file [data-align*='right'] {
|
|
4794
|
+
inset-inline-end: 0.25em;
|
|
4795
|
+
}
|
|
4796
|
+
.sc-file-input .filepond--file-action-button.filepond--file-action-button svg {
|
|
4797
|
+
inline-size: var(--sc-size-icon-md);
|
|
4798
|
+
block-size: var(--sc-size-icon-md);
|
|
4799
|
+
}
|
|
4800
|
+
.sc-file-input .filepond--action-remove-item {
|
|
4801
|
+
top: 50%;
|
|
4802
|
+
margin-block-start: calc(var(--sc-size-control-sm) / -2);
|
|
4803
|
+
background: transparent;
|
|
4804
|
+
color: var(--sc-color-text-muted);
|
|
4805
|
+
box-shadow: none;
|
|
4806
|
+
cursor: pointer;
|
|
4807
|
+
transition:
|
|
4808
|
+
background-color var(--sc-duration-fast) var(--sc-ease-standard),
|
|
4809
|
+
color var(--sc-duration-fast) var(--sc-ease-standard);
|
|
4810
|
+
}
|
|
4811
|
+
.sc-file-input .filepond--action-remove-item:hover,
|
|
4812
|
+
.sc-file-input .filepond--action-remove-item:focus {
|
|
4813
|
+
background: var(--sc-color-surface-hover);
|
|
4814
|
+
color: var(--sc-color-text-default);
|
|
4815
|
+
box-shadow: none;
|
|
4816
|
+
}
|
|
4817
|
+
.sc-file-input .filepond--file-action-button.filepond--file-action-button:focus-visible {
|
|
4818
|
+
outline: var(--sc-border-width-focus) solid var(--sc-color-border-focus);
|
|
4819
|
+
outline-offset: 0;
|
|
4820
|
+
}
|
|
4821
|
+
.sc-file-input .filepond--action-remove-item[disabled] {
|
|
4822
|
+
background: transparent;
|
|
4823
|
+
color: var(--sc-color-text-subtle);
|
|
4824
|
+
cursor: not-allowed;
|
|
4825
|
+
}
|
|
4826
|
+
|
|
4827
|
+
/* The file's name as a preview button (FileInput `preview`): a foreign node placed before FilePond's info,
|
|
4828
|
+
which keeps its size line; FilePond's own name span hides while the button is there. FilePond turns
|
|
4829
|
+
pointer events off inside rows, so the button turns them back on. */
|
|
4830
|
+
.sc-file-input .filepond--file:has(> .sc-file-input__preview) .filepond--file-info-main {
|
|
4831
|
+
display: none;
|
|
4832
|
+
}
|
|
4833
|
+
/* With the name in the button, the info holds only the size: it keeps its width (and its margin clear of
|
|
4834
|
+
the ×) and the button's name truncates instead. */
|
|
4835
|
+
.sc-file-input .filepond--file:has(> .sc-file-input__preview) .filepond--file-info {
|
|
4836
|
+
flex: none;
|
|
4837
|
+
}
|
|
4838
|
+
.sc-file-input .sc-file-input__preview {
|
|
4839
|
+
flex: 0 1 auto;
|
|
4840
|
+
min-inline-size: 0;
|
|
4841
|
+
margin: 0 var(--sc-spacing-xs) 0 calc(-1 * var(--sc-spacing-3xs));
|
|
4842
|
+
padding: 0 var(--sc-spacing-3xs);
|
|
4843
|
+
overflow: hidden;
|
|
4844
|
+
border: 0;
|
|
4845
|
+
border-radius: var(--sc-radius-sm);
|
|
4846
|
+
background: transparent;
|
|
4847
|
+
color: var(--sc-color-text-link);
|
|
4848
|
+
font: inherit;
|
|
4849
|
+
font-weight: var(--sc-font-weight-medium);
|
|
4850
|
+
line-height: var(--sc-font-line-height-ui);
|
|
4851
|
+
text-align: start;
|
|
4852
|
+
text-decoration: underline;
|
|
4853
|
+
text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
|
|
4854
|
+
text-underline-offset: 0.2em;
|
|
4855
|
+
text-overflow: ellipsis;
|
|
4856
|
+
white-space: nowrap;
|
|
4857
|
+
pointer-events: auto;
|
|
4858
|
+
cursor: pointer;
|
|
4859
|
+
}
|
|
4860
|
+
.sc-file-input .sc-file-input__preview:hover {
|
|
4861
|
+
text-decoration-color: currentColor;
|
|
4862
|
+
}
|
|
4863
|
+
.sc-file-input .sc-file-input__preview:focus-visible {
|
|
4864
|
+
outline: var(--sc-border-width-focus) solid var(--sc-color-border-focus);
|
|
4865
|
+
outline-offset: 0;
|
|
4866
|
+
}
|
|
4867
|
+
|
|
4868
|
+
/* The message slot stays in the tree (it is the live region); out of the flow while empty. */
|
|
4869
|
+
.sc-file-input__messages {
|
|
4870
|
+
display: flex;
|
|
4871
|
+
flex-direction: column;
|
|
4872
|
+
gap: var(--sc-spacing-3xs);
|
|
4873
|
+
}
|
|
4874
|
+
.sc-file-input__messages:empty {
|
|
4875
|
+
position: absolute;
|
|
4876
|
+
}
|
|
4877
|
+
|
|
4878
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4879
|
+
.sc-file-input,
|
|
4880
|
+
.sc-file-input .filepond--action-remove-item {
|
|
4881
|
+
transition: none;
|
|
4882
|
+
}
|
|
4883
|
+
}
|
|
4884
|
+
|
|
4885
|
+
/* ---- file-preview-dialog.css ---- */
|
|
4886
|
+
/* ---- FilePreviewDialog -------------------------------------------------------
|
|
4887
|
+
A `lg` Dialog whose body holds the file: a PDF frame, a text block or an image, each held inside the
|
|
4888
|
+
viewport so the popup itself rarely scrolls. */
|
|
4889
|
+
.sc-file-preview__frame,
|
|
4890
|
+
.sc-file-preview__text,
|
|
4891
|
+
.sc-file-preview__image {
|
|
4892
|
+
display: block;
|
|
4893
|
+
box-sizing: border-box;
|
|
4894
|
+
inline-size: 100%;
|
|
4895
|
+
border: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
4896
|
+
border-radius: var(--sc-radius-md);
|
|
4897
|
+
}
|
|
4898
|
+
.sc-file-preview__frame {
|
|
4899
|
+
/* The popup's 85dvh cap, less its title, description, padding and the action row, so it never scrolls. */
|
|
4900
|
+
block-size: clamp(16rem, 85dvh - 11rem, 60rem);
|
|
4901
|
+
background: var(--sc-color-surface-sunken);
|
|
4902
|
+
}
|
|
4903
|
+
.sc-file-preview__text {
|
|
4904
|
+
max-block-size: 60dvh;
|
|
4905
|
+
margin: 0;
|
|
4906
|
+
padding: var(--sc-spacing-sm) var(--sc-spacing-md);
|
|
4907
|
+
overflow: auto;
|
|
4908
|
+
background: var(--sc-color-surface-sunken);
|
|
4909
|
+
color: var(--sc-color-text-default);
|
|
4910
|
+
font-family: var(--sc-font-family-mono);
|
|
4911
|
+
font-size: var(--sc-font-size-xs);
|
|
4912
|
+
line-height: var(--sc-font-line-height-normal);
|
|
4913
|
+
white-space: pre-wrap;
|
|
4914
|
+
overflow-wrap: anywhere;
|
|
4915
|
+
}
|
|
4916
|
+
.sc-file-preview__text:focus-visible {
|
|
4917
|
+
outline: var(--sc-border-width-focus) solid var(--sc-color-border-focus);
|
|
4918
|
+
outline-offset: var(--sc-border-width-focus);
|
|
4919
|
+
}
|
|
4920
|
+
.sc-file-preview__image {
|
|
4921
|
+
inline-size: auto;
|
|
4922
|
+
max-inline-size: 100%;
|
|
4923
|
+
max-block-size: 65dvh;
|
|
4924
|
+
margin-inline: auto;
|
|
4925
|
+
object-fit: contain;
|
|
4926
|
+
background: var(--sc-color-surface-sunken);
|
|
4927
|
+
}
|
|
4928
|
+
.sc-file-preview__actions {
|
|
4929
|
+
display: flex;
|
|
4930
|
+
justify-content: flex-end;
|
|
4931
|
+
margin-block-start: var(--sc-spacing-md);
|
|
4932
|
+
}
|
|
4933
|
+
.sc-file-preview__tab {
|
|
4934
|
+
display: flex;
|
|
4935
|
+
flex-direction: column;
|
|
4936
|
+
align-items: flex-start;
|
|
4937
|
+
gap: var(--sc-spacing-sm);
|
|
4938
|
+
}
|
|
4939
|
+
.sc-file-preview__note {
|
|
4940
|
+
margin: var(--sc-spacing-xs) 0 0;
|
|
4941
|
+
color: var(--sc-color-text-muted);
|
|
4942
|
+
}
|
|
4943
|
+
.sc-file-preview__tab > .sc-file-preview__note {
|
|
4944
|
+
margin: 0;
|
|
4945
|
+
}
|
|
4946
|
+
|
|
4947
|
+
/* ---- full-screen-flow.css ---- */
|
|
4948
|
+
/* ---- FullScreenFlow -------------------------------------------------------- */
|
|
4949
|
+
/* The flow is `Dialog variant="fullscreen"` with this class on the popup: header, body and footer rows,
|
|
4950
|
+
no padding of its own (each row clears the safe areas itself). */
|
|
4951
|
+
.sc-dialog__popup.sc-flow {
|
|
4952
|
+
display: grid;
|
|
4953
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
4954
|
+
padding: 0;
|
|
4955
|
+
isolation: isolate;
|
|
4956
|
+
font-size: var(--sc-font-size-md);
|
|
4957
|
+
line-height: var(--sc-font-line-height-normal);
|
|
4958
|
+
}
|
|
4959
|
+
.sc-flow__decoration {
|
|
4960
|
+
position: absolute;
|
|
4961
|
+
inset: 0;
|
|
4962
|
+
z-index: 0;
|
|
4963
|
+
overflow: hidden;
|
|
4964
|
+
border-radius: inherit;
|
|
4965
|
+
pointer-events: none;
|
|
4966
|
+
}
|
|
4967
|
+
.sc-flow__header,
|
|
4968
|
+
.sc-flow__body,
|
|
4969
|
+
.sc-flow__footer {
|
|
4970
|
+
position: relative;
|
|
4971
|
+
z-index: 1;
|
|
4972
|
+
min-inline-size: 0;
|
|
4973
|
+
}
|
|
4974
|
+
|
|
4975
|
+
/* Header: title, progress centred in the space left, status, ×. */
|
|
4976
|
+
.sc-flow__header {
|
|
4977
|
+
display: flex;
|
|
4978
|
+
align-items: center;
|
|
4979
|
+
gap: var(--sc-spacing-sm) var(--sc-spacing-md);
|
|
4980
|
+
padding-block: calc(var(--sc-spacing-xs) + env(safe-area-inset-top, 0px)) var(--sc-spacing-xs);
|
|
4981
|
+
padding-inline: calc(var(--sc-spacing-md) + env(safe-area-inset-left, 0px))
|
|
4982
|
+
calc(var(--sc-spacing-xs) + env(safe-area-inset-right, 0px));
|
|
4983
|
+
border-block-end: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
4984
|
+
background: color-mix(in oklab, var(--sc-color-surface-default) 88%, transparent);
|
|
4985
|
+
backdrop-filter: blur(6px);
|
|
4986
|
+
}
|
|
4987
|
+
.sc-flow__heading {
|
|
4988
|
+
display: inline-flex;
|
|
4989
|
+
align-items: center;
|
|
4990
|
+
gap: var(--sc-spacing-xs);
|
|
4991
|
+
min-inline-size: 0;
|
|
4992
|
+
}
|
|
4993
|
+
.sc-flow__logo {
|
|
4994
|
+
display: inline-flex;
|
|
4995
|
+
flex: none;
|
|
4996
|
+
}
|
|
4997
|
+
.sc-flow .sc-flow__title {
|
|
4998
|
+
margin: 0;
|
|
4999
|
+
padding: 0;
|
|
5000
|
+
font-size: var(--sc-font-size-sm);
|
|
5001
|
+
line-height: var(--sc-font-line-height-snug);
|
|
5002
|
+
font-weight: var(--sc-font-weight-semibold);
|
|
5003
|
+
letter-spacing: var(--sc-font-tracking-normal);
|
|
5004
|
+
white-space: nowrap;
|
|
5005
|
+
overflow-wrap: normal;
|
|
5006
|
+
}
|
|
5007
|
+
.sc-flow__compact-title {
|
|
5008
|
+
display: none;
|
|
5009
|
+
min-inline-size: 0;
|
|
5010
|
+
overflow: hidden;
|
|
5011
|
+
font-size: var(--sc-font-size-sm);
|
|
5012
|
+
font-weight: var(--sc-font-weight-medium);
|
|
5013
|
+
text-overflow: ellipsis;
|
|
5014
|
+
white-space: nowrap;
|
|
5015
|
+
}
|
|
5016
|
+
.sc-flow__status {
|
|
5017
|
+
display: inline-flex;
|
|
5018
|
+
align-items: center;
|
|
5019
|
+
gap: var(--sc-spacing-2xs);
|
|
5020
|
+
margin-inline-start: auto;
|
|
5021
|
+
font-size: var(--sc-font-size-xs);
|
|
5022
|
+
color: var(--sc-color-text-subtle);
|
|
5023
|
+
white-space: nowrap;
|
|
5024
|
+
}
|
|
5025
|
+
.sc-flow__close {
|
|
5026
|
+
flex: none;
|
|
5027
|
+
margin-inline-start: auto;
|
|
5028
|
+
}
|
|
5029
|
+
.sc-flow__status + .sc-flow__close {
|
|
5030
|
+
margin-inline-start: 0;
|
|
5031
|
+
}
|
|
5032
|
+
|
|
5033
|
+
/* Progress: one segment per chapter, as wide as its share of the steps (flex-grow set inline). */
|
|
5034
|
+
.sc-flow__progress {
|
|
5035
|
+
flex: 1 1 12rem;
|
|
5036
|
+
display: grid;
|
|
5037
|
+
gap: var(--sc-spacing-2xs);
|
|
5038
|
+
min-inline-size: 0;
|
|
5039
|
+
max-inline-size: 32.5rem;
|
|
5040
|
+
margin-inline: auto;
|
|
5041
|
+
}
|
|
5042
|
+
.sc-flow__progress + .sc-flow__status,
|
|
5043
|
+
.sc-flow__progress + .sc-flow__close {
|
|
5044
|
+
margin-inline-start: 0;
|
|
5045
|
+
}
|
|
5046
|
+
.sc-flow__progress-label {
|
|
5047
|
+
overflow: hidden;
|
|
5048
|
+
font-size: var(--sc-font-size-xs);
|
|
5049
|
+
color: var(--sc-color-text-muted);
|
|
5050
|
+
text-align: center;
|
|
5051
|
+
text-overflow: ellipsis;
|
|
5052
|
+
white-space: nowrap;
|
|
5053
|
+
}
|
|
5054
|
+
.sc-flow__progress-label :where(b, strong) {
|
|
5055
|
+
color: var(--sc-color-text-default);
|
|
5056
|
+
font-weight: var(--sc-font-weight-medium);
|
|
5057
|
+
}
|
|
5058
|
+
.sc-flow__segments {
|
|
5059
|
+
display: flex;
|
|
5060
|
+
gap: var(--sc-spacing-2xs);
|
|
5061
|
+
margin: 0;
|
|
5062
|
+
padding: 0;
|
|
5063
|
+
list-style: none;
|
|
5064
|
+
}
|
|
5065
|
+
.sc-flow__segment {
|
|
5066
|
+
flex: 1 1 0;
|
|
5067
|
+
block-size: 4px;
|
|
5068
|
+
overflow: hidden;
|
|
5069
|
+
border-radius: var(--sc-radius-full);
|
|
5070
|
+
background: var(--sc-color-surface-active);
|
|
5071
|
+
}
|
|
5072
|
+
.sc-flow__segment-fill {
|
|
5073
|
+
display: block;
|
|
5074
|
+
block-size: 100%;
|
|
5075
|
+
border-radius: inherit;
|
|
5076
|
+
background: var(--sc-color-accent-default);
|
|
5077
|
+
transition: inline-size var(--sc-duration-slower) var(--sc-ease-standard);
|
|
5078
|
+
}
|
|
5079
|
+
|
|
5080
|
+
/* Body: rail beside the viewport from 1000px. */
|
|
5081
|
+
.sc-flow__body {
|
|
5082
|
+
display: grid;
|
|
5083
|
+
grid-template-columns: minmax(0, 1fr);
|
|
5084
|
+
min-block-size: 0;
|
|
5085
|
+
}
|
|
5086
|
+
.sc-flow__rail {
|
|
5087
|
+
display: none;
|
|
5088
|
+
}
|
|
5089
|
+
@media (width >= 1000px) {
|
|
5090
|
+
.sc-flow__body:has(> .sc-flow__rail) {
|
|
5091
|
+
grid-template-columns: 14.5rem minmax(0, 1fr);
|
|
5092
|
+
}
|
|
5093
|
+
.sc-flow__rail {
|
|
5094
|
+
display: block;
|
|
5095
|
+
overflow-y: auto;
|
|
5096
|
+
padding-block: var(--sc-spacing-lg);
|
|
5097
|
+
padding-inline: var(--sc-spacing-md) var(--sc-spacing-sm);
|
|
5098
|
+
border-inline-end: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
5099
|
+
}
|
|
5100
|
+
}
|
|
5101
|
+
.sc-flow__rail-group {
|
|
5102
|
+
margin-block-end: var(--sc-spacing-sm);
|
|
5103
|
+
}
|
|
5104
|
+
.sc-flow__rail-label {
|
|
5105
|
+
display: block;
|
|
5106
|
+
padding: 0 var(--sc-spacing-xs) var(--sc-spacing-2xs);
|
|
5107
|
+
font-size: var(--sc-font-size-xs);
|
|
5108
|
+
font-weight: var(--sc-font-weight-medium);
|
|
5109
|
+
letter-spacing: var(--sc-font-tracking-wide);
|
|
5110
|
+
text-transform: uppercase;
|
|
5111
|
+
color: var(--sc-color-text-subtle);
|
|
5112
|
+
}
|
|
5113
|
+
.sc-flow__rail-list {
|
|
5114
|
+
margin: 0;
|
|
5115
|
+
padding: 0;
|
|
5116
|
+
list-style: none;
|
|
5117
|
+
}
|
|
5118
|
+
.sc-flow__rail-item {
|
|
5119
|
+
display: grid;
|
|
5120
|
+
grid-template-columns: 1.25rem minmax(0, 1fr) auto;
|
|
5121
|
+
align-items: center;
|
|
5122
|
+
gap: var(--sc-spacing-xs);
|
|
5123
|
+
box-sizing: border-box;
|
|
5124
|
+
inline-size: 100%;
|
|
5125
|
+
min-block-size: var(--sc-size-control-sm);
|
|
5126
|
+
padding: 0 var(--sc-spacing-xs);
|
|
5127
|
+
border: 0;
|
|
5128
|
+
border-radius: var(--sc-radius-md);
|
|
5129
|
+
background: transparent;
|
|
5130
|
+
color: var(--sc-color-text-muted);
|
|
5131
|
+
font: inherit;
|
|
5132
|
+
font-size: var(--sc-font-size-sm);
|
|
5133
|
+
text-align: start;
|
|
5134
|
+
cursor: pointer;
|
|
5135
|
+
transition:
|
|
5136
|
+
background-color var(--sc-duration-fast) var(--sc-ease-standard),
|
|
5137
|
+
color var(--sc-duration-fast) var(--sc-ease-standard);
|
|
5138
|
+
}
|
|
5139
|
+
.sc-flow__rail-item:hover:not(:disabled) {
|
|
5140
|
+
background: var(--sc-color-surface-hover);
|
|
5141
|
+
color: var(--sc-color-text-default);
|
|
5142
|
+
}
|
|
5143
|
+
.sc-flow__rail-item:disabled {
|
|
5144
|
+
color: var(--sc-color-text-subtle);
|
|
5145
|
+
cursor: not-allowed;
|
|
5146
|
+
}
|
|
5147
|
+
.sc-flow__rail-item[aria-current='step'] {
|
|
5148
|
+
background: var(--sc-color-accent-subtle);
|
|
5149
|
+
color: var(--sc-color-accent-text);
|
|
5150
|
+
font-weight: var(--sc-font-weight-medium);
|
|
5151
|
+
}
|
|
5152
|
+
.sc-flow__rail-mark {
|
|
5153
|
+
display: grid;
|
|
5154
|
+
place-items: center;
|
|
5155
|
+
inline-size: 1.25rem;
|
|
5156
|
+
block-size: 1.25rem;
|
|
5157
|
+
}
|
|
5158
|
+
.sc-flow__rail-item:not([data-done]) .sc-flow__rail-mark::before {
|
|
5159
|
+
content: '';
|
|
5160
|
+
inline-size: 7px;
|
|
5161
|
+
block-size: 7px;
|
|
5162
|
+
border-radius: var(--sc-radius-full);
|
|
5163
|
+
background: currentColor;
|
|
5164
|
+
opacity: 0.55;
|
|
5165
|
+
}
|
|
5166
|
+
.sc-flow__rail-item[data-done] .sc-flow__rail-mark {
|
|
5167
|
+
color: var(--sc-color-success-text);
|
|
5168
|
+
}
|
|
5169
|
+
.sc-flow__rail-adornment {
|
|
5170
|
+
display: inline-flex;
|
|
5171
|
+
color: var(--sc-color-accent-text);
|
|
5172
|
+
}
|
|
5173
|
+
.sc-flow__rail-note {
|
|
5174
|
+
display: grid;
|
|
5175
|
+
gap: var(--sc-spacing-2xs);
|
|
5176
|
+
margin-block-start: var(--sc-spacing-md);
|
|
5177
|
+
padding: var(--sc-spacing-xs) var(--sc-spacing-sm);
|
|
5178
|
+
border-radius: var(--sc-radius-lg);
|
|
5179
|
+
background: var(--sc-color-surface-sunken);
|
|
5180
|
+
font-size: var(--sc-font-size-xs);
|
|
5181
|
+
color: var(--sc-color-text-muted);
|
|
5182
|
+
}
|
|
5183
|
+
@media (height <= 820px) {
|
|
5184
|
+
.sc-flow__rail-note {
|
|
5185
|
+
display: none;
|
|
5186
|
+
}
|
|
5187
|
+
}
|
|
5188
|
+
|
|
5189
|
+
/* Viewport: the leaving and arriving steps share one grid cell while they animate. */
|
|
5190
|
+
.sc-flow__viewport {
|
|
5191
|
+
position: relative;
|
|
5192
|
+
display: grid;
|
|
5193
|
+
min-block-size: 0;
|
|
5194
|
+
overflow-x: hidden;
|
|
5195
|
+
overflow-y: auto;
|
|
5196
|
+
overscroll-behavior: contain;
|
|
5197
|
+
}
|
|
5198
|
+
.sc-flow__frame {
|
|
5199
|
+
--_dir: 1;
|
|
5200
|
+
--_flip: 1;
|
|
5201
|
+
grid-area: 1 / 1;
|
|
5202
|
+
min-inline-size: 0;
|
|
5203
|
+
}
|
|
5204
|
+
.sc-flow__frame[data-direction='back'] {
|
|
5205
|
+
--_dir: -1;
|
|
5206
|
+
}
|
|
5207
|
+
.sc-flow__frame:dir(rtl) {
|
|
5208
|
+
--_flip: -1;
|
|
5209
|
+
}
|
|
5210
|
+
.sc-flow__frame[data-phase='enter'] {
|
|
5211
|
+
animation: sc-flow-step-in var(--sc-duration-slower) var(--sc-ease-enter) both;
|
|
5212
|
+
}
|
|
5213
|
+
.sc-flow__frame[data-phase='exit'] {
|
|
5214
|
+
pointer-events: none;
|
|
5215
|
+
animation: sc-flow-step-out var(--sc-duration-base) var(--sc-ease-exit) forwards;
|
|
5216
|
+
}
|
|
5217
|
+
@keyframes sc-flow-step-in {
|
|
5218
|
+
from {
|
|
5219
|
+
opacity: 0;
|
|
5220
|
+
translate: calc(var(--_dir) * var(--_flip) * 72px) 0;
|
|
5221
|
+
}
|
|
5222
|
+
}
|
|
5223
|
+
@keyframes sc-flow-step-out {
|
|
5224
|
+
to {
|
|
5225
|
+
opacity: 0;
|
|
5226
|
+
translate: calc(var(--_dir) * var(--_flip) * -40px) 0;
|
|
5227
|
+
scale: 0.985;
|
|
5228
|
+
}
|
|
5229
|
+
}
|
|
5230
|
+
@keyframes sc-flow-fade-in {
|
|
5231
|
+
from {
|
|
5232
|
+
opacity: 0;
|
|
5233
|
+
}
|
|
5234
|
+
}
|
|
5235
|
+
@keyframes sc-flow-fade-out {
|
|
5236
|
+
to {
|
|
5237
|
+
opacity: 0;
|
|
5238
|
+
}
|
|
5239
|
+
}
|
|
5240
|
+
|
|
5241
|
+
/* Step */
|
|
5242
|
+
.sc-flow__step {
|
|
5243
|
+
display: grid;
|
|
5244
|
+
align-content: start;
|
|
5245
|
+
gap: var(--sc-spacing-lg);
|
|
5246
|
+
box-sizing: border-box;
|
|
5247
|
+
inline-size: 100%;
|
|
5248
|
+
max-inline-size: 45rem;
|
|
5249
|
+
margin-inline: auto;
|
|
5250
|
+
padding: var(--sc-spacing-xl) var(--sc-spacing-md) var(--sc-spacing-2xl);
|
|
5251
|
+
}
|
|
5252
|
+
@media (width >= 700px) {
|
|
5253
|
+
.sc-flow__step {
|
|
5254
|
+
padding-block-start: var(--sc-spacing-2xl);
|
|
5255
|
+
padding-inline: var(--sc-spacing-xl);
|
|
5256
|
+
}
|
|
5257
|
+
}
|
|
5258
|
+
.sc-flow__step-head {
|
|
5259
|
+
display: grid;
|
|
5260
|
+
gap: var(--sc-spacing-xs);
|
|
5261
|
+
}
|
|
5262
|
+
.sc-flow__eyebrow {
|
|
5263
|
+
margin: 0;
|
|
5264
|
+
font-size: var(--sc-font-size-xs);
|
|
5265
|
+
font-weight: var(--sc-font-weight-medium);
|
|
5266
|
+
letter-spacing: var(--sc-font-tracking-wide);
|
|
5267
|
+
text-transform: uppercase;
|
|
5268
|
+
color: var(--sc-color-accent-text);
|
|
5269
|
+
}
|
|
5270
|
+
.sc-flow__step-title {
|
|
5271
|
+
margin: 0;
|
|
5272
|
+
font-size: var(--sc-font-size-3xl);
|
|
5273
|
+
line-height: var(--sc-font-line-height-snug);
|
|
5274
|
+
font-weight: var(--sc-font-weight-semibold);
|
|
5275
|
+
letter-spacing: var(--sc-font-tracking-tight);
|
|
5276
|
+
text-wrap: balance;
|
|
5277
|
+
}
|
|
5278
|
+
/* Focus lands here only by script, to move the reading position; Tab never reaches it. */
|
|
5279
|
+
.sc-flow__step-title:focus,
|
|
5280
|
+
.sc-flow__step-title:focus-visible {
|
|
5281
|
+
outline: none;
|
|
5282
|
+
}
|
|
5283
|
+
.sc-flow__step-description {
|
|
5284
|
+
max-inline-size: 60ch;
|
|
5285
|
+
color: var(--sc-color-text-muted);
|
|
5286
|
+
}
|
|
5287
|
+
|
|
5288
|
+
/* Footer: back at the start, hint and primary action at the end, every button a 44px target. */
|
|
5289
|
+
.sc-flow__footer {
|
|
5290
|
+
display: flex;
|
|
5291
|
+
align-items: center;
|
|
5292
|
+
gap: var(--sc-spacing-sm);
|
|
5293
|
+
padding-block: var(--sc-spacing-sm) calc(var(--sc-spacing-sm) + env(safe-area-inset-bottom, 0px));
|
|
5294
|
+
padding-inline: calc(var(--sc-spacing-md) + env(safe-area-inset-left, 0px))
|
|
5295
|
+
calc(var(--sc-spacing-md) + env(safe-area-inset-right, 0px));
|
|
5296
|
+
border-block-start: var(--sc-border-width-hairline) solid var(--sc-color-border-default);
|
|
5297
|
+
background: color-mix(in oklab, var(--sc-color-surface-default) 92%, transparent);
|
|
5298
|
+
backdrop-filter: blur(6px);
|
|
5299
|
+
}
|
|
5300
|
+
.sc-flow__footer .sc-button {
|
|
5301
|
+
min-block-size: var(--sc-size-touch-target);
|
|
5302
|
+
min-inline-size: max(var(--_h), var(--sc-size-touch-target));
|
|
5303
|
+
}
|
|
5304
|
+
.sc-flow__footer-hint {
|
|
5305
|
+
display: none;
|
|
5306
|
+
align-items: center;
|
|
5307
|
+
gap: var(--sc-spacing-2xs);
|
|
5308
|
+
font-size: var(--sc-font-size-xs);
|
|
5309
|
+
color: var(--sc-color-text-subtle);
|
|
5310
|
+
}
|
|
5311
|
+
.sc-flow__footer-actions {
|
|
5312
|
+
display: flex;
|
|
5313
|
+
gap: var(--sc-spacing-xs);
|
|
5314
|
+
margin-inline-start: auto;
|
|
5315
|
+
}
|
|
5316
|
+
.sc-flow__footer-actions > .sc-button:last-child {
|
|
5317
|
+
min-inline-size: 10rem;
|
|
5318
|
+
}
|
|
5319
|
+
|
|
5320
|
+
@media (width >= 760px) {
|
|
5321
|
+
.sc-flow__footer-hint {
|
|
5322
|
+
display: inline-flex;
|
|
5323
|
+
margin-inline-start: auto;
|
|
5324
|
+
}
|
|
5325
|
+
.sc-flow__footer-hint + .sc-flow__footer-actions {
|
|
5326
|
+
margin-inline-start: 0;
|
|
5327
|
+
}
|
|
5328
|
+
}
|
|
5329
|
+
@media (width < 760px) {
|
|
5330
|
+
.sc-flow__header {
|
|
5331
|
+
flex-wrap: wrap;
|
|
5332
|
+
row-gap: var(--sc-spacing-xs);
|
|
5333
|
+
}
|
|
5334
|
+
.sc-flow__heading {
|
|
5335
|
+
flex: 1 1 0;
|
|
5336
|
+
}
|
|
5337
|
+
.sc-flow__progress {
|
|
5338
|
+
order: 1;
|
|
5339
|
+
flex-basis: 100%;
|
|
5340
|
+
max-inline-size: none;
|
|
5341
|
+
padding-inline-end: var(--sc-spacing-xs);
|
|
5342
|
+
}
|
|
5343
|
+
.sc-flow__progress-label {
|
|
5344
|
+
display: none;
|
|
5345
|
+
}
|
|
5346
|
+
.sc-flow__heading[data-compact] > .sc-flow__title {
|
|
5347
|
+
position: absolute;
|
|
5348
|
+
inline-size: 1px;
|
|
5349
|
+
block-size: 1px;
|
|
5350
|
+
margin: -1px;
|
|
5351
|
+
overflow: hidden;
|
|
5352
|
+
clip-path: inset(50%);
|
|
5353
|
+
}
|
|
5354
|
+
.sc-flow__compact-title {
|
|
5355
|
+
display: inline;
|
|
5356
|
+
}
|
|
5357
|
+
.sc-flow__step-title {
|
|
5358
|
+
font-size: var(--sc-font-size-2xl);
|
|
5359
|
+
}
|
|
5360
|
+
}
|
|
5361
|
+
@media (width < 520px) {
|
|
5362
|
+
.sc-flow__footer-actions {
|
|
5363
|
+
flex: 1 1 auto;
|
|
5364
|
+
}
|
|
5365
|
+
.sc-flow__footer-actions > :last-child {
|
|
5366
|
+
flex: 1 1 auto;
|
|
5367
|
+
}
|
|
5368
|
+
}
|
|
5369
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5370
|
+
.sc-flow__frame[data-phase='enter'] {
|
|
5371
|
+
animation: sc-flow-fade-in var(--sc-duration-base) var(--sc-ease-enter) both;
|
|
5372
|
+
}
|
|
5373
|
+
.sc-flow__frame[data-phase='exit'] {
|
|
5374
|
+
animation: sc-flow-fade-out var(--sc-duration-fast) var(--sc-ease-exit) forwards;
|
|
5375
|
+
}
|
|
5376
|
+
.sc-flow__segment-fill {
|
|
5377
|
+
transition: none;
|
|
5378
|
+
}
|
|
5379
|
+
}
|
|
5380
|
+
|
|
5381
|
+
/* ---- score.css ---- */
|
|
5382
|
+
/* ---- Score ----------------------------------------------------------------- */
|
|
5383
|
+
/* A number on a tinted tile, or inside a ring. Tone sets the tint (--_bg), the number (--_fg) and the solid used
|
|
5384
|
+
for the ring arc and the selected tile (--_solid, --_on-solid). */
|
|
5385
|
+
.sc-score {
|
|
5386
|
+
--_bg: var(--sc-color-accent-subtle);
|
|
5387
|
+
--_fg: var(--sc-color-accent-text);
|
|
5388
|
+
--_solid: var(--sc-color-accent-default);
|
|
5389
|
+
--_on-solid: var(--sc-color-text-on-accent);
|
|
5390
|
+
--_s: var(--sc-size-score-sm);
|
|
5391
|
+
position: relative;
|
|
5392
|
+
display: inline-grid;
|
|
5393
|
+
place-items: center;
|
|
5394
|
+
flex: none;
|
|
5395
|
+
box-sizing: border-box;
|
|
5396
|
+
inline-size: var(--_s);
|
|
5397
|
+
block-size: var(--_s);
|
|
5398
|
+
border-radius: var(--sc-radius-lg);
|
|
5399
|
+
background: var(--_bg);
|
|
5400
|
+
color: var(--_fg);
|
|
5401
|
+
font-family: var(--sc-font-family-sans);
|
|
5402
|
+
font-size: var(--sc-font-size-sm);
|
|
5403
|
+
font-weight: var(--sc-font-weight-semibold);
|
|
5404
|
+
font-variant-numeric: tabular-nums;
|
|
5405
|
+
line-height: 1;
|
|
5406
|
+
vertical-align: middle;
|
|
5407
|
+
transition:
|
|
5408
|
+
background-color var(--sc-duration-fast) var(--sc-ease-standard),
|
|
5409
|
+
color var(--sc-duration-fast) var(--sc-ease-standard);
|
|
5410
|
+
}
|
|
5411
|
+
.sc-score[data-size='md'] {
|
|
5412
|
+
--_s: var(--sc-size-score-md);
|
|
5413
|
+
border-radius: var(--sc-radius-xl);
|
|
5414
|
+
font-size: var(--sc-font-size-lg);
|
|
5415
|
+
}
|
|
5416
|
+
.sc-score[data-tone='neutral'] {
|
|
5417
|
+
/* surface.active, so the tile still shows on a hovered row (surface.hover). Selected turns accent. */
|
|
5418
|
+
--_bg: var(--sc-color-surface-active);
|
|
5419
|
+
--_fg: var(--sc-color-text-muted);
|
|
5420
|
+
--_solid: var(--sc-color-text-muted);
|
|
5421
|
+
}
|
|
5422
|
+
.sc-score[data-tone='success'] {
|
|
5423
|
+
--_bg: var(--sc-color-success-subtle);
|
|
5424
|
+
--_fg: var(--sc-color-success-text);
|
|
5425
|
+
--_solid: var(--sc-color-success-solid);
|
|
5426
|
+
--_on-solid: var(--sc-color-text-on-status);
|
|
5427
|
+
}
|
|
5428
|
+
.sc-score[data-tone='warning'] {
|
|
5429
|
+
--_bg: var(--sc-color-warning-subtle);
|
|
5430
|
+
--_fg: var(--sc-color-warning-text);
|
|
5431
|
+
--_solid: var(--sc-color-warning-solid);
|
|
5432
|
+
--_on-solid: var(--sc-color-text-on-status);
|
|
5433
|
+
}
|
|
5434
|
+
.sc-score[data-tone='danger'] {
|
|
5435
|
+
--_bg: var(--sc-color-danger-subtle);
|
|
5436
|
+
--_fg: var(--sc-color-danger-text);
|
|
5437
|
+
--_solid: var(--sc-color-danger-solid);
|
|
5438
|
+
--_on-solid: var(--sc-color-text-on-status);
|
|
5439
|
+
}
|
|
5440
|
+
/* Not scored (`value={null}`): no tone, a muted dash on the neutral tile or inside an empty ring. --_solid stays
|
|
5441
|
+
accent, so a selected row still turns the tile solid accent, as neutral does. */
|
|
5442
|
+
.sc-score[data-unscored] {
|
|
5443
|
+
--_bg: var(--sc-color-surface-active);
|
|
5444
|
+
--_fg: var(--sc-color-text-muted);
|
|
5445
|
+
}
|
|
5446
|
+
.sc-score__body {
|
|
5447
|
+
display: grid;
|
|
5448
|
+
justify-items: center;
|
|
5449
|
+
gap: var(--sc-spacing-3xs);
|
|
5450
|
+
}
|
|
5451
|
+
.sc-score__caption {
|
|
5452
|
+
font-family: var(--sc-font-family-mono);
|
|
5453
|
+
font-size: var(--sc-font-size-xs);
|
|
5454
|
+
font-weight: var(--sc-font-weight-medium);
|
|
5455
|
+
letter-spacing: var(--sc-font-tracking-wide);
|
|
5456
|
+
text-transform: uppercase;
|
|
5457
|
+
color: var(--sc-color-text-muted);
|
|
5458
|
+
}
|
|
5459
|
+
/* Selected: the tile goes solid in its tone (neutral goes accent), inside a selected row or on `selected`. */
|
|
5460
|
+
.sc-score[data-variant='tile'][data-selected],
|
|
5461
|
+
.sc-card[data-selected] .sc-score[data-variant='tile'],
|
|
5462
|
+
[aria-pressed='true'] .sc-score[data-variant='tile'],
|
|
5463
|
+
[aria-selected='true'] .sc-score[data-variant='tile'] {
|
|
5464
|
+
background: var(--_solid);
|
|
5465
|
+
color: var(--_on-solid);
|
|
5466
|
+
}
|
|
5467
|
+
.sc-score[data-variant='tile'][data-tone='neutral'][data-selected],
|
|
5468
|
+
.sc-card[data-selected] .sc-score[data-variant='tile'][data-tone='neutral'],
|
|
5469
|
+
[aria-pressed='true'] .sc-score[data-variant='tile'][data-tone='neutral'],
|
|
5470
|
+
[aria-selected='true'] .sc-score[data-variant='tile'][data-tone='neutral'] {
|
|
5471
|
+
background: var(--sc-color-accent-default);
|
|
5472
|
+
color: var(--sc-color-text-on-accent);
|
|
5473
|
+
}
|
|
5474
|
+
.sc-score[data-variant='tile'][data-selected] .sc-score__caption,
|
|
5475
|
+
.sc-card[data-selected] .sc-score[data-variant='tile'] .sc-score__caption,
|
|
5476
|
+
[aria-pressed='true'] .sc-score[data-variant='tile'] .sc-score__caption,
|
|
5477
|
+
[aria-selected='true'] .sc-score[data-variant='tile'] .sc-score__caption {
|
|
5478
|
+
color: inherit;
|
|
5479
|
+
}
|
|
5480
|
+
/* Ring: the number in the tone's text colour over a donut. The SVG is drawn for the 64px ring token with a 6px
|
|
5481
|
+
stroke (r = 29 in Score.tsx); the arc length comes from --sc-score-fill (0–100, set inline). */
|
|
5482
|
+
.sc-score[data-variant='ring'] {
|
|
5483
|
+
--_s: var(--sc-size-score-ring);
|
|
5484
|
+
border-radius: var(--sc-radius-full);
|
|
5485
|
+
background: transparent;
|
|
5486
|
+
font-size: var(--sc-font-size-lg);
|
|
5487
|
+
}
|
|
5488
|
+
.sc-score__ring {
|
|
5489
|
+
position: absolute;
|
|
5490
|
+
inset: 0;
|
|
5491
|
+
inline-size: 100%;
|
|
5492
|
+
block-size: 100%;
|
|
5493
|
+
rotate: -90deg;
|
|
5494
|
+
overflow: visible;
|
|
5495
|
+
}
|
|
5496
|
+
.sc-score__track,
|
|
5497
|
+
.sc-score__arc {
|
|
5498
|
+
fill: none;
|
|
5499
|
+
stroke-width: var(--sc-size-score-ring-stroke);
|
|
5500
|
+
}
|
|
5501
|
+
.sc-score__track {
|
|
5502
|
+
stroke: var(--sc-color-surface-active);
|
|
5503
|
+
}
|
|
5504
|
+
.sc-score__arc {
|
|
5505
|
+
stroke: var(--_solid);
|
|
5506
|
+
stroke-linecap: round;
|
|
5507
|
+
stroke-dasharray: 100;
|
|
5508
|
+
stroke-dashoffset: calc(100 - var(--sc-score-fill, 0));
|
|
5509
|
+
/* Moves only when the value changes; the first render draws it in place. The data motion (600ms, a long soft
|
|
5510
|
+
landing) is what makes a change from one score to the next read; the 300ms panel timing was over too soon. */
|
|
5511
|
+
transition: stroke-dashoffset var(--sc-duration-data) var(--sc-ease-data);
|
|
5512
|
+
}
|
|
5513
|
+
.sc-score[data-variant='ring'] .sc-score__body {
|
|
5514
|
+
position: relative;
|
|
5515
|
+
}
|
|
5516
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5517
|
+
.sc-score,
|
|
5518
|
+
.sc-score__arc {
|
|
5519
|
+
transition: none;
|
|
5520
|
+
}
|
|
5521
|
+
}
|
|
5522
|
+
|
|
5523
|
+
/* ---- reason-list.css ---- */
|
|
5524
|
+
/* ---- ReasonList ------------------------------------------------------------ */
|
|
5525
|
+
/* Marker shape per tone: for = filled square, against = bar, gap = hollow circle. Markers use the tone's solid,
|
|
5526
|
+
3:1 on every surface; the shape carries the meaning on its own (WCAG 1.4.1). */
|
|
5527
|
+
.sc-reason-list {
|
|
5528
|
+
--_m: 9px;
|
|
5529
|
+
--_marker: var(--sc-color-success-solid);
|
|
5530
|
+
display: grid;
|
|
5531
|
+
gap: var(--sc-spacing-xs);
|
|
5532
|
+
margin: 0;
|
|
5533
|
+
padding: 0;
|
|
5534
|
+
list-style: none;
|
|
5535
|
+
font-family: var(--sc-font-family-sans);
|
|
5536
|
+
font-size: var(--sc-font-size-sm);
|
|
5537
|
+
line-height: var(--sc-font-line-height-ui);
|
|
5538
|
+
color: var(--sc-color-text-muted);
|
|
5539
|
+
}
|
|
5540
|
+
.sc-reason-list[data-size='sm'] {
|
|
5541
|
+
--_m: 7px;
|
|
5542
|
+
gap: var(--sc-spacing-2xs);
|
|
5543
|
+
font-size: var(--sc-font-size-xs);
|
|
5544
|
+
}
|
|
5545
|
+
.sc-reason-list[data-divider] {
|
|
5546
|
+
padding-block-start: var(--sc-spacing-xs);
|
|
5547
|
+
border-block-start: var(--sc-border-width-hairline) dashed var(--sc-color-border-default);
|
|
5548
|
+
}
|
|
5549
|
+
.sc-reason-list[data-tone='against'] {
|
|
5550
|
+
--_marker: var(--sc-color-danger-solid);
|
|
5551
|
+
}
|
|
5552
|
+
.sc-reason-list[data-tone='gap'] {
|
|
5553
|
+
--_marker: var(--sc-color-warning-solid);
|
|
5554
|
+
}
|
|
5555
|
+
.sc-reason-list__item {
|
|
5556
|
+
position: relative;
|
|
5557
|
+
padding-inline-start: calc(var(--_m) + var(--sc-spacing-xs));
|
|
5558
|
+
}
|
|
5559
|
+
/* Centred on the first line: half the line box less half the marker. */
|
|
5560
|
+
.sc-reason-list__item::before {
|
|
5561
|
+
content: '';
|
|
5562
|
+
position: absolute;
|
|
5563
|
+
inset-inline-start: 0;
|
|
5564
|
+
inset-block-start: 0.45em;
|
|
5565
|
+
inset-block-start: calc((1lh - var(--_m)) / 2);
|
|
5566
|
+
box-sizing: border-box;
|
|
5567
|
+
inline-size: var(--_m);
|
|
5568
|
+
block-size: var(--_m);
|
|
5569
|
+
border-radius: var(--sc-radius-xs);
|
|
5570
|
+
background: var(--_marker);
|
|
5571
|
+
}
|
|
5572
|
+
.sc-reason-list[data-tone='against'] > .sc-reason-list__item::before {
|
|
5573
|
+
inset-block-start: 0.6em;
|
|
5574
|
+
inset-block-start: calc((1lh - var(--_m) / 3) / 2);
|
|
5575
|
+
block-size: calc(var(--_m) / 3);
|
|
5576
|
+
border-radius: var(--sc-radius-full);
|
|
5577
|
+
}
|
|
5578
|
+
.sc-reason-list[data-tone='gap'] > .sc-reason-list__item::before {
|
|
5579
|
+
background: transparent;
|
|
5580
|
+
border: var(--sc-border-width-focus) solid var(--_marker);
|
|
5581
|
+
border-radius: var(--sc-radius-full);
|
|
5582
|
+
}
|
|
5583
|
+
.sc-reason-list__item :where(strong, b) {
|
|
5584
|
+
font-weight: var(--sc-font-weight-semibold);
|
|
5585
|
+
color: var(--sc-color-text-default);
|
|
5586
|
+
}
|
|
5587
|
+
|
|
5588
|
+
/* ---- word-diff.css ---- */
|
|
5589
|
+
/* ---- WordDiff -------------------------------------------------------------- */
|
|
5590
|
+
/* Strike-through and underline carry the meaning; the tint only groups the words. Both lines are 3:1 on their tint
|
|
5591
|
+
(diff.*-stroke on diff.*-wash) in light and dark. */
|
|
5592
|
+
.sc-word-diff {
|
|
5593
|
+
margin: 0;
|
|
5594
|
+
font-family: var(--sc-font-family-sans);
|
|
5595
|
+
font-size: var(--sc-font-size-sm);
|
|
5596
|
+
line-height: var(--sc-font-line-height-normal);
|
|
5597
|
+
color: var(--sc-color-text-default);
|
|
5598
|
+
white-space: pre-wrap;
|
|
5599
|
+
overflow-wrap: anywhere;
|
|
5600
|
+
}
|
|
5601
|
+
.sc-word-diff[data-size='md'] {
|
|
5602
|
+
font-size: var(--sc-font-size-md);
|
|
5603
|
+
}
|
|
5604
|
+
p.sc-word-diff:not([data-family='mono']),
|
|
5605
|
+
div.sc-word-diff:not([data-family='mono']) {
|
|
5606
|
+
max-inline-size: var(--sc-font-measure);
|
|
5607
|
+
}
|
|
5608
|
+
/* Code and structured text: the mono face, full width, tabs as two columns. */
|
|
5609
|
+
.sc-word-diff[data-family='mono'] {
|
|
5610
|
+
font-family: var(--sc-font-family-mono);
|
|
5611
|
+
tab-size: 2;
|
|
5612
|
+
}
|
|
5613
|
+
.sc-word-diff__added,
|
|
5614
|
+
.sc-word-diff__removed {
|
|
5615
|
+
padding-inline: var(--sc-spacing-3xs);
|
|
5616
|
+
border-radius: var(--sc-radius-xs);
|
|
5617
|
+
text-decoration-thickness: var(--sc-border-width-focus);
|
|
5618
|
+
box-decoration-break: clone;
|
|
5619
|
+
-webkit-box-decoration-break: clone;
|
|
5620
|
+
}
|
|
5621
|
+
.sc-word-diff__added {
|
|
5622
|
+
background: var(--sc-color-diff-added-wash);
|
|
5623
|
+
color: var(--sc-color-text-default);
|
|
5624
|
+
text-decoration-line: underline;
|
|
5625
|
+
text-decoration-color: var(--sc-color-diff-added-stroke);
|
|
5626
|
+
text-underline-offset: 0.2em;
|
|
5627
|
+
}
|
|
5628
|
+
.sc-word-diff__removed {
|
|
5629
|
+
background: var(--sc-color-diff-removed-wash);
|
|
5630
|
+
color: var(--sc-color-text-muted);
|
|
5631
|
+
text-decoration-line: line-through;
|
|
5632
|
+
text-decoration-color: var(--sc-color-diff-removed-stroke);
|
|
5633
|
+
}
|
|
5634
|
+
/* In mono, side padding would push every later character off its column. */
|
|
5635
|
+
.sc-word-diff[data-family='mono'] .sc-word-diff__added,
|
|
5636
|
+
.sc-word-diff[data-family='mono'] .sc-word-diff__removed {
|
|
5637
|
+
padding-inline: 0;
|
|
5638
|
+
}
|
|
5639
|
+
|
|
5640
|
+
/* ---- text-editor.css ---- */
|
|
5641
|
+
/* ---- TextEditor (@salemcobalt/ui/editor) ------------------------------------ */
|
|
5642
|
+
/* CodeMirror is themed in JS (EditorView.theme on these tokens). These rules size the code Textarea it renders
|
|
5643
|
+
before CodeMirror loads like the editor: grown to its content (field-sizing; `rows` where unsupported), at least
|
|
5644
|
+
`rows` lines, with the editor's room under the last line on touch screens, clear of Safari's bottom toolbar. */
|
|
5645
|
+
.sc-field[data-editor='fallback'] .sc-textarea {
|
|
5646
|
+
field-sizing: content;
|
|
5647
|
+
min-block-size: calc(
|
|
5648
|
+
var(--_rows, 8) * 1lh + 2 * var(--sc-spacing-xs) + 2 * var(--sc-border-width-hairline)
|
|
5649
|
+
);
|
|
5650
|
+
}
|
|
5651
|
+
@media (pointer: coarse) {
|
|
5652
|
+
.sc-field[data-editor='fallback'] .sc-textarea {
|
|
5653
|
+
padding-block-end: var(--sc-spacing-xl);
|
|
5654
|
+
min-block-size: calc(
|
|
5655
|
+
var(--_rows, 8) * 1lh + var(--sc-spacing-xs) + var(--sc-spacing-xl) + 2 *
|
|
5656
|
+
var(--sc-border-width-hairline)
|
|
5657
|
+
);
|
|
5658
|
+
}
|
|
5659
|
+
}
|
|
5660
|
+
|
|
5661
|
+
/* ---- quote.css ---- */
|
|
5662
|
+
/* ---- Quote ----------------------------------------------------------------- */
|
|
5663
|
+
/* Label and words on one line, on the accent wash with the accent border (both from the plain Card selected
|
|
5664
|
+
state), so an echoed instruction reads as "yours" next to what changed. */
|
|
5665
|
+
.sc-quote {
|
|
5666
|
+
box-sizing: border-box;
|
|
5667
|
+
margin: 0;
|
|
5668
|
+
padding: var(--sc-spacing-xs) var(--sc-spacing-sm);
|
|
5669
|
+
border: var(--sc-border-width-hairline) solid var(--sc-color-accent-border);
|
|
5670
|
+
border-radius: var(--sc-radius-lg);
|
|
5671
|
+
background: var(--sc-color-accent-wash);
|
|
5672
|
+
font-family: var(--sc-font-family-sans);
|
|
5673
|
+
font-size: var(--sc-font-size-sm);
|
|
5674
|
+
line-height: var(--sc-font-line-height-ui);
|
|
5675
|
+
color: var(--sc-color-text-muted);
|
|
5676
|
+
}
|
|
5677
|
+
.sc-quote__label {
|
|
5678
|
+
display: inline;
|
|
5679
|
+
margin-inline-end: var(--sc-spacing-xs);
|
|
5680
|
+
font-family: var(--sc-font-family-mono);
|
|
5681
|
+
font-size: var(--sc-font-size-xs);
|
|
5682
|
+
font-weight: var(--sc-font-weight-medium);
|
|
5683
|
+
letter-spacing: var(--sc-font-tracking-wider);
|
|
5684
|
+
text-transform: uppercase;
|
|
5685
|
+
color: var(--sc-color-accent-text);
|
|
5686
|
+
}
|
|
5687
|
+
.sc-quote__text {
|
|
5688
|
+
display: inline;
|
|
5689
|
+
margin: 0;
|
|
5690
|
+
}
|
|
5691
|
+
|
|
2061
5692
|
}
|