@swiftwc/ui 0.0.0-dev.7 → 0.0.0-dev.8
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 +15 -0
- package/generated/client/index.d.ts +13 -3
- package/generated/client/index.js +228 -158
- package/generated/components/bordered-button.d.ts +7 -0
- package/generated/components/bordered-button.js +20 -0
- package/generated/components/bordered-prominent-button.d.ts +7 -0
- package/generated/components/bordered-prominent-button.js +20 -0
- package/generated/components/borderless-button.d.ts +4 -4
- package/generated/components/borderless-button.js +26 -16
- package/generated/components/confirmation-dialog.d.ts +9 -0
- package/generated/components/confirmation-dialog.js +102 -0
- package/generated/components/date-picker.d.ts +46 -0
- package/generated/components/date-picker.js +430 -0
- package/generated/components/disclosure-group.d.ts +4 -7
- package/generated/components/disclosure-group.js +41 -66
- package/generated/components/form-view.d.ts +6 -0
- package/generated/components/form-view.js +58 -0
- package/generated/components/glass-button.d.ts +6 -0
- package/generated/components/glass-button.js +17 -0
- package/generated/components/glass-prominent-button.d.ts +6 -0
- package/generated/components/glass-prominent-button.js +17 -0
- package/generated/components/index.d.ts +34 -10
- package/generated/components/index.js +33 -14
- package/generated/components/label-view.d.ts +9 -0
- package/generated/components/label-view.js +83 -0
- package/generated/components/list-view.d.ts +5 -0
- package/generated/components/list-view.js +29 -0
- package/generated/components/menu-view.d.ts +9 -0
- package/generated/components/menu-view.js +133 -0
- package/generated/components/navigation-large-title.d.ts +6 -0
- package/generated/components/navigation-large-title.js +177 -0
- package/generated/components/navigation-split-view.d.ts +4 -2
- package/generated/components/navigation-split-view.js +11 -2
- package/generated/components/navigation-stack.d.ts +3 -2
- package/generated/components/navigation-stack.js +15 -58
- package/generated/components/navigation-title.d.ts +8 -0
- package/generated/components/navigation-title.js +66 -0
- package/generated/components/picker-view.d.ts +27 -0
- package/generated/components/picker-view.js +442 -0
- package/generated/components/plain-button.d.ts +7 -0
- package/generated/components/plain-button.js +20 -0
- package/generated/components/screen-view.d.ts +1 -1
- package/generated/components/screen-view.js +1 -1
- package/generated/components/scroll-view.d.ts +4 -2
- package/generated/components/scroll-view.js +169 -62
- package/generated/components/section-view.d.ts +9 -0
- package/generated/components/section-view.js +81 -0
- package/generated/components/sheet-view.d.ts +4 -4
- package/generated/components/sheet-view.js +59 -16
- package/generated/components/sidebar-toggle.d.ts +1 -1
- package/generated/components/sidebar-toggle.js +89 -63
- package/generated/components/sidebar-view.d.ts +2 -4
- package/generated/components/sidebar-view.js +20 -17
- package/generated/components/sticky-container.d.ts +6 -0
- package/generated/components/sticky-container.js +22 -0
- package/generated/components/tab-bar.d.ts +2 -4
- package/generated/components/tab-bar.js +24 -17
- package/generated/components/tab-item.d.ts +4 -3
- package/generated/components/tab-item.js +114 -29
- package/generated/components/tab-view.d.ts +17 -2
- package/generated/components/tab-view.js +244 -17
- package/generated/components/table-view.d.ts +7 -0
- package/generated/components/table-view.js +175 -0
- package/generated/components/text-field.d.ts +29 -0
- package/generated/components/text-field.js +489 -0
- package/generated/components/tool-bar-item-group.d.ts +5 -0
- package/generated/components/tool-bar-item-group.js +11 -0
- package/generated/components/tool-bar-item.d.ts +5 -0
- package/generated/components/tool-bar-item.js +19 -0
- package/generated/components/tool-bar.d.ts +7 -0
- package/generated/components/tool-bar.js +77 -0
- package/generated/components/v-keyboard.d.ts +2 -0
- package/generated/components/v-keyboard.js +64 -68
- package/generated/components/v-stack.d.ts +5 -0
- package/generated/components/v-stack.js +11 -0
- package/generated/confirmation-dialog/index.d.ts +1 -0
- package/generated/confirmation-dialog/index.js +1 -0
- package/generated/css/index.css +7463 -0
- package/generated/events/confirmation-dialog.d.ts +9 -0
- package/generated/events/date-picker.d.ts +8 -0
- package/generated/events/date-picker.js +1 -0
- package/generated/events/index.d.ts +7 -0
- package/generated/events/index.js +7 -0
- package/generated/events/lifecycle-observer.d.ts +10 -0
- package/generated/events/lifecycle-observer.js +1 -0
- package/generated/events/picker-view.d.ts +8 -0
- package/generated/events/picker-view.js +1 -0
- package/generated/events/scroll-view.d.ts +10 -0
- package/generated/events/scroll-view.js +1 -0
- package/generated/events/tab-view.d.ts +24 -0
- package/generated/events/tab-view.js +1 -0
- package/generated/events/text-field.d.ts +8 -0
- package/generated/events/text-field.js +1 -0
- package/generated/i18n/index.d.ts +24 -0
- package/generated/i18n/index.js +139 -0
- package/generated/internal/class/cleanup-registry.d.ts +5 -0
- package/generated/internal/class/cleanup-registry.js +38 -0
- package/generated/internal/class/css-style-observer.d.ts +8 -0
- package/generated/internal/class/css-style-observer.js +25 -0
- package/generated/internal/class/form-associated-base.d.ts +20 -0
- package/generated/internal/class/form-associated-base.js +93 -0
- package/generated/internal/class/mutation-observer-singleton.d.ts +10 -0
- package/generated/internal/class/mutation-observer-singleton.js +46 -0
- package/generated/internal/class/navigation-path.d.ts +15 -0
- package/generated/internal/class/navigation-path.js +84 -0
- package/generated/internal/class/navigation-view.d.ts +8 -0
- package/generated/internal/class/navigation-view.js +77 -0
- package/generated/internal/class/resize-observer-singleton.d.ts +7 -0
- package/generated/internal/class/resize-observer-singleton.js +22 -0
- package/generated/internal/decorators/custom-element.d.ts +5 -0
- package/generated/internal/decorators/custom-element.js +4 -0
- package/generated/internal/privateNamespace.d.ts +4 -0
- package/generated/internal/privateNamespace.js +1 -0
- package/generated/internal/utils/add.d.ts +1 -0
- package/generated/internal/utils/add.js +7 -0
- package/generated/internal/utils/cash/ancestors.d.ts +1 -0
- package/generated/internal/utils/cash/ancestors.js +27 -0
- package/generated/internal/utils/cash/index.d.ts +22 -0
- package/generated/internal/utils/cash/index.js +23 -0
- package/generated/internal/utils/cash/next-all.d.ts +1 -0
- package/generated/internal/utils/cash/next-all.js +10 -0
- package/generated/internal/utils/cash/next.d.ts +1 -0
- package/generated/internal/utils/cash/next.js +9 -0
- package/generated/internal/utils/cash/prev-all.d.ts +1 -0
- package/generated/internal/utils/cash/prev-all.js +10 -0
- package/generated/internal/utils/cash/prev.d.ts +1 -0
- package/generated/internal/utils/cash/prev.js +9 -0
- package/generated/internal/utils/cash/prop.d.ts +18 -0
- package/generated/internal/utils/cash/prop.js +30 -0
- package/generated/internal/utils/cash/siblings.d.ts +1 -0
- package/generated/internal/utils/cash/siblings.js +10 -0
- package/generated/internal/utils/clamp.d.ts +1 -0
- package/generated/internal/utils/clamp.js +4 -0
- package/generated/internal/utils/compare-big-decimals.d.ts +1 -0
- package/generated/internal/utils/compare-big-decimals.js +90 -0
- package/generated/internal/utils/debounce.d.ts +1 -0
- package/generated/internal/utils/debounce.js +13 -0
- package/generated/internal/utils/frame.d.ts +1 -0
- package/generated/internal/utils/frame.js +6 -0
- package/generated/internal/utils/index.d.ts +16 -1
- package/generated/internal/utils/index.js +17 -1
- package/generated/internal/utils/kebab-case.d.ts +1 -1
- package/generated/internal/utils/list-active.d.ts +7 -0
- package/generated/internal/utils/list-active.js +28 -0
- package/generated/internal/utils/microtask.d.ts +1 -0
- package/generated/internal/utils/microtask.js +3 -0
- package/generated/internal/utils/onoff.d.ts +45 -0
- package/generated/internal/utils/onoff.js +31 -0
- package/generated/internal/utils/set.d.ts +1 -0
- package/generated/internal/utils/set.js +7 -0
- package/generated/internal/utils/sleep.d.ts +1 -0
- package/generated/internal/utils/sleep.js +3 -0
- package/generated/internal/utils/slow-hide-show.d.ts +1 -0
- package/generated/internal/utils/slow-hide-show.js +16 -0
- package/generated/internal/utils/timeout.d.ts +5 -0
- package/generated/internal/utils/timeout.js +16 -0
- package/generated/internal/utils/touch-glass.d.ts +7 -0
- package/generated/internal/utils/touch-glass.js +19 -0
- package/generated/lifecycle-observer/index.d.ts +1 -0
- package/generated/lifecycle-observer/index.js +1 -0
- package/generated/namespace-browser/base.d.ts +36 -0
- package/generated/namespace-browser/base.js +92 -0
- package/generated/namespace-browser/index.d.ts +7 -0
- package/generated/namespace-browser/index.js +1 -0
- package/generated/snapshot/index.d.ts +2 -11
- package/generated/snapshot/index.js +31 -144
- package/package.json +19 -8
- package/scss/_components.scss +52 -16
- package/scss/_final.scss +1 -0
- package/scss/_mixins.scss +2 -171
- package/scss/_placeholders.scss +3 -0
- package/scss/_transitions.scss +16 -0
- package/scss/_utils.scss +9 -0
- package/scss/_vars.scss +137 -23
- package/scss/base/_layout.scss +31 -15
- package/scss/base/_reboot.scss +118 -15
- package/scss/base/_root.scss +355 -25
- package/scss/colors/_index.scss +624 -70
- package/scss/components/_body-view.scss +12 -3
- package/scss/components/_bordered-button.scss +22 -0
- package/scss/components/_bordered-prominent-button.scss +19 -0
- package/scss/components/_borderless-button.scss +11 -6
- package/scss/components/_confirmation-dialog.scss +110 -0
- package/scss/components/_date-picker.scss +30 -0
- package/scss/components/_detail-placeholder.scss +155 -0
- package/scss/components/_disclosure-group.scss +100 -52
- package/scss/components/_form-view.scss +195 -0
- package/scss/components/_full-screen.scss +7 -5
- package/scss/components/_glass-button.scss +24 -0
- package/scss/components/_glass-prominent-button.scss +24 -0
- package/scss/components/_h-divider.scss +13 -0
- package/scss/components/_h-stack.scss +39 -0
- package/scss/components/_index.scss +224 -7
- package/scss/components/_label-view.scss +386 -0
- package/scss/components/_labeled-content.scss +9 -0
- package/scss/components/_list-view.scss +229 -0
- package/scss/components/_menu-view.scss +188 -0
- package/scss/components/_navigation-large-title.scss +27 -0
- package/scss/components/_navigation-split-view.scss +329 -269
- package/scss/components/_navigation-stack.scss +6 -6
- package/scss/components/_navigation-title.scss +10 -0
- package/scss/components/_picker-view.scss +122 -0
- package/scss/components/_plain-button.scss +11 -0
- package/scss/components/_scroll-view-proxy.scss +79 -0
- package/scss/components/_scroll-view-toolbars.scss +126 -0
- package/scss/components/_scroll-view.scss +110 -66
- package/scss/components/_section-view.scss +119 -0
- package/scss/components/_sheet-view.scss +68 -35
- package/scss/components/_sidebar-toggle.scss +90 -27
- package/scss/components/_sidebar-view.scss +30 -40
- package/scss/components/_sticky-container.scss +42 -0
- package/scss/components/_tab-bar.scss +201 -84
- package/scss/components/_tab-item.scss +25 -0
- package/scss/components/_tab-view.scss +268 -126
- package/scss/components/_table-column.scss +52 -0
- package/scss/components/_table-row.scss +172 -0
- package/scss/components/_table-view.scss +223 -0
- package/scss/components/_text-field.scss +37 -0
- package/scss/components/_tool-bar-item-group.scss +30 -19
- package/scss/components/_tool-bar-item.scss +128 -70
- package/scss/components/_tool-bar.scss +107 -64
- package/scss/components/_v-divider.scss +13 -0
- package/scss/components/_v-flex-stack.scss +29 -0
- package/scss/components/_v-keyboard.scss +6 -4
- package/scss/components/_v-stack.scss +8 -9
- package/scss/final/_touch-glass.scss +67 -0
- package/scss/index.scss +6 -2
- package/scss/mixins/_dialog.scss +88 -0
- package/scss/mixins/_index.scss +405 -0
- package/scss/placeholders/_buttons.scss +83 -0
- package/scss/placeholders/_lists.scss +589 -0
- package/scss/transitions/_bwd.navbar.scss +3 -13
- package/scss/transitions/_bwd.scss +4 -20
- package/scss/transitions/_confirmation-dialog.scss +19 -0
- package/scss/transitions/_dialog.scss +7 -11
- package/scss/transitions/_disclosure-group.scss +35 -0
- package/scss/transitions/_fwd.navbar.scss +4 -9
- package/scss/transitions/_fwd.scss +4 -34
- package/scss/transitions/_glass-button.scss +12 -0
- package/scss/transitions/_glass-prominent-button.scss +12 -0
- package/scss/transitions/_index.scss +35 -143
- package/scss/transitions/_menu-view.scss +26 -0
- package/scss/transitions/_navigation-split-view.scss +23 -0
- package/scss/transitions/_sidebar-view.scss +36 -0
- package/scss/transitions/_tab-bar.scss +19 -0
- package/scss/utils/_frame.scss +84 -0
- package/scss/utils/_index.scss +68 -0
- package/scss/utils/_scroll-view.scss +14 -0
- package/scss/utils/_spacing.scss +25 -0
- package/scss/utils/_stacks.scss +242 -0
- package/web-components.html-data/en.json +330 -0
- package/generated/components/bottom-bar.d.ts +0 -10
- package/generated/components/bottom-bar.js +0 -73
- package/generated/components/navigation-bar.d.ts +0 -10
- package/generated/components/navigation-bar.js +0 -80
- package/generated/internal/class.d.ts +0 -18
- package/generated/internal/class.js +0 -18
- package/generated/namespace/index.d.ts +0 -6
- package/generated/styles.css +0 -1305
- package/scss/_dev.scss +0 -68
- package/scss/components/_tab-bar-stack.scss +0 -101
- package/scss/components/_toolbars.scss +0 -100
- /package/generated/{namespace/index.js → events/confirmation-dialog.js} +0 -0
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
@use 'sass:string';
|
|
4
|
+
@use 'sass:map';
|
|
5
|
+
|
|
6
|
+
// @property --label-style {
|
|
7
|
+
// syntax: 'title-and-icon | icon-only | title-only | automatic';
|
|
8
|
+
// inherits: true;
|
|
9
|
+
// initial-value: automatic;
|
|
10
|
+
// }
|
|
11
|
+
|
|
12
|
+
// @property --label--style {
|
|
13
|
+
// syntax: '<number>';
|
|
14
|
+
// inherits: false;
|
|
15
|
+
// initial-value: 0;
|
|
16
|
+
// }
|
|
17
|
+
|
|
18
|
+
// @property --label-truncation-mode {
|
|
19
|
+
// syntax: 'tail';
|
|
20
|
+
// inherits: true;
|
|
21
|
+
// }
|
|
22
|
+
|
|
23
|
+
// @property --label--has-icon {
|
|
24
|
+
// syntax: 'yes | no';
|
|
25
|
+
// inherits: true;
|
|
26
|
+
// initial-value: no;
|
|
27
|
+
// }
|
|
28
|
+
|
|
29
|
+
$label-truncation-ifs: (
|
|
30
|
+
tail: (
|
|
31
|
+
--label--overflow: hidden,
|
|
32
|
+
|
|
33
|
+
--label--text-overflow: ellipsis,
|
|
34
|
+
),
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
$label-line-ifs: (
|
|
38
|
+
1: (
|
|
39
|
+
--label--host-white-space: nowrap,
|
|
40
|
+
),
|
|
41
|
+
2: (
|
|
42
|
+
--label--host-white-space: normal,
|
|
43
|
+
--label--display: -webkit-box,
|
|
44
|
+
--label--box-orient: vertical,
|
|
45
|
+
--label--line-clamp: 2,
|
|
46
|
+
),
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
@mixin set-label-style($label-style) {
|
|
50
|
+
@if $label-style == h-title-and-icon {
|
|
51
|
+
--label-style: title-and-icon;
|
|
52
|
+
|
|
53
|
+
--label--host-grid-template-columns: auto minmax(0, 1fr);
|
|
54
|
+
--label--host-grid-template-rows: minmax(0, 1fr);
|
|
55
|
+
--label--host-align-items: center;
|
|
56
|
+
--label--host-justify-items: normal;
|
|
57
|
+
|
|
58
|
+
--label--host-gap: 0.3rem;
|
|
59
|
+
|
|
60
|
+
--label--iconstack-display: grid;
|
|
61
|
+
--label--titlestack-display: grid;
|
|
62
|
+
} @else if $label-style == h-icon-only {
|
|
63
|
+
--label-style: icon-only;
|
|
64
|
+
|
|
65
|
+
--label--iconstack-display: grid;
|
|
66
|
+
} @else if $label-style == h-title-only {
|
|
67
|
+
--label-style: title-only;
|
|
68
|
+
|
|
69
|
+
--label--titlestack-display: grid;
|
|
70
|
+
} @else if $label-style == v-title-and-icon {
|
|
71
|
+
--label-style: title-and-icon;
|
|
72
|
+
|
|
73
|
+
--label--host-grid-template-columns: minmax(0, 1fr);
|
|
74
|
+
--label--host-grid-template-rows: auto minmax(0, 1fr);
|
|
75
|
+
--label--host-align-items: normal;
|
|
76
|
+
--label--host-justify-items: center;
|
|
77
|
+
|
|
78
|
+
--label--host-gap: 0.3rem;
|
|
79
|
+
|
|
80
|
+
--label--iconstack-display: grid;
|
|
81
|
+
--label--titlestack-display: grid;
|
|
82
|
+
} @else if $label-style == v-icon-only {
|
|
83
|
+
--label-style: icon-only;
|
|
84
|
+
|
|
85
|
+
--label--iconstack-display: grid;
|
|
86
|
+
} @else if $label-style == v-title-only {
|
|
87
|
+
--label-style: title-only;
|
|
88
|
+
|
|
89
|
+
--label--titlestack-display: grid;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// @mixin set-label-truncation-mode($value) {
|
|
94
|
+
// @if $value == 'tail' {
|
|
95
|
+
// --label--overflow: hidden;
|
|
96
|
+
|
|
97
|
+
// --label--text-overflow: ellipsis;
|
|
98
|
+
// }
|
|
99
|
+
// }
|
|
100
|
+
|
|
101
|
+
// @mixin set-label-line-limit($value) {
|
|
102
|
+
// @if $value == 1 {
|
|
103
|
+
// --label--host-white-space: nowrap;
|
|
104
|
+
// } @else {
|
|
105
|
+
// --label--host-white-space: normal;
|
|
106
|
+
// --label--display: -webkit-box;
|
|
107
|
+
// --label--box-orient: vertical;
|
|
108
|
+
// --label--line-clamp: #{$value};
|
|
109
|
+
// }
|
|
110
|
+
// }
|
|
111
|
+
|
|
112
|
+
@mixin set-label-font($value) {
|
|
113
|
+
--label--titlestack-font-size: var(--label-#{$value}-font-size);
|
|
114
|
+
--label--titlestack-line-height: var(--label-#{$value}-line-height);
|
|
115
|
+
--label--titlestack-font-weight: var(--label-#{$value}-font-weight);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@function if-chain($labels, $prop: null) {
|
|
119
|
+
$if-chain: null;
|
|
120
|
+
|
|
121
|
+
@each $label, $size in $labels {
|
|
122
|
+
@if $if-chain == null {
|
|
123
|
+
$if-chain: 'style(--label-font: #{$label}): var(--label-#{$label}-#{$prop}) ;';
|
|
124
|
+
} @else {
|
|
125
|
+
$if-chain: '#{$if-chain} style(--label-font: #{$label}): var(--label-#{$label}-#{$prop}) ;';
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@return $if-chain;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@mixin if-chain($key, $prop, $label) {
|
|
133
|
+
@container style(#{$key}: #{$label}) {
|
|
134
|
+
:where(&) {
|
|
135
|
+
@content;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
@container not style(#{$key}: #{$label}) {
|
|
139
|
+
:where(&[#{$prop}='#{$label}']) {
|
|
140
|
+
@content;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@layer #{vars.$components-layer} {
|
|
146
|
+
label-view {
|
|
147
|
+
:where(&) {
|
|
148
|
+
// transition: --label--style 1ms step-start;
|
|
149
|
+
|
|
150
|
+
align-items: var(--label--host-align-items,);
|
|
151
|
+
justify-items: var(--label--host-justify-items,);
|
|
152
|
+
// place-items: center;
|
|
153
|
+
// place-content: center;
|
|
154
|
+
|
|
155
|
+
// grid-auto-flow: column;
|
|
156
|
+
// grid-auto-columns: minmax(0, 1fr);
|
|
157
|
+
grid-template-columns: var(--label--host-grid-template-columns,);
|
|
158
|
+
grid-template-rows: var(--label--host-grid-template-rows,);
|
|
159
|
+
// grid-template-areas: 'label-image-stack label-title-stack';
|
|
160
|
+
|
|
161
|
+
gap: var(--label--host-gap,);
|
|
162
|
+
// gap: 0;
|
|
163
|
+
|
|
164
|
+
white-space: var(--label--host-white-space,);
|
|
165
|
+
|
|
166
|
+
&::part(label-image-stack),
|
|
167
|
+
&::part(label-title-stack) {
|
|
168
|
+
// display: none;
|
|
169
|
+
|
|
170
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
171
|
+
grid-auto-rows: minmax(0, 1fr);
|
|
172
|
+
// grid-template-columns: subgrid;
|
|
173
|
+
// grid-template-rows: subgrid;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&::part(label-image-stack) {
|
|
177
|
+
display: var(--label--iconstack-display, none);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&::part(label-title-stack) {
|
|
181
|
+
display: var(--label--titlestack-display, none);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&::part(label-image-stack) {
|
|
185
|
+
aspect-ratio: 1 / 1;
|
|
186
|
+
|
|
187
|
+
inline-size: var(--label-image-size, 2rem);
|
|
188
|
+
font-size: var(--label-image-size, 2rem);
|
|
189
|
+
|
|
190
|
+
// line-height: 1;
|
|
191
|
+
|
|
192
|
+
// grid-area: label-image-stack;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&::part(label-title-stack) {
|
|
196
|
+
text-decoration: underline;
|
|
197
|
+
|
|
198
|
+
font-size: var(--label--titlestack-font-size,);
|
|
199
|
+
line-height: var(--label--titlestack-line-height,);
|
|
200
|
+
font-weight: var(--label--titlestack-font-weight,);
|
|
201
|
+
|
|
202
|
+
// grid-area: label-title-stack;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
:where(&:has(> [slot='image'])) {
|
|
207
|
+
--label--has-icon: yes;
|
|
208
|
+
// background-color: green;
|
|
209
|
+
}
|
|
210
|
+
:where(&:has(> :not([slot]))) {
|
|
211
|
+
--label--has-title: yes;
|
|
212
|
+
// background-color: red;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
:where(& > :not([slot])) {
|
|
216
|
+
// grid-area: label-title-stack;
|
|
217
|
+
overflow: var(--label--overflow,);
|
|
218
|
+
|
|
219
|
+
text-overflow: var(--label--text-overflow,);
|
|
220
|
+
|
|
221
|
+
display: var(--label--display,);
|
|
222
|
+
|
|
223
|
+
-webkit-box-orient: var(--label--box-orient,);
|
|
224
|
+
|
|
225
|
+
line-clamp: var(--label--line-clamp,);
|
|
226
|
+
-webkit-line-clamp: var(--label--line-clamp,);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
// vars
|
|
230
|
+
@supports (x: #{string.unquote('if(else:red)')}) {
|
|
231
|
+
:where(&) {
|
|
232
|
+
--label--titlestack-font-size: if(#{if-chain(vars.$label-fonts, font-size)});
|
|
233
|
+
--label--titlestack-line-height: if(#{if-chain(vars.$label-fonts, line-height)});
|
|
234
|
+
--label--titlestack-font-weight: if(#{if-chain(vars.$label-fonts, font-weight)});
|
|
235
|
+
// if(
|
|
236
|
+
// style(--label-font: callout): 0.5rem ; style(--label-font: large-title): 3rem ; style(--label-font: large-title): 3rem ;
|
|
237
|
+
// );
|
|
238
|
+
// ANCHOR: truncation-mode
|
|
239
|
+
@include mixins.write-ifs(--label-truncation-mode, $label-truncation-ifs);
|
|
240
|
+
// --label--overflow: if(style(--label-truncation-mode: tail): hidden ;);
|
|
241
|
+
// --label--text-overflow: if(style(--label-truncation-mode: tail): ellipsis ;);
|
|
242
|
+
|
|
243
|
+
// ANCHOR: line-limit
|
|
244
|
+
@include mixins.write-ifs(--label-line-limit, $label-line-ifs);
|
|
245
|
+
// --label--host-white-space: if(style(--label-line-limit: 1): nowrap ; style(--label-line-limit: 2): normal ;);
|
|
246
|
+
// --label--display: if(style(--label-line-limit: 2): -webkit-box ;);
|
|
247
|
+
// --label--box-orient: if(style(--label-line-limit: 2): vertical ;);
|
|
248
|
+
// --label--line-clamp: if(style(--label-line-limit: 2): 2 ;);
|
|
249
|
+
|
|
250
|
+
// ANCHOR: label-flow
|
|
251
|
+
--label--host-align-items: if(style(--label-flow: vertical): normal ; else: center ;);
|
|
252
|
+
--label--host-justify-items: if(style(--label-flow: vertical): center ; else: normal ;);
|
|
253
|
+
|
|
254
|
+
// ANCHOR: label-style
|
|
255
|
+
--label--host-grid-template-columns: if(
|
|
256
|
+
style(--label-style: icon-only): minmax(0, 1fr) ; style(--label-style: title-only): minmax(0, 1fr) ;
|
|
257
|
+
style(--label-style: title-and-icon): if(style(--label-flow: vertical): minmax(0, 1fr) ; else: auto minmax(0, 1fr) ;) ;
|
|
258
|
+
else: if(
|
|
259
|
+
style(--label--has-icon: yes) and style(--label--has-title: yes): if(style(--label-flow: vertical): minmax(0, 1fr) ; else: auto minmax(0, 1fr) ;)
|
|
260
|
+
; else: minmax(0, 1fr) ;
|
|
261
|
+
)
|
|
262
|
+
;
|
|
263
|
+
);
|
|
264
|
+
--label--host-grid-template-rows: if(
|
|
265
|
+
style(--label-style: icon-only): minmax(0, 1fr) ; style(--label-style: title-only): minmax(0, 1fr) ;
|
|
266
|
+
style(--label-style: title-and-icon): if(style(--label-flow: vertical): auto minmax(0, 1fr) ; else: minmax(0, 1fr) ;) ;
|
|
267
|
+
else: if(
|
|
268
|
+
style(--label--has-icon: yes) and style(--label--has-title: yes): if(style(--label-flow: vertical): auto minmax(0, 1fr) ; else: minmax(0, 1fr) ;)
|
|
269
|
+
; else: minmax(0, 1fr) ;
|
|
270
|
+
)
|
|
271
|
+
;
|
|
272
|
+
);
|
|
273
|
+
|
|
274
|
+
--label--host-gap: if(
|
|
275
|
+
style(--label-style: title-and-icon): 0.3rem ; else: if(style(--label--has-icon: yes) and style(--label--has-title: yes): 0.3rem ;) ;
|
|
276
|
+
);
|
|
277
|
+
|
|
278
|
+
--label--iconstack-display: if(
|
|
279
|
+
style(--label-style: icon-only): grid ; style(--label-style: title-only): none ; style(--label-style: title-and-icon): grid ;
|
|
280
|
+
else: if(style(--label--has-icon: yes): grid ; else: none;) ;
|
|
281
|
+
);
|
|
282
|
+
|
|
283
|
+
--label--titlestack-display: if(
|
|
284
|
+
style(--label-style: icon-only): none ; style(--label-style: title-only): grid ; style(--label-style: title-and-icon): grid ;
|
|
285
|
+
else: if(style(--label--has-title: yes): grid ; else: none;) ;
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
@supports not (x: #{string.unquote('if(else:red)')}) {
|
|
291
|
+
:where(&:not([label-style])) {
|
|
292
|
+
@each $v in vars.$label-styles {
|
|
293
|
+
@container style(--label-style: #{$v}) {
|
|
294
|
+
@include set-label-style(h-#{$v});
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
@each $v in vars.$label-styles {
|
|
299
|
+
:where(&[label-style='#{$v}']) {
|
|
300
|
+
@include set-label-style(h-#{$v});
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
@container not style(--label-style) {
|
|
304
|
+
&:not([label-style]) {
|
|
305
|
+
// :where(&[image-hint='yes'][title-hint='yes']) {
|
|
306
|
+
:where(&:has(> [slot='image']):has(> :not([slot]))) {
|
|
307
|
+
@include set-label-style(h-title-and-icon);
|
|
308
|
+
}
|
|
309
|
+
// :where(&[image-hint='yes']:not([title-hint='yes'])) {
|
|
310
|
+
:where(&:has(> [slot='image']):not(:has(> :not([slot])))) {
|
|
311
|
+
@include set-label-style(h-icon-only);
|
|
312
|
+
}
|
|
313
|
+
// :where(&[title-hint='yes']:not([image-hint='yes'])) {
|
|
314
|
+
:where(&:has(> :not([slot])):not(:has(> [slot='image']))) {
|
|
315
|
+
@include set-label-style(h-title-only);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
// AGAIN
|
|
320
|
+
:where(&:not([label-style])) {
|
|
321
|
+
@each $v in vars.$label-styles {
|
|
322
|
+
@container style(--label-style: #{$v}) and style(--label-flow: vertical) {
|
|
323
|
+
@include set-label-style(v-#{$v});
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
@container style(--label-flow: vertical) {
|
|
328
|
+
@each $v in vars.$label-styles {
|
|
329
|
+
:where(&[label-style='#{$v}']) {
|
|
330
|
+
@include set-label-style(v-#{$v});
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
@container (not style(--label-style)) and style(--label-flow: vertical) {
|
|
335
|
+
&:not([label-style]) {
|
|
336
|
+
:where(&:has(> [slot='image']):has(> :not([slot]))) {
|
|
337
|
+
@include set-label-style(v-title-and-icon);
|
|
338
|
+
}
|
|
339
|
+
:where(&:has(> [slot='image']):not(:has(> :not([slot])))) {
|
|
340
|
+
@include set-label-style(v-icon-only);
|
|
341
|
+
}
|
|
342
|
+
:where(&:has(> :not([slot])):not(:has(> [slot='image']))) {
|
|
343
|
+
@include set-label-style(v-title-only);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
//
|
|
348
|
+
@for $i from 1 through 2 {
|
|
349
|
+
@include if-chain(--label-line-limit, line-limit, $i) {
|
|
350
|
+
@include mixins.write-props(map.get($label-line-ifs, $i)); //@include set-label-line-limit($i);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
//
|
|
354
|
+
@include if-chain(--label-truncation-mode, truncation-mode, tail) {
|
|
355
|
+
@include mixins.write-props(map.get($label-truncation-ifs, tail)); //@include set-label-truncation-mode(tail);
|
|
356
|
+
}
|
|
357
|
+
//
|
|
358
|
+
@each $label, $size in vars.$label-fonts {
|
|
359
|
+
@include if-chain(--label-font, font, $label) {
|
|
360
|
+
@include set-label-font($label);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
// ifs finally
|
|
366
|
+
@supports (x: #{string.unquote('attr(x type(*))')}) {
|
|
367
|
+
:where(&) {
|
|
368
|
+
--label-style: attr(label-style type(<custom-ident>), inherit);
|
|
369
|
+
--label-truncation-mode: attr(truncation-mode type(<custom-ident>), inherit);
|
|
370
|
+
--label-line-limit: attr(line-limit type(<number>), inherit);
|
|
371
|
+
--label-font: attr(font type(<custom-ident>), inherit);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
@supports not (x: #{string.unquote('attr(x type(*))')}) {
|
|
376
|
+
@for $i from 1 through 2 {
|
|
377
|
+
:where(&[line-limit='#{$i}']) {
|
|
378
|
+
--label-line-limit: #{$i};
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
:where(&[truncation-mode='tail']) {
|
|
382
|
+
--label-truncation-mode: tail;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
@use '../placeholders';
|
|
4
|
+
@use 'sass:string';
|
|
5
|
+
@use 'sass:map';
|
|
6
|
+
|
|
7
|
+
$list-ifs: (
|
|
8
|
+
inset: (
|
|
9
|
+
--list--item-color: var(--insetlist-item-color,),
|
|
10
|
+
--list--item-background-color: var(--insetlist-item-background-color,),
|
|
11
|
+
--list--highlighteditem-color: var(--insetlist-highlighteditem-color,),
|
|
12
|
+
--list--highlighteditem-background-color: var(--insetlist-highlighteditem-background-color,),
|
|
13
|
+
--list--item-border-radius: var(--insetlist-item-border-radius),
|
|
14
|
+
--list--host-background-color: var(--insetlist-background-color,),
|
|
15
|
+
--list--host-padding-inline: var(--insetlist-padding-inline),
|
|
16
|
+
--list--host-padding-block: var(--insetlist-padding-block),
|
|
17
|
+
//
|
|
18
|
+
--list--adjacentdetailsitem-border-radius: 0,
|
|
19
|
+
//
|
|
20
|
+
--list--details-background-color: var(--insetlist-openitem-background-color,),
|
|
21
|
+
--list--details-color: var(--insetlist-openitem-color,),
|
|
22
|
+
--list--opendetails-background-color: var(--insetlist-openitem-background-color,),
|
|
23
|
+
--list--opendetails-color: var(--insetlist-openitem-color,),
|
|
24
|
+
--list--opensummary-background-color: var(--insetlist-opensummary-background-color,),
|
|
25
|
+
--list--opensummary-color: var(--insetlist-opensummary-color,),
|
|
26
|
+
),
|
|
27
|
+
inset-grouped: (
|
|
28
|
+
--list--item-color: var(--insetgroupedlist-item-color,),
|
|
29
|
+
--list--item-background-color: var(--insetgroupedlist-item-background-color,),
|
|
30
|
+
--list--item-border-radius: var(--insetlist-item-border-radius),
|
|
31
|
+
--list--highlighteditem-color: var(--insetgroupedlist-highlighteditem-color,),
|
|
32
|
+
--list--highlighteditem-background-color: var(--insetgroupedlist-highlighteditem-background-color,),
|
|
33
|
+
--list--host-background-color: var(--insetgroupedlist-background-color,),
|
|
34
|
+
--list--host-padding-inline: var(--insetgroupedlist-padding-inline),
|
|
35
|
+
--list--host-padding-block: var(--insetgroupedlist-padding-block),
|
|
36
|
+
//
|
|
37
|
+
--list--adjacentitem-border-radius: 0,
|
|
38
|
+
//
|
|
39
|
+
--list--details-background-color: var(--insetgroupedlist-openitem-background-color,),
|
|
40
|
+
--list--details-color: var(--insetgroupedlist-openitem-color,),
|
|
41
|
+
--list--opendetails-background-color: var(--insetgroupedlist-openitem-background-color,),
|
|
42
|
+
--list--opendetails-color: var(--insetgroupedlist-openitem-color,),
|
|
43
|
+
--list--opensummary-background-color: var(--insetgroupedlist-opensummary-background-color,),
|
|
44
|
+
--list--opensummary-color: var(--insetgroupedlist-opensummary-color,),
|
|
45
|
+
),
|
|
46
|
+
sidebar: (
|
|
47
|
+
--list--item-border-radius: var(--insetlist-item-border-radius),
|
|
48
|
+
--list--details-gap: var(--list-row-gap),
|
|
49
|
+
--list--rootsummary-padding-inline-start: 5px,
|
|
50
|
+
--list--rootsummary-padding-inline-end: 5px,
|
|
51
|
+
--list--rootsummary-padding-block-start: 2px,
|
|
52
|
+
--list--rootsummary-padding-block-end: 2px,
|
|
53
|
+
|
|
54
|
+
--list--item-padding-inline-start: 5px,
|
|
55
|
+
--list--item-padding-inline-end: 5px,
|
|
56
|
+
--list--item-padding-block-start: 5px,
|
|
57
|
+
--list--item-padding-block-end: 5px,
|
|
58
|
+
|
|
59
|
+
--list--adjacentitem-border-radius: unset,
|
|
60
|
+
//
|
|
61
|
+
--list--host-background-color: var(--sidebarlist-background-color,),
|
|
62
|
+
--list--host-padding-inline: var(--sidebarlist-padding-inline),
|
|
63
|
+
--list--host-padding-block: var(--sidebarlist-padding-block),
|
|
64
|
+
//
|
|
65
|
+
--list--item-background-color: var(--sidebarlist-item-background-color,),
|
|
66
|
+
--list--item-color: var(--sidebarlist-item-color,),
|
|
67
|
+
--list--highlighteditem-background-color: var(--sidebarlist-highlighteditem-background-color,),
|
|
68
|
+
--list--highlighteditem-color: var(--sidebarlist-highlighteditem-color,),
|
|
69
|
+
//
|
|
70
|
+
--list--rootsummary-background-color: transparent,
|
|
71
|
+
--list--rootsummary-color: var(--primary,),
|
|
72
|
+
// --list--rootsummary-border-radius: 0px,
|
|
73
|
+
--list--selectedrootsummary-background-color: transparent,
|
|
74
|
+
--list--selectedrootsummary-color: var(--primary,),
|
|
75
|
+
//
|
|
76
|
+
--list--separator-background-color: transparent,
|
|
77
|
+
--list--activeseparator-background-color: transparent,
|
|
78
|
+
//
|
|
79
|
+
--list--details-background-color: var(--sidebarlist-openitem-background-color,),
|
|
80
|
+
--list--details-color: var(--sidebarlist-openitem-color,),
|
|
81
|
+
--list--opensummary-background-color: var(--sidebarlist-opensummary-background-color,),
|
|
82
|
+
--list--opensummary-color: var(--sidebarlist-opensummary-color,),
|
|
83
|
+
//
|
|
84
|
+
// --list--item-grid-template-columns: minmax(0, 1fr),
|
|
85
|
+
--list--accessories-display: none,
|
|
86
|
+
//
|
|
87
|
+
--list--rootsummary-marker-display: marker-trailing,
|
|
88
|
+
),
|
|
89
|
+
);
|
|
90
|
+
$list-elses: (
|
|
91
|
+
--list--host-background-color: var(--list-background-color,),
|
|
92
|
+
--list--highlighteditem-background-color: var(--list-highlighteditem-background-color,),
|
|
93
|
+
--list--item-background-color: var(--list-item-background-color,),
|
|
94
|
+
--list--item-padding-inline-start: var(--list-item-padding-inline-start),
|
|
95
|
+
--list--item-padding-inline-end: var(--list-item-padding-inline-end),
|
|
96
|
+
--list--item-padding-block-start: var(--list-item-padding-block-start),
|
|
97
|
+
--list--item-padding-block-end: var(--list-item-padding-block-end),
|
|
98
|
+
--list--item-color: var(--list-item-color,),
|
|
99
|
+
--list--highlighteditem-color: var(--list-highlighteditem-color,),
|
|
100
|
+
//
|
|
101
|
+
--list--details-background-color: var(--list-openitem-background-color,),
|
|
102
|
+
--list--details-color: var(--list-openitem-color,),
|
|
103
|
+
--list--opensummary-background-color: var(--list-opensummary-background-color,),
|
|
104
|
+
--list--opensummary-color: var(--list-opensummary-color,),
|
|
105
|
+
//
|
|
106
|
+
// --list--item-grid-template-columns: minmax(0, 1fr) 1rem,
|
|
107
|
+
--list--accessories-size: 1.1rem,
|
|
108
|
+
--list--accessories-display: grid,
|
|
109
|
+
);
|
|
110
|
+
|
|
111
|
+
@layer #{vars.$components-layer} {
|
|
112
|
+
list-view {
|
|
113
|
+
&:not(& &, [is='form-view'] &, table-view &) {
|
|
114
|
+
@extend %list;
|
|
115
|
+
|
|
116
|
+
// wire
|
|
117
|
+
:where(&) {
|
|
118
|
+
--list--section-gap: var(--list-row-gap);
|
|
119
|
+
|
|
120
|
+
@include mixins.write-props($list-elses);
|
|
121
|
+
// --list--item-padding-inline-start: var(--list-item-padding-inline-start);
|
|
122
|
+
// --list--item-padding-inline-end: var(--list-item-padding-inline-end);
|
|
123
|
+
// --list--item-padding-block-start: var(--list-item-padding-block-start);
|
|
124
|
+
// --list--item-padding-block-end: var(--list-item-padding-block-end);
|
|
125
|
+
|
|
126
|
+
// --list--item-background-color: var(--list-item-background-color,);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// SECTION: ifs
|
|
130
|
+
@supports (x: #{string.unquote('if(else:red)')}) {
|
|
131
|
+
:where(&) {
|
|
132
|
+
@include mixins.write-ifs(--list-style, $list-ifs, $list-elses);
|
|
133
|
+
// --list--root-padding-inline: if(style(--list-style: inset-grouped): 0.5rem ; style(--list-style: sidebar): 0.5rem ;);
|
|
134
|
+
|
|
135
|
+
// --toolbaritemradius: if(style(--list-style: inset-grouped): 1rem ; style(--list-style: sidebar): 1rem ;);
|
|
136
|
+
|
|
137
|
+
// --list--separator-block-size: if(style(--list-style: sidebar): 0px ;);
|
|
138
|
+
// --list--separator-visibility: if(style(--list-style: collapse): 0px ;);
|
|
139
|
+
|
|
140
|
+
// --list--root-background-color: if(style(--list-style: sidebar): transparent ;);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// SECTION: ifs polyfill
|
|
145
|
+
@supports not (x: #{string.unquote('if(else:red)')}) {
|
|
146
|
+
:where(&:not([list-style])) {
|
|
147
|
+
@each $v in vars.$list-styles {
|
|
148
|
+
@container style(--list-style: #{$v}) {
|
|
149
|
+
@include mixins.write-props(map.get($list-ifs, $v));
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
@each $v in vars.$list-styles {
|
|
154
|
+
:where(&[list-style='#{$v}']) {
|
|
155
|
+
@include mixins.write-props(map.get($list-ifs, $v));
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
@include mixins.if-2col-split-view-fits {
|
|
159
|
+
:where(navigation-split-view [is='sidebar-view'] &[list-style]) {
|
|
160
|
+
@include mixins.write-props(map.get($list-ifs, sidebar));
|
|
161
|
+
}
|
|
162
|
+
:where(navigation-split-view > scroll-view &[preferred-expanded-style], navigation-split-view > body-view > scroll-view &[preferred-expanded-style]) {
|
|
163
|
+
@include mixins.write-props(map.get($list-ifs, inset));
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// SECTION: attrs finally
|
|
169
|
+
@supports (x: #{string.unquote('attr(x type(*))')}) {
|
|
170
|
+
:where(&) {
|
|
171
|
+
--list-style: attr(list-style type(<custom-ident>), inherit);
|
|
172
|
+
}
|
|
173
|
+
@include mixins.if-2col-split-view-fits {
|
|
174
|
+
:where(navigation-split-view:has(> [is='sidebar-view']) > [is='sidebar-view'] &[list-style]) {
|
|
175
|
+
--list-style: sidebar;
|
|
176
|
+
}
|
|
177
|
+
:where(navigation-split-view > scroll-view &[preferred-expanded-style], navigation-split-view > body-view > scroll-view &[preferred-expanded-style]) {
|
|
178
|
+
--list-style: inset;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&[preferred-root-disclosure-style='sidebar'] {
|
|
184
|
+
--list--rootsummary-color: var(--primary);
|
|
185
|
+
--list--selectedrootsummary-color: var(--primary);
|
|
186
|
+
--list--rootsummary-background-color: transparent;
|
|
187
|
+
--list--selectedrootsummary-background-color: transparent;
|
|
188
|
+
--list--rootsummary-padding-inline-start: var(--list--item-padding-inline-start);
|
|
189
|
+
--list--rootsummary-padding-inline-end: var(--list--item-padding-inline-start);
|
|
190
|
+
--list--rootsummary-padding-block-start: 5px;
|
|
191
|
+
--list--rootsummary-padding-block-end: 5px;
|
|
192
|
+
|
|
193
|
+
> [is='disclosure-group'] ~ [is='disclosure-group'],
|
|
194
|
+
> section-view > [is='disclosure-group'] ~ [is='disclosure-group'] {
|
|
195
|
+
margin-block-start: var(--list-row-gap);
|
|
196
|
+
|
|
197
|
+
&::before {
|
|
198
|
+
display: none;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
> [is='disclosure-group'],
|
|
203
|
+
> section-view > [is='disclosure-group'] {
|
|
204
|
+
--list--details-background-color: var(--list--item-background-color);
|
|
205
|
+
--list--opensummary-background-color: var(--list--item-background-color);
|
|
206
|
+
|
|
207
|
+
> details,
|
|
208
|
+
> button:first-of-type {
|
|
209
|
+
--itemradiustl: var(--list--item-border-radius);
|
|
210
|
+
--itemradiustr: var(--list--item-border-radius);
|
|
211
|
+
|
|
212
|
+
&::before {
|
|
213
|
+
display: none;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// FINALLY AFTER ALL IFS
|
|
220
|
+
// TODO: Also apply this on state of sidebar w/ full-screen detail 1/2
|
|
221
|
+
@include mixins.if-2col-split-view-fits {
|
|
222
|
+
:where(navigation-split-view > scroll-view &, navigation-split-view > body-view > scroll-view &) {
|
|
223
|
+
// --list--item-grid-template-columns: minmax(0, 1fr);
|
|
224
|
+
--list--accessories-display: none;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|