@swiftwc/ui 0.0.0-dev.42 → 0.0.0-dev.44
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/generated/components/progress-view.js +1 -0
- package/generated/css/index.css +483 -107
- package/package.json +1 -1
- package/scss/_vars.scss +1 -0
- package/scss/base/_reboot.scss +1 -1
- package/scss/base/_root.scss +26 -33
- package/scss/colors/_index.scss +135 -19
- package/scss/components/_bordered-prominent-button.scss +3 -2
- package/scss/components/_disclosure-group.scss +10 -10
- package/scss/components/_form-view.scss +58 -20
- package/scss/components/_glass-prominent-button.scss +4 -2
- package/scss/components/_label-view.scss +12 -0
- package/scss/components/_list-view.scss +65 -25
- package/scss/components/_menu-view.scss +12 -8
- package/scss/components/_table-row.scss +1 -0
- package/scss/components/_table-view.scss +1 -1
- package/scss/mixins/_index.scss +31 -0
- package/scss/placeholders/_lists.scss +79 -56
- package/scss/utils/_index.scss +16 -48
package/package.json
CHANGED
package/scss/_vars.scss
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
$base-layer: sw-base !default;
|
|
5
5
|
$components-layer: sw-components !default;
|
|
6
|
+
$list-components-layer: sw-list-components !default;
|
|
6
7
|
$nav-components-layer: sw-nav-components !default;
|
|
7
8
|
$tab-components-layer: sw-tab-components !default;
|
|
8
9
|
$utils-layer: sw-utils !default;
|
package/scss/base/_reboot.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '../vars';
|
|
2
2
|
@use '../functions';
|
|
3
3
|
|
|
4
|
-
@layer #{vars.$base-layer}, #{vars.$components-layer}, #{vars.$nav-components-layer}, #{vars.$tab-components-layer}, #{vars.$utils-layer}, #{vars.$colors-layer}, #{vars.$ui-layer}, #{vars.$transitions-layer}, #{vars.$final-layer};
|
|
4
|
+
@layer #{vars.$base-layer}, #{vars.$components-layer}, #{vars.$nav-components-layer}, #{vars.$list-components-layer}, #{vars.$tab-components-layer}, #{vars.$utils-layer}, #{vars.$colors-layer}, #{vars.$ui-layer}, #{vars.$transitions-layer}, #{vars.$final-layer};
|
|
5
5
|
|
|
6
6
|
@layer #{vars.$base-layer} {
|
|
7
7
|
// html,
|
package/scss/base/_root.scss
CHANGED
|
@@ -126,10 +126,10 @@
|
|
|
126
126
|
// --secondary-text: var(--black);
|
|
127
127
|
// --secondary-text-dark: var(--white);
|
|
128
128
|
|
|
129
|
-
--tint: oklch(0.5325 0.1899 257.12);
|
|
130
|
-
--tint1g: color-mix(in oklch, white 70%, var(--tint)); //oklch(0.9208 0.0306 249.69);
|
|
131
|
-
--tint2: color-mix(in oklch, white 80%, var(--tint)); //oklch(0.9208 0.0306 249.69);
|
|
132
|
-
--tint3: color-mix(in oklch, white 90%, var(--tint)); //oklch(0.9607 0.0148 251.16);
|
|
129
|
+
// --tint: oklch(0.5325 0.1899 257.12);
|
|
130
|
+
// --tint1g: color-mix(in oklch, white 70%, var(--tint)); //oklch(0.9208 0.0306 249.69);
|
|
131
|
+
// --tint2: color-mix(in oklch, white 80%, var(--tint)); //oklch(0.9208 0.0306 249.69);
|
|
132
|
+
// --tint3: color-mix(in oklch, white 90%, var(--tint)); //oklch(0.9607 0.0148 251.16);
|
|
133
133
|
|
|
134
134
|
--tintcontrast: white; //--tintcontrast: contrast-color(var(--tint));
|
|
135
135
|
|
|
@@ -244,6 +244,8 @@
|
|
|
244
244
|
|
|
245
245
|
--form-extra-gap: 3rem;
|
|
246
246
|
|
|
247
|
+
--insetform-item-border-radius: 1rem;
|
|
248
|
+
|
|
247
249
|
@each $v in list, form {
|
|
248
250
|
--#{$v}-item-padding-inline-start: 1rem;
|
|
249
251
|
--#{$v}-item-padding-inline-end: 1rem;
|
|
@@ -253,67 +255,58 @@
|
|
|
253
255
|
// FIXME: feat-sheet 3/3
|
|
254
256
|
--#{$v}-item-background-color: var(--background); //light-dark(var(--system-bg), var(--primary-bg-dark)); // ✅
|
|
255
257
|
--#{$v}-item-color: var(--primary);
|
|
256
|
-
--#{$v}-highlighteditem-background-color: var(--
|
|
258
|
+
--#{$v}-highlighteditem-background-color: var(--accentColor3);
|
|
257
259
|
--#{$v}-highlighteditem-color: ;
|
|
258
260
|
|
|
259
261
|
// FIXME: feat-sheet 3/3
|
|
260
262
|
--inset#{$v}-item-background-color: var(--background); //light-dark(var(--system-bg), var(--primary-bg-dark)); // ✅
|
|
261
263
|
--inset#{$v}-item-color: var(--primary);
|
|
262
|
-
--inset#{$v}-highlighteditem-background-color: var(--accentColor);
|
|
263
|
-
--inset#{$v}-highlighteditem-color: var(--tintcontrast);
|
|
264
|
+
--inset#{$v}-highlighteditem-background-color: var(--accentColor3); //var(--accentColor);
|
|
265
|
+
--inset#{$v}-highlighteditem-color: ; //var(--tintcontrast);
|
|
264
266
|
|
|
265
267
|
--insetgrouped#{$v}-item-background-color: var(--secondaryGroupedBackground); //light-dark(var(--system-bg), oklch(0.2186 0.0039 286.08)); // ✅
|
|
266
268
|
--insetgrouped#{$v}-item-color: var(--primary);
|
|
267
|
-
--insetgrouped#{$v}-highlighteditem-background-color: var(--accentColor);
|
|
268
|
-
--insetgrouped#{$v}-highlighteditem-color: var(--tintcontrast);
|
|
269
|
+
--insetgrouped#{$v}-highlighteditem-background-color: var(--accentColor3); //var(--accentColor);
|
|
270
|
+
--insetgrouped#{$v}-highlighteditem-color: ; //var(--tintcontrast);
|
|
269
271
|
|
|
270
272
|
--sidebar#{$v}-item-background-color: transparent;
|
|
271
273
|
--sidebar#{$v}-item-color: var(--primary);
|
|
272
274
|
--sidebar#{$v}-highlighteditem-background-color: var(--accentColor);
|
|
273
275
|
--sidebar#{$v}-highlighteditem-color: var(--tintcontrast);
|
|
274
276
|
|
|
275
|
-
--#{$v}-openitem-background-color: var(--
|
|
277
|
+
--#{$v}-openitem-background-color: var(--accentColor5);
|
|
276
278
|
--#{$v}-openitem-color: var(--primary);
|
|
277
|
-
--#{$v}-opensummary-background-color: var(--
|
|
279
|
+
--#{$v}-opensummary-background-color: var(--accentColor4);
|
|
278
280
|
--#{$v}-opensummary-color: var(--primary);
|
|
279
281
|
|
|
280
|
-
--insetgrouped#{$v}-openitem-background-color: var(--
|
|
282
|
+
--insetgrouped#{$v}-openitem-background-color: var(--accentColor5);
|
|
281
283
|
--insetgrouped#{$v}-openitem-color: var(--primary);
|
|
282
|
-
--insetgrouped#{$v}-opensummary-background-color: var(--
|
|
284
|
+
--insetgrouped#{$v}-opensummary-background-color: var(--accentColor4);
|
|
283
285
|
--insetgrouped#{$v}-opensummary-color: var(--primary);
|
|
284
286
|
|
|
285
|
-
--inset#{$v}-openitem-background-color: var(--
|
|
287
|
+
--inset#{$v}-openitem-background-color: var(--accentColor5);
|
|
286
288
|
--inset#{$v}-openitem-color: var(--primary);
|
|
287
|
-
--inset#{$v}-opensummary-background-color: var(--
|
|
289
|
+
--inset#{$v}-opensummary-background-color: var(--accentColor4);
|
|
288
290
|
--inset#{$v}-opensummary-color: var(--primary);
|
|
289
291
|
|
|
290
292
|
--sidebar#{$v}-openitem-background-color: transparent;
|
|
291
293
|
--sidebar#{$v}-openitem-color: var(--primary);
|
|
292
294
|
--sidebar#{$v}-opensummary-background-color: transparent;
|
|
293
295
|
--sidebar#{$v}-opensummary-color: var(--primary);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
//
|
|
297
296
|
|
|
298
|
-
|
|
297
|
+
--insetgrouped#{$v}-background-color: var(--groupedBackground);
|
|
299
298
|
|
|
300
|
-
|
|
301
|
-
|
|
299
|
+
--inset#{$v}-padding-inline: 1rem;
|
|
300
|
+
--inset#{$v}-padding-block: 0rem;
|
|
302
301
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
--insetform-padding-inline: 1rem;
|
|
306
|
-
--insetform-padding-block: 0rem;
|
|
302
|
+
--insetgrouped#{$v}-padding-inline: 1rem;
|
|
303
|
+
--insetgrouped#{$v}-padding-block: 1rem;
|
|
307
304
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
--insetgroupedform-padding-block: 1rem;
|
|
305
|
+
--sidebar#{$v}-padding-inline: 1rem;
|
|
306
|
+
--sidebar#{$v}-padding-block: 1rem;
|
|
307
|
+
}
|
|
312
308
|
|
|
313
|
-
|
|
314
|
-
--sidebarform-padding-inline: 1rem;
|
|
315
|
-
--sidebarlist-padding-block: 1rem;
|
|
316
|
-
--sidebarform-padding-block: 1rem;
|
|
309
|
+
//
|
|
317
310
|
|
|
318
311
|
// --list-item-border-radius: 1rem;
|
|
319
312
|
// @media (pointer: fine) {
|
package/scss/colors/_index.scss
CHANGED
|
@@ -195,8 +195,8 @@ $color-tokens: (
|
|
|
195
195
|
),
|
|
196
196
|
media: (
|
|
197
197
|
base: (
|
|
198
|
-
light: oklch(0.
|
|
199
|
-
dark: oklch(0.
|
|
198
|
+
light: oklch(0.9399 0.0298 245.27),
|
|
199
|
+
dark: oklch(0.1602 0.0312 241.89),
|
|
200
200
|
),
|
|
201
201
|
),
|
|
202
202
|
),
|
|
@@ -250,8 +250,118 @@ $color-tokens: (
|
|
|
250
250
|
),
|
|
251
251
|
media: (
|
|
252
252
|
base: (
|
|
253
|
-
light: oklch(0.
|
|
254
|
-
dark: oklch(0.
|
|
253
|
+
light: oklch(0.9451 0.0312 23.18),
|
|
254
|
+
dark: oklch(0.1692 0.0381 24.05),
|
|
255
|
+
),
|
|
256
|
+
),
|
|
257
|
+
),
|
|
258
|
+
green: (
|
|
259
|
+
props: (
|
|
260
|
+
inherits: true,
|
|
261
|
+
),
|
|
262
|
+
media: (
|
|
263
|
+
base: (
|
|
264
|
+
light: oklch(0.7303 0.1944 147.44),
|
|
265
|
+
dark: oklch(0.7556 0.2082 146.98),
|
|
266
|
+
),
|
|
267
|
+
),
|
|
268
|
+
),
|
|
269
|
+
green2: (
|
|
270
|
+
props: (
|
|
271
|
+
inherits: true,
|
|
272
|
+
),
|
|
273
|
+
media: (
|
|
274
|
+
base: (
|
|
275
|
+
light: oklch(0.8224 0.1298 162.01),
|
|
276
|
+
dark: oklch(0.4879 0.1248 152),
|
|
277
|
+
),
|
|
278
|
+
),
|
|
279
|
+
),
|
|
280
|
+
green3: (
|
|
281
|
+
props: (
|
|
282
|
+
inherits: true,
|
|
283
|
+
),
|
|
284
|
+
media: (
|
|
285
|
+
base: (
|
|
286
|
+
light: oklch(0.906 0.0681 165.21),
|
|
287
|
+
dark: oklch(0.3559 0.0789 157.3),
|
|
288
|
+
),
|
|
289
|
+
),
|
|
290
|
+
),
|
|
291
|
+
green4: (
|
|
292
|
+
props: (
|
|
293
|
+
inherits: true,
|
|
294
|
+
),
|
|
295
|
+
media: (
|
|
296
|
+
base: (
|
|
297
|
+
light: oklch(0.9323 0.0504 166.1),
|
|
298
|
+
dark: oklch(0.3156 0.0607 160.27),
|
|
299
|
+
),
|
|
300
|
+
),
|
|
301
|
+
),
|
|
302
|
+
green5: (
|
|
303
|
+
props: (
|
|
304
|
+
inherits: true,
|
|
305
|
+
),
|
|
306
|
+
media: (
|
|
307
|
+
base: (
|
|
308
|
+
light: oklch(0.9558 0.0353 166.1),
|
|
309
|
+
dark: oklch(0.2632 0.0425 160.27),
|
|
310
|
+
),
|
|
311
|
+
),
|
|
312
|
+
),
|
|
313
|
+
orange: (
|
|
314
|
+
props: (
|
|
315
|
+
inherits: true,
|
|
316
|
+
),
|
|
317
|
+
media: (
|
|
318
|
+
base: (
|
|
319
|
+
light: oklch(0.7533 0.172 55.72),
|
|
320
|
+
dark: oklch(0.7619 0.167 57.05),
|
|
321
|
+
),
|
|
322
|
+
),
|
|
323
|
+
),
|
|
324
|
+
orange2: (
|
|
325
|
+
props: (
|
|
326
|
+
inherits: true,
|
|
327
|
+
),
|
|
328
|
+
media: (
|
|
329
|
+
base: (
|
|
330
|
+
light: oklch(0.8548 0.111 68.86),
|
|
331
|
+
dark: oklch(0.4468 0.0914 61.4),
|
|
332
|
+
),
|
|
333
|
+
),
|
|
334
|
+
),
|
|
335
|
+
orange3: (
|
|
336
|
+
props: (
|
|
337
|
+
inherits: true,
|
|
338
|
+
),
|
|
339
|
+
media: (
|
|
340
|
+
base: (
|
|
341
|
+
light: oklch(0.9268 0.0611 75.74),
|
|
342
|
+
dark: oklch(0.2823 0.051 67.31),
|
|
343
|
+
),
|
|
344
|
+
),
|
|
345
|
+
),
|
|
346
|
+
orange4: (
|
|
347
|
+
props: (
|
|
348
|
+
inherits: true,
|
|
349
|
+
),
|
|
350
|
+
media: (
|
|
351
|
+
base: (
|
|
352
|
+
light: oklch(0.9443 0.045 74.78),
|
|
353
|
+
dark: oklch(0.2389 0.04 75.03),
|
|
354
|
+
),
|
|
355
|
+
),
|
|
356
|
+
),
|
|
357
|
+
orange5: (
|
|
358
|
+
props: (
|
|
359
|
+
inherits: true,
|
|
360
|
+
),
|
|
361
|
+
media: (
|
|
362
|
+
base: (
|
|
363
|
+
light: oklch(0.9651 0.0315 74.78),
|
|
364
|
+
dark: oklch(0.1983 0.028 75.03),
|
|
255
365
|
),
|
|
256
366
|
),
|
|
257
367
|
),
|
|
@@ -496,8 +606,8 @@ $colors: map.merge(
|
|
|
496
606
|
}
|
|
497
607
|
|
|
498
608
|
tool-bar-item,
|
|
499
|
-
tool-bar-item-group
|
|
500
|
-
|
|
609
|
+
tool-bar-item-group {
|
|
610
|
+
// navigation-split-view sidebar-toggle { // NOTE: removed since all s-toggles alreay have a toolbaritem inside
|
|
501
611
|
:where(&) {
|
|
502
612
|
//, list-view) {
|
|
503
613
|
//, [is='form-view'] BREAKS sidebar
|
|
@@ -513,23 +623,25 @@ $colors: map.merge(
|
|
|
513
623
|
// // --toolbaritemtext: light-dark(var(--primary-label), var(--primary-label-dark));
|
|
514
624
|
// }
|
|
515
625
|
}
|
|
626
|
+
}
|
|
516
627
|
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
628
|
+
tool-bar-item[tint]:not(tool-bar-item-group tool-bar-item),
|
|
629
|
+
tool-bar-item-group[tint],
|
|
630
|
+
tool-bar-item-group[tint] > tool-bar-item:not([tint]) {
|
|
631
|
+
:where(&) {
|
|
632
|
+
// --toolbaritemtext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
633
|
+
// --toolbaritemhighlighttext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
634
|
+
// --toolbaritemactivetext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
523
635
|
|
|
524
|
-
|
|
636
|
+
@include mixins.wire-tinted-glass(toolbaritem);
|
|
525
637
|
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
638
|
+
> button {
|
|
639
|
+
@include mixins.takeover-color-vars(btn);
|
|
640
|
+
// --secondary: var(--btntext);
|
|
641
|
+
// --blue: var(--btntext);
|
|
529
642
|
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
643
|
+
// --accentColorEffective: var(--btntext);
|
|
644
|
+
// --accentColor: var(--btntext);
|
|
533
645
|
}
|
|
534
646
|
}
|
|
535
647
|
}
|
|
@@ -615,6 +727,10 @@ $colors: map.merge(
|
|
|
615
727
|
--btnactivetext: light-dark(oklch(from var(--accentColor) max(calc(l * 0.5), 0) min(calc(c * 1.4), c) h), oklch(from var(--accentColor) min(calc(l * 1.3), 1) min(calc(c * 1.4), c) h));
|
|
616
728
|
}
|
|
617
729
|
|
|
730
|
+
/**
|
|
731
|
+
* NOTE: --accentColorEffective does NOT exist, it is NOT set anywhere initially!
|
|
732
|
+
* NOTE: Some controls use it to override the initial style WHEN/IF ...Effective is set by someone above.
|
|
733
|
+
*/
|
|
618
734
|
:where([is='bordered-button']) {
|
|
619
735
|
--btntext: var(--accentColorEffective, var(--accentColor));
|
|
620
736
|
--btnhighlighttext: light-dark(
|
|
@@ -48,8 +48,9 @@
|
|
|
48
48
|
@layer #{vars.$colors-layer} {
|
|
49
49
|
[is='bordered-prominent-button'] > * {
|
|
50
50
|
:where(&) {
|
|
51
|
-
|
|
52
|
-
--
|
|
51
|
+
@include mixins.takeover-color-vars(btn);
|
|
52
|
+
// --secondary: var(--btntext);
|
|
53
|
+
// --blue: var(--btntext);
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
}
|
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
overflow: clip;
|
|
9
9
|
|
|
10
10
|
--disclosure--host-details-content-block-size: 0;
|
|
11
|
+
|
|
12
|
+
--disclosure--summary-grid-template-columns: ;
|
|
13
|
+
--disclosure--summary-grid-auto-flow: ;
|
|
14
|
+
--disclosure--summary-gap: ;
|
|
15
|
+
|
|
16
|
+
--disclosure--marker-display: none;
|
|
17
|
+
--disclosure--marker-transform: ;
|
|
11
18
|
}
|
|
12
19
|
|
|
13
20
|
@supports (x: #{string.unquote('if(else:red)')}) {
|
|
@@ -27,13 +34,6 @@
|
|
|
27
34
|
@supports not (x: #{string.unquote('if(else:red)')}) {
|
|
28
35
|
:where(&) {
|
|
29
36
|
--disclosure-style: ;
|
|
30
|
-
|
|
31
|
-
--disclosure--summary-grid-template-columns: ;
|
|
32
|
-
--disclosure--summary-grid-auto-flow: ;
|
|
33
|
-
--disclosure--summary-gap: ;
|
|
34
|
-
|
|
35
|
-
--disclosure--marker-display: none;
|
|
36
|
-
--disclosure--marker-transform: ;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
block-size: var(--disclosure--host-details-content-block-size);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
:where(& > *:not(summary)) {
|
|
98
|
-
|
|
99
|
-
}
|
|
97
|
+
// :where(& > *:not(summary)) {
|
|
98
|
+
// margin: 0;
|
|
99
|
+
// }
|
|
100
100
|
|
|
101
101
|
&[open] {
|
|
102
102
|
:where(&) {
|
|
@@ -84,6 +84,7 @@ $form-ifs: (
|
|
|
84
84
|
--list--opensummary-color: var(--sidebarform-opensummary-color,),
|
|
85
85
|
//
|
|
86
86
|
// --list--item-grid-template-columns: minmax(0, 1fr),
|
|
87
|
+
--list--accessories-size: 0rem,
|
|
87
88
|
--list--accessories-display: none,
|
|
88
89
|
//
|
|
89
90
|
--list--rootsummary-marker-display: marker-trailing,
|
|
@@ -105,7 +106,7 @@ $form-elses: (
|
|
|
105
106
|
--list--accessories-display: grid,
|
|
106
107
|
);
|
|
107
108
|
|
|
108
|
-
@layer #{vars.$components-layer} {
|
|
109
|
+
@layer #{vars.$list-components-layer} {
|
|
109
110
|
[is='form-view'] {
|
|
110
111
|
&:not(& &, list-view &, table-view &, [is='tab-bar'] > &) {
|
|
111
112
|
@extend %list;
|
|
@@ -115,13 +116,6 @@ $form-elses: (
|
|
|
115
116
|
--list--section-gap: var(--form-gap);
|
|
116
117
|
|
|
117
118
|
@include mixins.write-props($form-elses);
|
|
118
|
-
|
|
119
|
-
// --list--item-padding-inline-start: var(--form-item-padding-inline-start);
|
|
120
|
-
// --list--item-padding-inline-end: var(--form-item-padding-inline-end);
|
|
121
|
-
// --list--item-padding-block-start: var(--form-item-padding-block-start);
|
|
122
|
-
// --list--item-padding-block-end: var(--form-item-padding-block-end);
|
|
123
|
-
|
|
124
|
-
// --list--item-background-color: var(--list-item-background-color,);
|
|
125
119
|
}
|
|
126
120
|
|
|
127
121
|
:where(section-view:has(> [slot='header']), section-view:has(> [slot='footer']) + section-view) {
|
|
@@ -131,15 +125,7 @@ $form-elses: (
|
|
|
131
125
|
// SECTION: ifs
|
|
132
126
|
@supports (x: #{string.unquote('if(else:red)')}) {
|
|
133
127
|
:where(&) {
|
|
134
|
-
@include mixins.write-ifs(--form-style, $form-ifs, $form-elses);
|
|
135
|
-
// --list--root-padding-inline: if(style(--form-style: inset-grouped): 0.5rem ; style(--form-style: sidebar): 0.5rem ;);
|
|
136
|
-
|
|
137
|
-
// --toolbaritemradius: if(style(--form-style: inset-grouped): 1rem ; style(--form-style: sidebar): 1rem ;);
|
|
138
|
-
|
|
139
|
-
// --list--separator-block-size: if(style(--form-style: sidebar): 0px ;);
|
|
140
|
-
// --list--separator-visibility: if(style(--form-style: collapse): 0px ;);
|
|
141
|
-
|
|
142
|
-
// --list--root-background-color: if(style(--form-style: sidebar): transparent ;);
|
|
128
|
+
@include mixins.write-ifs(--form-style, $form-ifs, $form-elses); // --list--root-padding-inline: if(style(--form-style: inset-grouped): 0.5rem ; style(--form-style: sidebar): 0.5rem ;);
|
|
143
129
|
}
|
|
144
130
|
}
|
|
145
131
|
|
|
@@ -148,12 +134,16 @@ $form-elses: (
|
|
|
148
134
|
:where(&:not([form-style])) {
|
|
149
135
|
@each $v in vars.$form-styles {
|
|
150
136
|
@container style(--form-style: #{$v}) {
|
|
137
|
+
--form-style: #{$v}; // NOTE: used ONLY for tinted buttons
|
|
138
|
+
|
|
151
139
|
@include mixins.write-props(map.get($form-ifs, $v)); //@include set-form-style($v);
|
|
152
140
|
}
|
|
153
141
|
}
|
|
154
142
|
}
|
|
155
143
|
@each $v in vars.$form-styles {
|
|
156
144
|
:where(&[form-style='#{$v}']) {
|
|
145
|
+
--form-style: #{$v}; // NOTE: used ONLY for tinted buttons
|
|
146
|
+
|
|
157
147
|
@include mixins.write-props(map.get($form-ifs, $v)); //@include set-form-style($v);
|
|
158
148
|
}
|
|
159
149
|
}
|
|
@@ -182,14 +172,62 @@ $form-elses: (
|
|
|
182
172
|
}
|
|
183
173
|
}
|
|
184
174
|
|
|
175
|
+
// NOTE: on safari takes it from manually setting it above
|
|
176
|
+
// make list-buttons tintable
|
|
177
|
+
@container not style(--form-style: sidebar) {
|
|
178
|
+
button[list-item-tint] {
|
|
179
|
+
:where(&) {
|
|
180
|
+
--itemhighlightface: var(--accentColor3);
|
|
181
|
+
--itemactiveface: var(--accentColor3);
|
|
182
|
+
}
|
|
183
|
+
&:not([is='navigation-link']) {
|
|
184
|
+
--itemtext: var(--accentColor);
|
|
185
|
+
--itemhighlighttext: var(--accentColor);
|
|
186
|
+
--itemactivetext: var(--accentColor);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
@container style(--form-style: sidebar) {
|
|
191
|
+
button[list-item-tint] {
|
|
192
|
+
:where(&) {
|
|
193
|
+
--itemhighlightface: var(--accentColor);
|
|
194
|
+
--itemactiveface: var(--accentColor);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
185
199
|
// FINALLY AFTER ALL IFS
|
|
186
200
|
// TODO: Also apply this on state of sidebar w/ full-screen detail 2/2
|
|
187
|
-
@include mixins.if-
|
|
188
|
-
:where(
|
|
189
|
-
|
|
201
|
+
@include mixins.if-content-view-list {
|
|
202
|
+
:where(&) {
|
|
203
|
+
--list--accessories-size: 0rem;
|
|
190
204
|
--list--accessories-display: none;
|
|
205
|
+
|
|
206
|
+
--insetform-highlighteditem-background-color: var(--accentColor);
|
|
207
|
+
--insetform-highlighteditem-color: var(--tintcontrast);
|
|
208
|
+
--insetgroupedform-highlighteditem-background-color: var(--accentColor);
|
|
209
|
+
--insetgroupedform-highlighteditem-color: var(--tintcontrast);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// override tint colors of tintable buttons
|
|
213
|
+
@container style(--list-style: inset) or style(--list-style: inset-grouped) {
|
|
214
|
+
button[list-item-tint] {
|
|
215
|
+
:where(&) {
|
|
216
|
+
// --itemhighlighttext: var(--tintcontrast);
|
|
217
|
+
// --itemactivetext: var(--tintcontrast);
|
|
218
|
+
|
|
219
|
+
--itemhighlightface: var(--accentColor);
|
|
220
|
+
--itemactiveface: var(--accentColor);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
191
223
|
}
|
|
192
224
|
}
|
|
225
|
+
|
|
226
|
+
// Hide accessories
|
|
227
|
+
:where(&[navigation-link-indicator-visibility='hidden']) {
|
|
228
|
+
--list--accessories-size: 0rem;
|
|
229
|
+
--list--accessories-display: none;
|
|
230
|
+
}
|
|
193
231
|
}
|
|
194
232
|
}
|
|
195
233
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use '../vars';
|
|
2
2
|
@use '../placeholders';
|
|
3
|
+
@use '../mixins';
|
|
3
4
|
|
|
4
5
|
@layer #{vars.$components-layer} {
|
|
5
6
|
[is='glass-prominent-button'] {
|
|
@@ -53,8 +54,9 @@
|
|
|
53
54
|
@layer #{vars.$colors-layer} {
|
|
54
55
|
[is='glass-prominent-button'] > * {
|
|
55
56
|
:where(&) {
|
|
56
|
-
|
|
57
|
-
--
|
|
57
|
+
@include mixins.takeover-color-vars(btn);
|
|
58
|
+
// --secondary: var(--btntext);
|
|
59
|
+
// --blue: var(--btntext);
|
|
58
60
|
}
|
|
59
61
|
}
|
|
60
62
|
}
|
|
@@ -85,10 +85,16 @@ $label-line-ifs: (
|
|
|
85
85
|
} @else if $label-style == h-icon-only {
|
|
86
86
|
--label-style: icon-only;
|
|
87
87
|
|
|
88
|
+
--label--host-align-items: center;
|
|
89
|
+
--label--host-justify-items: normal;
|
|
90
|
+
|
|
88
91
|
--label--iconstack-display: grid;
|
|
89
92
|
} @else if $label-style == h-title-only {
|
|
90
93
|
--label-style: title-only;
|
|
91
94
|
|
|
95
|
+
--label--host-align-items: center;
|
|
96
|
+
--label--host-justify-items: normal;
|
|
97
|
+
|
|
92
98
|
--label--titlestack-display: grid;
|
|
93
99
|
} @else if $label-style == v-title-and-icon {
|
|
94
100
|
--label-style: title-and-icon;
|
|
@@ -103,10 +109,16 @@ $label-line-ifs: (
|
|
|
103
109
|
} @else if $label-style == v-icon-only {
|
|
104
110
|
--label-style: icon-only;
|
|
105
111
|
|
|
112
|
+
--label--host-align-items: normal;
|
|
113
|
+
--label--host-justify-items: center;
|
|
114
|
+
|
|
106
115
|
--label--iconstack-display: grid;
|
|
107
116
|
} @else if $label-style == v-title-only {
|
|
108
117
|
--label-style: title-only;
|
|
109
118
|
|
|
119
|
+
--label--host-align-items: normal;
|
|
120
|
+
--label--host-justify-items: center;
|
|
121
|
+
|
|
110
122
|
--label--titlestack-display: grid;
|
|
111
123
|
}
|
|
112
124
|
}
|