@@ -12,7 +12,78 @@ governing permissions and limitations under the License.
12
12
13
13
/* THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
14
14
: host {
15
+ - - spectrum- switch- label- color - default: var(--spectrum-neutral-content-color-default );
16
+ - - spectrum- switch- label- color - hover: var(- - spectrum- neutral- content- color - hover);
17
+ - - spectrum- switch- label- color - down: var(- - spectrum- neutral- content- color - down);
18
+ - - spectrum- switch- label- color - focus: var(- - spectrum- neutral- content- color - key- focus);
19
+ - - spectrum- switch- label- color - dis abled: var(- - spectrum- dis abled- content- color );
20
+ - - spectrum- switch- background- color - selected- default: var(- - spectrum- neutral- background- color - selected- default);
21
+ - - spectrum- switch- background- color - selected- hover: var(- - spectrum- neutral- background- color - selected- hover);
22
+ - - spectrum- switch- background- color - selected- down: var(- - spectrum- neutral- background- color - selected- down);
23
+ - - spectrum- switch- background- color - selected- focus: var(- - spectrum- neutral- background- color - selected- key- focus);
24
+ - - spectrum- switch- background- color - selected- dis abled: var(- - spectrum- dis abled- content- color );
15
25
- - spectrum- switch- focus- indicato r- thickness: var(- - mod- focus- indicato r- thickness, var (- - spectrum- focus- indicato r- thickness));
26
+ - - spectrum- switch- focus- indicato r- color : var(- - spectrum- focus- indicato r- color );
27
+ - - spectrum- switch- handle-bor der- color - dis abled: var(- - spectrum- dis abled- content- color );
28
+ }
29
+
30
+ : host ([disabled ]) {
31
+ --spectrum-switch-label-color-default : var (--spectrum-disabled-content-color );
32
+ }
33
+
34
+ : host ([emphasized ]) {
35
+ --spectrum-switch-background-color-selected-default : var (--spectrum-accent-color-900 );
36
+ --spectrum-switch-background-color-selected-hover : var (--spectrum-accent-color-1000 );
37
+ --spectrum-switch-background-color-selected-down : var (--spectrum-accent-color-1100 );
38
+ --spectrum-switch-background-color-selected-focus : var (--spectrum-accent-color-1000 );
39
+ --spectrum-switch-handle-border-color-selected-default : var (--spectrum-accent-color-900 );
40
+ --spectrum-switch-handle-border-color-selected-hover : var (--spectrum-accent-color-1000 );
41
+ --spectrum-switch-handle-border-color-selected-down : var (--spectrum-accent-color-1100 );
42
+ --spectrum-switch-handle-border-color-selected-focus : var (--spectrum-accent-color-1000 );
43
+ }
44
+
45
+ : host ,
46
+ : host {
47
+ - - spectrum- switch- min- height: var(--spectrum-component-height-100 );
48
+ - - spectrum- switch- control- width: var(- - spectrum- switch- control- width- medium);
49
+ - - spectrum- switch- control- height: var(- - spectrum- switch- control- height- medium);
50
+ - - spectrum- switch- control- label- spacing: var(- - spectrum- text- to - control-100);
51
+ - - spectrum- switch- spacing- to p- to - control: var(- - spectrum- switch- to p- to - control- medium);
52
+ - - spectrum- switch- spacing- to p- to - label: var(- - spectrum- component- to p- to - text-100);
53
+ - - spectrum- switch- font- size: var(- - spectrum- font- size-100);
54
+ }
55
+
56
+ : host ([size = 's' ]) {
57
+ --spectrum-switch-min-height : var (--spectrum-component-height-75 );
58
+ --spectrum-switch-control-width : var (--spectrum-switch-control-width-small );
59
+ --spectrum-switch-control-height : var (--spectrum-switch-control-height-small );
60
+ --spectrum-switch-control-label-spacing : var (--spectrum-text-to-control-75 );
61
+ --spectrum-switch-spacing-top-to-control : var (--spectrum-switch-top-to-control-small );
62
+ --spectrum-switch-spacing-top-to-label : var (--spectrum-component-top-to-text-75 );
63
+ --spectrum-switch-font-size : var (--spectrum-font-size-75 );
64
+ }
65
+
66
+ : host ([size = 'l' ]) {
67
+ --spectrum-switch-min-height : var (--spectrum-component-height-200 );
68
+ --spectrum-switch-control-width : var (--spectrum-switch-control-width-large );
69
+ --spectrum-switch-control-height : var (--spectrum-switch-control-height-large );
70
+ --spectrum-switch-control-label-spacing : var (--spectrum-text-to-control-200 );
71
+ --spectrum-switch-spacing-top-to-control : var (--spectrum-switch-top-to-control-large );
72
+ --spectrum-switch-spacing-top-to-label : var (--spectrum-component-top-to-text-200 );
73
+ --spectrum-switch-font-size : var (--spectrum-font-size-200 );
74
+ }
75
+
76
+ : host ([size = 'xl' ]) {
77
+ --spectrum-switch-min-height : var (--spectrum-component-height-300 );
78
+ --spectrum-switch-control-width : var (--spectrum-switch-control-width-extra-large );
79
+ --spectrum-switch-control-height : var (--spectrum-switch-control-height-extra-large );
80
+ --spectrum-switch-control-label-spacing : var (--spectrum-text-to-control-300 );
81
+ --spectrum-switch-spacing-top-to-control : var (--spectrum-switch-top-to-control-extra-large );
82
+ --spectrum-switch-spacing-top-to-label : var (--spectrum-component-top-to-text-300 );
83
+ --spectrum-switch-font-size : var (--spectrum-font-size-300 );
84
+ }
85
+
86
+ : host {
16
87
min- block- size: var(--mod-switch-height , var (--spectrum-switch-min-height ));
17
88
max- inline-size: 100%;
18
89
vertical- align: to p;
@@ -140,7 +211,7 @@ governing permissions and limitations under the License.
140
211
}
141
212
142
213
# input : focus-visible + # switch : after {
143
- box-shadow : 0 0 0 var (--mod-switch-focus-indicator-thickness , var (--mod-focus-indicator-thickness , var ( -- spectrum-switch-focus-indicator-thickness) )) var (--highcontrast-switch-focus-indicator-color , var (--mod-switch-focus-indicator-color , var (--spectrum-switch-focus-indicator-color )));
214
+ box-shadow : 0 0 0 var (--mod-switch-focus-indicator-thickness , var (--spectrum-switch-focus-indicator-thickness )) var (--highcontrast-switch-focus-indicator-color , var (--mod-switch-focus-indicator-color , var (--spectrum-switch-focus-indicator-color )));
144
215
}
145
216
146
217
# input : focus-visible + # switch : before {
@@ -179,7 +250,7 @@ governing permissions and limitations under the License.
179
250
180
251
: host ([disabled ]: hover ) # input + # switch ,
181
252
: host ([disabled ]: hover ) # input + # switch {
182
- background-color : var (--highcontrast-switch-background-color-disabled , var ( -- mod-switch-background-color-disabled, var (--spectrum-switch-background-color-disabled ) ));
253
+ background-color : var (--mod-switch-background-color-disabled , var (--spectrum-switch-background-color-disabled ));
183
254
}
184
255
185
256
: host ([disabled ]: hover ) # input + # switch : before ,
@@ -208,7 +279,7 @@ governing permissions and limitations under the License.
208
279
}
209
280
210
281
: host (: hover ) # input : focus-visible + # switch : after {
211
- box-shadow : 0 0 0 var (--mod-switch-focus-indicator-thickness , var (--mod-focus-indicator-thickness , var ( -- spectrum-switch-focus-indicator-thickness) )) var (--highcontrast-switch-focus-indicator-color , var (--mod-switch-focus-indicator-color , var (--spectrum-switch-focus-indicator-color )));
282
+ box-shadow : 0 0 0 var (--mod-switch-focus-indicator-thickness , var (--spectrum-switch-focus-indicator-thickness )) var (--highcontrast-switch-focus-indicator-color , var (--mod-switch-focus-indicator-color , var (--spectrum-switch-focus-indicator-color )));
212
283
}
213
284
214
285
: host (: hover ) # input : focus-visible + # switch : before {
@@ -238,7 +309,7 @@ governing permissions and limitations under the License.
238
309
239
310
: host ([disabled ]) # input + # switch ,
240
311
: host ([disabled ]) # input + # switch {
241
- background-color : var (--highcontrast-switch-background-color-disabled , var ( -- mod-switch-background-color-disabled, var (--spectrum-switch-background-color-disabled ) ));
312
+ background-color : var (--mod-switch-background-color-disabled , var (--spectrum-switch-background-color-disabled ));
242
313
}
243
314
244
315
: host ([disabled ]) # input + # switch : before ,
@@ -299,39 +370,39 @@ governing permissions and limitations under the License.
299
370
300
371
: host ([disabled ][checked ]: hover ) # input + # switch ,
301
372
: host ([disabled ][checked ]: hover ) # input + # switch {
302
- background-color : GrayText;
303
373
box-shadow : inset 0 0 0 1px GrayText;
374
+ background-color : GrayText;
304
375
}
305
376
306
377
: host ([disabled ][checked ]: hover ) # input + # switch : before ,
307
378
: host ([disabled ][checked ]: hover ) # input + # switch : before {
308
- background-color : ButtonFace;
309
379
border-color : GrayText;
380
+ background-color : ButtonFace;
310
381
}
311
382
}
312
383
313
384
: host ([disabled ]) # input : not (: checked ) + # switch ,
314
385
: host ([disabled ]) # input : not (: checked ) + # switch {
315
- background-color : ButtonFace;
316
386
box-shadow : inset 0 0 0 1px GrayText;
387
+ background-color : ButtonFace;
317
388
}
318
389
319
390
: host ([disabled ]) # input : not (: checked ) + # switch : before ,
320
391
: host ([disabled ]) # input : not (: checked ) + # switch : before {
321
- background-color : ButtonFace;
322
392
border-color : GrayText;
393
+ background-color : ButtonFace;
323
394
}
324
395
325
396
: host ([disabled ][checked ]) # input + # switch ,
326
397
: host ([disabled ][checked ]) # input + # switch {
327
- background-color : GrayText;
328
398
box-shadow : inset 0 0 0 1px GrayText;
399
+ background-color : GrayText;
329
400
}
330
401
331
402
: host ([disabled ][checked ]) # input + # switch : before ,
332
403
: host ([disabled ][checked ]) # input + # switch : before {
333
- background-color : ButtonFace;
334
404
border-color : GrayText;
405
+ background-color : ButtonFace;
335
406
}
336
407
337
408
: host ([disabled ]) # input ~ # label ,
0 commit comments