@faast-app/ui 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Badge.d.ts +30 -3
- package/dist/components/Badge.js +7 -2
- package/dist/components/BarraFlotante.d.ts +72 -0
- package/dist/components/BarraFlotante.js +190 -0
- package/dist/components/Button.d.ts +14 -3
- package/dist/components/Button.js +4 -4
- package/dist/components/FormField.d.ts +13 -1
- package/dist/components/FormField.js +4 -2
- package/dist/components/Glass.d.ts +22 -0
- package/dist/components/Glass.js +18 -0
- package/dist/components/Icon.d.ts +1 -1
- package/dist/components/Icon.js +15 -1
- package/dist/components/Input.d.ts +12 -0
- package/dist/components/Input.js +6 -6
- package/dist/components/Stepper.d.ts +12 -1
- package/dist/components/Stepper.js +3 -2
- package/dist/components/SummaryCard.d.ts +90 -0
- package/dist/components/SummaryCard.js +85 -0
- package/dist/components/Toast.d.ts +50 -4
- package/dist/components/Toast.js +21 -10
- package/dist/index.d.ts +14 -6
- package/dist/index.js +4 -0
- package/dist/kit/catalogo.html +1043 -5
- package/dist/kit/faast-kit.css +967 -3
- package/dist/kit/markup.json +92 -1
- package/dist/styles.css +932 -2
- package/dist/utils/barraOverflow.d.ts +18 -0
- package/dist/utils/barraOverflow.js +25 -0
- package/package.json +3 -3
package/dist/kit/faast-kit.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @faast-app/ui 0.
|
|
2
|
+
* @faast-app/ui 0.9.0 - faast-kit.css (generated, do not edit).
|
|
3
3
|
* One file for static HTML proposals: Inter (latin, OFL-1.1) + @faast-app/tokens +
|
|
4
4
|
* @faast-app/themes (light/dark via data-theme) + base + component styles.
|
|
5
5
|
* Applications import the separate stylesheets instead (see the README).
|
|
@@ -123,6 +123,7 @@
|
|
|
123
123
|
--faast-size-touch-target: 2.75rem;
|
|
124
124
|
--faast-size-control: 2.75rem;
|
|
125
125
|
--faast-size-control-compact: 2.25rem;
|
|
126
|
+
--faast-size-control-lg: 3rem;
|
|
126
127
|
--faast-size-top-bar: 3.5rem;
|
|
127
128
|
--faast-size-sidebar: 15rem;
|
|
128
129
|
--faast-size-measure: 40rem;
|
|
@@ -131,10 +132,15 @@
|
|
|
131
132
|
--faast-radius-sm: 0.375rem;
|
|
132
133
|
--faast-radius-md: 0.5rem;
|
|
133
134
|
--faast-radius-lg: 0.75rem;
|
|
135
|
+
--faast-radius-xl: 1.25rem;
|
|
134
136
|
--faast-radius-full: 9999px;
|
|
135
137
|
--faast-shadow-none: none;
|
|
136
138
|
--faast-shadow-overlay: 0 8px 24px rgb(0 0 0 / 0.12), 0 2px 6px rgb(0 0 0 / 0.08);
|
|
137
139
|
--faast-shadow-overlay-dark: 0 8px 24px rgb(0 0 0 / 0.55), 0 2px 6px rgb(0 0 0 / 0.4);
|
|
140
|
+
--faast-glass-alpha-bar: 88%;
|
|
141
|
+
--faast-glass-alpha-pop: 92%;
|
|
142
|
+
--faast-glass-blur: 20px;
|
|
143
|
+
--faast-glass-saturate: 1.4;
|
|
138
144
|
--faast-breakpoint-sm: 480px;
|
|
139
145
|
--faast-breakpoint-md: 768px;
|
|
140
146
|
--faast-breakpoint-lg: 1024px;
|
|
@@ -146,6 +152,7 @@
|
|
|
146
152
|
--faast-ease-exit: cubic-bezier(0.3, 0, 1, 1);
|
|
147
153
|
--faast-z-base: 0;
|
|
148
154
|
--faast-z-sticky: 100;
|
|
155
|
+
--faast-z-flyout: 150;
|
|
149
156
|
--faast-z-drawer: 200;
|
|
150
157
|
--faast-z-overlay: 300;
|
|
151
158
|
--faast-z-dialog: 400;
|
|
@@ -165,6 +172,7 @@
|
|
|
165
172
|
--faast-bg-selected: #EDEDED;
|
|
166
173
|
--faast-bg-inverse: #151515;
|
|
167
174
|
--faast-bg-brand: #151515;
|
|
175
|
+
--faast-bg-veil: #F2F6EF;
|
|
168
176
|
--faast-text-primary: #151515;
|
|
169
177
|
--faast-text-secondary: #5C5C5C;
|
|
170
178
|
--faast-text-tertiary: #6A6A6A;
|
|
@@ -181,6 +189,14 @@
|
|
|
181
189
|
--faast-accent-hover: #5A8F1B;
|
|
182
190
|
--faast-accent-subtle: #F3F9EB;
|
|
183
191
|
--faast-accent-text: #457014;
|
|
192
|
+
--faast-accent-soft: #ADEA75;
|
|
193
|
+
--faast-accent-on-soft: #151515;
|
|
194
|
+
--faast-accent-soft-glass: #DDF6C5;
|
|
195
|
+
--faast-accent-soft-shape-a: #C1EF96;
|
|
196
|
+
--faast-accent-soft-shape-b: #BAED8B;
|
|
197
|
+
--faast-accent-tint: #ECF5E5;
|
|
198
|
+
--faast-accent-tenue: #F8FBF5;
|
|
199
|
+
--faast-accent-row: #F2F8ED;
|
|
184
200
|
--faast-action-primary-bg: #151515;
|
|
185
201
|
--faast-action-primary-bg-hover: #333333;
|
|
186
202
|
--faast-action-primary-fg: #FFFFFF;
|
|
@@ -234,6 +250,7 @@
|
|
|
234
250
|
--faast-bg-selected: #262626;
|
|
235
251
|
--faast-bg-inverse: #F5F5F5;
|
|
236
252
|
--faast-bg-brand: #151515;
|
|
253
|
+
--faast-bg-veil: #11140F;
|
|
237
254
|
--faast-text-primary: #F5F5F5;
|
|
238
255
|
--faast-text-secondary: #B5B5B5;
|
|
239
256
|
--faast-text-tertiary: #8F8F8F;
|
|
@@ -250,6 +267,14 @@
|
|
|
250
267
|
--faast-accent-hover: #8BC244;
|
|
251
268
|
--faast-accent-subtle: #15240A;
|
|
252
269
|
--faast-accent-text: #8BC244;
|
|
270
|
+
--faast-accent-soft: #ADEA75;
|
|
271
|
+
--faast-accent-on-soft: #151515;
|
|
272
|
+
--faast-accent-soft-glass: #DDF6C5;
|
|
273
|
+
--faast-accent-soft-shape-a: #C1EF96;
|
|
274
|
+
--faast-accent-soft-shape-b: #BAED8B;
|
|
275
|
+
--faast-accent-tint: #242D1D;
|
|
276
|
+
--faast-accent-tenue: #1A1D18;
|
|
277
|
+
--faast-accent-row: #1D2119;
|
|
253
278
|
--faast-action-primary-bg: #F5F5F5;
|
|
254
279
|
--faast-action-primary-bg-hover: #D4D4D4;
|
|
255
280
|
--faast-action-primary-fg: #151515;
|
|
@@ -303,6 +328,7 @@
|
|
|
303
328
|
--faast-bg-selected: #262626;
|
|
304
329
|
--faast-bg-inverse: #F5F5F5;
|
|
305
330
|
--faast-bg-brand: #151515;
|
|
331
|
+
--faast-bg-veil: #11140F;
|
|
306
332
|
--faast-text-primary: #F5F5F5;
|
|
307
333
|
--faast-text-secondary: #B5B5B5;
|
|
308
334
|
--faast-text-tertiary: #8F8F8F;
|
|
@@ -319,6 +345,14 @@
|
|
|
319
345
|
--faast-accent-hover: #8BC244;
|
|
320
346
|
--faast-accent-subtle: #15240A;
|
|
321
347
|
--faast-accent-text: #8BC244;
|
|
348
|
+
--faast-accent-soft: #ADEA75;
|
|
349
|
+
--faast-accent-on-soft: #151515;
|
|
350
|
+
--faast-accent-soft-glass: #DDF6C5;
|
|
351
|
+
--faast-accent-soft-shape-a: #C1EF96;
|
|
352
|
+
--faast-accent-soft-shape-b: #BAED8B;
|
|
353
|
+
--faast-accent-tint: #242D1D;
|
|
354
|
+
--faast-accent-tenue: #1A1D18;
|
|
355
|
+
--faast-accent-row: #1D2119;
|
|
322
356
|
--faast-action-primary-bg: #F5F5F5;
|
|
323
357
|
--faast-action-primary-bg-hover: #D4D4D4;
|
|
324
358
|
--faast-action-primary-fg: #151515;
|
|
@@ -484,6 +518,19 @@ select {
|
|
|
484
518
|
}
|
|
485
519
|
}
|
|
486
520
|
|
|
521
|
+
/*
|
|
522
|
+
* Large control (DSN-005 N15): 48px on every pointer, opt-in. `size="lg"` on Button,
|
|
523
|
+
* `controlSize="lg"` on Input/TextField/PasswordField, or `data-densidad="amplia"` on any
|
|
524
|
+
* ancestor for every button and field inside it. It comes after the blocks above so it wins
|
|
525
|
+
* over the compact (fine pointer) height; md and compact are unchanged.
|
|
526
|
+
*/
|
|
527
|
+
.faast-button--lg,
|
|
528
|
+
.faast-input--lg,
|
|
529
|
+
[data-densidad='amplia'] .faast-button,
|
|
530
|
+
[data-densidad='amplia'] .faast-input {
|
|
531
|
+
--faast-control-h: var(--faast-size-control-lg);
|
|
532
|
+
}
|
|
533
|
+
|
|
487
534
|
/* ---------- Button ---------- */
|
|
488
535
|
.faast-button {
|
|
489
536
|
display: inline-flex;
|
|
@@ -550,6 +597,10 @@ select {
|
|
|
550
597
|
.faast-button--full {
|
|
551
598
|
width: 100%;
|
|
552
599
|
}
|
|
600
|
+
/* Capsule shape (DSN-005 N14): only the radius changes. The focus outline follows it. */
|
|
601
|
+
.faast-button--pill {
|
|
602
|
+
border-radius: var(--faast-radius-full);
|
|
603
|
+
}
|
|
553
604
|
.faast-button:disabled {
|
|
554
605
|
cursor: not-allowed;
|
|
555
606
|
background-color: var(--faast-bg-sunken);
|
|
@@ -795,6 +846,111 @@ select {
|
|
|
795
846
|
border-color: var(--faast-border-default);
|
|
796
847
|
cursor: not-allowed;
|
|
797
848
|
}
|
|
849
|
+
/*
|
|
850
|
+
* Field with the message inside (DSN-005 N11): one box (1px border-strong, danger-fg when
|
|
851
|
+
* invalid) around the control and, under a border-subtle rule, the message: icon, title in ink
|
|
852
|
+
* and detail in text-secondary. No tinted background. The control loses its own border.
|
|
853
|
+
*/
|
|
854
|
+
.faast-field__box {
|
|
855
|
+
min-width: 0;
|
|
856
|
+
border: 1px solid var(--faast-border-strong);
|
|
857
|
+
border-radius: var(--faast-radius-sm);
|
|
858
|
+
background-color: var(--faast-bg-surface);
|
|
859
|
+
transition: border-color var(--faast-duration-fast) var(--faast-ease-standard);
|
|
860
|
+
}
|
|
861
|
+
.faast-field__box:hover {
|
|
862
|
+
border-color: var(--faast-text-secondary);
|
|
863
|
+
}
|
|
864
|
+
.faast-field--inside .faast-input,
|
|
865
|
+
.faast-field--inside .faast-input:hover:not(:disabled),
|
|
866
|
+
.faast-field--inside .faast-input:focus-visible,
|
|
867
|
+
.faast-field--inside .faast-input[aria-invalid='true'],
|
|
868
|
+
.faast-field--inside .faast-input:disabled {
|
|
869
|
+
border: 0;
|
|
870
|
+
background-color: transparent;
|
|
871
|
+
outline: 0;
|
|
872
|
+
}
|
|
873
|
+
/* The box adds its own 1px border on each side: the control gives that 2px back so the
|
|
874
|
+
outer height is exactly the control height (48, 44 or 36), the same as its neighbours. */
|
|
875
|
+
.faast-field--inside .faast-input {
|
|
876
|
+
min-height: calc(var(--faast-control-h) - 2px);
|
|
877
|
+
}
|
|
878
|
+
/* Autofill (password managers) must not paint the control: it keeps the box colours, so the
|
|
879
|
+
message under it stays in the same surface. A long transition delays the browser's own
|
|
880
|
+
background; the inset shadow covers it where the delay is ignored. */
|
|
881
|
+
.faast-field--inside .faast-input:-webkit-autofill,
|
|
882
|
+
.faast-field--inside .faast-input:-webkit-autofill:hover,
|
|
883
|
+
.faast-field--inside .faast-input:-webkit-autofill:focus {
|
|
884
|
+
-webkit-text-fill-color: var(--faast-text-primary);
|
|
885
|
+
caret-color: var(--faast-text-primary);
|
|
886
|
+
box-shadow: inset 0 0 0 100vmax var(--faast-bg-surface);
|
|
887
|
+
transition: background-color 600000s 0s;
|
|
888
|
+
}
|
|
889
|
+
.faast-field--inside .faast-input:autofill,
|
|
890
|
+
.faast-field--inside .faast-input:autofill:hover,
|
|
891
|
+
.faast-field--inside .faast-input:autofill:focus {
|
|
892
|
+
-webkit-text-fill-color: var(--faast-text-primary);
|
|
893
|
+
caret-color: var(--faast-text-primary);
|
|
894
|
+
box-shadow: inset 0 0 0 100vmax var(--faast-bg-surface);
|
|
895
|
+
transition: background-color 600000s 0s;
|
|
896
|
+
}
|
|
897
|
+
/* Focus is shown on the box, only while the control itself has keyboard focus. */
|
|
898
|
+
.faast-field__box:has(.faast-input:focus-visible) {
|
|
899
|
+
outline: 2px solid var(--faast-focus-ring);
|
|
900
|
+
outline-offset: 1px;
|
|
901
|
+
border-color: var(--faast-focus-ring);
|
|
902
|
+
}
|
|
903
|
+
.faast-field__box:has(.faast-input:read-only),
|
|
904
|
+
.faast-field__box:has(.faast-input:disabled) {
|
|
905
|
+
background-color: var(--faast-bg-sunken);
|
|
906
|
+
}
|
|
907
|
+
.faast-field__box:has(.faast-input:disabled),
|
|
908
|
+
.faast-field__box:has(.faast-input:disabled):hover {
|
|
909
|
+
border-color: var(--faast-border-default);
|
|
910
|
+
cursor: not-allowed;
|
|
911
|
+
}
|
|
912
|
+
/* Invalid: also a control that points at a message elsewhere (aria-invalid + aria-describedby). */
|
|
913
|
+
.faast-field__box:has(.faast-input[aria-invalid='true']),
|
|
914
|
+
.faast-field__box:has(.faast-input[aria-invalid='true']):hover,
|
|
915
|
+
.faast-field__box:has(.faast-input[aria-invalid='true']:focus-visible) {
|
|
916
|
+
border-color: var(--faast-status-danger-fg);
|
|
917
|
+
}
|
|
918
|
+
.faast-field--inside .faast-input:disabled {
|
|
919
|
+
color: var(--faast-text-disabled);
|
|
920
|
+
}
|
|
921
|
+
.faast-field__message {
|
|
922
|
+
display: flex;
|
|
923
|
+
align-items: flex-start;
|
|
924
|
+
gap: var(--faast-space-2);
|
|
925
|
+
margin: 0;
|
|
926
|
+
padding: var(--faast-space-2) var(--faast-space-3) var(--faast-space-3);
|
|
927
|
+
border-top: 1px solid var(--faast-border-subtle);
|
|
928
|
+
font-size: var(--faast-font-size-sm);
|
|
929
|
+
line-height: var(--faast-line-height-snug);
|
|
930
|
+
}
|
|
931
|
+
.faast-field__message .faast-icon {
|
|
932
|
+
/* Centre the 16px icon on the first text line (line height minus icon, halved). */
|
|
933
|
+
margin-top: calc((var(--faast-font-size-sm) * var(--faast-line-height-snug) - 1rem) / 2);
|
|
934
|
+
color: var(--faast-status-danger-fg);
|
|
935
|
+
}
|
|
936
|
+
.faast-field__message-text {
|
|
937
|
+
display: grid;
|
|
938
|
+
min-width: 0;
|
|
939
|
+
/* A long unbroken string (an e-mail, an id) wraps instead of pushing the box wider. */
|
|
940
|
+
overflow-wrap: anywhere;
|
|
941
|
+
}
|
|
942
|
+
.faast-field__message-title {
|
|
943
|
+
font-weight: var(--faast-font-weight-medium);
|
|
944
|
+
color: var(--faast-text-primary);
|
|
945
|
+
}
|
|
946
|
+
.faast-field__message-detail {
|
|
947
|
+
color: var(--faast-text-secondary);
|
|
948
|
+
}
|
|
949
|
+
@media (prefers-reduced-motion: reduce) {
|
|
950
|
+
.faast-field__box {
|
|
951
|
+
transition: none;
|
|
952
|
+
}
|
|
953
|
+
}
|
|
798
954
|
.faast-textarea {
|
|
799
955
|
padding: var(--faast-space-2) var(--faast-space-3);
|
|
800
956
|
resize: vertical;
|
|
@@ -1690,9 +1846,15 @@ html:has(.faast-dialog[open]:modal) {
|
|
|
1690
1846
|
.faast-table--cards .faast-table__row--selected > .faast-table__th {
|
|
1691
1847
|
background-color: transparent;
|
|
1692
1848
|
}
|
|
1849
|
+
/* Default placement: a full-width line. At specificity (0,1,0) on purpose (DSN-001 L-1): the
|
|
1850
|
+
slot rules below ([data-slot], 0,2,0) must be able to place select, title and status in
|
|
1851
|
+
their own columns. With the old (0,3,0) selector this rule won and stacked them on row 1. */
|
|
1852
|
+
.faast-table--cards
|
|
1853
|
+
:where(.faast-table__row > .faast-table__cell, .faast-table__row > .faast-table__th) {
|
|
1854
|
+
grid-column: 1 / -1;
|
|
1855
|
+
}
|
|
1693
1856
|
.faast-table--cards .faast-table__row > .faast-table__cell,
|
|
1694
1857
|
.faast-table--cards .faast-table__row > .faast-table__th {
|
|
1695
|
-
grid-column: 1 / -1;
|
|
1696
1858
|
min-width: 0;
|
|
1697
1859
|
padding: 0;
|
|
1698
1860
|
border: 0;
|
|
@@ -1867,9 +2029,15 @@ html:has(.faast-dialog[open]:modal) {
|
|
|
1867
2029
|
.faast-table--cards-lg .faast-table__row--selected > .faast-table__th {
|
|
1868
2030
|
background-color: transparent;
|
|
1869
2031
|
}
|
|
2032
|
+
/* Default placement: a full-width line. At specificity (0,1,0) on purpose (DSN-001 L-1): the
|
|
2033
|
+
slot rules below ([data-slot], 0,2,0) must be able to place select, title and status in
|
|
2034
|
+
their own columns. With the old (0,3,0) selector this rule won and stacked them on row 1. */
|
|
2035
|
+
.faast-table--cards-lg
|
|
2036
|
+
:where(.faast-table__row > .faast-table__cell, .faast-table__row > .faast-table__th) {
|
|
2037
|
+
grid-column: 1 / -1;
|
|
2038
|
+
}
|
|
1870
2039
|
.faast-table--cards-lg .faast-table__row > .faast-table__cell,
|
|
1871
2040
|
.faast-table--cards-lg .faast-table__row > .faast-table__th {
|
|
1872
|
-
grid-column: 1 / -1;
|
|
1873
2041
|
min-width: 0;
|
|
1874
2042
|
padding: 0;
|
|
1875
2043
|
border: 0;
|
|
@@ -2447,6 +2615,11 @@ html:has(.faast-shell) {
|
|
|
2447
2615
|
--faast-input-wrap-h: var(--faast-size-control-compact);
|
|
2448
2616
|
}
|
|
2449
2617
|
}
|
|
2618
|
+
/* Large field (DSN-005 N15): the trailing action grows with it (48px minus the 2px insets). */
|
|
2619
|
+
.faast-input-wrap--lg,
|
|
2620
|
+
[data-densidad='amplia'] .faast-input-wrap {
|
|
2621
|
+
--faast-input-wrap-h: var(--faast-size-control-lg);
|
|
2622
|
+
}
|
|
2450
2623
|
.faast-input-wrap__leading {
|
|
2451
2624
|
position: absolute;
|
|
2452
2625
|
top: 50%;
|
|
@@ -2806,6 +2979,22 @@ html:has(.faast-shell) {
|
|
|
2806
2979
|
gap: var(--faast-space-2);
|
|
2807
2980
|
pointer-events: none;
|
|
2808
2981
|
}
|
|
2982
|
+
/*
|
|
2983
|
+
* ToastProvider placement="top": under the floating bar, 8px (space-2) below its real outer height
|
|
2984
|
+
* (--faast-nav-bar-outer-height). --faast-toaster-top overrides it.
|
|
2985
|
+
*/
|
|
2986
|
+
.faast-toaster--top {
|
|
2987
|
+
top: var(
|
|
2988
|
+
--faast-toaster-top,
|
|
2989
|
+
calc(
|
|
2990
|
+
max(var(--faast-nav-bar-margin), var(--faast-safe-top)) + var(--faast-nav-bar-outer-height) +
|
|
2991
|
+
var(--faast-space-2)
|
|
2992
|
+
)
|
|
2993
|
+
);
|
|
2994
|
+
right: var(--faast-space-2);
|
|
2995
|
+
bottom: auto;
|
|
2996
|
+
left: var(--faast-space-2);
|
|
2997
|
+
}
|
|
2809
2998
|
.faast-toast {
|
|
2810
2999
|
display: flex;
|
|
2811
3000
|
align-items: center;
|
|
@@ -2844,6 +3033,12 @@ html:has(.faast-shell) {
|
|
|
2844
3033
|
transform: translateY(0.5rem);
|
|
2845
3034
|
}
|
|
2846
3035
|
}
|
|
3036
|
+
@keyframes faast-toast-in-down {
|
|
3037
|
+
from {
|
|
3038
|
+
opacity: 0;
|
|
3039
|
+
transform: translateY(-0.5rem);
|
|
3040
|
+
}
|
|
3041
|
+
}
|
|
2847
3042
|
|
|
2848
3043
|
/* ---------- OptionList ---------- */
|
|
2849
3044
|
.faast-option-list {
|
|
@@ -3462,6 +3657,10 @@ html:has(.faast-shell) {
|
|
|
3462
3657
|
display: none;
|
|
3463
3658
|
}
|
|
3464
3659
|
}
|
|
3660
|
+
/* variant="compact": the compact form at any window width (wins over the rule above). */
|
|
3661
|
+
.faast-stepper--compact .faast-stepper__compact {
|
|
3662
|
+
display: block;
|
|
3663
|
+
}
|
|
3465
3664
|
@media (prefers-reduced-motion: reduce) {
|
|
3466
3665
|
.faast-stepper__bar > span {
|
|
3467
3666
|
transition: none;
|
|
@@ -4214,6 +4413,279 @@ html:has(.faast-shell) {
|
|
|
4214
4413
|
}
|
|
4215
4414
|
}
|
|
4216
4415
|
|
|
4416
|
+
/* ---------- SummaryCard (DSN-001 RPT-01) ---------- */
|
|
4417
|
+
/* One headline figure with a notch in the top-right corner. The notch is a radial mask on a
|
|
4418
|
+
decorative layer (.faast-summary-card__surface), so the round action that sits in it is NOT
|
|
4419
|
+
clipped and the shape follows the theme: no image, no SVG. */
|
|
4420
|
+
.faast-summary-card {
|
|
4421
|
+
--faast-summary-card-radius: var(--faast-radius-xl);
|
|
4422
|
+
/* Radius of the cut and distance of its centre from the top and right edges. The action is
|
|
4423
|
+
centred on that point. */
|
|
4424
|
+
--faast-summary-card-notch: 2.125rem;
|
|
4425
|
+
--faast-summary-card-notch-at: 1.625rem;
|
|
4426
|
+
position: relative;
|
|
4427
|
+
min-width: 0;
|
|
4428
|
+
margin: 0;
|
|
4429
|
+
/* The card owns its ink: it sits on bg.surface (bg.sunken for sm), so its text is text.primary
|
|
4430
|
+
whatever the container around it sets. Without this it inherits the colour of the page and,
|
|
4431
|
+
inside a themed container (a tenant, a dark section), it can be the colour of its own
|
|
4432
|
+
background. The featured card sets on-soft on its content below. */
|
|
4433
|
+
color: var(--faast-text-primary);
|
|
4434
|
+
/* The shadow follows the silhouette (notch included), which a box-shadow cannot do. Opt out
|
|
4435
|
+
with --faast-summary-card-shadow: none. light-dark() reads the theme's color-scheme. */
|
|
4436
|
+
filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.06)) drop-shadow(0 14px 16px rgb(0 0 0 / 0.09));
|
|
4437
|
+
filter: var(
|
|
4438
|
+
--faast-summary-card-shadow,
|
|
4439
|
+
drop-shadow(0 1px 1px light-dark(rgb(0 0 0 / 0.06), rgb(0 0 0 / 0.5)))
|
|
4440
|
+
drop-shadow(0 14px 16px light-dark(rgb(0 0 0 / 0.09), rgb(0 0 0 / 0.7)))
|
|
4441
|
+
);
|
|
4442
|
+
transition: transform var(--faast-duration-base) var(--faast-ease-standard);
|
|
4443
|
+
}
|
|
4444
|
+
.faast-summary-card--sm {
|
|
4445
|
+
--faast-summary-card-radius: var(--faast-radius-lg);
|
|
4446
|
+
/* Flat mini card (the one in the Liquidación dialog of the prototype): no shadow, so it does
|
|
4447
|
+
not read as a card inside a card. */
|
|
4448
|
+
filter: none;
|
|
4449
|
+
}
|
|
4450
|
+
.faast-summary-card__surface {
|
|
4451
|
+
position: absolute;
|
|
4452
|
+
inset: 0;
|
|
4453
|
+
overflow: hidden;
|
|
4454
|
+
border-radius: var(--faast-summary-card-radius);
|
|
4455
|
+
background-color: var(--faast-bg-surface);
|
|
4456
|
+
}
|
|
4457
|
+
/* sm: `bg.sunken` with a subtle border and without the diagonal blocks. */
|
|
4458
|
+
.faast-summary-card--sm > .faast-summary-card__surface {
|
|
4459
|
+
border: 1px solid var(--faast-border-subtle);
|
|
4460
|
+
background-color: var(--faast-bg-sunken);
|
|
4461
|
+
}
|
|
4462
|
+
.faast-summary-card--sm .faast-summary-card__shape {
|
|
4463
|
+
display: none;
|
|
4464
|
+
}
|
|
4465
|
+
.faast-summary-card:has(.faast-summary-card__action) > .faast-summary-card__surface {
|
|
4466
|
+
-webkit-mask-image: radial-gradient(
|
|
4467
|
+
circle var(--faast-summary-card-notch) at calc(100% - var(--faast-summary-card-notch-at))
|
|
4468
|
+
var(--faast-summary-card-notch-at),
|
|
4469
|
+
transparent 0 98%,
|
|
4470
|
+
currentcolor 100%
|
|
4471
|
+
);
|
|
4472
|
+
mask-image: radial-gradient(
|
|
4473
|
+
circle var(--faast-summary-card-notch) at calc(100% - var(--faast-summary-card-notch-at))
|
|
4474
|
+
var(--faast-summary-card-notch-at),
|
|
4475
|
+
transparent 0 98%,
|
|
4476
|
+
currentcolor 100%
|
|
4477
|
+
);
|
|
4478
|
+
}
|
|
4479
|
+
/* Two diagonal blocks, decorative only (they carry no meaning). */
|
|
4480
|
+
.faast-summary-card__shape {
|
|
4481
|
+
position: absolute;
|
|
4482
|
+
inset: 0 0 0 auto;
|
|
4483
|
+
width: 64%;
|
|
4484
|
+
background-color: var(--faast-bg-sunken);
|
|
4485
|
+
clip-path: polygon(44% 0, 100% 0, 100% 100%, 12% 100%);
|
|
4486
|
+
}
|
|
4487
|
+
.faast-summary-card__shape::after {
|
|
4488
|
+
content: '';
|
|
4489
|
+
position: absolute;
|
|
4490
|
+
inset: 0 auto 0 0;
|
|
4491
|
+
width: 100%;
|
|
4492
|
+
background-color: var(--faast-bg-hover);
|
|
4493
|
+
clip-path: polygon(0 0, 34% 0, 0 100%);
|
|
4494
|
+
}
|
|
4495
|
+
.faast-summary-card__content {
|
|
4496
|
+
position: relative;
|
|
4497
|
+
display: grid;
|
|
4498
|
+
gap: var(--faast-space-3);
|
|
4499
|
+
align-content: start;
|
|
4500
|
+
height: 100%;
|
|
4501
|
+
min-width: 0;
|
|
4502
|
+
padding: var(--faast-space-5);
|
|
4503
|
+
}
|
|
4504
|
+
.faast-summary-card--sm .faast-summary-card__content {
|
|
4505
|
+
gap: var(--faast-space-2);
|
|
4506
|
+
padding: var(--faast-space-4);
|
|
4507
|
+
}
|
|
4508
|
+
.faast-summary-card__top {
|
|
4509
|
+
display: flex;
|
|
4510
|
+
align-items: center;
|
|
4511
|
+
gap: var(--faast-space-3);
|
|
4512
|
+
min-width: 0;
|
|
4513
|
+
}
|
|
4514
|
+
/* Keep the title clear of the notch. */
|
|
4515
|
+
.faast-summary-card:has(.faast-summary-card__action) .faast-summary-card__top {
|
|
4516
|
+
padding-right: var(--faast-space-10);
|
|
4517
|
+
}
|
|
4518
|
+
.faast-summary-card__icon {
|
|
4519
|
+
display: inline-grid;
|
|
4520
|
+
place-items: center;
|
|
4521
|
+
flex: none;
|
|
4522
|
+
width: 2.25rem;
|
|
4523
|
+
height: 2.25rem;
|
|
4524
|
+
border-radius: var(--faast-radius-full);
|
|
4525
|
+
background-color: var(--faast-accent-tint);
|
|
4526
|
+
color: var(--faast-accent-text);
|
|
4527
|
+
}
|
|
4528
|
+
.faast-summary-card--sm .faast-summary-card__icon {
|
|
4529
|
+
width: 2rem;
|
|
4530
|
+
height: 2rem;
|
|
4531
|
+
}
|
|
4532
|
+
.faast-summary-card__title {
|
|
4533
|
+
flex: 1;
|
|
4534
|
+
min-width: 0;
|
|
4535
|
+
margin: 0;
|
|
4536
|
+
font-size: var(--faast-font-size-md);
|
|
4537
|
+
font-weight: var(--faast-font-weight-medium);
|
|
4538
|
+
letter-spacing: -0.01em;
|
|
4539
|
+
line-height: var(--faast-line-height-snug);
|
|
4540
|
+
}
|
|
4541
|
+
.faast-summary-card--sm .faast-summary-card__title {
|
|
4542
|
+
font-size: var(--faast-font-size-sm);
|
|
4543
|
+
}
|
|
4544
|
+
.faast-summary-card__value {
|
|
4545
|
+
margin: var(--faast-space-2) 0 0;
|
|
4546
|
+
font-size: calc(var(--faast-font-size-3xl) * 0.95);
|
|
4547
|
+
font-weight: var(--faast-font-weight-medium);
|
|
4548
|
+
letter-spacing: -0.035em;
|
|
4549
|
+
line-height: 1.05;
|
|
4550
|
+
overflow-wrap: anywhere;
|
|
4551
|
+
}
|
|
4552
|
+
.faast-summary-card--sm .faast-summary-card__value {
|
|
4553
|
+
margin-top: 0;
|
|
4554
|
+
font-size: var(--faast-font-size-2xl);
|
|
4555
|
+
letter-spacing: -0.03em;
|
|
4556
|
+
line-height: 1.1;
|
|
4557
|
+
}
|
|
4558
|
+
.faast-summary-card__unit {
|
|
4559
|
+
margin-left: var(--faast-space-2);
|
|
4560
|
+
color: var(--faast-text-secondary);
|
|
4561
|
+
font-size: var(--faast-font-size-xs);
|
|
4562
|
+
font-weight: var(--faast-font-weight-medium);
|
|
4563
|
+
letter-spacing: 0.02em;
|
|
4564
|
+
}
|
|
4565
|
+
.faast-summary-card__footer {
|
|
4566
|
+
display: flex;
|
|
4567
|
+
flex-wrap: wrap;
|
|
4568
|
+
align-items: center;
|
|
4569
|
+
gap: var(--faast-space-2);
|
|
4570
|
+
min-width: 0;
|
|
4571
|
+
margin: 0;
|
|
4572
|
+
color: var(--faast-text-secondary);
|
|
4573
|
+
font-size: var(--faast-font-size-xs);
|
|
4574
|
+
}
|
|
4575
|
+
.faast-summary-card__note {
|
|
4576
|
+
display: flex;
|
|
4577
|
+
align-items: center;
|
|
4578
|
+
gap: var(--faast-space-1);
|
|
4579
|
+
margin: 0;
|
|
4580
|
+
color: var(--faast-text-secondary);
|
|
4581
|
+
font-size: var(--faast-font-size-xs);
|
|
4582
|
+
}
|
|
4583
|
+
.faast-summary-card__note-icon {
|
|
4584
|
+
display: inline-flex;
|
|
4585
|
+
}
|
|
4586
|
+
/* Placeholder of the value while busy: one line of the value's own height (its line-height). */
|
|
4587
|
+
.faast-summary-card__value-placeholder {
|
|
4588
|
+
width: 68%;
|
|
4589
|
+
height: calc(1em * 1.05);
|
|
4590
|
+
height: 1lh;
|
|
4591
|
+
}
|
|
4592
|
+
/* Placeholder of the note while busy: one line of its own height. */
|
|
4593
|
+
.faast-summary-card__note-placeholder {
|
|
4594
|
+
width: 45%;
|
|
4595
|
+
height: calc(1em * var(--faast-line-height-normal));
|
|
4596
|
+
height: 1lh;
|
|
4597
|
+
}
|
|
4598
|
+
/* The round action, centred in the notch. */
|
|
4599
|
+
.faast-summary-card__action {
|
|
4600
|
+
position: absolute;
|
|
4601
|
+
top: calc(var(--faast-summary-card-notch-at) - var(--faast-size-touch-target) / 2);
|
|
4602
|
+
right: calc(var(--faast-summary-card-notch-at) - var(--faast-size-touch-target) / 2);
|
|
4603
|
+
display: inline-grid;
|
|
4604
|
+
place-items: center;
|
|
4605
|
+
width: var(--faast-size-touch-target);
|
|
4606
|
+
height: var(--faast-size-touch-target);
|
|
4607
|
+
padding: 0;
|
|
4608
|
+
border: 0;
|
|
4609
|
+
border-radius: var(--faast-radius-full);
|
|
4610
|
+
background-color: var(--faast-bg-surface);
|
|
4611
|
+
box-shadow: 0 0 0 1px var(--faast-border-subtle);
|
|
4612
|
+
color: var(--faast-text-primary);
|
|
4613
|
+
cursor: pointer;
|
|
4614
|
+
text-decoration: none;
|
|
4615
|
+
transition:
|
|
4616
|
+
background-color var(--faast-duration-fast) var(--faast-ease-standard),
|
|
4617
|
+
color var(--faast-duration-fast) var(--faast-ease-standard),
|
|
4618
|
+
transform var(--faast-duration-fast) var(--faast-ease-standard);
|
|
4619
|
+
}
|
|
4620
|
+
.faast-summary-card__action:hover {
|
|
4621
|
+
background-color: var(--faast-accent-soft);
|
|
4622
|
+
color: var(--faast-accent-on-soft);
|
|
4623
|
+
}
|
|
4624
|
+
.faast-summary-card__action:active {
|
|
4625
|
+
transform: scale(0.94);
|
|
4626
|
+
}
|
|
4627
|
+
.faast-summary-card__action[aria-disabled='true'] {
|
|
4628
|
+
opacity: 0.5;
|
|
4629
|
+
cursor: progress;
|
|
4630
|
+
}
|
|
4631
|
+
/* A card with an action lifts a little on hover; one without is not interactive and stays put. */
|
|
4632
|
+
.faast-summary-card:has(.faast-summary-card__action):hover {
|
|
4633
|
+
transform: translateY(-2px);
|
|
4634
|
+
}
|
|
4635
|
+
/* Featured: the soft brand colour. Text and icons on it are on-soft, never text-on-accent. */
|
|
4636
|
+
.faast-summary-card--featured > .faast-summary-card__surface {
|
|
4637
|
+
background-color: var(--faast-accent-soft);
|
|
4638
|
+
}
|
|
4639
|
+
/* The featured sm keeps the 1px border of sm, transparent, so it measures the same as the plain one. */
|
|
4640
|
+
.faast-summary-card--sm.faast-summary-card--featured > .faast-summary-card__surface {
|
|
4641
|
+
border-color: transparent;
|
|
4642
|
+
}
|
|
4643
|
+
.faast-summary-card--featured .faast-summary-card__shape {
|
|
4644
|
+
background-color: var(--faast-accent-soft-shape-a);
|
|
4645
|
+
}
|
|
4646
|
+
.faast-summary-card--featured .faast-summary-card__shape::after {
|
|
4647
|
+
background-color: var(--faast-accent-soft-shape-b);
|
|
4648
|
+
}
|
|
4649
|
+
.faast-summary-card--featured .faast-summary-card__content,
|
|
4650
|
+
.faast-summary-card--featured .faast-summary-card__unit,
|
|
4651
|
+
.faast-summary-card--featured .faast-summary-card__footer,
|
|
4652
|
+
.faast-summary-card--featured .faast-summary-card__note {
|
|
4653
|
+
color: var(--faast-accent-on-soft);
|
|
4654
|
+
}
|
|
4655
|
+
.faast-summary-card--featured .faast-summary-card__icon {
|
|
4656
|
+
background-color: var(--faast-accent-soft-glass);
|
|
4657
|
+
color: var(--faast-accent-on-soft);
|
|
4658
|
+
}
|
|
4659
|
+
/* A Badge inside the featured card becomes a glass chip: no border, no status colour. */
|
|
4660
|
+
.faast-summary-card--featured .faast-badge {
|
|
4661
|
+
border-color: transparent;
|
|
4662
|
+
background-color: var(--faast-accent-soft-glass);
|
|
4663
|
+
color: var(--faast-accent-on-soft);
|
|
4664
|
+
}
|
|
4665
|
+
.faast-summary-card--featured .faast-summary-card__action:hover {
|
|
4666
|
+
background-color: var(--faast-accent-soft-glass);
|
|
4667
|
+
}
|
|
4668
|
+
/* Placeholders on the featured card are glass, not the grey of the page surfaces. */
|
|
4669
|
+
.faast-summary-card--featured .faast-skeleton {
|
|
4670
|
+
background-color: var(--faast-accent-soft-glass);
|
|
4671
|
+
}
|
|
4672
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4673
|
+
.faast-summary-card,
|
|
4674
|
+
.faast-summary-card__action {
|
|
4675
|
+
transition: none;
|
|
4676
|
+
}
|
|
4677
|
+
.faast-summary-card:has(.faast-summary-card__action):hover,
|
|
4678
|
+
.faast-summary-card__action:active {
|
|
4679
|
+
transform: none;
|
|
4680
|
+
}
|
|
4681
|
+
}
|
|
4682
|
+
@media (forced-colors: active) {
|
|
4683
|
+
/* The fills disappear in forced colours: keep the silhouette with a border on the surface. */
|
|
4684
|
+
.faast-summary-card__surface {
|
|
4685
|
+
border: 1px solid CanvasText;
|
|
4686
|
+
}
|
|
4687
|
+
}
|
|
4688
|
+
|
|
4217
4689
|
/* ---------- Timeline ---------- */
|
|
4218
4690
|
.faast-timeline {
|
|
4219
4691
|
margin: 0;
|
|
@@ -5127,3 +5599,495 @@ html:has(.faast-welcome-dialog[open]:modal) {
|
|
|
5127
5599
|
min-height: 40px;
|
|
5128
5600
|
}
|
|
5129
5601
|
}
|
|
5602
|
+
|
|
5603
|
+
/* ---------- StatusBadge variant="dot": status as text (dot + words, no pill) ---------- */
|
|
5604
|
+
/*
|
|
5605
|
+
* Colours are the `status-*-fg` roles (4.5:1 on bg-surface), never `status-*-solid`: the vivid
|
|
5606
|
+
* amber and green fills do not reach 3:1 on the page ground. `neutral` is ink: the dot uses
|
|
5607
|
+
* `text-secondary`. The label always stays in `text-primary`.
|
|
5608
|
+
*/
|
|
5609
|
+
.faast-status-text {
|
|
5610
|
+
--faast-status-text-tone: var(--faast-text-secondary);
|
|
5611
|
+
display: inline-grid;
|
|
5612
|
+
justify-items: start;
|
|
5613
|
+
gap: var(--faast-space-1);
|
|
5614
|
+
color: var(--faast-text-primary);
|
|
5615
|
+
}
|
|
5616
|
+
.faast-status-text--success {
|
|
5617
|
+
--faast-status-text-tone: var(--faast-status-success-fg);
|
|
5618
|
+
}
|
|
5619
|
+
.faast-status-text--warning {
|
|
5620
|
+
--faast-status-text-tone: var(--faast-status-warning-fg);
|
|
5621
|
+
}
|
|
5622
|
+
.faast-status-text--danger {
|
|
5623
|
+
--faast-status-text-tone: var(--faast-status-danger-fg);
|
|
5624
|
+
}
|
|
5625
|
+
.faast-status-text--info {
|
|
5626
|
+
--faast-status-text-tone: var(--faast-status-info-fg);
|
|
5627
|
+
}
|
|
5628
|
+
.faast-status-text--violet {
|
|
5629
|
+
--faast-status-text-tone: var(--faast-status-violet-fg);
|
|
5630
|
+
}
|
|
5631
|
+
.faast-status-text--warning,
|
|
5632
|
+
.faast-status-text--danger {
|
|
5633
|
+
font-weight: var(--faast-font-weight-medium);
|
|
5634
|
+
}
|
|
5635
|
+
.faast-status-text__line {
|
|
5636
|
+
display: inline-flex;
|
|
5637
|
+
align-items: center;
|
|
5638
|
+
gap: var(--faast-space-2);
|
|
5639
|
+
white-space: nowrap;
|
|
5640
|
+
}
|
|
5641
|
+
.faast-status-text__dot {
|
|
5642
|
+
flex: none;
|
|
5643
|
+
box-sizing: border-box;
|
|
5644
|
+
width: 0.5rem;
|
|
5645
|
+
height: 0.5rem;
|
|
5646
|
+
border: 1.5px solid var(--faast-status-text-tone);
|
|
5647
|
+
border-radius: var(--faast-radius-full);
|
|
5648
|
+
background-color: transparent;
|
|
5649
|
+
}
|
|
5650
|
+
.faast-status-text--solid .faast-status-text__dot {
|
|
5651
|
+
background-color: var(--faast-status-text-tone);
|
|
5652
|
+
}
|
|
5653
|
+
.faast-status-text__note {
|
|
5654
|
+
font-size: var(--faast-font-size-xs);
|
|
5655
|
+
font-weight: var(--faast-font-weight-regular);
|
|
5656
|
+
color: var(--faast-text-secondary);
|
|
5657
|
+
}
|
|
5658
|
+
.faast-status-text--warning .faast-status-text__note,
|
|
5659
|
+
.faast-status-text--danger .faast-status-text__note {
|
|
5660
|
+
color: var(--faast-status-text-tone);
|
|
5661
|
+
}
|
|
5662
|
+
@media (forced-colors: active) {
|
|
5663
|
+
.faast-status-text__dot {
|
|
5664
|
+
border-color: CanvasText;
|
|
5665
|
+
}
|
|
5666
|
+
.faast-status-text--solid .faast-status-text__dot {
|
|
5667
|
+
background-color: CanvasText;
|
|
5668
|
+
}
|
|
5669
|
+
}
|
|
5670
|
+
|
|
5671
|
+
/* ---------- Glass material (Glass, glassClassName) ---------- */
|
|
5672
|
+
/*
|
|
5673
|
+
* For layers that FLOAT only. Solid by default; the translucent blur is an enhancement. The
|
|
5674
|
+
* opaque colour is the `bg-surface` role, so light, dark and tenant themes need nothing else.
|
|
5675
|
+
* No radius and no shadow here: the floating layer sets them.
|
|
5676
|
+
*/
|
|
5677
|
+
.faast-glass {
|
|
5678
|
+
background-color: var(--faast-bg-surface);
|
|
5679
|
+
border: 1px solid var(--faast-border-default);
|
|
5680
|
+
}
|
|
5681
|
+
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
|
|
5682
|
+
.faast-glass {
|
|
5683
|
+
background-color: color-mix(
|
|
5684
|
+
in srgb,
|
|
5685
|
+
var(--faast-bg-surface) var(--faast-glass-alpha-bar),
|
|
5686
|
+
transparent
|
|
5687
|
+
);
|
|
5688
|
+
-webkit-backdrop-filter: blur(var(--faast-glass-blur)) saturate(var(--faast-glass-saturate));
|
|
5689
|
+
backdrop-filter: blur(var(--faast-glass-blur)) saturate(var(--faast-glass-saturate));
|
|
5690
|
+
}
|
|
5691
|
+
.faast-glass--pop {
|
|
5692
|
+
background-color: color-mix(
|
|
5693
|
+
in srgb,
|
|
5694
|
+
var(--faast-bg-surface) var(--faast-glass-alpha-pop),
|
|
5695
|
+
transparent
|
|
5696
|
+
);
|
|
5697
|
+
}
|
|
5698
|
+
}
|
|
5699
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
5700
|
+
.faast-glass,
|
|
5701
|
+
.faast-glass--pop {
|
|
5702
|
+
background-color: var(--faast-bg-surface);
|
|
5703
|
+
-webkit-backdrop-filter: none;
|
|
5704
|
+
backdrop-filter: none;
|
|
5705
|
+
}
|
|
5706
|
+
}
|
|
5707
|
+
/* "Reducir transparencia" switch: the app sets data-vidrio="solido" on <html> (or a subtree). */
|
|
5708
|
+
[data-vidrio='solido'] .faast-glass,
|
|
5709
|
+
[data-vidrio='solido'] .faast-glass--pop {
|
|
5710
|
+
background-color: var(--faast-bg-surface);
|
|
5711
|
+
-webkit-backdrop-filter: none;
|
|
5712
|
+
backdrop-filter: none;
|
|
5713
|
+
}
|
|
5714
|
+
|
|
5715
|
+
/* ---------- Toast variant="flotante" (glass notice) ---------- */
|
|
5716
|
+
/*
|
|
5717
|
+
* Sits after the glass block on purpose: `faast-glass` (same specificity) gives the translucent
|
|
5718
|
+
* background and the border, and wins over the dark background of `.faast-toast`. The material,
|
|
5719
|
+
* its solid fallbacks and the 92% opacity come from `faast-glass faast-glass--pop`.
|
|
5720
|
+
*/
|
|
5721
|
+
.faast-toast--flotante {
|
|
5722
|
+
max-width: min(36rem, 100%);
|
|
5723
|
+
min-height: 0;
|
|
5724
|
+
padding: var(--faast-space-3) var(--faast-space-4);
|
|
5725
|
+
border-radius: var(--faast-radius-xl);
|
|
5726
|
+
color: var(--faast-text-primary);
|
|
5727
|
+
font-size: var(--faast-font-size-md);
|
|
5728
|
+
line-height: var(--faast-line-height-snug);
|
|
5729
|
+
animation-name: faast-toast-in-down;
|
|
5730
|
+
}
|
|
5731
|
+
.faast-toast--flotante:has(.faast-toast__close) {
|
|
5732
|
+
padding-right: var(--faast-space-2);
|
|
5733
|
+
}
|
|
5734
|
+
.faast-toast--flotante .faast-toast__message {
|
|
5735
|
+
padding-block: 0;
|
|
5736
|
+
text-wrap: balance;
|
|
5737
|
+
}
|
|
5738
|
+
/* A 20px box for the icon or the 16px ring, so the text does not move from waiting to done. */
|
|
5739
|
+
.faast-toast--flotante .faast-toast__icon {
|
|
5740
|
+
display: grid;
|
|
5741
|
+
flex: none;
|
|
5742
|
+
place-items: center;
|
|
5743
|
+
width: 1.25rem;
|
|
5744
|
+
height: 1.25rem;
|
|
5745
|
+
color: var(--faast-text-secondary);
|
|
5746
|
+
}
|
|
5747
|
+
.faast-toast--flotante.faast-toast--success .faast-toast__icon {
|
|
5748
|
+
color: var(--faast-status-success-fg);
|
|
5749
|
+
}
|
|
5750
|
+
.faast-toast--flotante .faast-toast__close:hover:not(:disabled) {
|
|
5751
|
+
background-color: var(--faast-bg-hover);
|
|
5752
|
+
opacity: 1;
|
|
5753
|
+
}
|
|
5754
|
+
@media (max-width: 639.98px) {
|
|
5755
|
+
.faast-toast--flotante {
|
|
5756
|
+
width: 100%;
|
|
5757
|
+
}
|
|
5758
|
+
}
|
|
5759
|
+
|
|
5760
|
+
/* ---------- Floating bar (BarraFlotante, BarraMarca, BarraModulos, BarraHerramientas) ---------- */
|
|
5761
|
+
/*
|
|
5762
|
+
* A glass capsule 12px from the top edge. Colours come only from theme roles, so tenant themes
|
|
5763
|
+
* (createTenantTheme) drive `accent-*` and `text-on-accent`. Text on the glass uses
|
|
5764
|
+
* `text-primary` and `text-secondary` only (`text-tertiary` fails 4.5:1 over a black backdrop).
|
|
5765
|
+
*/
|
|
5766
|
+
:root {
|
|
5767
|
+
--faast-nav-bar-height: var(--faast-size-top-bar);
|
|
5768
|
+
--faast-nav-bar-margin: var(--faast-space-3);
|
|
5769
|
+
/*
|
|
5770
|
+
* Outer height of the bar as drawn: the brand link keeps the 44px touch target at every width,
|
|
5771
|
+
* plus the 8px padding above and below and the 1px glass border on each side = 62px, never
|
|
5772
|
+
* under --faast-nav-bar-height (the 56px minimum). What sits under the bar (the top notice
|
|
5773
|
+
* region) is measured from this one: the minimum alone left the notice 2px from the real bar.
|
|
5774
|
+
*/
|
|
5775
|
+
--faast-nav-bar-outer-height: max(
|
|
5776
|
+
var(--faast-nav-bar-height),
|
|
5777
|
+
calc(var(--faast-size-touch-target) + var(--faast-space-2) * 2 + 2px)
|
|
5778
|
+
);
|
|
5779
|
+
}
|
|
5780
|
+
/* Anchors and focused fields never end up under the bar: bar + both margins + a breath. */
|
|
5781
|
+
:root:has(.faast-bar-wrap) {
|
|
5782
|
+
scroll-padding-top: calc(
|
|
5783
|
+
var(--faast-nav-bar-height) + var(--faast-nav-bar-margin) * 2 + var(--faast-space-4)
|
|
5784
|
+
);
|
|
5785
|
+
}
|
|
5786
|
+
.faast-bar-wrap {
|
|
5787
|
+
position: sticky;
|
|
5788
|
+
top: max(var(--faast-nav-bar-margin), var(--faast-safe-top));
|
|
5789
|
+
z-index: var(--faast-z-flyout);
|
|
5790
|
+
margin-top: var(--faast-nav-bar-margin);
|
|
5791
|
+
}
|
|
5792
|
+
.faast-bar {
|
|
5793
|
+
position: relative;
|
|
5794
|
+
display: flex;
|
|
5795
|
+
align-items: center;
|
|
5796
|
+
gap: var(--faast-space-2);
|
|
5797
|
+
min-height: var(--faast-nav-bar-height);
|
|
5798
|
+
padding: var(--faast-space-2) var(--faast-space-2) var(--faast-space-2) var(--faast-space-4);
|
|
5799
|
+
border-radius: var(--faast-radius-xl);
|
|
5800
|
+
transition: box-shadow var(--faast-duration-slow) var(--faast-ease-standard);
|
|
5801
|
+
}
|
|
5802
|
+
.faast-bar[data-elevada] {
|
|
5803
|
+
box-shadow: var(--faast-overlay-shadow);
|
|
5804
|
+
}
|
|
5805
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5806
|
+
.faast-bar {
|
|
5807
|
+
transition: none;
|
|
5808
|
+
}
|
|
5809
|
+
}
|
|
5810
|
+
.faast-bar__brand {
|
|
5811
|
+
display: inline-flex;
|
|
5812
|
+
align-items: center;
|
|
5813
|
+
flex: none;
|
|
5814
|
+
color: inherit;
|
|
5815
|
+
text-decoration: none;
|
|
5816
|
+
min-height: var(--faast-size-touch-target);
|
|
5817
|
+
margin-right: var(--faast-space-3);
|
|
5818
|
+
border-radius: var(--faast-radius-sm);
|
|
5819
|
+
}
|
|
5820
|
+
.faast-bar__brand:focus-visible {
|
|
5821
|
+
outline: 2px solid var(--faast-focus-ring);
|
|
5822
|
+
outline-offset: 2px;
|
|
5823
|
+
}
|
|
5824
|
+
.faast-bar__nav {
|
|
5825
|
+
flex: 1 1 0;
|
|
5826
|
+
min-width: 0;
|
|
5827
|
+
}
|
|
5828
|
+
.faast-bar__list {
|
|
5829
|
+
display: flex;
|
|
5830
|
+
align-items: center;
|
|
5831
|
+
gap: var(--faast-space-1);
|
|
5832
|
+
margin: 0;
|
|
5833
|
+
padding: 0;
|
|
5834
|
+
list-style: none;
|
|
5835
|
+
}
|
|
5836
|
+
/* Invisible copy of the whole list the overflow is measured on (aria-hidden). */
|
|
5837
|
+
.faast-bar__measure {
|
|
5838
|
+
position: absolute;
|
|
5839
|
+
left: 0;
|
|
5840
|
+
top: 0;
|
|
5841
|
+
width: max-content;
|
|
5842
|
+
height: 0;
|
|
5843
|
+
overflow: hidden;
|
|
5844
|
+
visibility: hidden;
|
|
5845
|
+
pointer-events: none;
|
|
5846
|
+
}
|
|
5847
|
+
.faast-bar__item {
|
|
5848
|
+
display: inline-flex;
|
|
5849
|
+
align-items: center;
|
|
5850
|
+
gap: var(--faast-space-1);
|
|
5851
|
+
min-height: var(--faast-size-touch-target);
|
|
5852
|
+
padding: 0 var(--faast-space-3);
|
|
5853
|
+
border: 0;
|
|
5854
|
+
border-radius: var(--faast-radius-sm);
|
|
5855
|
+
background: transparent;
|
|
5856
|
+
color: var(--faast-text-secondary);
|
|
5857
|
+
font: inherit;
|
|
5858
|
+
font-size: var(--faast-font-size-sm);
|
|
5859
|
+
font-weight: var(--faast-font-weight-medium);
|
|
5860
|
+
text-decoration: none;
|
|
5861
|
+
white-space: nowrap;
|
|
5862
|
+
cursor: pointer;
|
|
5863
|
+
transition:
|
|
5864
|
+
background-color var(--faast-duration-fast) var(--faast-ease-standard),
|
|
5865
|
+
color var(--faast-duration-fast) var(--faast-ease-standard);
|
|
5866
|
+
}
|
|
5867
|
+
@media (min-width: 768px) and (pointer: fine) {
|
|
5868
|
+
.faast-bar__item,
|
|
5869
|
+
.faast-bar__tools .faast-icon-button {
|
|
5870
|
+
min-height: var(--faast-size-control-compact);
|
|
5871
|
+
}
|
|
5872
|
+
.faast-bar__tools .faast-icon-button {
|
|
5873
|
+
height: var(--faast-size-control-compact);
|
|
5874
|
+
}
|
|
5875
|
+
}
|
|
5876
|
+
/*
|
|
5877
|
+
* A long module name must never push "Más" or the tools out of reach: the list shrinks and the
|
|
5878
|
+
* label of a link ends in an ellipsis (the full text stays in the DOM and the accessible name).
|
|
5879
|
+
*/
|
|
5880
|
+
.faast-bar__nav > .faast-bar__list:not(.faast-bar__measure) {
|
|
5881
|
+
min-width: 0;
|
|
5882
|
+
max-width: 100%;
|
|
5883
|
+
}
|
|
5884
|
+
.faast-bar__nav > .faast-bar__list:not(.faast-bar__measure) > li {
|
|
5885
|
+
flex: 0 1 auto;
|
|
5886
|
+
min-width: 0;
|
|
5887
|
+
}
|
|
5888
|
+
.faast-bar__nav > .faast-bar__list:not(.faast-bar__measure) > .faast-bar__more {
|
|
5889
|
+
flex: none;
|
|
5890
|
+
}
|
|
5891
|
+
.faast-bar__nav .faast-bar__item {
|
|
5892
|
+
max-width: 100%;
|
|
5893
|
+
}
|
|
5894
|
+
.faast-bar__label {
|
|
5895
|
+
min-width: 0;
|
|
5896
|
+
overflow: hidden;
|
|
5897
|
+
text-overflow: ellipsis;
|
|
5898
|
+
}
|
|
5899
|
+
.faast-bar__item:hover {
|
|
5900
|
+
background-color: var(--faast-bg-hover);
|
|
5901
|
+
color: var(--faast-text-primary);
|
|
5902
|
+
}
|
|
5903
|
+
.faast-bar__item[aria-current='page'] {
|
|
5904
|
+
background-color: var(--faast-bg-selected);
|
|
5905
|
+
color: var(--faast-text-primary);
|
|
5906
|
+
}
|
|
5907
|
+
.faast-bar__item[aria-expanded='true'] {
|
|
5908
|
+
background-color: var(--faast-bg-hover);
|
|
5909
|
+
color: var(--faast-text-primary);
|
|
5910
|
+
}
|
|
5911
|
+
.faast-bar__item:focus-visible,
|
|
5912
|
+
.faast-bar__tools .faast-icon-button:focus-visible,
|
|
5913
|
+
.faast-bar__tools .faast-button:focus-visible {
|
|
5914
|
+
outline: 2px solid var(--faast-focus-ring);
|
|
5915
|
+
outline-offset: 2px;
|
|
5916
|
+
}
|
|
5917
|
+
.faast-bar__tools {
|
|
5918
|
+
display: flex;
|
|
5919
|
+
align-items: center;
|
|
5920
|
+
gap: var(--faast-space-1);
|
|
5921
|
+
flex: none;
|
|
5922
|
+
}
|
|
5923
|
+
/* The list of modules lives in the sheet below 768px. */
|
|
5924
|
+
.faast-bar__menu-btn {
|
|
5925
|
+
display: none;
|
|
5926
|
+
min-width: var(--faast-size-touch-target);
|
|
5927
|
+
justify-content: center;
|
|
5928
|
+
}
|
|
5929
|
+
@media (max-width: 767.98px) {
|
|
5930
|
+
.faast-bar__nav {
|
|
5931
|
+
display: none;
|
|
5932
|
+
}
|
|
5933
|
+
.faast-bar__menu-btn {
|
|
5934
|
+
display: inline-flex;
|
|
5935
|
+
margin-inline-start: auto;
|
|
5936
|
+
}
|
|
5937
|
+
}
|
|
5938
|
+
/*
|
|
5939
|
+
* Very narrow phones (320px is a WCAG 1.4.10 reflow width): the bar gives back padding and gaps,
|
|
5940
|
+
* and "Módulos" shows only its icon (its name stays for assistive technology). 44px targets stay.
|
|
5941
|
+
*/
|
|
5942
|
+
@media (max-width: 479.98px) {
|
|
5943
|
+
.faast-bar {
|
|
5944
|
+
gap: var(--faast-space-1);
|
|
5945
|
+
padding-left: var(--faast-space-3);
|
|
5946
|
+
}
|
|
5947
|
+
.faast-bar__brand {
|
|
5948
|
+
margin-right: var(--faast-space-1);
|
|
5949
|
+
}
|
|
5950
|
+
.faast-bar[data-marca='banda'] .faast-bar__brand {
|
|
5951
|
+
padding: 0 var(--faast-space-2);
|
|
5952
|
+
}
|
|
5953
|
+
.faast-bar__menu-label {
|
|
5954
|
+
position: absolute;
|
|
5955
|
+
width: 1px;
|
|
5956
|
+
height: 1px;
|
|
5957
|
+
overflow: hidden;
|
|
5958
|
+
clip-path: inset(50%);
|
|
5959
|
+
white-space: nowrap;
|
|
5960
|
+
}
|
|
5961
|
+
}
|
|
5962
|
+
/* The phone sheet floats, so it takes the same 20px as the bar on its top corners. */
|
|
5963
|
+
@media (max-width: 767.98px) {
|
|
5964
|
+
.faast-dialog.faast-bar__sheet {
|
|
5965
|
+
border-radius: var(--faast-radius-xl) var(--faast-radius-xl) 0 0;
|
|
5966
|
+
}
|
|
5967
|
+
}
|
|
5968
|
+
/*
|
|
5969
|
+
* "Más (n)" list: same radius and shadow as the bar, glass at the `pop` level. It is rendered as
|
|
5970
|
+
* a sibling of the bar's `header` inside `.faast-bar-wrap` (so its own blur sees the page, not
|
|
5971
|
+
* the bar's glass) and anchors to the wrap, whose right edge is the bar's.
|
|
5972
|
+
*/
|
|
5973
|
+
.faast-bar__pop {
|
|
5974
|
+
position: absolute;
|
|
5975
|
+
top: calc(100% + var(--faast-space-2));
|
|
5976
|
+
right: 0;
|
|
5977
|
+
z-index: var(--faast-z-flyout);
|
|
5978
|
+
min-width: 15rem;
|
|
5979
|
+
max-width: calc(100vw - 2 * var(--faast-space-4));
|
|
5980
|
+
padding: var(--faast-space-2);
|
|
5981
|
+
border-radius: var(--faast-radius-xl);
|
|
5982
|
+
box-shadow: var(--faast-overlay-shadow);
|
|
5983
|
+
/* Taller than the window? It scrolls inside, keeping a margin under it (bar + 3 margins + gap). */
|
|
5984
|
+
max-height: calc(
|
|
5985
|
+
100dvh - var(--faast-nav-bar-height) - var(--faast-nav-bar-margin) * 3 - var(--faast-space-2)
|
|
5986
|
+
);
|
|
5987
|
+
overflow-y: auto;
|
|
5988
|
+
overscroll-behavior: contain;
|
|
5989
|
+
}
|
|
5990
|
+
.faast-bar__pop-list,
|
|
5991
|
+
.faast-bar__sheet-list {
|
|
5992
|
+
display: grid;
|
|
5993
|
+
margin: 0;
|
|
5994
|
+
padding: 0;
|
|
5995
|
+
list-style: none;
|
|
5996
|
+
}
|
|
5997
|
+
.faast-bar__pop-list .faast-bar__item,
|
|
5998
|
+
.faast-bar__sheet-list .faast-bar__item {
|
|
5999
|
+
width: 100%;
|
|
6000
|
+
justify-content: space-between;
|
|
6001
|
+
color: var(--faast-text-primary);
|
|
6002
|
+
font-weight: var(--faast-font-weight-regular);
|
|
6003
|
+
}
|
|
6004
|
+
.faast-bar__sheet-list .faast-bar__item {
|
|
6005
|
+
min-height: var(--faast-size-touch-target);
|
|
6006
|
+
}
|
|
6007
|
+
|
|
6008
|
+
/* Brand variant "filo": a 2px edge in the brand colour on the bottom border. */
|
|
6009
|
+
.faast-bar[data-marca='filo']::after {
|
|
6010
|
+
content: '';
|
|
6011
|
+
position: absolute;
|
|
6012
|
+
left: var(--faast-radius-xl);
|
|
6013
|
+
right: var(--faast-radius-xl);
|
|
6014
|
+
bottom: -1px;
|
|
6015
|
+
height: 2px;
|
|
6016
|
+
border-radius: var(--faast-radius-full);
|
|
6017
|
+
background-color: var(--faast-accent-base);
|
|
6018
|
+
pointer-events: none;
|
|
6019
|
+
}
|
|
6020
|
+
|
|
6021
|
+
/*
|
|
6022
|
+
* Brand variant "banda": the bar is the brand colour; the logo sits on a bg-surface plate.
|
|
6023
|
+
* The current module is a 17% pill (the prototype used 18%: with the FaaST green over a pure
|
|
6024
|
+
* black backdrop 18% gives 4.49:1; 17% gives 4.60:1, asserted in @faast-app/themes).
|
|
6025
|
+
*/
|
|
6026
|
+
.faast-bar[data-marca='banda'] {
|
|
6027
|
+
background-color: var(--faast-accent-base);
|
|
6028
|
+
border-color: var(--faast-accent-base);
|
|
6029
|
+
color: var(--faast-text-on-accent);
|
|
6030
|
+
}
|
|
6031
|
+
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
|
|
6032
|
+
.faast-bar[data-marca='banda'] {
|
|
6033
|
+
background-color: color-mix(in srgb, var(--faast-accent-base) 94%, transparent);
|
|
6034
|
+
}
|
|
6035
|
+
}
|
|
6036
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
6037
|
+
.faast-bar[data-marca='banda'] {
|
|
6038
|
+
background-color: var(--faast-accent-base);
|
|
6039
|
+
}
|
|
6040
|
+
}
|
|
6041
|
+
[data-vidrio='solido'] .faast-bar[data-marca='banda'] {
|
|
6042
|
+
background-color: var(--faast-accent-base);
|
|
6043
|
+
}
|
|
6044
|
+
.faast-bar[data-marca='banda'][data-elevada] {
|
|
6045
|
+
border-color: var(--faast-accent-hover);
|
|
6046
|
+
}
|
|
6047
|
+
.faast-bar[data-marca='banda'] .faast-bar__brand {
|
|
6048
|
+
padding: 0 var(--faast-space-3);
|
|
6049
|
+
background-color: var(--faast-bg-surface);
|
|
6050
|
+
}
|
|
6051
|
+
.faast-bar[data-marca='banda'] .faast-bar__item,
|
|
6052
|
+
.faast-bar[data-marca='banda'] .faast-bar__tools .faast-icon-button,
|
|
6053
|
+
.faast-bar[data-marca='banda'] .faast-bar__tools .faast-button--ghost {
|
|
6054
|
+
color: var(--faast-text-on-accent);
|
|
6055
|
+
}
|
|
6056
|
+
.faast-bar[data-marca='banda'] .faast-bar__item:hover,
|
|
6057
|
+
.faast-bar[data-marca='banda'] .faast-bar__item[aria-expanded='true'],
|
|
6058
|
+
.faast-bar[data-marca='banda'] .faast-bar__tools .faast-icon-button:hover:not(:disabled),
|
|
6059
|
+
.faast-bar[data-marca='banda'] .faast-bar__tools .faast-button--ghost:hover:not(:disabled) {
|
|
6060
|
+
background-color: color-mix(in srgb, var(--faast-text-on-accent) 12%, transparent);
|
|
6061
|
+
color: var(--faast-text-on-accent);
|
|
6062
|
+
}
|
|
6063
|
+
.faast-bar[data-marca='banda'] .faast-bar__item[aria-current='page'] {
|
|
6064
|
+
background-color: color-mix(in srgb, var(--faast-text-on-accent) 17%, transparent);
|
|
6065
|
+
color: var(--faast-text-on-accent);
|
|
6066
|
+
font-weight: var(--faast-font-weight-semibold);
|
|
6067
|
+
}
|
|
6068
|
+
.faast-bar[data-marca='banda'] .faast-bar__item:focus-visible,
|
|
6069
|
+
.faast-bar[data-marca='banda'] .faast-bar__tools .faast-icon-button:focus-visible,
|
|
6070
|
+
.faast-bar[data-marca='banda'] .faast-bar__tools .faast-button:focus-visible {
|
|
6071
|
+
outline-color: var(--faast-text-on-accent);
|
|
6072
|
+
}
|
|
6073
|
+
/* The "Más" list is a glass pop-over on bg-surface even over the brand band. */
|
|
6074
|
+
.faast-bar[data-marca='banda'] .faast-bar__pop .faast-bar__item {
|
|
6075
|
+
color: var(--faast-text-primary);
|
|
6076
|
+
}
|
|
6077
|
+
.faast-bar[data-marca='banda'] .faast-bar__pop .faast-bar__item:hover {
|
|
6078
|
+
background-color: var(--faast-bg-hover);
|
|
6079
|
+
color: var(--faast-text-primary);
|
|
6080
|
+
}
|
|
6081
|
+
.faast-bar[data-marca='banda'] .faast-bar__pop .faast-bar__item[aria-current='page'] {
|
|
6082
|
+
background-color: var(--faast-bg-selected);
|
|
6083
|
+
color: var(--faast-text-primary);
|
|
6084
|
+
font-weight: var(--faast-font-weight-medium);
|
|
6085
|
+
}
|
|
6086
|
+
.faast-bar[data-marca='banda'] .faast-bar__pop .faast-bar__item:focus-visible {
|
|
6087
|
+
outline-color: var(--faast-focus-ring);
|
|
6088
|
+
}
|
|
6089
|
+
@media (forced-colors: active) {
|
|
6090
|
+
.faast-bar[data-marca='filo']::after {
|
|
6091
|
+
background-color: Highlight;
|
|
6092
|
+
}
|
|
6093
|
+
}
|