@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
|
@@ -82,6 +82,7 @@ $list-ifs: (
|
|
|
82
82
|
--list--opensummary-color: var(--sidebarlist-opensummary-color,),
|
|
83
83
|
//
|
|
84
84
|
// --list--item-grid-template-columns: minmax(0, 1fr),
|
|
85
|
+
--list--accessories-size: 0rem,
|
|
85
86
|
--list--accessories-display: none,
|
|
86
87
|
//
|
|
87
88
|
--list--rootsummary-marker-display: marker-trailing,
|
|
@@ -108,7 +109,7 @@ $list-elses: (
|
|
|
108
109
|
--list--accessories-display: grid,
|
|
109
110
|
);
|
|
110
111
|
|
|
111
|
-
@layer #{vars.$components-layer} {
|
|
112
|
+
@layer #{vars.$list-components-layer} {
|
|
112
113
|
list-view {
|
|
113
114
|
&:not(& &, [is='form-view'] &, table-view &) {
|
|
114
115
|
@extend %list;
|
|
@@ -118,26 +119,12 @@ $list-elses: (
|
|
|
118
119
|
--list--section-gap: var(--list-row-gap);
|
|
119
120
|
|
|
120
121
|
@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
122
|
}
|
|
128
123
|
|
|
129
124
|
// SECTION: ifs
|
|
130
125
|
@supports (x: #{string.unquote('if(else:red)')}) {
|
|
131
126
|
: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 ;);
|
|
127
|
+
@include mixins.write-ifs(--list-style, $list-ifs, $list-elses); // --list--root-padding-inline: if(style(--list-style: inset-grouped): 0.5rem ; style(--list-style: sidebar): 0.5rem ;);
|
|
141
128
|
}
|
|
142
129
|
}
|
|
143
130
|
|
|
@@ -146,12 +133,16 @@ $list-elses: (
|
|
|
146
133
|
:where(&:not([list-style])) {
|
|
147
134
|
@each $v in vars.$list-styles {
|
|
148
135
|
@container style(--list-style: #{$v}) {
|
|
136
|
+
--list-style: #{$v}; // NOTE: used ONLY for tinted buttons
|
|
137
|
+
|
|
149
138
|
@include mixins.write-props(map.get($list-ifs, $v));
|
|
150
139
|
}
|
|
151
140
|
}
|
|
152
141
|
}
|
|
153
142
|
@each $v in vars.$list-styles {
|
|
154
143
|
:where(&[list-style='#{$v}']) {
|
|
144
|
+
--list-style: #{$v}; // NOTE: used ONLY for tinted buttons
|
|
145
|
+
|
|
155
146
|
@include mixins.write-props(map.get($list-ifs, $v));
|
|
156
147
|
}
|
|
157
148
|
}
|
|
@@ -180,6 +171,64 @@ $list-elses: (
|
|
|
180
171
|
}
|
|
181
172
|
}
|
|
182
173
|
|
|
174
|
+
// FINALLY AFTER ALL IFS
|
|
175
|
+
|
|
176
|
+
// NOTE: on safari takes it from manually setting it above
|
|
177
|
+
// make list-buttons tintable
|
|
178
|
+
@container not style(--list-style: sidebar) {
|
|
179
|
+
button[list-item-tint] {
|
|
180
|
+
:where(&) {
|
|
181
|
+
--itemhighlightface: var(--accentColor3);
|
|
182
|
+
--itemactiveface: var(--accentColor3);
|
|
183
|
+
}
|
|
184
|
+
&:not([is='navigation-link']) {
|
|
185
|
+
--itemtext: var(--accentColor);
|
|
186
|
+
--itemhighlighttext: var(--accentColor);
|
|
187
|
+
--itemactivetext: var(--accentColor);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
@container style(--list-style: sidebar) {
|
|
192
|
+
button[list-item-tint] {
|
|
193
|
+
:where(&) {
|
|
194
|
+
--itemhighlightface: var(--accentColor);
|
|
195
|
+
--itemactiveface: var(--accentColor);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// TODO: Also apply this on state of sidebar w/ full-screen detail 1/2
|
|
201
|
+
@include mixins.if-content-view-list {
|
|
202
|
+
:where(&) {
|
|
203
|
+
--list--accessories-size: 0rem;
|
|
204
|
+
--list--accessories-display: none;
|
|
205
|
+
|
|
206
|
+
--insetlist-highlighteditem-background-color: var(--accentColor);
|
|
207
|
+
--insetlist-highlighteditem-color: var(--tintcontrast);
|
|
208
|
+
--insetgroupedlist-highlighteditem-background-color: var(--accentColor);
|
|
209
|
+
--insetgroupedlist-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
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// Hide accessories
|
|
227
|
+
:where(&[navigation-link-indicator-visibility='hidden']) {
|
|
228
|
+
--list--accessories-size: 0rem;
|
|
229
|
+
--list--accessories-display: none;
|
|
230
|
+
}
|
|
231
|
+
|
|
183
232
|
&[preferred-root-disclosure-style='sidebar'] {
|
|
184
233
|
--list--rootsummary-color: var(--primary);
|
|
185
234
|
--list--selectedrootsummary-color: var(--primary);
|
|
@@ -215,15 +264,6 @@ $list-elses: (
|
|
|
215
264
|
}
|
|
216
265
|
}
|
|
217
266
|
}
|
|
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
267
|
}
|
|
228
268
|
}
|
|
229
269
|
}
|
|
@@ -155,15 +155,17 @@
|
|
|
155
155
|
--menuitemface: var(--menuitemhighlightface,);
|
|
156
156
|
--menuitemtext: var(--menuitemhighlighttext,);
|
|
157
157
|
|
|
158
|
-
|
|
159
|
-
--
|
|
158
|
+
@include mixins.takeover-color-vars(menuitem);
|
|
159
|
+
// --secondary: var(--menuitemtext);
|
|
160
|
+
// --blue: var(--menuitemtext);
|
|
160
161
|
}
|
|
161
162
|
@include mixins.add-hover-state {
|
|
162
163
|
--menuitemface: var(--menuitemhighlightface,);
|
|
163
164
|
--menuitemtext: var(--menuitemhighlighttext,);
|
|
164
165
|
|
|
165
|
-
|
|
166
|
-
--
|
|
166
|
+
@include mixins.takeover-color-vars(menuitem);
|
|
167
|
+
// --secondary: var(--menuitemtext);
|
|
168
|
+
// --blue: var(--menuitemtext);
|
|
167
169
|
}
|
|
168
170
|
}
|
|
169
171
|
> menu-view {
|
|
@@ -171,15 +173,17 @@
|
|
|
171
173
|
--menuitemface: var(--menuitemhighlightface,);
|
|
172
174
|
--menuitemtext: var(--menuitemhighlighttext,);
|
|
173
175
|
|
|
174
|
-
|
|
175
|
-
--
|
|
176
|
+
@include mixins.takeover-color-vars(menuitem);
|
|
177
|
+
// --secondary: var(--menuitemtext);
|
|
178
|
+
// --blue: var(--menuitemtext);
|
|
176
179
|
}
|
|
177
180
|
@include mixins.add-hover-state('::part(menu-summary)') {
|
|
178
181
|
--menuitemface: var(--menuitemhighlightface,);
|
|
179
182
|
--menuitemtext: var(--menuitemhighlighttext,);
|
|
180
183
|
|
|
181
|
-
|
|
182
|
-
--
|
|
184
|
+
@include mixins.takeover-color-vars(menuitem);
|
|
185
|
+
// --secondary: var(--menuitemtext);
|
|
186
|
+
// --blue: var(--menuitemtext);
|
|
183
187
|
}
|
|
184
188
|
}
|
|
185
189
|
}
|
package/scss/mixins/_index.scss
CHANGED
|
@@ -202,6 +202,18 @@
|
|
|
202
202
|
border-radius: var(--#{$prefix}radiustl#{','}) var(--#{$prefix}radiustr#{','}) var(--#{$prefix}radiusbr#{','}) var(--#{$prefix}radiusbl#{','});
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
+
@mixin takeover-color-vars($prefix) {
|
|
206
|
+
--secondary: var(--#{$prefix}text);
|
|
207
|
+
--blue: var(--#{$prefix}text);
|
|
208
|
+
--red: var(--#{$prefix}text);
|
|
209
|
+
--green: var(--#{$prefix}text);
|
|
210
|
+
--orange: var(--#{$prefix}text);
|
|
211
|
+
|
|
212
|
+
// NOTE: breaks list-item-tints
|
|
213
|
+
--accentColor: var(--#{$prefix}text);
|
|
214
|
+
--accentColorEffective: var(--#{$prefix}text);
|
|
215
|
+
}
|
|
216
|
+
|
|
205
217
|
@mixin vt-toolbar-cell-offscreen-keyframe() {
|
|
206
218
|
--toolbar-cell-scale: scale(var(--view-transition-toolbar-cell-offscreen-scale));
|
|
207
219
|
--toolbar-cell-filter: blur(10px);
|
|
@@ -286,6 +298,25 @@
|
|
|
286
298
|
}
|
|
287
299
|
}
|
|
288
300
|
|
|
301
|
+
@mixin if-content-view-list {
|
|
302
|
+
@include if-2col-split-view-fits {
|
|
303
|
+
// is content-view!
|
|
304
|
+
navigation-split-view > scroll-view & {
|
|
305
|
+
@content;
|
|
306
|
+
}
|
|
307
|
+
// is content-view!
|
|
308
|
+
navigation-split-view:has(> [is='sidebar-view'])[preferred-compact-column='content']:not([column-visibility='double-column']) > body-view > scroll-view & {
|
|
309
|
+
@content;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
// is content-view!
|
|
313
|
+
@include if-3col-split-view-fits {
|
|
314
|
+
navigation-split-view:has(> [is='sidebar-view']):not([column-visibility='double-column']) > body-view > scroll-view & {
|
|
315
|
+
@content;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
289
320
|
// Mixin for plain CSS (linear)
|
|
290
321
|
@mixin write-props($props) {
|
|
291
322
|
@each $prop, $val in $props {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
@use '../vars';
|
|
2
2
|
@use '../mixins';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
$list-item-selector: ':not([slot], section-view, [is="disclosure-group"], picker-view, menu-view, menu-view *, whatever-name)';
|
|
5
|
+
|
|
6
|
+
@layer #{vars.$list-components-layer} {
|
|
5
7
|
%list {
|
|
6
8
|
:where(&) {
|
|
7
9
|
background-color: var(--list--host-background-color,);
|
|
@@ -13,9 +15,9 @@
|
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
// componentize buttons
|
|
16
|
-
>
|
|
17
|
-
section-view >
|
|
18
|
-
[is='disclosure-group'] >
|
|
18
|
+
> #{$list-item-selector},
|
|
19
|
+
section-view > #{$list-item-selector},
|
|
20
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
19
21
|
// :where(&:is(summary:not([is='disclosure-group'] [is='disclosure-group'] summary))) {
|
|
20
22
|
// box-shadow: inset 0 0 4px magenta;
|
|
21
23
|
// }
|
|
@@ -76,18 +78,17 @@
|
|
|
76
78
|
// }
|
|
77
79
|
// }
|
|
78
80
|
|
|
79
|
-
// SECTION: wire gaps
|
|
80
|
-
:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
section-view:not([slot]) ~ section-view {
|
|
81
|
+
// SECTION: wire gaps between
|
|
82
|
+
// NOTE: apply gap to top of sections when adjacent to any
|
|
83
|
+
// :not([slot], section-view) ~ section-view:not([slot]),
|
|
84
|
+
// section-view:not([slot]) ~ section-view:not([slot]) {
|
|
85
|
+
:not([slot]) ~ section-view:not([slot]) {
|
|
86
86
|
:where(&:not(menu-view *)) {
|
|
87
87
|
padding-block-start: var(--list--section-gap,);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
// NOTE: apply to bottom of sections when they have non-section adjacents
|
|
91
|
+
section-view:not([slot]):has(~ :not([slot], section-view)) {
|
|
91
92
|
:where(&:not(menu-view *)) {
|
|
92
93
|
padding-block-end: var(--list--section-gap,);
|
|
93
94
|
}
|
|
@@ -97,26 +98,29 @@
|
|
|
97
98
|
// padding-bottom: calc(var(--list--section-gap, 0px) / 2);
|
|
98
99
|
// }
|
|
99
100
|
// }
|
|
100
|
-
:
|
|
101
|
+
// NOTE: apply gap to top of details when adjacent to any(except summary)
|
|
102
|
+
// :not([slot], [is='disclosure-group'], summary) ~ [is='disclosure-group']:not([slot]) {
|
|
103
|
+
:not([slot], summary) ~ [is='disclosure-group']:not([slot]) {
|
|
101
104
|
:where(&:not(menu-view *)) {
|
|
102
105
|
margin-block-start: var(--list--details-gap,);
|
|
103
106
|
}
|
|
104
107
|
}
|
|
105
|
-
[is='disclosure-group']:not([slot]) ~ [is='disclosure-group'] {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
108
|
+
// [is='disclosure-group']:not([slot]) ~ [is='disclosure-group']:not([slot]) {
|
|
109
|
+
// :where(&:not(menu-view *)) {
|
|
110
|
+
// margin-block-start: calc(var(--list--details-gap, 0px) / 2);
|
|
111
|
+
// }
|
|
112
|
+
// }
|
|
113
|
+
// NOTE: apply to bottom of details when they have non-details adjacents
|
|
114
|
+
[is='disclosure-group']:not([slot]):has(~ :not([slot], [is='disclosure-group'])) {
|
|
111
115
|
:where(&:not(menu-view *)) {
|
|
112
116
|
margin-block-end: var(--list--details-gap,);
|
|
113
117
|
}
|
|
114
118
|
}
|
|
115
|
-
[is='disclosure-group']:has(~ [is='disclosure-group']:not([slot])) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
119
|
+
// [is='disclosure-group']:not([slot]):has(~ [is='disclosure-group']:not([slot])) {
|
|
120
|
+
// :where(&:not(menu-view *)) {
|
|
121
|
+
// margin-block-end: calc(var(--list--details-gap, 0px) / 2);
|
|
122
|
+
// }
|
|
123
|
+
// }
|
|
120
124
|
|
|
121
125
|
// SECTION: wire paddings
|
|
122
126
|
:where(&:not(menu-view *)) {
|
|
@@ -454,26 +458,11 @@
|
|
|
454
458
|
|
|
455
459
|
// SECTION: add accessories
|
|
456
460
|
// &:has(summary[marker-placement='leading']) {
|
|
457
|
-
>
|
|
458
|
-
section-view >
|
|
459
|
-
[is='disclosure-group'] >
|
|
460
|
-
//
|
|
461
|
-
|
|
462
|
-
// --item-accessory-size: 24px;
|
|
463
|
-
|
|
464
|
-
// --list--item-grid-template-columns: minmax(0, 1fr) 50px;
|
|
465
|
-
|
|
466
|
-
// &:not(:is(button)) {
|
|
467
|
-
// --list--accessories-display: none;
|
|
468
|
-
// // --list--accessories-padding-inline-end: 24px;
|
|
469
|
-
// }
|
|
470
|
-
|
|
471
|
-
// &:is(button) {
|
|
472
|
-
// position: relative;
|
|
473
|
-
// display: grid;
|
|
474
|
-
// grid-template-columns: minmax(0, 1fr) 24px;
|
|
475
|
-
|
|
476
|
-
&:is(button) {
|
|
461
|
+
> #{$list-item-selector},
|
|
462
|
+
section-view > #{$list-item-selector},
|
|
463
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
464
|
+
// NOTE: drill-in chevron show up only on nav-link buttons. Paddings and all other props have already been taken over!
|
|
465
|
+
&:is(navigation-split-view button[is='navigation-link'], navigation-stack button[is='navigation-link']) {
|
|
477
466
|
:where(&) {
|
|
478
467
|
position: relative;
|
|
479
468
|
|
|
@@ -505,6 +494,31 @@
|
|
|
505
494
|
// }
|
|
506
495
|
// }
|
|
507
496
|
|
|
497
|
+
// SECTION: add tints
|
|
498
|
+
> #{$list-item-selector},
|
|
499
|
+
section-view > #{$list-item-selector},
|
|
500
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
501
|
+
// NOTE: drill-in chevron show up only on nav-link buttons. Paddings and all other props have already been taken over!
|
|
502
|
+
// &:is(button:not([is='navigation-link'])) {
|
|
503
|
+
// :where(&) {
|
|
504
|
+
// --itemtext: blue;
|
|
505
|
+
// }
|
|
506
|
+
// }
|
|
507
|
+
&:is(label-view[list-item-tint]) {
|
|
508
|
+
:where(&[list-item-tint] > [slot='image']) {
|
|
509
|
+
color: var(--accentColor);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
// &:is(button[list-item-tint='red']) {
|
|
513
|
+
// :where(&) {
|
|
514
|
+
// --itemtext: red;
|
|
515
|
+
|
|
516
|
+
// --insetgroupedlist-highlighteditem-background-color:red;
|
|
517
|
+
// --insetgroupedlist-highlighteditem-color:red;
|
|
518
|
+
// }
|
|
519
|
+
// }
|
|
520
|
+
}
|
|
521
|
+
|
|
508
522
|
// // SECTION: add searchable
|
|
509
523
|
// > [slot='searchable'] {
|
|
510
524
|
// :where(&) {
|
|
@@ -521,17 +535,20 @@
|
|
|
521
535
|
@layer #{vars.$colors-layer} {
|
|
522
536
|
// componentize
|
|
523
537
|
%list {
|
|
524
|
-
>
|
|
525
|
-
section-view >
|
|
526
|
-
[is='disclosure-group'] >
|
|
538
|
+
> #{$list-item-selector},
|
|
539
|
+
section-view > #{$list-item-selector},
|
|
540
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
527
541
|
@include mixins.add-focus-visible-state {
|
|
528
542
|
--itemface: var(--itemhighlightface,);
|
|
529
543
|
--itemtext: var(--itemhighlighttext,);
|
|
530
544
|
|
|
531
545
|
--list--separator-background-color: var(--list--highlighteditem-separator-background-color,);
|
|
532
546
|
|
|
533
|
-
|
|
534
|
-
|
|
547
|
+
> * {
|
|
548
|
+
@include mixins.takeover-color-vars(item);
|
|
549
|
+
// --secondary: var(--itemtext);
|
|
550
|
+
// --blue: var(--itemtext);
|
|
551
|
+
}
|
|
535
552
|
}
|
|
536
553
|
}
|
|
537
554
|
}
|
|
@@ -540,9 +557,9 @@
|
|
|
540
557
|
@layer #{vars.$ui-layer} {
|
|
541
558
|
// componentize
|
|
542
559
|
%list {
|
|
543
|
-
>
|
|
544
|
-
section-view >
|
|
545
|
-
[is='disclosure-group'] >
|
|
560
|
+
> #{$list-item-selector},
|
|
561
|
+
section-view > #{$list-item-selector},
|
|
562
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
546
563
|
// :where(&:is(button)) {
|
|
547
564
|
@include mixins.add-jsactive-state {
|
|
548
565
|
--itemface: var(--itemactiveface,);
|
|
@@ -550,8 +567,11 @@
|
|
|
550
567
|
|
|
551
568
|
--list--separator-background-color: var(--list--highlighteditem-separator-background-color,);
|
|
552
569
|
|
|
553
|
-
|
|
554
|
-
|
|
570
|
+
> * {
|
|
571
|
+
@include mixins.takeover-color-vars(item);
|
|
572
|
+
}
|
|
573
|
+
// --secondary: var(--itemtext);
|
|
574
|
+
// --blue: var(--itemtext);
|
|
555
575
|
}
|
|
556
576
|
|
|
557
577
|
&[aria-selected='true'] {
|
|
@@ -561,8 +581,11 @@
|
|
|
561
581
|
|
|
562
582
|
--list--separator-background-color: var(--list--highlighteditem-separator-background-color,);
|
|
563
583
|
|
|
564
|
-
|
|
565
|
-
|
|
584
|
+
> * {
|
|
585
|
+
@include mixins.takeover-color-vars(item);
|
|
586
|
+
// --secondary: var(--itemtext);
|
|
587
|
+
// --blue: var(--itemtext);
|
|
588
|
+
}
|
|
566
589
|
}
|
|
567
590
|
}
|
|
568
591
|
// }
|
package/scss/utils/_index.scss
CHANGED
|
@@ -37,55 +37,23 @@
|
|
|
37
37
|
color: var(--blue2);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
// // --accentEmphasis: light-dark(color-mix(in oklch, var(--gray) 50%, var(--black)), color-mix(in oklch, var(--gray) 50%, var(--white)));
|
|
54
|
-
// --accentSubtle: var(--gray4);
|
|
55
|
-
// }
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
[tint='blue'] {
|
|
59
|
-
:where(&) {
|
|
60
|
-
--accentColorEffective: var(--blue);
|
|
61
|
-
--accentColorEffective4: var(--blue4);
|
|
62
|
-
|
|
63
|
-
--accentColor: var(--blue);
|
|
64
|
-
--accentColor2: var(--blue2);
|
|
65
|
-
--accentColor3: var(--blue3);
|
|
66
|
-
--accentColor4: var(--blue4);
|
|
67
|
-
--accentColor5: var(--blue5);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// :where(&[is='bordered-button']) {
|
|
71
|
-
// --accentSubtle: var(--blue4);
|
|
72
|
-
// }
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
[tint='red'] {
|
|
76
|
-
:where(&) {
|
|
77
|
-
--accentColorEffective: var(--red);
|
|
78
|
-
--accentColorEffective4: var(--red4);
|
|
40
|
+
@each $tint in gray, blue, red, green, orange {
|
|
41
|
+
[tint='#{"" + $tint}'],
|
|
42
|
+
[list-item-tint='#{"" + $tint}'] {
|
|
43
|
+
:where(&) {
|
|
44
|
+
--accentColorEffective: var(--#{$tint});
|
|
45
|
+
--accentColorEffective4: var(--#{$tint}4);
|
|
46
|
+
|
|
47
|
+
--accentColor: var(--#{$tint});
|
|
48
|
+
--accentColor2: var(--#{$tint}2);
|
|
49
|
+
--accentColor3: var(--#{$tint}3);
|
|
50
|
+
--accentColor4: var(--#{$tint}4);
|
|
51
|
+
--accentColor5: var(--#{$tint}5);
|
|
52
|
+
}
|
|
79
53
|
|
|
80
|
-
|
|
81
|
-
--
|
|
82
|
-
|
|
83
|
-
--accentColor4: var(--red4);
|
|
84
|
-
--accentColor5: var(--red5);
|
|
54
|
+
// :where(&[is='bordered-button']) {
|
|
55
|
+
// --accentSubtle: var(--red4);
|
|
56
|
+
// }
|
|
85
57
|
}
|
|
86
|
-
|
|
87
|
-
// :where(&[is='bordered-button']) {
|
|
88
|
-
// --accentSubtle: var(--red4);
|
|
89
|
-
// }
|
|
90
58
|
}
|
|
91
59
|
}
|