igniteui-theming 6.2.0-beta.2 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/sass/themes/schemas/components/dark/_bottom-nav.scss +11 -44
- package/sass/themes/schemas/components/dark/_button-group.scss +46 -7
- package/sass/themes/schemas/components/dark/_button.scss +80 -42
- package/sass/themes/schemas/components/dark/_icon-button.scss +16 -0
- package/sass/themes/schemas/components/dark/_navdrawer.scss +19 -48
- package/sass/themes/schemas/components/dark/_switch.scss +38 -85
- package/sass/themes/schemas/components/elevation/_bottom-nav.scss +2 -2
- package/sass/themes/schemas/components/elevation/_navbar.scss +6 -0
- package/sass/themes/schemas/components/light/_bottom-nav.scss +8 -82
- package/sass/themes/schemas/components/light/_button-group.scss +146 -22
- package/sass/themes/schemas/components/light/_button.scss +167 -158
- package/sass/themes/schemas/components/light/_icon-button.scss +37 -10
- package/sass/themes/schemas/components/light/_navbar.scss +2 -1
- package/sass/themes/schemas/components/light/_navdrawer.scss +33 -34
- package/sass/themes/schemas/components/light/_switch.scss +28 -91
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
/// Generates a base material icon button schema.
|
|
13
13
|
/// @type {Map}
|
|
14
|
+
/// @prop {Color} shadow-color [transparent] - The shadow color of the material icon button.
|
|
14
15
|
/// @prop {Color} background [transparent] - The background color of the material icon button.
|
|
15
16
|
/// @prop {Map} foreground [color: ('gray', 900)] - The idle text color of the material icon button.
|
|
16
17
|
/// @prop {Color} hover-background [transparent] - The hover background color of the material icon button.
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
/// @prop {List} size [(rem(24px), rem(30px), rem(36px))] - The size used for the material icon button.
|
|
31
32
|
/// @prop {Number} default-size [2] - The default size used for the icon button.
|
|
32
33
|
$material-base-icon-button: (
|
|
34
|
+
shadow-color: transparent,
|
|
33
35
|
background: transparent,
|
|
34
36
|
foreground: (
|
|
35
37
|
color: (
|
|
@@ -220,6 +222,7 @@ $material-icon-button: (
|
|
|
220
222
|
|
|
221
223
|
/// Generates a fluent base icon button schema.
|
|
222
224
|
/// @type {Map}
|
|
225
|
+
/// @prop {Color} shadow-color [transparent] - The shadow color of the fluent icon button.
|
|
223
226
|
/// @prop {Color} background [transparent] - The background color of the fluent icon button.
|
|
224
227
|
/// @prop {Map} foreground [color: ('primary', 500)] - The idle text color of the fluent icon button.
|
|
225
228
|
/// @prop {Map} hover-background [color: ('gray', 200)] - The hover background color of the fluent icon button.
|
|
@@ -239,6 +242,7 @@ $material-icon-button: (
|
|
|
239
242
|
/// @prop {List} size [(rem(24px), rem(32px), rem(38px))] - The size used for the fluent icon button.
|
|
240
243
|
/// @prop {Number} default-size [2] - The default size used for the icon button.
|
|
241
244
|
$fluent-base-icon-button: (
|
|
245
|
+
shadow-color: transparent,
|
|
242
246
|
background: transparent,
|
|
243
247
|
foreground: (
|
|
244
248
|
color: (
|
|
@@ -513,6 +517,7 @@ $fluent-icon-button: (
|
|
|
513
517
|
|
|
514
518
|
/// Generates a base bootstrap icon button schema.
|
|
515
519
|
/// @type {Map}
|
|
520
|
+
/// @prop {Map} shadow-color [color: ('primary', 600, .5)] - The shadow color of the bootstrap icon button.
|
|
516
521
|
/// @prop {Color} background [transparent] - The background color of the bootstrap icon button.
|
|
517
522
|
/// @prop {Map} foreground [color: ('primary', 500)] - The idle text color of the bootstrap icon button.
|
|
518
523
|
/// @prop {Map} hover-background [color: ('primary', 600)] - The hover background color of the bootstrap icon button.
|
|
@@ -524,7 +529,7 @@ $fluent-icon-button: (
|
|
|
524
529
|
/// @prop {Map} active-background [color: ('primary', 600)] - The active background color of the bootstrap icon button.
|
|
525
530
|
/// @prop {Map} active-foreground [contrast-color: ('primary', 600)] - The active text color of the bootstrap icon button.
|
|
526
531
|
/// @prop {Color} border-color [transparent] - The border color of the bootstrap icon button.
|
|
527
|
-
/// @prop {Map} focus-border-color [
|
|
532
|
+
/// @prop {Map} focus-border-color [transparent] - The focus border color of the bootstrap icon button.
|
|
528
533
|
/// @prop {Color} disabled-background [transparent] - The disabled background color of the bootstrap icon button.
|
|
529
534
|
/// @prop {Map} disabled-foreground [color: ('primary', 200)] - The disabled foreground color of the bootstrap icon button.
|
|
530
535
|
/// @prop {Color} disabled-border-color [transparent] - The disabled border color of the bootstrap icon button.
|
|
@@ -532,6 +537,13 @@ $fluent-icon-button: (
|
|
|
532
537
|
/// @prop {List} size [(rem(31px), rem(38px), rem(48px))] - The size used for the bootstrap icon button.
|
|
533
538
|
/// @prop {Number} default-size [2] - The default size used for the icon button
|
|
534
539
|
$bootstrap-base-icon-button: (
|
|
540
|
+
shadow-color: (
|
|
541
|
+
color: (
|
|
542
|
+
'primary',
|
|
543
|
+
600,
|
|
544
|
+
0.5,
|
|
545
|
+
),
|
|
546
|
+
),
|
|
535
547
|
background: transparent,
|
|
536
548
|
foreground: (
|
|
537
549
|
color: (
|
|
@@ -583,13 +595,7 @@ $bootstrap-base-icon-button: (
|
|
|
583
595
|
),
|
|
584
596
|
),
|
|
585
597
|
border-color: transparent,
|
|
586
|
-
focus-border-color:
|
|
587
|
-
color: (
|
|
588
|
-
'primary',
|
|
589
|
-
200,
|
|
590
|
-
0.5,
|
|
591
|
-
),
|
|
592
|
-
),
|
|
598
|
+
focus-border-color: transparent,
|
|
593
599
|
disabled-background: transparent,
|
|
594
600
|
disabled-foreground: (
|
|
595
601
|
color: (
|
|
@@ -670,7 +676,6 @@ $bootstrap-flat-icon-button: extend(
|
|
|
670
676
|
/// @prop {Map} background [color: ('primary', 500)] - The background color of the bootstrap contained icon button.
|
|
671
677
|
/// @prop {Map} foreground [contrast-color: ('primary', 600)] - The idle text color of the bootstrap contained icon button.
|
|
672
678
|
/// @prop {Map} focus-background [color: ('primary', 500)] - The focus background color of the bootstrap flat icon button.
|
|
673
|
-
/// @prop {Map} focus-border-color [color: ('primary', 200, .5)] - The focus border color of the bootstrap contained icon button.
|
|
674
679
|
/// @prop {Map} disabled-background [color: ('primary', 50)] - The disabled background color of the bootstrap contained icon button.
|
|
675
680
|
/// @prop {Map} disabled-foreground [color: ('primary', 200)] - The disabled foreground color of the bootstrap contained icon button.
|
|
676
681
|
/// @requires {Map} $bootstrap-base-icon-button
|
|
@@ -717,7 +722,7 @@ $bootstrap-contained-icon-button: extend(
|
|
|
717
722
|
/// @prop {Map} focus-background [color: ('primary', 600)] - The focus background color of the bootstrap outlined icon button.
|
|
718
723
|
/// @prop {Map} hover-foreground [contrast-color: ('primary', 600)] - The hover text color of the bootstrap outlined icon button.
|
|
719
724
|
/// @prop {Map} focus-foreground [contrast-color: ('primary', 500)] - The focus text color of the bootstrap outlined icon button.
|
|
720
|
-
/// @prop {Map} focus-border-color [color: ('primary',
|
|
725
|
+
/// @prop {Map} focus-border-color [color: ('primary', 500)] - The focus border color of the bootstrap outlined icon button.
|
|
721
726
|
/// @prop {Map} disabled-border-color [color: ('primary', 100)] - The disabled border color of the bootstrap outlined icon button.
|
|
722
727
|
/// @requires {Map} $bootstrap-base-icon-button
|
|
723
728
|
$bootstrap-outlined-icon-button: extend(
|
|
@@ -742,6 +747,12 @@ $bootstrap-outlined-icon-button: extend(
|
|
|
742
747
|
500,
|
|
743
748
|
),
|
|
744
749
|
),
|
|
750
|
+
focus-border-color: (
|
|
751
|
+
color: (
|
|
752
|
+
'primary',
|
|
753
|
+
500,
|
|
754
|
+
),
|
|
755
|
+
),
|
|
745
756
|
disabled-border-color: (
|
|
746
757
|
color: (
|
|
747
758
|
'primary',
|
|
@@ -766,6 +777,7 @@ $bootstrap-icon-button: (
|
|
|
766
777
|
|
|
767
778
|
/// Generates a base indigo icon button schema.
|
|
768
779
|
/// @type {Map}
|
|
780
|
+
/// @prop {Map} shadow-color [color: ('gray', 900, .15)] - The shadow color of the indigo icon button.
|
|
769
781
|
/// @prop {Color} background [transparent] - The background color of the indigo icon button.
|
|
770
782
|
/// @prop {Map} foreground [color: ('gray', 600)] - The idle text color of the indigo icon button.
|
|
771
783
|
/// @prop {Map} hover-background [color: ('gray', 900, 0.5)] - The hover background color of the indigo icon button.
|
|
@@ -785,6 +797,13 @@ $bootstrap-icon-button: (
|
|
|
785
797
|
/// @prop {List} size [(rem(24px), rem(28px), rem(32px))] - The size used for the indigo icon button.
|
|
786
798
|
/// @prop {Number} default-size [2] - The default size used for the icon button.
|
|
787
799
|
$indigo-base-icon-button: (
|
|
800
|
+
shadow-color: (
|
|
801
|
+
color: (
|
|
802
|
+
'gray',
|
|
803
|
+
900,
|
|
804
|
+
0.15,
|
|
805
|
+
),
|
|
806
|
+
),
|
|
788
807
|
background: transparent,
|
|
789
808
|
foreground: (
|
|
790
809
|
color: (
|
|
@@ -903,6 +922,7 @@ $indigo-outlined-icon-button: extend(
|
|
|
903
922
|
|
|
904
923
|
/// Generates an indigo contained icon button schema.
|
|
905
924
|
/// @type {Map}
|
|
925
|
+
/// @prop {Map} shadow-color [color: ('primary', 400, 0.5)] - The shadow color of the indigo contained icon button.
|
|
906
926
|
/// @prop {Map} background [color: ('primary', 500)] - The background color of the indigo contained icon button.
|
|
907
927
|
/// @prop {Map} foreground [contrast-color: ('primary', 500, .8)] - The idle text color of the indigo contained icon button.
|
|
908
928
|
/// @prop {Map} hover-background [color: ('primary', 400)] - The hover background color of the indigo contained icon button.
|
|
@@ -921,6 +941,13 @@ $indigo-contained-icon-button: extend(
|
|
|
921
941
|
$indigo-base-icon-button,
|
|
922
942
|
(
|
|
923
943
|
selector: '[igxIconButton="contained"], .igx-icon-button--contained',
|
|
944
|
+
shadow-color: (
|
|
945
|
+
color: (
|
|
946
|
+
'primary',
|
|
947
|
+
400,
|
|
948
|
+
0.5,
|
|
949
|
+
),
|
|
950
|
+
),
|
|
924
951
|
background: (
|
|
925
952
|
color: (
|
|
926
953
|
'primary',
|
|
@@ -135,4 +135,5 @@ $bootstrap-navbar: extend(
|
|
|
135
135
|
/// @type {Map}
|
|
136
136
|
/// @prop {Number} elevation [0] - The elevation level, between 0-24, to be used for the navbar.
|
|
137
137
|
/// @requires {Map} $light-navbar
|
|
138
|
-
$indigo-
|
|
138
|
+
/// @requires {Map} $indigo-elevation-navbar
|
|
139
|
+
$indigo-navbar: extend($light-navbar, $indigo-elevation-navbar);
|
|
@@ -150,101 +150,100 @@ $bootstrap-navdrawer: extend(
|
|
|
150
150
|
|
|
151
151
|
/// Generates an indigo navdrawer schema.
|
|
152
152
|
/// @type {Map}
|
|
153
|
-
/// @prop {Map}
|
|
154
|
-
/// @prop {Map} item-text-color [color: ('gray',
|
|
155
|
-
/// @prop {Map} item-
|
|
156
|
-
/// @prop {Map} item-
|
|
157
|
-
/// @prop {Map} item-active-
|
|
158
|
-
/// @prop {Map} item-active-
|
|
159
|
-
/// @prop {Map} item-
|
|
160
|
-
/// @prop {
|
|
161
|
-
/// @prop {Map} item-hover-
|
|
153
|
+
/// @prop {Map} background [color: ('gray', 700)] - The navigation drawer background color.
|
|
154
|
+
/// @prop {Map} item-header-text-color [contrast-color: ('gray', 700)] - The header's idle text color.
|
|
155
|
+
/// @prop {Map} item-text-color [contrast-color: ('gray', 700, .8)] - The item's idle text color.
|
|
156
|
+
/// @prop {Map} item-icon-color [contrast-color: ('gray', 700, .8)] - The item's icon color.
|
|
157
|
+
/// @prop {Map} item-active-text-color [contrast-color: ('gray', 700)] - The item's active text color.
|
|
158
|
+
/// @prop {Map} item-active-background [contrast-color: ('gray', 700, .1)] - The item's active background color.
|
|
159
|
+
/// @prop {Map} item-active-icon-color [contrast-color: ('gray', 700)] - The item's icon active color.
|
|
160
|
+
/// @prop {Color} item-hover-background [transparent] - The item's hover background color.
|
|
161
|
+
/// @prop {Map} item-hover-text-color [contrast-color: ('gray', 700)] - The item's hover text color.
|
|
162
|
+
/// @prop {Map} item-hover-icon-color [contrast-color: ('gray', 700)] - The item's hover icon color.
|
|
162
163
|
/// @prop {Map} elevation [0] - The elevation level, between 0-24, to be used for the drawer.
|
|
163
|
-
/// @prop {
|
|
164
|
-
/// @prop {List} item-border-radius [(rem(
|
|
164
|
+
/// @prop {Color} border-color [transparent] - The navigation drawer right border color.
|
|
165
|
+
/// @prop {List} item-border-radius [(rem(24px), rem(0), rem(24px))] - The border radius used for the navdrawer items.
|
|
165
166
|
/// @requires {Map} $light-navdrawer
|
|
166
167
|
/// @requires {Map} $indigo-elevation-navdrawer
|
|
167
168
|
$indigo-navdrawer: extend(
|
|
168
169
|
$light-navdrawer,
|
|
169
170
|
$indigo-elevation-navdrawer,
|
|
170
171
|
(
|
|
171
|
-
border-color:
|
|
172
|
+
border-color: transparent,
|
|
173
|
+
|
|
174
|
+
background: (
|
|
172
175
|
color: (
|
|
173
176
|
'gray',
|
|
174
|
-
|
|
177
|
+
700,
|
|
175
178
|
),
|
|
176
179
|
),
|
|
177
180
|
|
|
178
181
|
item-header-text-color: (
|
|
179
182
|
color: (
|
|
180
183
|
'gray',
|
|
181
|
-
|
|
184
|
+
50,
|
|
182
185
|
),
|
|
183
186
|
),
|
|
184
187
|
|
|
185
188
|
item-text-color: (
|
|
186
189
|
color: (
|
|
187
190
|
'gray',
|
|
188
|
-
|
|
191
|
+
300,
|
|
192
|
+
0.8,
|
|
189
193
|
),
|
|
190
194
|
),
|
|
191
195
|
|
|
192
196
|
item-icon-color: (
|
|
193
197
|
color: (
|
|
194
198
|
'gray',
|
|
195
|
-
|
|
199
|
+
300,
|
|
200
|
+
0.8,
|
|
196
201
|
),
|
|
197
202
|
),
|
|
198
203
|
|
|
199
204
|
item-active-background: (
|
|
200
205
|
color: (
|
|
201
|
-
'
|
|
202
|
-
|
|
203
|
-
0.
|
|
206
|
+
'gray',
|
|
207
|
+
600,
|
|
208
|
+
0.8,
|
|
204
209
|
),
|
|
205
210
|
),
|
|
206
211
|
|
|
207
212
|
item-active-text-color: (
|
|
208
213
|
color: (
|
|
209
|
-
'
|
|
210
|
-
|
|
214
|
+
'gray',
|
|
215
|
+
50,
|
|
211
216
|
),
|
|
212
217
|
),
|
|
213
218
|
|
|
214
219
|
item-active-icon-color: (
|
|
215
|
-
color: (
|
|
216
|
-
'primary',
|
|
217
|
-
500,
|
|
218
|
-
),
|
|
219
|
-
),
|
|
220
|
-
|
|
221
|
-
item-hover-background: (
|
|
222
220
|
color: (
|
|
223
221
|
'gray',
|
|
224
|
-
|
|
225
|
-
0.05,
|
|
222
|
+
50,
|
|
226
223
|
),
|
|
227
224
|
),
|
|
228
225
|
|
|
226
|
+
item-hover-background: transparent,
|
|
227
|
+
|
|
229
228
|
item-hover-text-color: (
|
|
230
229
|
color: (
|
|
231
230
|
'gray',
|
|
232
|
-
|
|
231
|
+
100,
|
|
233
232
|
),
|
|
234
233
|
),
|
|
235
234
|
|
|
236
235
|
item-hover-icon-color: (
|
|
237
236
|
color: (
|
|
238
237
|
'gray',
|
|
239
|
-
|
|
238
|
+
100,
|
|
240
239
|
),
|
|
241
240
|
),
|
|
242
241
|
|
|
243
242
|
item-border-radius: (
|
|
244
243
|
border-radius: (
|
|
245
|
-
rem(
|
|
244
|
+
rem(24px),
|
|
246
245
|
rem(0),
|
|
247
|
-
rem(
|
|
246
|
+
rem(24px),
|
|
248
247
|
),
|
|
249
248
|
),
|
|
250
249
|
)
|
|
@@ -17,15 +17,14 @@
|
|
|
17
17
|
/// @prop {Color} track-off-color [transparent] - The color of the track when the switch is off.
|
|
18
18
|
/// @prop {Map} thumb-on-disabled-color [color: ('secondary', 100)] - The color of the thumb when the switch is on and disabled.
|
|
19
19
|
/// @prop {Color} track-disabled-color [transparent] - The color of the track when the switch is disabled.
|
|
20
|
-
/// @prop {Map} label-color [color: ('gray', 900)] - The color of the switch label
|
|
21
|
-
/// @prop {Map} label-hover-color [color: ('gray', 900)] - The color of the switch label on hover.
|
|
20
|
+
/// @prop {Map} label-color [color: ('gray', 900)] - The color of the switch label
|
|
22
21
|
/// @prop {Map} label-disabled-color [color: ('gray', 500)] - The color of the switch label when the switch is disabled
|
|
23
22
|
/// @prop {Number} resting-elevation [2] - The elevation level, between 0-24, to be used for the resting state.
|
|
24
23
|
/// @prop {Number} hover-elevation [3] - The elevation level, between 0-24, to be used for the hover state.
|
|
25
24
|
/// @prop {Number} disabled-elevation [1] - The elevation level, between 0-24, to be used for the disabled state.
|
|
26
25
|
/// @prop {List} border-radius-thumb [(rem(10px), rem(0), rem(10px))] - The border radius used for switch thumb.
|
|
27
26
|
/// @prop {List} border-radius-ripple [(rem(24px), rem(0), rem(24px))] - The border radius used for switch ripple.
|
|
28
|
-
/// @prop {Map} border-on-color [color
|
|
27
|
+
/// @prop {Map} border-on-color [color('primary', 500)] - The border color of the on-switch.
|
|
29
28
|
/// @prop {Map} label-invalid-color [color: ('gray', 900)] - The color of the switch label in invalid state.
|
|
30
29
|
/// @prop {Map} track-on-disabled-color [color: ('secondary', 50)] - The color of the track when the switch is on and disabled.
|
|
31
30
|
/// @prop {Map} track-error-color [color: ('gray', 500)] - The color of the track in invalid state when the switch is off.
|
|
@@ -66,12 +65,6 @@ $light-switch: extend(
|
|
|
66
65
|
900,
|
|
67
66
|
),
|
|
68
67
|
),
|
|
69
|
-
label-hover-color: (
|
|
70
|
-
color: (
|
|
71
|
-
'gray',
|
|
72
|
-
900,
|
|
73
|
-
),
|
|
74
|
-
),
|
|
75
68
|
label-disabled-color: (
|
|
76
69
|
color: (
|
|
77
70
|
'gray',
|
|
@@ -125,7 +118,7 @@ $light-switch: extend(
|
|
|
125
118
|
/// @prop {Color} border-color [transparent] - The border color of the switch.
|
|
126
119
|
/// @prop {Color} border-hover-color [transparent] - The border color of the switch on hover.
|
|
127
120
|
/// @prop {Color} border-on-color [transparent] - The border color of the on-switch.
|
|
128
|
-
/// @prop {Color} border-on-hover-color [transparent] - The
|
|
121
|
+
/// @prop {Color} border-on-hover-color [transparent] - The border color of the on-switch.
|
|
129
122
|
/// @prop {Color} border-disabled-color [transparent] - The border color of the disabled switch.
|
|
130
123
|
/// @prop {Map} thumb-on-color [color: ('secondary', 500)] - The color of the thumb when the switch is on.
|
|
131
124
|
/// @prop {Map} thumb-off-color [color: ('gray', 50)] - The color of the thumb when the switch is off.
|
|
@@ -133,7 +126,6 @@ $light-switch: extend(
|
|
|
133
126
|
/// @prop {Map} thumb-on-error-color [color: ('secondary', 500)] - The color of the thumb when the switch is on and invalid.
|
|
134
127
|
/// @prop {Map} track-off-color [color: ('gray', 500)] - The color of the track when the switch is off.
|
|
135
128
|
/// @prop {Map} track-on-color [color: ('secondary', 200)] - The color of the track when the switch is on.
|
|
136
|
-
/// @prop {Map} track-on-hover-color [color: ('secondary', 200)] - The color of the track when the switch is on and hovered.
|
|
137
129
|
/// @prop {Map} track-disabled-color [color: ('gray', 300)] - The color of the track when the switch is disabled.
|
|
138
130
|
/// @prop {Map} error-color [color: ('gray', 50)] - The color of the thumb in invalid state.
|
|
139
131
|
/// @prop {Map} error-color-hover [color: ('gray', 500)] - The border color in invalid state on hover.
|
|
@@ -184,12 +176,6 @@ $material-switch: extend(
|
|
|
184
176
|
200,
|
|
185
177
|
),
|
|
186
178
|
),
|
|
187
|
-
track-on-hover-color: (
|
|
188
|
-
color: (
|
|
189
|
-
'secondary',
|
|
190
|
-
200,
|
|
191
|
-
),
|
|
192
|
-
),
|
|
193
179
|
track-disabled-color: (
|
|
194
180
|
color: (
|
|
195
181
|
'gray',
|
|
@@ -220,10 +206,10 @@ $material-switch: extend(
|
|
|
220
206
|
|
|
221
207
|
/// Generates a fluent switch schema.
|
|
222
208
|
/// @type {Map}
|
|
223
|
-
/// @prop {Map} border-color [color
|
|
224
|
-
/// @prop {Map} border-hover-color [color
|
|
225
|
-
/// @prop {Map} border-disabled-color [color
|
|
226
|
-
/// @prop {Map} border-on-hover-color [color
|
|
209
|
+
/// @prop {Map} border-color [color('gray', 700)] - The border color of the switch.
|
|
210
|
+
/// @prop {Map} border-hover-color [color('gray', 800)] - The border color of the switch on hover.
|
|
211
|
+
/// @prop {Map} border-disabled-color [color('gray', 400)] - The border color of the disabled switch.
|
|
212
|
+
/// @prop {Map} border-on-hover-color [color('primary', 800)] - The border color of the on-switch.
|
|
227
213
|
/// @prop {Map} thumb-off-color [color: ('gray', 700)] - The color of the thumb when the switch is off.
|
|
228
214
|
/// @prop {Map} track-on-hover-color [color: ('primary', 800)] - The color of the track when the switch is on and hovered.
|
|
229
215
|
/// @prop {Map} track-on-disabled-color [color: ('gray', 400)] - The color of the track when the switch is on and disabled.
|
|
@@ -416,86 +402,33 @@ $bootstrap-switch: extend(
|
|
|
416
402
|
|
|
417
403
|
/// Generates an indigo switch schema.
|
|
418
404
|
/// @type {Map}
|
|
419
|
-
/// @prop {Map}
|
|
420
|
-
/// @prop {Map}
|
|
421
|
-
/// @prop {Map}
|
|
422
|
-
/// @prop {Map} thumb-on-color [contrast-color: ('gray', 900)] - The color of the thumb when the switch is on.
|
|
423
|
-
/// @prop {Map} track-on-hover-color [color: ('primary', 400)] - The color of the track when the switch is on and hovered.
|
|
424
|
-
/// @prop {Map} thumb-off-color [color: ('gray', 500)] - The color of the thumb when the switch is off.
|
|
425
|
-
/// @prop {Map} thumb-disabled-color [color: ('gray', 900, .15)] - The color of the thumb when the switch is disabled.
|
|
426
|
-
/// @prop {Map} thumb-on-disabled-color [contrast-color: ('gray', 900, .4)] - The color of the thumb when the switch is on and disabled.
|
|
427
|
-
/// @prop {Map} track-on-disabled-color [color: ('primary', 400, .5)] - The color of the track when the switch is on and disabled.
|
|
428
|
-
/// @prop {Map} border-color [color: ('gray', 500)] - The border color of the switch.
|
|
405
|
+
/// @prop {Map} thumb-off-color [color: ('gray', 600)] - The color of the thumb when the switch is off.
|
|
406
|
+
/// @prop {Map} thumb-disabled-color [color: ('gray', 300)] - The color of the thumb when the switch is disabled.
|
|
407
|
+
/// @prop {Map} border-color [color: ('gray', 600)] - The border color of the switch.
|
|
429
408
|
/// @prop {Map} border-hover-color [color: ('gray', 600)] - The border color of the switch on hover.
|
|
430
|
-
/// @prop {Map} border-disabled-color [color: ('gray',
|
|
431
|
-
/// @prop {Map} border-on-hover-color [color: ('primary',
|
|
409
|
+
/// @prop {Map} border-disabled-color [color: ('gray', 300)] - The border color of the disabled switch.
|
|
410
|
+
/// @prop {Map} border-on-hover-color [color: ('primary', 500)] - The border color of the on-switch.
|
|
411
|
+
/// @prop {Map} label-disabled-color [color: ('gray', 300)] - The color of the switch label when the switch is disabled
|
|
432
412
|
/// @prop {Map} error-color [color: ('gray', 500)] - The border and thumb color in invalid state.
|
|
433
413
|
/// @prop {Map} error-color-hover [color: ('gray', 300)] - The border and thumb color in invalid state on hover.
|
|
434
414
|
/// @prop {Color} track-error-color [transparent] - The color of the track in invalid state when the switch is off.
|
|
435
415
|
/// @prop {List} border-radius-track [(rem(8px), rem(0), rem(8px))] - The border radius used for switch track.
|
|
436
|
-
/// @prop {Map} focus-outline-color [color: ('gray',
|
|
437
|
-
/// @prop {Map} focus-outline-color-focused [color: ('primary',
|
|
416
|
+
/// @prop {Map} focus-outline-color [color: ('gray', 300)] - The focus outlined color.
|
|
417
|
+
/// @prop {Map} focus-outline-color-focused [color: ('primary', 200)] - The focus outlined color for focused state.
|
|
438
418
|
/// @requires $light-switch
|
|
439
419
|
$indigo-switch: extend(
|
|
440
420
|
$light-switch,
|
|
441
421
|
(
|
|
442
|
-
label-color: (
|
|
443
|
-
color: (
|
|
444
|
-
'gray',
|
|
445
|
-
800,
|
|
446
|
-
),
|
|
447
|
-
),
|
|
448
|
-
label-invalid-color: (
|
|
449
|
-
color: (
|
|
450
|
-
'gray',
|
|
451
|
-
800,
|
|
452
|
-
),
|
|
453
|
-
),
|
|
454
|
-
label-disabled-color: (
|
|
455
|
-
color: (
|
|
456
|
-
'gray',
|
|
457
|
-
900,
|
|
458
|
-
0.2,
|
|
459
|
-
),
|
|
460
|
-
),
|
|
461
|
-
thumb-on-color: (
|
|
462
|
-
contrast-color: (
|
|
463
|
-
'gray',
|
|
464
|
-
900,
|
|
465
|
-
),
|
|
466
|
-
),
|
|
467
|
-
thumb-on-disabled-color: (
|
|
468
|
-
contrast-color: (
|
|
469
|
-
'gray',
|
|
470
|
-
900,
|
|
471
|
-
0.4,
|
|
472
|
-
),
|
|
473
|
-
),
|
|
474
|
-
track-on-hover-color: (
|
|
475
|
-
color: (
|
|
476
|
-
'primary',
|
|
477
|
-
400,
|
|
478
|
-
),
|
|
479
|
-
),
|
|
480
|
-
track-on-disabled-color: (
|
|
481
|
-
color: (
|
|
482
|
-
'primary',
|
|
483
|
-
400,
|
|
484
|
-
0.5,
|
|
485
|
-
),
|
|
486
|
-
),
|
|
487
422
|
focus-outline-color: (
|
|
488
423
|
color: (
|
|
489
424
|
'gray',
|
|
490
|
-
|
|
491
|
-
0.15,
|
|
425
|
+
300,
|
|
492
426
|
),
|
|
493
427
|
),
|
|
494
428
|
focus-outline-color-focused: (
|
|
495
429
|
color: (
|
|
496
430
|
'primary',
|
|
497
|
-
|
|
498
|
-
0.5,
|
|
431
|
+
200,
|
|
499
432
|
),
|
|
500
433
|
),
|
|
501
434
|
border-color: (
|
|
@@ -507,26 +440,25 @@ $indigo-switch: extend(
|
|
|
507
440
|
border-hover-color: (
|
|
508
441
|
color: (
|
|
509
442
|
'gray',
|
|
510
|
-
|
|
443
|
+
500,
|
|
511
444
|
),
|
|
512
445
|
),
|
|
513
446
|
border-disabled-color: (
|
|
514
447
|
color: (
|
|
515
448
|
'gray',
|
|
516
|
-
|
|
517
|
-
0.15,
|
|
449
|
+
300,
|
|
518
450
|
),
|
|
519
451
|
),
|
|
520
452
|
border-on-hover-color: (
|
|
521
453
|
color: (
|
|
522
454
|
'primary',
|
|
523
|
-
|
|
455
|
+
500,
|
|
524
456
|
),
|
|
525
457
|
),
|
|
526
458
|
thumb-off-color: (
|
|
527
459
|
color: (
|
|
528
460
|
'gray',
|
|
529
|
-
|
|
461
|
+
600,
|
|
530
462
|
),
|
|
531
463
|
),
|
|
532
464
|
error-color: (
|
|
@@ -545,8 +477,13 @@ $indigo-switch: extend(
|
|
|
545
477
|
thumb-disabled-color: (
|
|
546
478
|
color: (
|
|
547
479
|
'gray',
|
|
548
|
-
|
|
549
|
-
|
|
480
|
+
300,
|
|
481
|
+
),
|
|
482
|
+
),
|
|
483
|
+
label-disabled-color: (
|
|
484
|
+
color: (
|
|
485
|
+
'gray',
|
|
486
|
+
300,
|
|
550
487
|
),
|
|
551
488
|
),
|
|
552
489
|
border-radius-track: (
|