igniteui-theming 1.4.2 → 1.4.3-beta.1
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/index.js +3 -0
- package/package.json +1 -1
- package/sass/themes/_index.scss +1 -0
- package/sass/themes/schemas/_index.scss +10 -9
- package/sass/themes/schemas/components/_index.scss +2 -0
- package/sass/themes/schemas/components/dark/_avatar.scss +40 -0
- package/sass/themes/schemas/components/dark/_button.scss +388 -0
- package/sass/themes/schemas/components/dark/_checkbox.scss +70 -0
- package/sass/themes/schemas/components/dark/_combo.scss +47 -0
- package/sass/themes/schemas/components/dark/_drop-down.scss +83 -0
- package/sass/themes/schemas/components/dark/_icon.scss +37 -0
- package/sass/themes/schemas/components/dark/_index.scss +120 -0
- package/sass/themes/schemas/components/dark/_input-group.scss +120 -0
- package/sass/themes/schemas/components/dark/_navbar.scss +27 -0
- package/sass/themes/schemas/components/dark/_radio.scss +102 -0
- package/sass/themes/schemas/components/dark/_rating.scss +29 -0
- package/sass/themes/schemas/components/dark/_select.scss +47 -0
- package/sass/themes/schemas/components/dark/_slider.scss +95 -0
- package/sass/themes/schemas/components/dark/_switch.scss +150 -0
- package/sass/themes/schemas/components/dark/_tabs.scss +54 -0
- package/sass/themes/schemas/components/dark/_tree.scss +95 -0
- package/sass/themes/schemas/components/elevation/_button.scss +63 -0
- package/sass/themes/schemas/components/elevation/_drop-down.scss +29 -0
- package/sass/themes/schemas/components/elevation/_input-group.scss +37 -0
- package/sass/themes/schemas/components/elevation/_navbar.scss +23 -0
- package/sass/themes/schemas/components/elevation/_switch.scss +15 -0
- package/sass/themes/schemas/components/light/_avatar.scss +55 -0
- package/sass/themes/schemas/components/light/_button.scss +1173 -0
- package/sass/themes/schemas/components/light/_checkbox.scss +212 -0
- package/sass/themes/schemas/components/light/_combo.scss +203 -0
- package/sass/themes/schemas/components/light/_drop-down.scss +245 -0
- package/sass/themes/schemas/components/light/_icon.scss +46 -0
- package/sass/themes/schemas/components/light/_index.scss +121 -0
- package/sass/themes/schemas/components/light/_input-group.scss +497 -0
- package/sass/themes/schemas/components/light/_navbar.scss +95 -0
- package/sass/themes/schemas/components/light/_radio.scss +177 -0
- package/sass/themes/schemas/components/light/_rating.scss +96 -0
- package/sass/themes/schemas/components/light/_select.scss +118 -0
- package/sass/themes/schemas/components/light/_slider.scss +229 -0
- package/sass/themes/schemas/components/light/_switch.scss +311 -0
- package/sass/themes/schemas/components/light/_tabs.scss +258 -0
- package/sass/themes/schemas/components/light/_tree.scss +188 -0
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
@use '../../../../utils/map' as *;
|
|
2
|
+
@use '../../../../typography/functions' as *;
|
|
3
|
+
|
|
4
|
+
////
|
|
5
|
+
/// @package theming
|
|
6
|
+
/// @group schemas
|
|
7
|
+
/// @access public
|
|
8
|
+
////
|
|
9
|
+
|
|
10
|
+
/* stylelint-disable max-line-length */
|
|
11
|
+
|
|
12
|
+
/// Generates a light slider schema.
|
|
13
|
+
/// @type {Map}
|
|
14
|
+
/// @prop {Map} track-color [color: ('secondary', 500)] - The color of the track.
|
|
15
|
+
/// @prop {Color} track-step-color [color: ('secondary', 200)] - The color of the track steps.
|
|
16
|
+
/// @prop {Number} track-step-size [rem(3px)] - The size of the track steps.
|
|
17
|
+
/// @prop {Map} track-hover-color [color: ('secondary', 400)] - The color of the track on hover.
|
|
18
|
+
/// @prop {Map} thumb-color [color: ('secondary', 500)] - The color of the thumb.
|
|
19
|
+
/// @prop {Color} thumb-focus-color [transparent] - The focus outline color of the thumb.
|
|
20
|
+
/// @prop {Map} thumb-border-color [color: ('secondary', 500)] - The thumb border color.
|
|
21
|
+
/// @prop {Map} thumb-border-focus-color [color: ('secondary', 500)] - The thumb border color when focused.
|
|
22
|
+
/// @prop {Map} thumb-disabled-border-color [color: ('gray', 400)] - The thumb border color when it's disabled.
|
|
23
|
+
/// @prop {Map} disabled-thumb-color [color: ('gray', 400)] - The thumb color when its disabled.
|
|
24
|
+
/// @prop {Map} label-background-color [color: ('gray', 700)] - The background color of the bubble label.
|
|
25
|
+
/// @prop {Map} label-text-color [contrast-color: ('gray', 700)] - The text color of the bubble label.
|
|
26
|
+
/// @prop {Map} base-track-color [color: ('secondary', 500, .24)] - The base background color of the track.
|
|
27
|
+
/// @prop {Map} base-track-hover-color [color: ('secondary', 500, .24)] - The base background color of the track on hover.
|
|
28
|
+
/// @prop {Map} disabled-base-track-color [color: ('gray', 200)] - The base background color of the track when is disabled.
|
|
29
|
+
/// @prop {Map} disabled-fill-track-color [color: ('gray', 400)] - The background color of the fill track when is disabled.
|
|
30
|
+
/// @prop {Map} tick-label-color [color: ('gray', 500)] - The color of the tick label.
|
|
31
|
+
/// @prop {Map} tick-color [color: ('gray', 500)] - The background-color of the tick.
|
|
32
|
+
$light-slider: (
|
|
33
|
+
variant: 'material',
|
|
34
|
+
track-color: (
|
|
35
|
+
color: ('secondary', 500)
|
|
36
|
+
),
|
|
37
|
+
track-step-color: (
|
|
38
|
+
color: ('secondary', 200)
|
|
39
|
+
),
|
|
40
|
+
track-step-size: rem(3px),
|
|
41
|
+
track-hover-color: (
|
|
42
|
+
color: ('secondary', 400)
|
|
43
|
+
),
|
|
44
|
+
thumb-color: (
|
|
45
|
+
color: ('secondary', 500)
|
|
46
|
+
),
|
|
47
|
+
thumb-focus-color: transparent,
|
|
48
|
+
thumb-border-color: (
|
|
49
|
+
color: ('secondary', 500)
|
|
50
|
+
),
|
|
51
|
+
thumb-border-focus-color: (
|
|
52
|
+
color: ('secondary', 500)
|
|
53
|
+
),
|
|
54
|
+
thumb-disabled-border-color: (
|
|
55
|
+
color: ('gray', 400)
|
|
56
|
+
),
|
|
57
|
+
disabled-thumb-color: (
|
|
58
|
+
color: ('gray', 400),
|
|
59
|
+
),
|
|
60
|
+
label-background-color: (
|
|
61
|
+
color: ('gray', 700),
|
|
62
|
+
),
|
|
63
|
+
label-text-color: (
|
|
64
|
+
contrast-color: ('gray', 700)
|
|
65
|
+
),
|
|
66
|
+
base-track-color: (
|
|
67
|
+
color: ('secondary', 500, .24),
|
|
68
|
+
),
|
|
69
|
+
base-track-hover-color: (
|
|
70
|
+
color: ('secondary', 500, .24),
|
|
71
|
+
),
|
|
72
|
+
disabled-base-track-color: (
|
|
73
|
+
color: ('gray', 200)
|
|
74
|
+
),
|
|
75
|
+
disabled-fill-track-color: (
|
|
76
|
+
color: ('gray', 400)
|
|
77
|
+
),
|
|
78
|
+
tick-color: (
|
|
79
|
+
color: ('gray', 500)
|
|
80
|
+
),
|
|
81
|
+
tick-label-color: (
|
|
82
|
+
color: ('gray', 500)
|
|
83
|
+
)
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
/// Generates a fluent slider schema.
|
|
87
|
+
/// @type {Map}
|
|
88
|
+
/// @prop {Map} track-color [color: ('gray', 800)] - The color of the track.
|
|
89
|
+
/// @prop {Color} track-step-color [white] - The color of the track steps.
|
|
90
|
+
/// @prop {Map} track-hover-color [color: ('primary', 500)] - The color of the track on hover.
|
|
91
|
+
/// @prop {Map} thumb-color [color: ('surface', 500)] - The color of the thumb.
|
|
92
|
+
/// @prop {Map} thumb-border-color [color: ('gray', 700)] - The thumb border color.
|
|
93
|
+
/// @prop {Map} thumb-border-focus-color [color: ('gray', 700)] - The thumb border color when focused.
|
|
94
|
+
/// @prop {Map} thumb-focus-color [color: ('primary', 700)] - The focus outline color of the thumb.
|
|
95
|
+
/// @prop {Map} thumb-disabled-border-color [color: ('gray', 400)] - The thumb border color when it's disabled.
|
|
96
|
+
/// @prop {Map} disabled-thumb-color [color: ('surface', 500)] - The thumb color when its disabled.
|
|
97
|
+
/// @prop {Map} label-background-color [color: ('primary', 500)] - The background color of the bubble label.
|
|
98
|
+
/// @prop {Map} base-track-color [color: ('gray', 600)] - The base background color of the track.
|
|
99
|
+
/// @prop {Map} base-track-hover-color [color: ('gray', 600)] - The base background color of the track on hover.
|
|
100
|
+
/// @prop {Map} disabled-base-track-color [color: ('gray', 100)] - The base background color of the track when is disabled.
|
|
101
|
+
/// @prop {Map} disabled-fill-track-color [color: ('gray', 500)] - The background color of the fill track when is disabled.
|
|
102
|
+
///
|
|
103
|
+
/// @requires {Map} $light-slider
|
|
104
|
+
$fluent-slider: extend(
|
|
105
|
+
$light-slider,
|
|
106
|
+
(
|
|
107
|
+
variant: 'fluent',
|
|
108
|
+
track-color: (
|
|
109
|
+
color: ('gray', 800),
|
|
110
|
+
),
|
|
111
|
+
track-step-color: white,
|
|
112
|
+
track-hover-color: (
|
|
113
|
+
color: ('primary', 500)
|
|
114
|
+
),
|
|
115
|
+
thumb-color: (
|
|
116
|
+
color: ('surface', 500)
|
|
117
|
+
),
|
|
118
|
+
thumb-border-color: (
|
|
119
|
+
color: ('gray', 700)
|
|
120
|
+
),
|
|
121
|
+
thumb-border-focus-color: (
|
|
122
|
+
color: ('gray', 700)
|
|
123
|
+
),
|
|
124
|
+
thumb-focus-color: (
|
|
125
|
+
color: ('primary', 700)
|
|
126
|
+
),
|
|
127
|
+
thumb-disabled-border-color: (
|
|
128
|
+
color: ('gray', 400),
|
|
129
|
+
),
|
|
130
|
+
disabled-thumb-color: (
|
|
131
|
+
color: ('surface', 500),
|
|
132
|
+
),
|
|
133
|
+
base-track-color: (
|
|
134
|
+
color: ('gray', 600),
|
|
135
|
+
),
|
|
136
|
+
base-track-hover-color: (
|
|
137
|
+
color: ('gray', 600)
|
|
138
|
+
),
|
|
139
|
+
disabled-base-track-color: (
|
|
140
|
+
color: ('gray', 100)
|
|
141
|
+
),
|
|
142
|
+
disabled-fill-track-color: (
|
|
143
|
+
color: ('gray', 500)
|
|
144
|
+
),
|
|
145
|
+
label-background-color: (
|
|
146
|
+
color: ('primary', 500),
|
|
147
|
+
),
|
|
148
|
+
)
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
/// Generates a bootstrap slider schema.
|
|
152
|
+
/// @type {Map}
|
|
153
|
+
/// @prop {Map} base-track-color [color: ('secondary', 500, .24)] - The base background color of the track.
|
|
154
|
+
/// @prop {Map} base-track-hover-color [color: ('secondary', 500, .24)] - The base background color of the track on hover.
|
|
155
|
+
/// @prop {Map} thumb-color [color: ('primary', 500)] - The color of the thumb.
|
|
156
|
+
/// @prop {Map} thumb-border-color [color: ('primary', 500)] - The thumb border color.
|
|
157
|
+
/// @prop {Map} thumb-border-focus-color [color: ('surface', 500)] - The thumb border color when focused.
|
|
158
|
+
/// @prop {Map} thumb-focus-color [color: ('primary', 200)] - The focus outline color of the thumb.
|
|
159
|
+
/// @prop {Map} disabled-thumb-color [color: ('gray', 400)] - The thumb color when its disabled.
|
|
160
|
+
///
|
|
161
|
+
/// @requires {Map} $light-slider
|
|
162
|
+
$bootstrap-slider: extend(
|
|
163
|
+
$fluent-slider,
|
|
164
|
+
(
|
|
165
|
+
variant: 'bootstrap',
|
|
166
|
+
base-track-color: (
|
|
167
|
+
color: ('secondary', 500, .24)
|
|
168
|
+
),
|
|
169
|
+
base-track-hover-color: (
|
|
170
|
+
color: ('secondary', 500, .24)
|
|
171
|
+
),
|
|
172
|
+
thumb-color: (
|
|
173
|
+
color: ('primary', 500)
|
|
174
|
+
),
|
|
175
|
+
thumb-border-color: (
|
|
176
|
+
color: ('primary', 500)
|
|
177
|
+
),
|
|
178
|
+
thumb-border-focus-color: (
|
|
179
|
+
color: ('surface', 500)
|
|
180
|
+
),
|
|
181
|
+
thumb-focus-color: (
|
|
182
|
+
color: ('primary', 200)
|
|
183
|
+
),
|
|
184
|
+
disabled-thumb-color: (
|
|
185
|
+
color: ('gray', 400),
|
|
186
|
+
),
|
|
187
|
+
)
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
/// Generates an indigo slider schema.
|
|
191
|
+
/// @type {Map}
|
|
192
|
+
/// @prop {Color} track-step-color [white] - The color of the track steps.
|
|
193
|
+
/// @prop {Map} track-hover-color [color: ('primary', 400)] - The color of the track on hover.
|
|
194
|
+
/// @prop {Map} base-track-color [color: ('gray', 400)] - The base background color of the track.
|
|
195
|
+
/// @prop {Map} base-track-hover-color [color: ('gray', 500)] - The base background color of the track on hover.
|
|
196
|
+
/// @prop {Map} thumb-focus-color [color: ('primary', 200)] - The focus outline color of the thumb.
|
|
197
|
+
/// @prop {Map} disabled-thumb-color [color: ('gray', 300)] - The thumb color when its disabled.
|
|
198
|
+
/// @prop {Map} disabled-base-track-color [color: ('gray', 300)] - The base background color of the track when is disabled.
|
|
199
|
+
/// @prop {Map} disabled-fill-track-color [color: ('gray', 300)] - The background color of the fill track when is disabled.
|
|
200
|
+
///
|
|
201
|
+
/// @requires {Map} $light-slider
|
|
202
|
+
$indigo-slider: extend(
|
|
203
|
+
$light-slider,
|
|
204
|
+
(
|
|
205
|
+
variant: 'indigo-design',
|
|
206
|
+
track-step-color: white,
|
|
207
|
+
track-hover-color: (
|
|
208
|
+
color: ('primary', 400)
|
|
209
|
+
),
|
|
210
|
+
base-track-color: (
|
|
211
|
+
color: ('gray', 400)
|
|
212
|
+
),
|
|
213
|
+
base-track-hover-color: (
|
|
214
|
+
color: ('gray', 500)
|
|
215
|
+
),
|
|
216
|
+
thumb-focus-color: (
|
|
217
|
+
color: ('primary', 200)
|
|
218
|
+
),
|
|
219
|
+
disabled-thumb-color: (
|
|
220
|
+
color: ('gray', 300),
|
|
221
|
+
),
|
|
222
|
+
disabled-base-track-color: (
|
|
223
|
+
color: ('gray', 300),
|
|
224
|
+
),
|
|
225
|
+
disabled-fill-track-color: (
|
|
226
|
+
color: ('gray', 300)
|
|
227
|
+
),
|
|
228
|
+
)
|
|
229
|
+
);
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
@use '../../../../utils/map' as *;
|
|
2
|
+
@use '../../../../typography/functions' as *;
|
|
3
|
+
@use '../elevation/switch' as *;
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// @package theming
|
|
7
|
+
/// @group schemas
|
|
8
|
+
/// @access public
|
|
9
|
+
////
|
|
10
|
+
|
|
11
|
+
/* stylelint-disable max-line-length */
|
|
12
|
+
|
|
13
|
+
/// Generates a light switch schema.
|
|
14
|
+
/// @type {Map}
|
|
15
|
+
/// @prop {Map} thumb-on-color [color: ('secondary', 500)] - The color of the thumb when the switch is on.
|
|
16
|
+
/// @prop {Map} track-on-color [color: ('secondary', 200)] - The color of the track when the switch is on.
|
|
17
|
+
/// @prop {Map} thumb-off-color [color: ('gray', 50)] - The color of the thumb when the switch is off.
|
|
18
|
+
/// @prop {Map} track-off-color [color: ('gray', 500)] - The color of the track when the switch is off.
|
|
19
|
+
/// @prop {Map} thumb-disabled-color [color: ('gray', 200)] - The color of the thumb when the switch is disabled.
|
|
20
|
+
/// @prop {Map} thumb-on-disabled-color [color: ('secondary', 100)] - The color of the thumb when the switch is on and disabled.
|
|
21
|
+
/// @prop {Map} track-disabled-color [color: ('gray', 300)] - The color of the track when the switch is disabled.
|
|
22
|
+
/// @prop {Map} track-on-disabled-color [color: ('secondary', 50)] - The color of the track when the switch is on and disabled.
|
|
23
|
+
/// @prop {Map} label-color [color: ('gray', 900)] - The color of the switch label
|
|
24
|
+
/// @prop {Map} label-disabled-color [color: ('gray', 500)] - The color of the switch label when the switch is disabled
|
|
25
|
+
/// @prop {Number} resting-elevation [2] - The elevation level, between 0-24, to be used for the resting state.
|
|
26
|
+
/// @prop {Number} hover-elevation [3] - The elevation level, between 0-24, to be used for the hover state.
|
|
27
|
+
/// @prop {Number} disabled-elevation [1] - The elevation level, between 0-24, to be used for the disabled state.
|
|
28
|
+
/// @prop {Number} border-radius-track [7px] - The border radius used for switch track. Can be a fraction between 0 and 1, pixels, or percent.
|
|
29
|
+
/// @prop {Number} border-radius-thumb [10px] - The border radius used for switch thumb. Can be a fraction between 0 and 1, pixels, or percent.
|
|
30
|
+
/// @prop {Number} border-radius-ripple [24px] - The border radius used for switch ripple. Can be a fraction between 0 and 1, pixels, or percent.
|
|
31
|
+
/// @prop {Color} border-color [transparent] - The border color of the switch.
|
|
32
|
+
/// @prop {Color} border-hover-color [transparent] - The border color of the switch on hover.
|
|
33
|
+
/// @prop {Color} border-disabled-color [transparent] - The border color of the disabled switch.
|
|
34
|
+
/// @prop {Color} border-on-color [transparent] - The border color of the on-switch.
|
|
35
|
+
/// @prop {Color} border-on-hover-color [transparent] - The border color of the on-switch.
|
|
36
|
+
/// @prop {Map} label-invalid-color [color: ('gray', 900)] - The color of the switch label in invalid state.
|
|
37
|
+
/// @prop {Map} track-error-color [color: ('gray', 500)] - The color of the track in invalid state when the switch is off.
|
|
38
|
+
/// @prop {Map} error-color [color: ('gray', 50)] - The color of the thumb in invalid state.
|
|
39
|
+
/// @prop {Map} error-color-hover [color: ('gray', 500)] - The border color in invalid state on hover.
|
|
40
|
+
/// @requires {Map} $default-elevation-switch
|
|
41
|
+
$light-switch: extend(
|
|
42
|
+
$default-elevation-switch,
|
|
43
|
+
(
|
|
44
|
+
border-color: transparent,
|
|
45
|
+
border-hover-color: transparent,
|
|
46
|
+
border-disabled-color: transparent,
|
|
47
|
+
border-on-color: transparent,
|
|
48
|
+
border-on-hover-color: transparent,
|
|
49
|
+
thumb-on-color: (
|
|
50
|
+
color: ('secondary', 500)
|
|
51
|
+
),
|
|
52
|
+
track-on-color: (
|
|
53
|
+
color: ('secondary', 200),
|
|
54
|
+
),
|
|
55
|
+
thumb-off-color: (
|
|
56
|
+
color: ('gray', 50)
|
|
57
|
+
),
|
|
58
|
+
track-disabled-color: (
|
|
59
|
+
color: ('gray', 300)
|
|
60
|
+
),
|
|
61
|
+
track-on-disabled-color: (
|
|
62
|
+
color: ('secondary', 50)
|
|
63
|
+
),
|
|
64
|
+
track-off-color: (
|
|
65
|
+
color: ('gray', 500)
|
|
66
|
+
),
|
|
67
|
+
thumb-disabled-color: (
|
|
68
|
+
color: ('gray', 200),
|
|
69
|
+
),
|
|
70
|
+
thumb-on-disabled-color: (
|
|
71
|
+
color: ('secondary', 100),
|
|
72
|
+
),
|
|
73
|
+
label-color: (
|
|
74
|
+
color: ('gray', 900)
|
|
75
|
+
),
|
|
76
|
+
label-disabled-color: (
|
|
77
|
+
color: ('gray', 500)
|
|
78
|
+
),
|
|
79
|
+
label-invalid-color: (
|
|
80
|
+
color: ('gray', 900)
|
|
81
|
+
),
|
|
82
|
+
track-error-color: (
|
|
83
|
+
color: ('gray', 500)
|
|
84
|
+
),
|
|
85
|
+
error-color: (
|
|
86
|
+
color: ('gray', 50)
|
|
87
|
+
),
|
|
88
|
+
error-color-hover: (
|
|
89
|
+
color: ('gray', 500)
|
|
90
|
+
),
|
|
91
|
+
border-radius-track: rem(7px),
|
|
92
|
+
border-radius-thumb: rem(10px),
|
|
93
|
+
border-radius-ripple: rem(24px)
|
|
94
|
+
)
|
|
95
|
+
);
|
|
96
|
+
|
|
97
|
+
/// Generates a fluent switch schema.
|
|
98
|
+
/// @type {Map}
|
|
99
|
+
///
|
|
100
|
+
/// @prop {Map} border-color [color('gray', 700)] - The border color of the switch.
|
|
101
|
+
/// @prop {Map} border-hover-color [color('gray', 800)] - The border color of the switch on hover.
|
|
102
|
+
/// @prop {Map} border-disabled-color [color('gray', 400)] - The border color of the disabled switch.
|
|
103
|
+
/// @prop {Map} border-on-color [color('primary', 500)] - The border color of the on-switch.
|
|
104
|
+
/// @prop {Map} border-on-hover-color [color('primary', 800)] - The border color of the on-switch.
|
|
105
|
+
///
|
|
106
|
+
/// @prop {Map} thumb-on-color [color: ('gray', 50)] - The color of the thumb when the switch is on.
|
|
107
|
+
/// @prop {Map} thumb-off-color [color: ('gray', 700)] - The color of the thumb when the switch is off.
|
|
108
|
+
/// @prop {Map} track-on-color [color: ('primary', 500)] - The color of the track when the switch is on.
|
|
109
|
+
/// @prop {Color} track-off-color [transparent] - The color of the track when the switch is off.
|
|
110
|
+
/// @prop {Map} track-on-hover-color [color: ('primary', 800)] - The color of the track when the switch is on and hovered.
|
|
111
|
+
/// @prop {Map} track-on-disabled-color [color: ('gray', 400)] - The color of the track when the switch is on and disabled.
|
|
112
|
+
/// @prop {Color} track-disabled-color [transparent] - The color of the track when the switch is disabled.
|
|
113
|
+
/// @prop {Map} thumb-disabled-color [color: ('gray', 400)] - The color of the thumb when the switch is disabled.
|
|
114
|
+
/// @prop {Map} thumb-on-disabled-color [color: ('gray', 100)] - The color of the thumb when the switch is on and disabled.
|
|
115
|
+
/// @prop {Map} focus-outline-color [color: ('gray', 700)] - The focus outlined color.
|
|
116
|
+
/// @prop {Map} error-color [color: ('gray', 700)] - The border and thumb color in invalid state.
|
|
117
|
+
/// @prop {Map} error-color-hover [color: ('gray', 800)] - The border and thumb color in invalid state on hover.
|
|
118
|
+
///
|
|
119
|
+
/// @prop {Number} border-radius-track [10px] - The border radius used for switch track. Can be a fraction between 0 and 1, pixels, or percent.
|
|
120
|
+
///
|
|
121
|
+
///
|
|
122
|
+
/// @requires {Map} $light-switch
|
|
123
|
+
$fluent-switch: extend(
|
|
124
|
+
$light-switch,
|
|
125
|
+
(
|
|
126
|
+
focus-outline-color: (
|
|
127
|
+
color: ('gray', 700)
|
|
128
|
+
),
|
|
129
|
+
border-color: (
|
|
130
|
+
color: ('gray', 700),
|
|
131
|
+
),
|
|
132
|
+
thumb-off-color: (
|
|
133
|
+
color: ('gray', 700),
|
|
134
|
+
),
|
|
135
|
+
track-off-color: transparent,
|
|
136
|
+
border-hover-color:(
|
|
137
|
+
color: ('gray', 800),
|
|
138
|
+
),
|
|
139
|
+
track-on-color: (
|
|
140
|
+
color: ('primary', 500),
|
|
141
|
+
),
|
|
142
|
+
border-on-color:(
|
|
143
|
+
color: ('primary', 500)
|
|
144
|
+
),
|
|
145
|
+
track-on-hover-color:(
|
|
146
|
+
color: ('primary', 800)
|
|
147
|
+
),
|
|
148
|
+
border-on-hover-color:(
|
|
149
|
+
color: ('primary', 800)
|
|
150
|
+
),
|
|
151
|
+
thumb-on-color: (
|
|
152
|
+
color: ('gray', 50)
|
|
153
|
+
),
|
|
154
|
+
track-on-disabled-color:(
|
|
155
|
+
color: ('gray', 400)
|
|
156
|
+
),
|
|
157
|
+
thumb-disabled-color:(
|
|
158
|
+
color: ('gray', 400)
|
|
159
|
+
),
|
|
160
|
+
thumb-on-disabled-color:(
|
|
161
|
+
color: ('gray', 100)
|
|
162
|
+
),
|
|
163
|
+
border-disabled-color:(
|
|
164
|
+
color: ('gray', 400),
|
|
165
|
+
),
|
|
166
|
+
error-color: (
|
|
167
|
+
color: ('gray', 700)
|
|
168
|
+
),
|
|
169
|
+
error-color-hover: (
|
|
170
|
+
color: ('gray', 800)
|
|
171
|
+
),
|
|
172
|
+
track-disabled-color: transparent,
|
|
173
|
+
border-radius-track: rem(10px),
|
|
174
|
+
)
|
|
175
|
+
);
|
|
176
|
+
|
|
177
|
+
/// Generates a bootstrap switch schema.
|
|
178
|
+
/// @type {Map}
|
|
179
|
+
/// @prop {Map} focus-outline-color [color: ('primary', 100)] - The focus outlined color.
|
|
180
|
+
/// @prop {Map} focus-fill-color [color: ('primary', 200)] - The focus fill color.
|
|
181
|
+
/// @prop {Map} border-color [color('gray', 400)] - The border color of the switch.
|
|
182
|
+
/// @prop {Map} border-disabled-color [color: ('gray', 300)] - The border color of the disabled switch.
|
|
183
|
+
/// @prop {Map} thumb-off-color [color: ('gray', 400)] - The color of the thumb when the switch is off.
|
|
184
|
+
/// @prop {Map} thumb-disabled-color [color: ('gray', 300)] - The color of the thumb when the switch is disabled.
|
|
185
|
+
/// @prop {Map} track-on-color [color: ('primary', 500)] - The color of the track when the switch is on.
|
|
186
|
+
/// @prop {Map} track-on-disabled-color [color: ('primary', 200)] - The color of the track when the switch is on and disabled.
|
|
187
|
+
/// @prop {Map} thumb-on-disabled-color [color: ('gray', 50)] - The color of the thumb when the switch is on and disabled.
|
|
188
|
+
/// @prop {Color} track-disabled-color [transparent] - The color of the track when the switch is disabled.
|
|
189
|
+
/// @prop {Map} error-color [color: ('gray', 400)] - The border and thumb color in invalid state.
|
|
190
|
+
/// @prop {Map} error-color-hover [color: ('primary', 200)] - The border and thumb color in invalid state on hover.
|
|
191
|
+
/// @prop {Number} border-radius-track [32px] - The border radius used for switch track. Can be a fraction between 0 and 1, pixels, or percent.
|
|
192
|
+
/// @prop {Number} border-radius-thumb [32px] - The border radius used for switch thumb. Can be a fraction between 0 and 1, pixels, or percent.
|
|
193
|
+
///
|
|
194
|
+
///
|
|
195
|
+
/// @requires {Map} $fluent-switch
|
|
196
|
+
$bootstrap-switch: extend(
|
|
197
|
+
$fluent-switch,
|
|
198
|
+
(
|
|
199
|
+
focus-outline-color: (
|
|
200
|
+
color: ('primary', 100),
|
|
201
|
+
),
|
|
202
|
+
focus-fill-color: (
|
|
203
|
+
color: ('primary', 200),
|
|
204
|
+
),
|
|
205
|
+
border-color: (
|
|
206
|
+
color: ('gray', 400),
|
|
207
|
+
),
|
|
208
|
+
border-disabled-color: (
|
|
209
|
+
color: ('gray', 300),
|
|
210
|
+
),
|
|
211
|
+
thumb-off-color: (
|
|
212
|
+
color: ('gray', 400),
|
|
213
|
+
),
|
|
214
|
+
thumb-disabled-color: (
|
|
215
|
+
color: ('gray', 300),
|
|
216
|
+
),
|
|
217
|
+
thumb-on-disabled-color: (
|
|
218
|
+
color: ('gray', 50)
|
|
219
|
+
),
|
|
220
|
+
track-on-color: (
|
|
221
|
+
color: ('primary', 500),
|
|
222
|
+
),
|
|
223
|
+
track-on-disabled-color:(
|
|
224
|
+
color: ('primary', 200)
|
|
225
|
+
),
|
|
226
|
+
error-color: (
|
|
227
|
+
color: ('gray', 400)
|
|
228
|
+
),
|
|
229
|
+
error-color-hover: (
|
|
230
|
+
color: ('primary', 200)
|
|
231
|
+
),
|
|
232
|
+
border-radius-track: rem(32px),
|
|
233
|
+
border-radius-thumb: rem(32px),
|
|
234
|
+
)
|
|
235
|
+
);
|
|
236
|
+
|
|
237
|
+
/// Generates an indigo switch schema.
|
|
238
|
+
/// @type {Map}
|
|
239
|
+
///
|
|
240
|
+
/// @prop {Map} thumb-on-color [color: ('gray', 50)] - The color of the thumb when the switch is on.
|
|
241
|
+
/// @prop {Map} track-on-color [color: ('primary', 500)] - The color of the track when the switch is on.
|
|
242
|
+
/// @prop {Map} thumb-off-color [color: ('gray', 600)] - The color of the thumb when the switch is off.
|
|
243
|
+
/// @prop {Color} track-off-color [transparent] - The color of the track when the switch is off.
|
|
244
|
+
/// @prop {Map} thumb-disabled-color [color: ('gray', 300)] - The color of the thumb when the switch is disabled.
|
|
245
|
+
/// @prop {Color} track-disabled-color [transparent] - The color of the track when the switch is disabled.
|
|
246
|
+
///
|
|
247
|
+
/// @prop {Map} border-color [color: ('gray', 600)] - The border color of the switch.
|
|
248
|
+
/// @prop {Map} border-hover-color [color: ('gray', 600)] - The border color of the switch on hover.
|
|
249
|
+
/// @prop {Map} border-disabled-color [color: ('gray', 300)] - The border color of the disabled switch.
|
|
250
|
+
/// @prop {Map} border-on-color [color: ('primary', 500)] - The border color of the on-switch.
|
|
251
|
+
/// @prop {Map} border-on-hover-color [color: ('primary', 500)] - The border color of the on-switch.
|
|
252
|
+
/// @prop {Map} label-disabled-color [color: ('gray', 300)] - The color of the switch label when the switch is disabled
|
|
253
|
+
/// @prop {Map} error-color [color: ('gray', 500)] - The border and thumb color in invalid state.
|
|
254
|
+
/// @prop {Map} error-color-hover [color: ('gray', 300)] - The border and thumb color in invalid state on hover.
|
|
255
|
+
/// @prop {Number} border-radius-track [8px] - The border radius used for switch track. Can be a fraction between 0 and 1, pixels, or percent.
|
|
256
|
+
/// @prop {Number} border-radius-thumb [10px] - The border radius used for switch thumb. Can be a fraction between 0 and 1, pixels, or percent.
|
|
257
|
+
/// @prop {Map} focus-outline-color [color: ('gray', 300)] - The focus outlined color.
|
|
258
|
+
/// @prop {Map} focus-outline-color-focused [color: ('primary', 200)] - The focus outlined color for focused state.
|
|
259
|
+
///
|
|
260
|
+
///
|
|
261
|
+
/// @requires $light-switch
|
|
262
|
+
$indigo-switch: extend(
|
|
263
|
+
$light-switch,
|
|
264
|
+
(
|
|
265
|
+
focus-outline-color: (
|
|
266
|
+
color: ('gray', 300)
|
|
267
|
+
),
|
|
268
|
+
focus-outline-color-focused: (
|
|
269
|
+
color: ('primary', 200)
|
|
270
|
+
),
|
|
271
|
+
border-color: (
|
|
272
|
+
color: ('gray', 500)
|
|
273
|
+
),
|
|
274
|
+
border-hover-color:(
|
|
275
|
+
color: ('gray', 500)
|
|
276
|
+
),
|
|
277
|
+
border-disabled-color:(
|
|
278
|
+
color: ('gray', 300)
|
|
279
|
+
),
|
|
280
|
+
border-on-color:(
|
|
281
|
+
color: ('primary', 500)
|
|
282
|
+
),
|
|
283
|
+
border-on-hover-color:(
|
|
284
|
+
color: ('primary', 500)
|
|
285
|
+
),
|
|
286
|
+
thumb-on-color: (
|
|
287
|
+
color: ('gray', 50)
|
|
288
|
+
),
|
|
289
|
+
thumb-off-color: (
|
|
290
|
+
color: ('gray', 600)
|
|
291
|
+
),
|
|
292
|
+
track-on-color: (
|
|
293
|
+
color: ('primary', 500),
|
|
294
|
+
),
|
|
295
|
+
error-color: (
|
|
296
|
+
color: ('gray', 500)
|
|
297
|
+
),
|
|
298
|
+
error-color-hover: (
|
|
299
|
+
color: ('gray', 300)
|
|
300
|
+
),
|
|
301
|
+
track-off-color: transparent,
|
|
302
|
+
track-disabled-color: transparent,
|
|
303
|
+
thumb-disabled-color: (
|
|
304
|
+
color: ('gray', 300)
|
|
305
|
+
),
|
|
306
|
+
label-disabled-color: (
|
|
307
|
+
color: ('gray', 300)
|
|
308
|
+
),
|
|
309
|
+
border-radius-track: rem(8px)
|
|
310
|
+
)
|
|
311
|
+
);
|