igniteui-theming 1.4.2 → 1.4.3-beta.2
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/json/colors/meta/multipliers.json +1 -1
- package/package.json +21 -14
- package/sass/animations/_easings.scss +23 -23
- package/sass/animations/entrances/_bounce.scss +3 -3
- package/sass/animations/entrances/_flicker.scss +10 -26
- package/sass/animations/exits/_bounce.scss +6 -6
- package/sass/animations/exits/_flicker.scss +12 -28
- package/sass/animations/exits/_flip.scss +8 -8
- package/sass/animations/exits/_puff.scss +11 -11
- package/sass/animations/exits/_roll.scss +4 -4
- package/sass/animations/exits/_rotate.scss +25 -25
- package/sass/animations/exits/_scale.scss +15 -15
- package/sass/animations/exits/_slide.scss +34 -34
- package/sass/animations/exits/_slit.scss +4 -4
- package/sass/animations/exits/_swing.scss +8 -8
- package/sass/animations/exits/_swirl.scss +18 -18
- package/sass/animations/generic/_flip.scss +4 -4
- package/sass/animations/generic/_rotate.scss +5 -5
- package/sass/animations/generic/_scale.scss +31 -31
- package/sass/animations/generic/_shadows.scss +12 -68
- package/sass/bem/_index.scss +9 -3
- package/sass/color/_charts.scss +1 -1
- package/sass/color/_functions.scss +22 -56
- package/sass/color/_multipliers.scss +14 -14
- package/sass/color/_types.scss +6 -1
- package/sass/color/presets/dark/_bootstrap.scss +1 -1
- package/sass/color/presets/dark/_fluent.scss +3 -3
- package/sass/color/presets/dark/_indigo.scss +1 -1
- package/sass/color/presets/dark/_material.scss +1 -1
- package/sass/color/presets/light/_bootstrap.scss +1 -1
- package/sass/color/presets/light/_extra.scss +2 -2
- package/sass/color/presets/light/_fluent.scss +3 -3
- package/sass/color/presets/light/_indigo.scss +1 -1
- package/sass/color/presets/light/_material.scss +1 -1
- package/sass/elevations/presets/_index.scss +1 -5
- package/sass/elevations/presets/_material.scss +1 -1
- package/sass/themes/_functions.scss +2 -12
- package/sass/themes/_index.scss +1 -0
- package/sass/themes/_mixins.scss +4 -5
- package/sass/themes/charts/_category-chart-theme.scss +15 -11
- package/sass/themes/charts/_data-chart-theme.scss +4 -7
- package/sass/themes/charts/_doughnut-chart-theme.scss +2 -2
- package/sass/themes/charts/_financial-chart-theme.scss +15 -11
- package/sass/themes/charts/_funnel-chart-theme.scss +22 -18
- package/sass/themes/charts/_gauge-theme.scss +8 -16
- package/sass/themes/charts/_geo-map-theme.scss +10 -11
- package/sass/themes/charts/_graph-theme.scss +3 -3
- package/sass/themes/charts/_pie-chart-theme.scss +21 -20
- package/sass/themes/charts/_shape-chart-theme.scss +15 -11
- package/sass/themes/charts/_sparkline-theme.scss +2 -2
- package/sass/themes/schemas/_index.scss +10 -33
- package/sass/themes/schemas/charts/light/_category-chart.scss +68 -24
- package/sass/themes/schemas/charts/light/_data-chart.scss +12 -3
- package/sass/themes/schemas/charts/light/_financial-chart.scss +1 -1
- package/sass/themes/schemas/charts/light/_gauge.scss +14 -5
- package/sass/themes/schemas/charts/light/_geo-map.scss +2 -2
- package/sass/themes/schemas/charts/light/_graph.scss +20 -5
- package/sass/themes/schemas/charts/light/_pie-chart.scss +4 -1
- package/sass/themes/schemas/charts/light/_shape-chart.scss +8 -2
- package/sass/themes/schemas/charts/light/_sparkline.scss +4 -1
- package/sass/themes/schemas/components/_index.scss +2 -0
- package/sass/themes/schemas/components/dark/_avatar.scss +46 -0
- package/sass/themes/schemas/components/dark/_button.scss +491 -0
- package/sass/themes/schemas/components/dark/_checkbox.scss +88 -0
- package/sass/themes/schemas/components/dark/_combo.scss +56 -0
- package/sass/themes/schemas/components/dark/_drop-down.scss +86 -0
- package/sass/themes/schemas/components/dark/_icon.scss +39 -0
- package/sass/themes/schemas/components/dark/_index.scss +120 -0
- package/sass/themes/schemas/components/dark/_input-group.scss +170 -0
- package/sass/themes/schemas/components/dark/_navbar.scss +27 -0
- package/sass/themes/schemas/components/dark/_radio.scss +144 -0
- package/sass/themes/schemas/components/dark/_rating.scss +29 -0
- package/sass/themes/schemas/components/dark/_select.scss +56 -0
- package/sass/themes/schemas/components/dark/_slider.scss +136 -0
- package/sass/themes/schemas/components/dark/_switch.scss +216 -0
- package/sass/themes/schemas/components/dark/_tabs.scss +65 -0
- package/sass/themes/schemas/components/dark/_tree.scss +132 -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 +69 -0
- package/sass/themes/schemas/components/light/_button.scss +1700 -0
- package/sass/themes/schemas/components/light/_checkbox.scss +285 -0
- package/sass/themes/schemas/components/light/_combo.scss +317 -0
- package/sass/themes/schemas/components/light/_drop-down.scss +376 -0
- package/sass/themes/schemas/components/light/_icon.scss +55 -0
- package/sass/themes/schemas/components/light/_index.scss +121 -0
- package/sass/themes/schemas/components/light/_input-group.scss +794 -0
- package/sass/themes/schemas/components/light/_navbar.scss +116 -0
- package/sass/themes/schemas/components/light/_radio.scss +279 -0
- package/sass/themes/schemas/components/light/_rating.scss +129 -0
- package/sass/themes/schemas/components/light/_select.scss +176 -0
- package/sass/themes/schemas/components/light/_slider.scss +362 -0
- package/sass/themes/schemas/components/light/_switch.scss +473 -0
- package/sass/themes/schemas/components/light/_tabs.scss +402 -0
- package/sass/themes/schemas/components/light/_tree.scss +288 -0
- package/sass/typography/_functions.scss +7 -5
- package/sass/typography/_mixins.scss +1 -3
- package/sass/typography/_types.scss +2 -16
- package/sass/typography/presets/_bootstrap.scss +24 -24
- package/sass/typography/presets/_fluent.scss +23 -23
- package/sass/typography/presets/_indigo.scss +24 -24
- package/sass/typography/presets/_material.scss +23 -23
- package/sass/utils/_css.scss +6 -1
- package/sass/utils/_map.scss +4 -8
- package/sass/utils/_string.scss +14 -6
|
@@ -0,0 +1,1700 @@
|
|
|
1
|
+
@use '../../../../utils/map' as *;
|
|
2
|
+
@use '../../../../typography/functions' as *;
|
|
3
|
+
@use '../elevation/button' as *;
|
|
4
|
+
|
|
5
|
+
/* stylelint-disable max-line-length */
|
|
6
|
+
|
|
7
|
+
////
|
|
8
|
+
/// @package theming
|
|
9
|
+
/// @group schemas
|
|
10
|
+
/// @access public
|
|
11
|
+
////
|
|
12
|
+
|
|
13
|
+
/// @type {Map}
|
|
14
|
+
/// @prop {Color} shadow-color [transparent] - The shadow color of the button.
|
|
15
|
+
/// @prop {Color} border-color [transparent] - The outline color of the button.
|
|
16
|
+
/// @prop {Color} hover-border-color [transparent] - The hover border color of the button.
|
|
17
|
+
/// @prop {Color} focus-border-color [transparent] - The focus border color of the button.
|
|
18
|
+
/// @prop {Color} focus-visible-border-color [transparent] - The focus-visible border color of the button.
|
|
19
|
+
/// @prop {Color} active-border-color [transparent] - The active border color of the button.
|
|
20
|
+
/// @prop {Color} disabled-border-color [transparent] - The disabled border color of the button.
|
|
21
|
+
/// @prop {Map} disabled-background [color: ('gray', 300)] - The disabled background color of the button.
|
|
22
|
+
/// @prop {Map} disabled-foreground [color: ('gray', 500)] - The disabled foreground color of the button.
|
|
23
|
+
$material-base-button: (
|
|
24
|
+
shadow-color: transparent,
|
|
25
|
+
border-color: transparent,
|
|
26
|
+
hover-border-color: transparent,
|
|
27
|
+
focus-border-color: transparent,
|
|
28
|
+
focus-visible-border-color: transparent,
|
|
29
|
+
active-border-color: transparent,
|
|
30
|
+
disabled-border-color: transparent,
|
|
31
|
+
disabled-background: (
|
|
32
|
+
color: (
|
|
33
|
+
'gray',
|
|
34
|
+
300,
|
|
35
|
+
),
|
|
36
|
+
),
|
|
37
|
+
disabled-foreground: (
|
|
38
|
+
color: (
|
|
39
|
+
'gray',
|
|
40
|
+
500,
|
|
41
|
+
),
|
|
42
|
+
),
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
/// @type {Map}
|
|
46
|
+
/// @prop {Color} background [transparent] - The background color of a flat button.
|
|
47
|
+
/// @prop {Map} foreground [color: ('secondary', 500)] - The idle text color of a flat button.
|
|
48
|
+
/// @prop {Map} hover-background [color: ('secondary', 500, .05)] - The hover background color of a flat button.
|
|
49
|
+
/// @prop {Map} hover-foreground [color: ('secondary', 500)] - The hover text color of a flat button.
|
|
50
|
+
/// @prop {Map} focus-background [color: ('secondary', 400, .12)] - The focus background color of a flat button.
|
|
51
|
+
/// @prop {Map} focus-foreground [color: ('secondary', 500)] - The focus text color of a flat button.
|
|
52
|
+
/// @prop {Map} focus-visible-background ['secondary', 400, .12)] - The focus-visible background color of a flat button.
|
|
53
|
+
/// @prop {Map} focus-visible-foreground ['secondary', 500)] - The focus-visible text color of a flat button.
|
|
54
|
+
/// @prop {Map} active-background [color: ('secondary', 400, .12)] - The active background color of a flat button.
|
|
55
|
+
/// @prop {Map} active-foreground [color: ('secondary', 500)] - The active text color of a flat button.
|
|
56
|
+
/// @prop {Color} disabled-background [transparent] - The disabled background color a flat button.
|
|
57
|
+
/// @prop {Number} border-radius [4px] - The border radius used for flat button.
|
|
58
|
+
/// @requires {Map} $material-base-button
|
|
59
|
+
/// @requires {Map} $flat-elevation-button
|
|
60
|
+
$material-flat-button: extend(
|
|
61
|
+
$material-base-button,
|
|
62
|
+
$flat-elevation-button,
|
|
63
|
+
(
|
|
64
|
+
selector: '[igxButton="flat"], .igx-button--flat',
|
|
65
|
+
background: transparent,
|
|
66
|
+
foreground: (
|
|
67
|
+
color: (
|
|
68
|
+
'secondary',
|
|
69
|
+
500,
|
|
70
|
+
),
|
|
71
|
+
),
|
|
72
|
+
hover-background: (
|
|
73
|
+
color: (
|
|
74
|
+
'secondary',
|
|
75
|
+
500,
|
|
76
|
+
0.05,
|
|
77
|
+
),
|
|
78
|
+
),
|
|
79
|
+
hover-foreground: (
|
|
80
|
+
color: (
|
|
81
|
+
'secondary',
|
|
82
|
+
500,
|
|
83
|
+
),
|
|
84
|
+
),
|
|
85
|
+
focus-background: (
|
|
86
|
+
color: (
|
|
87
|
+
'secondary',
|
|
88
|
+
400,
|
|
89
|
+
0.12,
|
|
90
|
+
),
|
|
91
|
+
),
|
|
92
|
+
focus-foreground: (
|
|
93
|
+
color: (
|
|
94
|
+
'secondary',
|
|
95
|
+
500,
|
|
96
|
+
),
|
|
97
|
+
),
|
|
98
|
+
focus-visible-background: (
|
|
99
|
+
color: (
|
|
100
|
+
'secondary',
|
|
101
|
+
400,
|
|
102
|
+
0.12,
|
|
103
|
+
),
|
|
104
|
+
),
|
|
105
|
+
focus-visible-foreground: (
|
|
106
|
+
color: (
|
|
107
|
+
'secondary',
|
|
108
|
+
500,
|
|
109
|
+
),
|
|
110
|
+
),
|
|
111
|
+
active-background: (
|
|
112
|
+
color: (
|
|
113
|
+
'secondary',
|
|
114
|
+
400,
|
|
115
|
+
0.12,
|
|
116
|
+
),
|
|
117
|
+
),
|
|
118
|
+
active-foreground: (
|
|
119
|
+
color: (
|
|
120
|
+
'secondary',
|
|
121
|
+
500,
|
|
122
|
+
),
|
|
123
|
+
),
|
|
124
|
+
disabled-background: transparent,
|
|
125
|
+
border-radius: rem(4px),
|
|
126
|
+
)
|
|
127
|
+
);
|
|
128
|
+
|
|
129
|
+
/// @type {Map}
|
|
130
|
+
/// @prop {Map} border-color [color: ('secondary', 500)] - The outline color of an outlined button.
|
|
131
|
+
/// @prop {Map} hover-border-color [color: ('secondary', 500)] - The hover border color of an outlined button.
|
|
132
|
+
/// @prop {Map} focus-border-color [color: ('secondary', 500)] - The focus border color of an outlined button.
|
|
133
|
+
/// @prop {Map} focus-visible-border-color [color: ('secondary', 500)] - The focus-visible border color of an outlined button.
|
|
134
|
+
/// @prop {Map} active-border-color [color: ('secondary', 500)] - The active border color of an outlined button.
|
|
135
|
+
/// @prop {Map} disabled-border-color [color: ('gray', 300)] - The disabled focused border color of an outlined button.
|
|
136
|
+
/// @requires {Map} $material-flat-button
|
|
137
|
+
$material-outlined-button: extend(
|
|
138
|
+
$material-flat-button,
|
|
139
|
+
(
|
|
140
|
+
selector: '[igxButton="outlined"], .igx-button--outlined',
|
|
141
|
+
border-color: (
|
|
142
|
+
color: (
|
|
143
|
+
'secondary',
|
|
144
|
+
500,
|
|
145
|
+
),
|
|
146
|
+
),
|
|
147
|
+
hover-border-color: (
|
|
148
|
+
color: (
|
|
149
|
+
'secondary',
|
|
150
|
+
500,
|
|
151
|
+
),
|
|
152
|
+
),
|
|
153
|
+
focus-border-color: (
|
|
154
|
+
color: (
|
|
155
|
+
'secondary',
|
|
156
|
+
500,
|
|
157
|
+
),
|
|
158
|
+
),
|
|
159
|
+
focus-visible-border-color: (
|
|
160
|
+
color: (
|
|
161
|
+
'secondary',
|
|
162
|
+
500,
|
|
163
|
+
),
|
|
164
|
+
),
|
|
165
|
+
active-border-color: (
|
|
166
|
+
color: (
|
|
167
|
+
'secondary',
|
|
168
|
+
500,
|
|
169
|
+
),
|
|
170
|
+
),
|
|
171
|
+
disabled-border-color: (
|
|
172
|
+
color: (
|
|
173
|
+
'gray',
|
|
174
|
+
300,
|
|
175
|
+
),
|
|
176
|
+
),
|
|
177
|
+
)
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
/// @type {Map}
|
|
181
|
+
/// @prop {Map} background [color: ('secondary', 500)] - The background color of an raised button.
|
|
182
|
+
/// @prop {Map} foreground [contrast-color: ('secondary', 500)] - The idle text color of a raised button.
|
|
183
|
+
/// @prop {Map} hover-background [color: ('secondary', 300)] - The hover background of a raised button.
|
|
184
|
+
/// @prop {Map} hover-foreground [contrast-color: ('secondary', 300)] - The hover text color of a raised button.
|
|
185
|
+
/// @prop {Map} focus-background [color: ('secondary', 300)] - The focus background color of a raised button.
|
|
186
|
+
/// @prop {Map} focus-foreground [contrast-color: ('secondary', 300)] - The focus text color of a raised button.
|
|
187
|
+
/// @prop {Map} focus-visible-background [color: ('secondary', 300)] - The focus-visible background color of a raised button.
|
|
188
|
+
/// @prop {Map} focus-visible-foreground [contrast-color: ('secondary', 300)] - The focus-visible text color of a raised button.
|
|
189
|
+
/// @prop {Map} active-background [color: ('secondary', 300)] - The active background color of a raised button.
|
|
190
|
+
/// @prop {Map} active-foreground [contrast-color: ('secondary', 300)] - The active text color of a raised button.
|
|
191
|
+
/// @prop {Number} resting-elevation [2] - The elevation level, between 0-24, to be used for the resting state.
|
|
192
|
+
/// @prop {Number} hover-elevation [4] - The elevation level, between 0-24, to be used for the hover state.
|
|
193
|
+
/// @prop {Number} focus-elevation [8] - The elevation level, between 0-24, to be used for the focus state.
|
|
194
|
+
/// @prop {Number} border-radius [4px] - The border radius used for raised button. Can be a fraction between 0 and 1, pixels, or percent.
|
|
195
|
+
/// @requires {Map} $material-base-button
|
|
196
|
+
/// @requires {Map} $material-raised-elevation
|
|
197
|
+
$material-raised-button: extend(
|
|
198
|
+
$material-base-button,
|
|
199
|
+
$material-raised-elevation,
|
|
200
|
+
(
|
|
201
|
+
selector: '[igxButton="raised"], .igx-button--raised',
|
|
202
|
+
background: (
|
|
203
|
+
color: (
|
|
204
|
+
'secondary',
|
|
205
|
+
500,
|
|
206
|
+
),
|
|
207
|
+
),
|
|
208
|
+
foreground: (
|
|
209
|
+
contrast-color: (
|
|
210
|
+
'secondary',
|
|
211
|
+
500,
|
|
212
|
+
),
|
|
213
|
+
),
|
|
214
|
+
hover-background: (
|
|
215
|
+
color: (
|
|
216
|
+
'secondary',
|
|
217
|
+
300,
|
|
218
|
+
),
|
|
219
|
+
),
|
|
220
|
+
hover-foreground: (
|
|
221
|
+
contrast-color: (
|
|
222
|
+
'secondary',
|
|
223
|
+
300,
|
|
224
|
+
),
|
|
225
|
+
),
|
|
226
|
+
focus-background: (
|
|
227
|
+
color: (
|
|
228
|
+
'secondary',
|
|
229
|
+
300,
|
|
230
|
+
),
|
|
231
|
+
),
|
|
232
|
+
focus-foreground: (
|
|
233
|
+
contrast-color: (
|
|
234
|
+
'secondary',
|
|
235
|
+
300,
|
|
236
|
+
),
|
|
237
|
+
),
|
|
238
|
+
focus-visible-background: (
|
|
239
|
+
color: (
|
|
240
|
+
'secondary',
|
|
241
|
+
300,
|
|
242
|
+
),
|
|
243
|
+
),
|
|
244
|
+
focus-visible-foreground: (
|
|
245
|
+
contrast-color: (
|
|
246
|
+
'secondary',
|
|
247
|
+
300,
|
|
248
|
+
),
|
|
249
|
+
),
|
|
250
|
+
active-background: (
|
|
251
|
+
color: (
|
|
252
|
+
'secondary',
|
|
253
|
+
300,
|
|
254
|
+
),
|
|
255
|
+
),
|
|
256
|
+
active-foreground: (
|
|
257
|
+
contrast-color: (
|
|
258
|
+
'secondary',
|
|
259
|
+
300,
|
|
260
|
+
),
|
|
261
|
+
),
|
|
262
|
+
border-radius: rem(4px),
|
|
263
|
+
)
|
|
264
|
+
);
|
|
265
|
+
|
|
266
|
+
/// @type {Map}
|
|
267
|
+
/// @prop {Number} resting-elevation [6] - The elevation level, between 0-24, to be used for the resting state.
|
|
268
|
+
/// @prop {Number} hover-elevation [12] - The elevation level, between 0-24, to be used for the hover state.
|
|
269
|
+
/// @prop {Number} focus-elevation [12] - The elevation level, between 0-24, to be used for the focus state.
|
|
270
|
+
/// @prop {Number} border-radius [28px] - The border radius used for the floating button. Can be a fraction between 0 and 1, pixels, or percent.
|
|
271
|
+
/// @requires {Map} $material-raised-button
|
|
272
|
+
/// @requires {Map} $material-fab-elevation
|
|
273
|
+
$material-fab-button: extend(
|
|
274
|
+
$material-raised-button,
|
|
275
|
+
$material-fab-elevation,
|
|
276
|
+
(
|
|
277
|
+
selector: '[igxButton="fab"], .igx-button--fab',
|
|
278
|
+
border-radius: rem(28px),
|
|
279
|
+
)
|
|
280
|
+
);
|
|
281
|
+
|
|
282
|
+
/// @type {Map}
|
|
283
|
+
/// @prop {Color} background [transparent] - The background color of the an icon button.
|
|
284
|
+
/// @prop {Map} foreground [color: ('gray', 900)] - The icon color of an icon button.
|
|
285
|
+
/// @prop {Map} hover-background [color: ('gray', 100)] - The hover background color of an icon button.
|
|
286
|
+
/// @prop {Color} hover-foreground [transparent] - The hover icon color of an icon button.
|
|
287
|
+
/// @prop {Map} focus-background [color: ('gray', 200] - The focus background color an icon button.
|
|
288
|
+
/// @prop {Map} focus-foreground [color: ('gray', 900)] - The focus icon color of an icon button.
|
|
289
|
+
/// @prop {Map} focus-visible-background [color: ('gray', 200] - The focus-visible background color an icon button.
|
|
290
|
+
/// @prop {Map} focus-visible-foreground [color: ('gray', 900)] - The focus-visible icon color of an icon button.
|
|
291
|
+
/// @prop {Map} active-background [color: ('gray', 200] - The active background color an icon button.
|
|
292
|
+
/// @prop {Map} active-foreground [color: ('gray', 900)] - The active icon color of an icon button.
|
|
293
|
+
/// @prop {Color} disabled-background [transparent] - The disabled background color an icon button.
|
|
294
|
+
/// @prop {Map} focus-border-color [color: ('gray', 400)] - The focus border color of the button.
|
|
295
|
+
/// @prop {Map} focus-visible-border-color [color: ('gray', 400)] - The focus-visible border color of the button.
|
|
296
|
+
/// @prop {Map} active-border-color [color: ('gray', 400)] - The active border color of the button.
|
|
297
|
+
/// @prop {Number} border-radius [20px] - The border radius used for the floating button. Can be a fraction between 0 and 1, pixels, or percent.
|
|
298
|
+
/// @requires {Map} $material-base-button
|
|
299
|
+
/// @requires {Map} $material-ib-elevation
|
|
300
|
+
$material-icon-button: extend(
|
|
301
|
+
$material-base-button,
|
|
302
|
+
$material-ib-elevation,
|
|
303
|
+
(
|
|
304
|
+
selector: '[igxButton="icon"], .igx-button--icon',
|
|
305
|
+
background: transparent,
|
|
306
|
+
foreground: (
|
|
307
|
+
color: (
|
|
308
|
+
'gray',
|
|
309
|
+
900,
|
|
310
|
+
),
|
|
311
|
+
),
|
|
312
|
+
hover-background: transparent,
|
|
313
|
+
hover-foreground: (
|
|
314
|
+
color: (
|
|
315
|
+
'gray',
|
|
316
|
+
900,
|
|
317
|
+
),
|
|
318
|
+
),
|
|
319
|
+
focus-background: (
|
|
320
|
+
color: (
|
|
321
|
+
'gray',
|
|
322
|
+
200,
|
|
323
|
+
),
|
|
324
|
+
),
|
|
325
|
+
focus-foreground: (
|
|
326
|
+
color: (
|
|
327
|
+
'gray',
|
|
328
|
+
900,
|
|
329
|
+
),
|
|
330
|
+
),
|
|
331
|
+
focus-visible-background: (
|
|
332
|
+
color: (
|
|
333
|
+
'gray',
|
|
334
|
+
200,
|
|
335
|
+
),
|
|
336
|
+
),
|
|
337
|
+
focus-visible-foreground: (
|
|
338
|
+
color: (
|
|
339
|
+
'gray',
|
|
340
|
+
900,
|
|
341
|
+
),
|
|
342
|
+
),
|
|
343
|
+
active-background: (
|
|
344
|
+
color: (
|
|
345
|
+
'gray',
|
|
346
|
+
200,
|
|
347
|
+
),
|
|
348
|
+
),
|
|
349
|
+
active-foreground: (
|
|
350
|
+
color: (
|
|
351
|
+
'gray',
|
|
352
|
+
900,
|
|
353
|
+
),
|
|
354
|
+
),
|
|
355
|
+
disabled-background: transparent,
|
|
356
|
+
active-border-color: (
|
|
357
|
+
color: (
|
|
358
|
+
'gray',
|
|
359
|
+
400,
|
|
360
|
+
),
|
|
361
|
+
),
|
|
362
|
+
focus-border-color: (
|
|
363
|
+
color: (
|
|
364
|
+
'gray',
|
|
365
|
+
400,
|
|
366
|
+
),
|
|
367
|
+
),
|
|
368
|
+
focus-visible-border-color: (
|
|
369
|
+
color: (
|
|
370
|
+
'gray',
|
|
371
|
+
400,
|
|
372
|
+
),
|
|
373
|
+
),
|
|
374
|
+
border-radius: rem(20px),
|
|
375
|
+
)
|
|
376
|
+
);
|
|
377
|
+
|
|
378
|
+
/// Generates a light material button schema.
|
|
379
|
+
/// @type {Map}
|
|
380
|
+
/// @requires {Map} $material-flat-button
|
|
381
|
+
/// @requires {Map} $material-outlined-button
|
|
382
|
+
/// @requires {Map} $material-raised-button
|
|
383
|
+
/// @requires {Map} $material-fab-button
|
|
384
|
+
/// @requires {Map} $material-icon-button
|
|
385
|
+
$light-button: (
|
|
386
|
+
flat: $material-flat-button,
|
|
387
|
+
outlined: $material-outlined-button,
|
|
388
|
+
raised: $material-raised-button,
|
|
389
|
+
fab: $material-fab-button,
|
|
390
|
+
icon: $material-icon-button,
|
|
391
|
+
);
|
|
392
|
+
|
|
393
|
+
/// @type {Map}
|
|
394
|
+
/// @requires {Map} $material-base-button
|
|
395
|
+
/// @requires {Map} $flat-elevation-button
|
|
396
|
+
/// @prop {Map} disabled-background [color: ('gray', 200)] - The disabled background color of the button.
|
|
397
|
+
/// @prop {Map} disabled-foreground [color: ('gray', 400)] - The disabled foreground color of the button.
|
|
398
|
+
$fluent-base-button: extend(
|
|
399
|
+
$material-base-button,
|
|
400
|
+
$flat-elevation-button,
|
|
401
|
+
(
|
|
402
|
+
disabled-background: (
|
|
403
|
+
color: (
|
|
404
|
+
'gray',
|
|
405
|
+
200,
|
|
406
|
+
),
|
|
407
|
+
),
|
|
408
|
+
disabled-foreground: (
|
|
409
|
+
color: (
|
|
410
|
+
'gray',
|
|
411
|
+
400,
|
|
412
|
+
),
|
|
413
|
+
),
|
|
414
|
+
)
|
|
415
|
+
);
|
|
416
|
+
|
|
417
|
+
/// @type {Map}
|
|
418
|
+
/// @prop {Map} focus-visible-border-color [color: ('gray', 800)] - The focus-visible border color of a flat button.
|
|
419
|
+
/// @prop {Map} foreground [color: ('gray', 900)] - The idle text color of a flat button.
|
|
420
|
+
/// @prop {Color} hover-background [transparent] - The hover background color of a flat button.
|
|
421
|
+
/// @prop {Color} focus-background [transparent] - The focus background color of a flat button.
|
|
422
|
+
/// @prop {Color} focus-visible-background [transparent] - The focus-visible background color of a flat button.
|
|
423
|
+
/// @prop {Color} focus-visible-foreground [color: ('gray', 800)] - The focus-visible text color of a flat button.
|
|
424
|
+
/// @prop {Map} hover-foreground [color: ('primary', 500)] - The hover text color of a flat button.
|
|
425
|
+
/// @prop {Map} active-foreground [color: ('gray', 900)] - The active text color of a flat button.
|
|
426
|
+
/// @prop {Color} disabled-background [transparent] - The disabled background color of a flat button.
|
|
427
|
+
/// @prop {Number} border-radius [0] - The border radius used for flat button. Can be a fraction between 0 and 1, pixels, or percent.
|
|
428
|
+
/// @requires {Map} $material-flat-button
|
|
429
|
+
/// @requires {Map} $fluent-base-button
|
|
430
|
+
$fluent-flat-button: extend(
|
|
431
|
+
$material-flat-button,
|
|
432
|
+
$fluent-base-button,
|
|
433
|
+
(
|
|
434
|
+
foreground: (
|
|
435
|
+
color: (
|
|
436
|
+
'gray',
|
|
437
|
+
900,
|
|
438
|
+
),
|
|
439
|
+
),
|
|
440
|
+
hover-background: transparent,
|
|
441
|
+
focus-background: transparent,
|
|
442
|
+
focus-visible-background: transparent,
|
|
443
|
+
active-background: transparent,
|
|
444
|
+
focus-visible-border-color: (
|
|
445
|
+
color: (
|
|
446
|
+
'gray',
|
|
447
|
+
800,
|
|
448
|
+
),
|
|
449
|
+
),
|
|
450
|
+
hover-foreground: (
|
|
451
|
+
color: (
|
|
452
|
+
'primary',
|
|
453
|
+
500,
|
|
454
|
+
),
|
|
455
|
+
),
|
|
456
|
+
focus-visible-foreground: (
|
|
457
|
+
color: (
|
|
458
|
+
'gray',
|
|
459
|
+
800,
|
|
460
|
+
),
|
|
461
|
+
),
|
|
462
|
+
active-foreground: (
|
|
463
|
+
color: (
|
|
464
|
+
'gray',
|
|
465
|
+
900,
|
|
466
|
+
),
|
|
467
|
+
),
|
|
468
|
+
disabled-background: transparent,
|
|
469
|
+
border-radius: rem(0),
|
|
470
|
+
)
|
|
471
|
+
);
|
|
472
|
+
|
|
473
|
+
/// @type {Map}
|
|
474
|
+
/// @prop {Map} border-color [color: ('gray', 800)] - The border color of an outlined button.
|
|
475
|
+
/// @prop {Map} hover-border-color [color: ('gray', 800)] - The hover border color of an outlined button.
|
|
476
|
+
/// @prop {Map} focus-border-color [color: ('gray', 800)] - The focus border color of an outlined button.
|
|
477
|
+
/// @prop {Map} focus-visible-border-color [color: ('gray', 800)] - The focus-visible border color of an outlined button.
|
|
478
|
+
/// @prop {Map} active-border-color [color: ('gray', 800)] - The active border color of an outlined button.
|
|
479
|
+
/// @prop {Map} foreground [color: ('gray', 900)] - The idle text color of an outlined button.
|
|
480
|
+
/// @prop {Map} hover-background [color: ('gray', 100)] - The hover background color of an outlined button.
|
|
481
|
+
/// @prop {Map} hover-foreground [color: ('gray', 900)] - The hover text color of an outlined button.
|
|
482
|
+
/// @prop {Map} focus-background [color: ('gray', 100)] - The focus background color of an outlined button.
|
|
483
|
+
/// @prop {Map} focus-foreground [color: ('gray', 900)] - The focus text color of an outlined button.
|
|
484
|
+
/// @prop {Color} focus-visible-background [transparent] - The focus-visible background color of an outlined button.
|
|
485
|
+
/// @prop {Map} focus-visible-foreground [color: ('gray', 900)] - The focus-visible text color of an outlined button.
|
|
486
|
+
/// @prop {Map} active-background [color: ('gray', 100)] - The active background color of an outlined button.
|
|
487
|
+
/// @prop {Map} active-foreground [color: ('gray', 900)] - The active text color of an outlined button.
|
|
488
|
+
/// @prop {Map} disabled-background [color: ('gray', 200)] - The disabled background color of an outlined button.
|
|
489
|
+
/// @prop {Map} disabled-foreground [color: ('gray', 400, .5)] - The disabled foreground color of an outlined button.
|
|
490
|
+
/// @prop {Number} border-radius [2px] - The border radius used for outlined button.
|
|
491
|
+
/// @requires {Map} $material-outlined-button
|
|
492
|
+
/// @requires {Map} $fluent-base-button
|
|
493
|
+
$fluent-outlined-button: extend(
|
|
494
|
+
$material-outlined-button,
|
|
495
|
+
$fluent-base-button,
|
|
496
|
+
(
|
|
497
|
+
border-color: (
|
|
498
|
+
color: (
|
|
499
|
+
'gray',
|
|
500
|
+
800,
|
|
501
|
+
),
|
|
502
|
+
),
|
|
503
|
+
hover-border-color: (
|
|
504
|
+
color: (
|
|
505
|
+
'gray',
|
|
506
|
+
800,
|
|
507
|
+
),
|
|
508
|
+
),
|
|
509
|
+
focus-border-color: (
|
|
510
|
+
color: (
|
|
511
|
+
'gray',
|
|
512
|
+
800,
|
|
513
|
+
),
|
|
514
|
+
),
|
|
515
|
+
focus-visible-border-color: (
|
|
516
|
+
color: (
|
|
517
|
+
'gray',
|
|
518
|
+
800,
|
|
519
|
+
),
|
|
520
|
+
),
|
|
521
|
+
active-border-color: (
|
|
522
|
+
color: (
|
|
523
|
+
'gray',
|
|
524
|
+
800,
|
|
525
|
+
),
|
|
526
|
+
),
|
|
527
|
+
foreground: (
|
|
528
|
+
color: (
|
|
529
|
+
'gray',
|
|
530
|
+
900,
|
|
531
|
+
),
|
|
532
|
+
),
|
|
533
|
+
hover-background: (
|
|
534
|
+
color: (
|
|
535
|
+
'gray',
|
|
536
|
+
200,
|
|
537
|
+
),
|
|
538
|
+
),
|
|
539
|
+
hover-foreground: (
|
|
540
|
+
color: (
|
|
541
|
+
'gray',
|
|
542
|
+
900,
|
|
543
|
+
),
|
|
544
|
+
),
|
|
545
|
+
focus-background: (
|
|
546
|
+
color: (
|
|
547
|
+
'gray',
|
|
548
|
+
100,
|
|
549
|
+
),
|
|
550
|
+
),
|
|
551
|
+
focus-foreground: (
|
|
552
|
+
color: (
|
|
553
|
+
'gray',
|
|
554
|
+
900,
|
|
555
|
+
),
|
|
556
|
+
),
|
|
557
|
+
focus-visible-background: transparent,
|
|
558
|
+
focus-visible-foreground: (
|
|
559
|
+
color: (
|
|
560
|
+
'gray',
|
|
561
|
+
900,
|
|
562
|
+
),
|
|
563
|
+
),
|
|
564
|
+
active-background: (
|
|
565
|
+
color: (
|
|
566
|
+
'gray',
|
|
567
|
+
300,
|
|
568
|
+
),
|
|
569
|
+
),
|
|
570
|
+
active-foreground: (
|
|
571
|
+
contrast-color: (
|
|
572
|
+
'gray',
|
|
573
|
+
300,
|
|
574
|
+
),
|
|
575
|
+
),
|
|
576
|
+
disabled-background: (
|
|
577
|
+
color: (
|
|
578
|
+
'gray',
|
|
579
|
+
200,
|
|
580
|
+
),
|
|
581
|
+
),
|
|
582
|
+
disabled-foreground: (
|
|
583
|
+
color: (
|
|
584
|
+
'gray',
|
|
585
|
+
400,
|
|
586
|
+
0.5,
|
|
587
|
+
),
|
|
588
|
+
),
|
|
589
|
+
border-radius: rem(2px),
|
|
590
|
+
)
|
|
591
|
+
);
|
|
592
|
+
|
|
593
|
+
/// @type {Map}
|
|
594
|
+
/// @prop {Map} border-color [contrast-color: ('gray', 900)] - The border color of a raised button.
|
|
595
|
+
/// @prop {Map} hover-border-color [contrast-color: ('gray', 900)] - The hover border color of a raised button.
|
|
596
|
+
/// @prop {Map} focus-border-color [contrast-color: ('gray', 900)] - The focus border color of a raised button.
|
|
597
|
+
/// @prop {Map} focus-visible-border-color [contrast-color: ('gray', 900)] - The focus-visible border color of a raised button.
|
|
598
|
+
/// @prop {Map} active-border-color [contrast-color: ('gray', 900)] - The active border color of a raised button.
|
|
599
|
+
/// @prop {Map} background [color: ('primary', 500)] - The background color of an raised button.
|
|
600
|
+
/// @prop {Map} foreground [contrast-color: ('primary', 900] - The idle text color of a raised button.
|
|
601
|
+
/// @prop {Map} hover-background [color: ('primary', 600)] - The hover background of a raised button.
|
|
602
|
+
/// @prop {Map} hover-foreground [contrast-color: ('primary', 900)] - The hover text color of a raised button.
|
|
603
|
+
/// @prop {Map} focus-background [color: ('primary', 600)] - The focus background color of a raised button.
|
|
604
|
+
/// @prop {Map} focus-foreground [contrast-color: ('primary', 900)] - The focus text color of a raised button.
|
|
605
|
+
/// @prop {Map} focus-visible-background [color: ('primary', 600)] - The focus-visible background color of a raised button.
|
|
606
|
+
/// @prop {Map} focus-visible-foreground [contrast-color: ('primary', 900)] - The focus-visible text color of a raised button.
|
|
607
|
+
/// @prop {Map} active-background [color: ('primary', 800)] - The active background color of a raised button.
|
|
608
|
+
/// @prop {Map} active-foreground [contrast-color: ('primary', 900)] - The active text color of a raised button.
|
|
609
|
+
/// @prop {Number} resting-elevation [0] - The elevation level, between 0-24, to be used for the resting state.
|
|
610
|
+
/// @prop {Number} hover-elevation [0] - The elevation level, between 0-24, to be used for the hover state.
|
|
611
|
+
/// @prop {Number} focus-elevation [0] - The elevation level, between 0-24, to be used for the focus state.
|
|
612
|
+
/// @prop {Number} border-radius [2px] - The border radius used for raised button. Can be a fraction between 0 and 1, pixels, or percent.
|
|
613
|
+
/// @requires {Map} $material-raised-button
|
|
614
|
+
/// @requires {Map} $fluent-base-button
|
|
615
|
+
$fluent-raised-button: extend(
|
|
616
|
+
$material-raised-button,
|
|
617
|
+
$fluent-base-button,
|
|
618
|
+
(
|
|
619
|
+
border-color: (
|
|
620
|
+
color: (
|
|
621
|
+
'primary',
|
|
622
|
+
500,
|
|
623
|
+
),
|
|
624
|
+
),
|
|
625
|
+
hover-border-color: (
|
|
626
|
+
color: (
|
|
627
|
+
'primary',
|
|
628
|
+
600,
|
|
629
|
+
),
|
|
630
|
+
),
|
|
631
|
+
focus-border-color: (
|
|
632
|
+
color: (
|
|
633
|
+
'primary',
|
|
634
|
+
600,
|
|
635
|
+
),
|
|
636
|
+
),
|
|
637
|
+
focus-visible-border-color: (
|
|
638
|
+
color: (
|
|
639
|
+
'primary',
|
|
640
|
+
600,
|
|
641
|
+
),
|
|
642
|
+
),
|
|
643
|
+
active-border-color: (
|
|
644
|
+
color: (
|
|
645
|
+
'primary',
|
|
646
|
+
800,
|
|
647
|
+
),
|
|
648
|
+
),
|
|
649
|
+
background: (
|
|
650
|
+
color: (
|
|
651
|
+
'primary',
|
|
652
|
+
500,
|
|
653
|
+
),
|
|
654
|
+
),
|
|
655
|
+
foreground: (
|
|
656
|
+
contrast-color: (
|
|
657
|
+
'primary',
|
|
658
|
+
900,
|
|
659
|
+
),
|
|
660
|
+
),
|
|
661
|
+
hover-background: (
|
|
662
|
+
color: (
|
|
663
|
+
'primary',
|
|
664
|
+
600,
|
|
665
|
+
),
|
|
666
|
+
),
|
|
667
|
+
hover-foreground: (
|
|
668
|
+
contrast-color: (
|
|
669
|
+
'primary',
|
|
670
|
+
900,
|
|
671
|
+
),
|
|
672
|
+
),
|
|
673
|
+
focus-background: (
|
|
674
|
+
color: (
|
|
675
|
+
'primary',
|
|
676
|
+
600,
|
|
677
|
+
),
|
|
678
|
+
),
|
|
679
|
+
focus-foreground: (
|
|
680
|
+
contrast-color: (
|
|
681
|
+
'primary',
|
|
682
|
+
900,
|
|
683
|
+
),
|
|
684
|
+
),
|
|
685
|
+
focus-visible-background: (
|
|
686
|
+
color: (
|
|
687
|
+
'primary',
|
|
688
|
+
600,
|
|
689
|
+
),
|
|
690
|
+
),
|
|
691
|
+
focus-visible-foreground: (
|
|
692
|
+
contrast-color: (
|
|
693
|
+
'primary',
|
|
694
|
+
900,
|
|
695
|
+
),
|
|
696
|
+
),
|
|
697
|
+
active-background: (
|
|
698
|
+
color: (
|
|
699
|
+
'primary',
|
|
700
|
+
800,
|
|
701
|
+
),
|
|
702
|
+
),
|
|
703
|
+
active-foreground: (
|
|
704
|
+
contrast-color: (
|
|
705
|
+
'primary',
|
|
706
|
+
900,
|
|
707
|
+
),
|
|
708
|
+
),
|
|
709
|
+
border-radius: rem(2px),
|
|
710
|
+
)
|
|
711
|
+
);
|
|
712
|
+
|
|
713
|
+
/// @type {Map}
|
|
714
|
+
/// @prop {Map} border-color [contrast: ('gray', 900)] - The border color of a fab button.
|
|
715
|
+
/// @prop {Map} hover-border-color [contrast-color: ('gray', 900)] - The hover border color of a fab button.
|
|
716
|
+
/// @prop {Map} focus-border-color [contrast-color: ('gray', 900)] - The focus border color of a fab button.
|
|
717
|
+
/// @prop {Map} focus-visible-border-color [contrast-color: ('gray', 900)] - The focus-visible border color of a fab button.
|
|
718
|
+
/// @prop {Map} active-border-color [contrast-color: ('gray', 900)] - The active border color of a fab button.
|
|
719
|
+
/// @prop {Number} resting-elevation [0] - The elevation level, between 0-24, to be used for the resting state.
|
|
720
|
+
/// @prop {Number} hover-elevation [0] - The elevation level, between 0-24, to be used for the hover state.
|
|
721
|
+
/// @prop {Number} focus-elevation [0] - The elevation level, between 0-24, to be used for the focus state.
|
|
722
|
+
/// @prop {Number} border-radius [14px] - The border radius used for fab button.
|
|
723
|
+
/// @requires {Map} $fluent-base-button
|
|
724
|
+
/// @requires {Map} $fluent-raised-button
|
|
725
|
+
$fluent-fab-button: extend(
|
|
726
|
+
$fluent-base-button,
|
|
727
|
+
$fluent-raised-button,
|
|
728
|
+
(
|
|
729
|
+
selector: '[igxButton="fab"], .igx-button--fab',
|
|
730
|
+
border-color: (
|
|
731
|
+
contrast-color: (
|
|
732
|
+
'gray',
|
|
733
|
+
900,
|
|
734
|
+
),
|
|
735
|
+
),
|
|
736
|
+
hover-border-color: (
|
|
737
|
+
contrast-color: (
|
|
738
|
+
'gray',
|
|
739
|
+
900,
|
|
740
|
+
),
|
|
741
|
+
),
|
|
742
|
+
focus-border-color: (
|
|
743
|
+
contrast-color: (
|
|
744
|
+
'gray',
|
|
745
|
+
900,
|
|
746
|
+
),
|
|
747
|
+
),
|
|
748
|
+
focus-visible-border-color: (
|
|
749
|
+
contrast-color: (
|
|
750
|
+
'gray',
|
|
751
|
+
900,
|
|
752
|
+
),
|
|
753
|
+
),
|
|
754
|
+
active-border-color: (
|
|
755
|
+
contrast-color: (
|
|
756
|
+
'gray',
|
|
757
|
+
900,
|
|
758
|
+
),
|
|
759
|
+
),
|
|
760
|
+
border-radius: rem(14px),
|
|
761
|
+
)
|
|
762
|
+
);
|
|
763
|
+
|
|
764
|
+
/// @type {Map}
|
|
765
|
+
/// @prop {Color} border-color [transparent] - The border color of an icon button.
|
|
766
|
+
/// @prop {Map} hover-border-color [color: ('gray', 500)] - The hover border color of an icon button.
|
|
767
|
+
/// @prop {Map} focus-border-color [color: ('gray', 500)] - The focus border color of an icon button.
|
|
768
|
+
/// @prop {Map} focus-visible-border-color [color: ('gray', 500)] - The focus-visible border color of an icon button.
|
|
769
|
+
/// @prop {Map} active-border-color [color: ('gray', 500)] - The active border color of an icon button.
|
|
770
|
+
/// @prop {Map} hover-background [color: ('gray', 200)] - The hover background color of an icon button.
|
|
771
|
+
/// @prop {Map} hover-foreground [contrast-color: ('primary')] - The hover text color of a an icon button.
|
|
772
|
+
/// @prop {Color} focus-background [transparent] - The focus icon color of an icon button.
|
|
773
|
+
/// @prop {Map} focus-foreground [contrast-color: ('primary')] - The focus text color of an icon button.
|
|
774
|
+
/// @prop {Color} focus-visible-background [transparent] - The focus-visible icon color of an icon button.
|
|
775
|
+
/// @prop {Map} focus-visible-foreground [contrast-color: ('primary')] - The focus-visible text color of an icon button.
|
|
776
|
+
/// @prop {Map} active-background [color: ('gray', 300)] - The active background color of an icon button.
|
|
777
|
+
/// @prop {Map} active-foreground [contrast-color: ('primary')] - The active text color of an icon button.
|
|
778
|
+
/// @prop {Map} disabled-background [color: ('gray', 100)] - The disabled background color of an icon button.
|
|
779
|
+
/// @prop {Map} disabled-foreground [color: ('gray', 400)] - The disabled foreground color of an icon button.
|
|
780
|
+
/// @prop {Map} disabled-border-color [color: ('gray', 100), lighten: 35%] - The disabled focused border color of an icon button.
|
|
781
|
+
/// @prop {Number} border-radius [0] - The border radius used for icon button. Can be a fraction between 0 and 1, pixels, or percent.
|
|
782
|
+
/// @requires {Map} $material-icon-button
|
|
783
|
+
/// @requires {Map} $fluent-base-button
|
|
784
|
+
$fluent-icon-button: extend(
|
|
785
|
+
$material-icon-button,
|
|
786
|
+
$fluent-base-button,
|
|
787
|
+
(
|
|
788
|
+
foreground: (
|
|
789
|
+
color: (
|
|
790
|
+
'primary',
|
|
791
|
+
),
|
|
792
|
+
),
|
|
793
|
+
focus-visible-border-color: (
|
|
794
|
+
color: (
|
|
795
|
+
'gray',
|
|
796
|
+
500,
|
|
797
|
+
),
|
|
798
|
+
),
|
|
799
|
+
hover-background: (
|
|
800
|
+
color: (
|
|
801
|
+
'gray',
|
|
802
|
+
200,
|
|
803
|
+
),
|
|
804
|
+
),
|
|
805
|
+
hover-foreground: (
|
|
806
|
+
color: (
|
|
807
|
+
'primary',
|
|
808
|
+
),
|
|
809
|
+
),
|
|
810
|
+
focus-background: transparent,
|
|
811
|
+
focus-foreground: (
|
|
812
|
+
color: (
|
|
813
|
+
'primary',
|
|
814
|
+
),
|
|
815
|
+
),
|
|
816
|
+
focus-visible-background: transparent,
|
|
817
|
+
focus-visible-foreground: (
|
|
818
|
+
color: (
|
|
819
|
+
'primary',
|
|
820
|
+
),
|
|
821
|
+
),
|
|
822
|
+
active-background: (
|
|
823
|
+
color: (
|
|
824
|
+
'gray',
|
|
825
|
+
300,
|
|
826
|
+
),
|
|
827
|
+
),
|
|
828
|
+
active-foreground: (
|
|
829
|
+
color: (
|
|
830
|
+
'primary',
|
|
831
|
+
),
|
|
832
|
+
),
|
|
833
|
+
disabled-background: (
|
|
834
|
+
color: (
|
|
835
|
+
'gray',
|
|
836
|
+
100,
|
|
837
|
+
),
|
|
838
|
+
),
|
|
839
|
+
disabled-foreground: (
|
|
840
|
+
color: (
|
|
841
|
+
'gray',
|
|
842
|
+
400,
|
|
843
|
+
),
|
|
844
|
+
),
|
|
845
|
+
disabled-border-color: (
|
|
846
|
+
color: (
|
|
847
|
+
'gray',
|
|
848
|
+
100,
|
|
849
|
+
),
|
|
850
|
+
),
|
|
851
|
+
border-radius: rem(0),
|
|
852
|
+
)
|
|
853
|
+
);
|
|
854
|
+
|
|
855
|
+
/// Generates a light fluent button schema.
|
|
856
|
+
/// @type {Map}
|
|
857
|
+
/// @requires {Map} $fluent-flat-button
|
|
858
|
+
/// @requires {Map} $fluent-outlined-button
|
|
859
|
+
/// @requires {Map} $fluent-raised-button
|
|
860
|
+
/// @requires {Map} $fluent-fab-button
|
|
861
|
+
/// @requires {Map} $fluent-icon-button
|
|
862
|
+
$fluent-button: (
|
|
863
|
+
flat: $fluent-flat-button,
|
|
864
|
+
outlined: $fluent-outlined-button,
|
|
865
|
+
raised: $fluent-raised-button,
|
|
866
|
+
fab: $fluent-fab-button,
|
|
867
|
+
icon: $fluent-icon-button,
|
|
868
|
+
);
|
|
869
|
+
|
|
870
|
+
/// @type {Map}
|
|
871
|
+
/// @prop {Map} disabled-background [color: ('primary', 50)] - The disabled background color of the button.
|
|
872
|
+
/// @prop {Map} disabled-foreground [color: ('primary', 200)] - The disabled foreground color of the button.
|
|
873
|
+
/// @requires {Map} $material-base-button
|
|
874
|
+
/// @requires {Map} $flat-elevation-button
|
|
875
|
+
$bootstrap-base-button: extend(
|
|
876
|
+
$material-base-button,
|
|
877
|
+
$flat-elevation-button,
|
|
878
|
+
(
|
|
879
|
+
disabled-foreground: (
|
|
880
|
+
color: (
|
|
881
|
+
'primary',
|
|
882
|
+
200,
|
|
883
|
+
),
|
|
884
|
+
),
|
|
885
|
+
disabled-background: (
|
|
886
|
+
color: (
|
|
887
|
+
'primary',
|
|
888
|
+
50,
|
|
889
|
+
),
|
|
890
|
+
),
|
|
891
|
+
)
|
|
892
|
+
);
|
|
893
|
+
|
|
894
|
+
/// @type {Map}
|
|
895
|
+
/// @prop {Map} foreground [color: ('primary', 500)] - The idle text color of a flat button.
|
|
896
|
+
/// @prop {Color} hover-background [transparent] - The hover background color of a flat button.
|
|
897
|
+
/// @prop {Map} hover-foreground [color: ('primary', 800)] - The hover text color of a flat button.
|
|
898
|
+
/// @prop {Map} focus-background [transparent] - The focus background color of a flat button.
|
|
899
|
+
/// @prop {Map} focus-foreground [color: ('primary', 600)] - The focus text color of a flat button.
|
|
900
|
+
/// @prop {Map} focus-visible-background [transparent] - The focus-visible background color of a flat button.
|
|
901
|
+
/// @prop {Map} focus-visible-foreground [color: ('primary', 600)] - The focus-visible text color of a flat button.
|
|
902
|
+
/// @prop {Map} active-background [transparent] - The active background color of a flat button.
|
|
903
|
+
/// @prop {Map} active-foreground [color: ('primary', 600)] - The active background color of a flat button.
|
|
904
|
+
/// @prop {Color} disabled-background [transparent] - The disabled background color of a flat button.
|
|
905
|
+
/// @prop {Number} border-radius [4px] - The border radius used for flat button.
|
|
906
|
+
/// @requires {Map} $material-flat-button
|
|
907
|
+
/// @requires {Map} $bootstrap-base-button
|
|
908
|
+
$bootstrap-flat-button: extend(
|
|
909
|
+
$material-flat-button,
|
|
910
|
+
$bootstrap-base-button,
|
|
911
|
+
(
|
|
912
|
+
foreground: (
|
|
913
|
+
color: (
|
|
914
|
+
'primary',
|
|
915
|
+
500,
|
|
916
|
+
),
|
|
917
|
+
),
|
|
918
|
+
hover-background: transparent,
|
|
919
|
+
hover-foreground: (
|
|
920
|
+
color: (
|
|
921
|
+
'primary',
|
|
922
|
+
800,
|
|
923
|
+
),
|
|
924
|
+
),
|
|
925
|
+
focus-background: transparent,
|
|
926
|
+
focus-foreground: (
|
|
927
|
+
color: (
|
|
928
|
+
'primary',
|
|
929
|
+
600,
|
|
930
|
+
),
|
|
931
|
+
),
|
|
932
|
+
focus-visible-background: transparent,
|
|
933
|
+
focus-visible-foreground: (
|
|
934
|
+
color: (
|
|
935
|
+
'primary',
|
|
936
|
+
600,
|
|
937
|
+
),
|
|
938
|
+
),
|
|
939
|
+
active-background: transparent,
|
|
940
|
+
active-foreground: (
|
|
941
|
+
color: (
|
|
942
|
+
'primary',
|
|
943
|
+
600,
|
|
944
|
+
),
|
|
945
|
+
),
|
|
946
|
+
disabled-background: transparent,
|
|
947
|
+
shadow-color: (
|
|
948
|
+
color: (
|
|
949
|
+
'primary',
|
|
950
|
+
200,
|
|
951
|
+
0.5,
|
|
952
|
+
),
|
|
953
|
+
),
|
|
954
|
+
)
|
|
955
|
+
);
|
|
956
|
+
|
|
957
|
+
/// @type {Map}
|
|
958
|
+
/// @prop {Map} foreground [color: ('primary', 500)] - The idle text color of an outlined button.
|
|
959
|
+
/// @prop {Map} hover-background [color: ('primary', 500)] - The hover background color of an outlined button.
|
|
960
|
+
/// @prop {Color} hover-foreground [contrast-color: ('primary', 600)] - The hover text color of an outlined button.
|
|
961
|
+
/// @prop {Color} focus-background [transparent] - The focus background color of an outlined button.
|
|
962
|
+
/// @prop {Color} focus-foreground [contrast-color: ('primary', 500)] - The focus text color of an outlined button.
|
|
963
|
+
/// @prop {Color} focus-visible-background [transparent] - The focus-visible background color of an outlined button.
|
|
964
|
+
/// @prop {Color} focus-visible-foreground [color: ('primary', 500)] - The focus-visible text color of an outlined button.
|
|
965
|
+
/// @prop {Map} active-background [color: ('primary', 700)] - The active background color of an outlined button.
|
|
966
|
+
/// @prop {Map} active-foreground [contrast-color: ('primary', 700)] - The active text color of an outlined button.
|
|
967
|
+
/// @prop {Map} border-color [color: ('primary', 500)] - The border color of an outlined button.
|
|
968
|
+
/// @prop {Map} hover-border-color [color: ('primary', 500)] - The hover border color of an outlined button.
|
|
969
|
+
/// @prop {Map} focus-border-color [color: ('primary', 500)] - The focus border color of an outlined button.
|
|
970
|
+
/// @prop {Map} focus-visible-border-color [color: ('primary', 500)] - The focus-visible border color of an outlined button.
|
|
971
|
+
/// @prop {Map} active-border-color [color: ('primary', 500)] - The active border color of an outlined button.
|
|
972
|
+
/// @prop {Map} disabled-border-color [color: ('primary', 50), lighten: 35%] - The disabled focused border color of an outlined button.
|
|
973
|
+
/// @prop {Color} disabled-background [transparent] - The disabled background color of an outlined button.
|
|
974
|
+
/// @prop {Map} shadow-color [color: ('primary', 200, .5)] - The shadow color of an outlined button.
|
|
975
|
+
/// @prop {Number} border-radius [4px] - The border radius used for outlined button.
|
|
976
|
+
/// @requires {Map} $material-outlined-button
|
|
977
|
+
/// @requires {Map} $bootstrap-base-button
|
|
978
|
+
$bootstrap-outlined-button: extend(
|
|
979
|
+
$material-outlined-button,
|
|
980
|
+
$bootstrap-base-button,
|
|
981
|
+
(
|
|
982
|
+
foreground: (
|
|
983
|
+
color: (
|
|
984
|
+
'primary',
|
|
985
|
+
500,
|
|
986
|
+
),
|
|
987
|
+
),
|
|
988
|
+
hover-background: (
|
|
989
|
+
color: (
|
|
990
|
+
'primary',
|
|
991
|
+
500,
|
|
992
|
+
),
|
|
993
|
+
),
|
|
994
|
+
hover-foreground: (
|
|
995
|
+
contrast-color: (
|
|
996
|
+
'primary',
|
|
997
|
+
600,
|
|
998
|
+
),
|
|
999
|
+
),
|
|
1000
|
+
focus-background: transparent,
|
|
1001
|
+
focus-foreground: (
|
|
1002
|
+
color: (
|
|
1003
|
+
'primary',
|
|
1004
|
+
500,
|
|
1005
|
+
),
|
|
1006
|
+
),
|
|
1007
|
+
focus-visible-background: transparent,
|
|
1008
|
+
focus-visible-foreground: (
|
|
1009
|
+
color: (
|
|
1010
|
+
'primary',
|
|
1011
|
+
500,
|
|
1012
|
+
),
|
|
1013
|
+
),
|
|
1014
|
+
active-background: (
|
|
1015
|
+
color: (
|
|
1016
|
+
'primary',
|
|
1017
|
+
700,
|
|
1018
|
+
),
|
|
1019
|
+
),
|
|
1020
|
+
active-foreground: (
|
|
1021
|
+
contrast-color: (
|
|
1022
|
+
'primary',
|
|
1023
|
+
700,
|
|
1024
|
+
),
|
|
1025
|
+
),
|
|
1026
|
+
border-color: (
|
|
1027
|
+
color: (
|
|
1028
|
+
'primary',
|
|
1029
|
+
500,
|
|
1030
|
+
),
|
|
1031
|
+
),
|
|
1032
|
+
hover-border-color: (
|
|
1033
|
+
color: (
|
|
1034
|
+
'primary',
|
|
1035
|
+
500,
|
|
1036
|
+
),
|
|
1037
|
+
),
|
|
1038
|
+
focus-border-color: (
|
|
1039
|
+
color: (
|
|
1040
|
+
'primary',
|
|
1041
|
+
500,
|
|
1042
|
+
),
|
|
1043
|
+
),
|
|
1044
|
+
focus-visible-border-color: (
|
|
1045
|
+
color: (
|
|
1046
|
+
'primary',
|
|
1047
|
+
500,
|
|
1048
|
+
),
|
|
1049
|
+
),
|
|
1050
|
+
active-border-color: (
|
|
1051
|
+
color: (
|
|
1052
|
+
'primary',
|
|
1053
|
+
500,
|
|
1054
|
+
),
|
|
1055
|
+
),
|
|
1056
|
+
disabled-border-color: (
|
|
1057
|
+
color: (
|
|
1058
|
+
'primary',
|
|
1059
|
+
50,
|
|
1060
|
+
),
|
|
1061
|
+
),
|
|
1062
|
+
shadow-color: (
|
|
1063
|
+
color: (
|
|
1064
|
+
'primary',
|
|
1065
|
+
200,
|
|
1066
|
+
0.5,
|
|
1067
|
+
),
|
|
1068
|
+
),
|
|
1069
|
+
disabled-background: transparent,
|
|
1070
|
+
)
|
|
1071
|
+
);
|
|
1072
|
+
|
|
1073
|
+
/// @type {Map}
|
|
1074
|
+
/// @prop {Map} background [color: ('primary', 500)] - The background color of a raised button.
|
|
1075
|
+
/// @prop {Map} foreground [contrast-color: ('primary', 600)] - The idle text color of a raised button.
|
|
1076
|
+
/// @prop {Map} hover-background [color: ('primary', 600)] - The hover background color of an raised button.
|
|
1077
|
+
/// @prop {Color} hover-foreground [contrast-color: ('primary', 600)] - The hover text color of an raised button.
|
|
1078
|
+
/// @prop {Map} focus-background [color: ('primary', 600)] - The focus background color of an raised button.
|
|
1079
|
+
/// @prop {Color} focus-visible-foreground [contrast-color: ('primary', 600)] - The focus-visible text color of an raised button.
|
|
1080
|
+
/// @prop {Map} focus-visible-background [color: ('primary', 600)] - The focus-visible background color of an raised button.
|
|
1081
|
+
/// @prop {Color} focus-foreground [contrast-color: ('primary', 600)] - The focus text color of an raised button.
|
|
1082
|
+
/// @prop {Map} active-background [color: ('primary', 700)] - The active background color of an raised button.
|
|
1083
|
+
/// @prop {Map} active-foreground [contrast-color: ('primary', 700)] - The active text color of an raised button.
|
|
1084
|
+
/// @prop {Map} shadow-color [color: ('primary', 200)] - The shadow color of a raised button.
|
|
1085
|
+
/// @prop {Number} border-radius [4px] - The border radius used for outlined button. Can be a fraction between 0 and 1, pixels, or percent.
|
|
1086
|
+
/// @requires {Map} $material-raised-button
|
|
1087
|
+
/// @requires {Map} $bootstrap-base-button
|
|
1088
|
+
$bootstrap-raised-button: extend(
|
|
1089
|
+
$material-raised-button,
|
|
1090
|
+
$bootstrap-base-button,
|
|
1091
|
+
(
|
|
1092
|
+
background: (
|
|
1093
|
+
color: (
|
|
1094
|
+
'primary',
|
|
1095
|
+
500,
|
|
1096
|
+
),
|
|
1097
|
+
),
|
|
1098
|
+
foreground: (
|
|
1099
|
+
contrast-color: (
|
|
1100
|
+
'primary',
|
|
1101
|
+
600,
|
|
1102
|
+
),
|
|
1103
|
+
),
|
|
1104
|
+
hover-background: (
|
|
1105
|
+
color: (
|
|
1106
|
+
'primary',
|
|
1107
|
+
600,
|
|
1108
|
+
),
|
|
1109
|
+
),
|
|
1110
|
+
hover-foreground: (
|
|
1111
|
+
contrast-color: (
|
|
1112
|
+
'primary',
|
|
1113
|
+
600,
|
|
1114
|
+
),
|
|
1115
|
+
),
|
|
1116
|
+
focus-background: (
|
|
1117
|
+
color: (
|
|
1118
|
+
'primary',
|
|
1119
|
+
600,
|
|
1120
|
+
),
|
|
1121
|
+
),
|
|
1122
|
+
focus-foreground: (
|
|
1123
|
+
contrast-color: (
|
|
1124
|
+
'primary',
|
|
1125
|
+
600,
|
|
1126
|
+
),
|
|
1127
|
+
),
|
|
1128
|
+
focus-visible-background: (
|
|
1129
|
+
color: (
|
|
1130
|
+
'primary',
|
|
1131
|
+
600,
|
|
1132
|
+
),
|
|
1133
|
+
),
|
|
1134
|
+
focus-visible-foreground: (
|
|
1135
|
+
contrast-color: (
|
|
1136
|
+
'primary',
|
|
1137
|
+
600,
|
|
1138
|
+
),
|
|
1139
|
+
),
|
|
1140
|
+
active-background: (
|
|
1141
|
+
color: (
|
|
1142
|
+
'primary',
|
|
1143
|
+
700,
|
|
1144
|
+
),
|
|
1145
|
+
),
|
|
1146
|
+
active-foreground: (
|
|
1147
|
+
contrast-color: (
|
|
1148
|
+
'primary',
|
|
1149
|
+
700,
|
|
1150
|
+
),
|
|
1151
|
+
),
|
|
1152
|
+
shadow-color: (
|
|
1153
|
+
color: (
|
|
1154
|
+
'primary',
|
|
1155
|
+
200,
|
|
1156
|
+
),
|
|
1157
|
+
),
|
|
1158
|
+
)
|
|
1159
|
+
);
|
|
1160
|
+
|
|
1161
|
+
/// @type {Map}
|
|
1162
|
+
/// @prop {Map} background [color: ('primary', 500)] - The background color of a fab button.
|
|
1163
|
+
/// @prop {Map} hover-background [color: ('primary', 600)] - The hover background color of a fab button.
|
|
1164
|
+
/// @prop {Color} hover-foreground [contrast-color: ('primary', 600)] - The hover text color of a fab button.
|
|
1165
|
+
/// @prop {Map} focus-background [color: ('primary', 600)] - The focus background color of a fab button.
|
|
1166
|
+
/// @prop {Color} focus-foreground [contrast-color: ('primary', 600)] - The focus text color of a fab button.
|
|
1167
|
+
/// @prop {Map} focus-visible-background [color: ('primary', 600)] - The focus-visible background color of a fab button.
|
|
1168
|
+
/// @prop {Color} focus-visible-foreground [contrast-color: ('primary', 600)] - The focus-visible text color of a fab button.
|
|
1169
|
+
/// @prop {Map} active-background [color: ('primary', 700)] - The active background color of a fab button.
|
|
1170
|
+
/// @prop {Map} active-foreground [contrast-color: ('primary', 700)] - The active text color of a fab button.
|
|
1171
|
+
/// @prop {Number} border-radius [15px] - The border radius used for outlined button.
|
|
1172
|
+
/// @requires {Map} $material-fab-button
|
|
1173
|
+
/// @requires {Map} $bootstrap-base-button
|
|
1174
|
+
/// @requires {Map} $bootstrap-raised-button
|
|
1175
|
+
$bootstrap-fab-button: extend(
|
|
1176
|
+
$material-fab-button,
|
|
1177
|
+
$bootstrap-base-button,
|
|
1178
|
+
$bootstrap-raised-button,
|
|
1179
|
+
(
|
|
1180
|
+
selector: '[igxButton="fab"], .igx-button--fab',
|
|
1181
|
+
background: (
|
|
1182
|
+
color: (
|
|
1183
|
+
'primary',
|
|
1184
|
+
500,
|
|
1185
|
+
),
|
|
1186
|
+
),
|
|
1187
|
+
hover-background: (
|
|
1188
|
+
color: (
|
|
1189
|
+
'primary',
|
|
1190
|
+
600,
|
|
1191
|
+
),
|
|
1192
|
+
),
|
|
1193
|
+
hover-foreground: (
|
|
1194
|
+
contrast-color: (
|
|
1195
|
+
'primary',
|
|
1196
|
+
600,
|
|
1197
|
+
),
|
|
1198
|
+
),
|
|
1199
|
+
focus-background: (
|
|
1200
|
+
color: (
|
|
1201
|
+
'primary',
|
|
1202
|
+
600,
|
|
1203
|
+
),
|
|
1204
|
+
),
|
|
1205
|
+
focus-foreground: (
|
|
1206
|
+
contrast-color: (
|
|
1207
|
+
'primary',
|
|
1208
|
+
600,
|
|
1209
|
+
),
|
|
1210
|
+
),
|
|
1211
|
+
focus-visible-background: (
|
|
1212
|
+
color: (
|
|
1213
|
+
'primary',
|
|
1214
|
+
600,
|
|
1215
|
+
),
|
|
1216
|
+
),
|
|
1217
|
+
focus-visible-foreground: (
|
|
1218
|
+
contrast-color: (
|
|
1219
|
+
'primary',
|
|
1220
|
+
600,
|
|
1221
|
+
),
|
|
1222
|
+
),
|
|
1223
|
+
active-background: (
|
|
1224
|
+
color: (
|
|
1225
|
+
'primary',
|
|
1226
|
+
700,
|
|
1227
|
+
),
|
|
1228
|
+
),
|
|
1229
|
+
active-foreground: (
|
|
1230
|
+
contrast-color: (
|
|
1231
|
+
'primary',
|
|
1232
|
+
700,
|
|
1233
|
+
),
|
|
1234
|
+
),
|
|
1235
|
+
border-radius: rem(15px),
|
|
1236
|
+
)
|
|
1237
|
+
);
|
|
1238
|
+
|
|
1239
|
+
/// @type {Map}
|
|
1240
|
+
/// @prop {Color} background [transparent] - The background color of a fab button.
|
|
1241
|
+
/// @prop {Color} foreground [color: ('primary', 500)] - The background color of a fab button.
|
|
1242
|
+
/// @prop {Color} hover-background [transparent] - The hover background color of an icon button.
|
|
1243
|
+
/// @prop {Map} hover-foreground [color: ('primary', 600)] - The hover text color of an icon button.
|
|
1244
|
+
/// @prop {Map} focus-background [color: ('gray', 100)] - The focus background color of an icon button.
|
|
1245
|
+
/// @prop {Map} focus-foreground [color: ('primary', 600)] - The focus text color of an icon button.
|
|
1246
|
+
/// @prop {Map} focus-visible-background [color: ('gray', 100)] - The focus-visible background color of an icon button.
|
|
1247
|
+
/// @prop {Map} focus-visible-foreground [color: ('primary', 600)] - The focus-visible text color of an icon button.
|
|
1248
|
+
/// @prop {Map} active-background [color: ('gray', 100)] - The active background color of an icon button.
|
|
1249
|
+
/// @prop {Map} active-foreground [color: ('primary', 600)] - The active text color of an icon button.
|
|
1250
|
+
/// @prop {Color} disabled-background [transparent] - The disabled background color of an outlined button.
|
|
1251
|
+
/// @prop {Map} disabled-foreground [color: ('primary', 100)] - The disabled foreground color of the button.
|
|
1252
|
+
/// @prop {Number} border-radius [4px] - The border radius used for outlined button.
|
|
1253
|
+
/// @requires {Map} $material-icon-button
|
|
1254
|
+
/// @requires {Map} $bootstrap-base-button
|
|
1255
|
+
$bootstrap-icon-button: extend(
|
|
1256
|
+
$bootstrap-base-button,
|
|
1257
|
+
(
|
|
1258
|
+
selector: '[igxButton="icon"], .igx-button--icon',
|
|
1259
|
+
background: transparent,
|
|
1260
|
+
foreground: (
|
|
1261
|
+
color: (
|
|
1262
|
+
'primary',
|
|
1263
|
+
500,
|
|
1264
|
+
),
|
|
1265
|
+
),
|
|
1266
|
+
hover-background: transparent,
|
|
1267
|
+
hover-foreground: (
|
|
1268
|
+
color: (
|
|
1269
|
+
'primary',
|
|
1270
|
+
600,
|
|
1271
|
+
),
|
|
1272
|
+
),
|
|
1273
|
+
focus-background: (
|
|
1274
|
+
color: (
|
|
1275
|
+
'gray',
|
|
1276
|
+
100,
|
|
1277
|
+
),
|
|
1278
|
+
),
|
|
1279
|
+
focus-foreground: (
|
|
1280
|
+
color: (
|
|
1281
|
+
'primary',
|
|
1282
|
+
600,
|
|
1283
|
+
),
|
|
1284
|
+
),
|
|
1285
|
+
focus-visible-background: (
|
|
1286
|
+
color: (
|
|
1287
|
+
'gray',
|
|
1288
|
+
100,
|
|
1289
|
+
),
|
|
1290
|
+
),
|
|
1291
|
+
focus-visible-foreground: (
|
|
1292
|
+
color: (
|
|
1293
|
+
'primary',
|
|
1294
|
+
600,
|
|
1295
|
+
),
|
|
1296
|
+
),
|
|
1297
|
+
active-background: (
|
|
1298
|
+
color: (
|
|
1299
|
+
'gray',
|
|
1300
|
+
100,
|
|
1301
|
+
),
|
|
1302
|
+
),
|
|
1303
|
+
active-foreground: (
|
|
1304
|
+
color: (
|
|
1305
|
+
'primary',
|
|
1306
|
+
600,
|
|
1307
|
+
),
|
|
1308
|
+
),
|
|
1309
|
+
disabled-background: transparent,
|
|
1310
|
+
disabled-foreground: (
|
|
1311
|
+
color: (
|
|
1312
|
+
'primary',
|
|
1313
|
+
100,
|
|
1314
|
+
),
|
|
1315
|
+
),
|
|
1316
|
+
border-radius: rem(4px),
|
|
1317
|
+
)
|
|
1318
|
+
);
|
|
1319
|
+
|
|
1320
|
+
/// Generates a light bootstrap button schema.
|
|
1321
|
+
/// @type {Map}
|
|
1322
|
+
/// @requires {Map} $bootstrap-flat-button
|
|
1323
|
+
/// @requires {Map} $bootstrap-outlined-button
|
|
1324
|
+
/// @requires {Map} $bootstrap-raised-button
|
|
1325
|
+
/// @requires {Map} $bootstrap-fab-button
|
|
1326
|
+
/// @requires {Map} $bootstrap-icon-button
|
|
1327
|
+
$bootstrap-button: (
|
|
1328
|
+
flat: $bootstrap-flat-button,
|
|
1329
|
+
outlined: $bootstrap-outlined-button,
|
|
1330
|
+
raised: $bootstrap-raised-button,
|
|
1331
|
+
fab: $bootstrap-fab-button,
|
|
1332
|
+
icon: $bootstrap-icon-button,
|
|
1333
|
+
);
|
|
1334
|
+
|
|
1335
|
+
/// @type {Map}
|
|
1336
|
+
/// @requires {Map} $material-base-button
|
|
1337
|
+
/// @requires {Map} $flat-elevation-button
|
|
1338
|
+
$indigo-base-button: extend($material-base-button, $flat-elevation-button);
|
|
1339
|
+
|
|
1340
|
+
/// @type {Map}
|
|
1341
|
+
/// @prop {Map} foreground [color: ('gray', 700)] - The idle text color of a flat button.
|
|
1342
|
+
/// @prop {Color} hover-background [transparent] - The hover background color of a flat button.
|
|
1343
|
+
/// @prop {Map} hover-foreground [ color: ('gray', 900)] - The hover text color of a flat button.
|
|
1344
|
+
/// @prop {Color} focus-background [transparent] - The focus background color of a flat button.
|
|
1345
|
+
/// @prop {Map} focus-foreground [color: ('gray', 900)] - The focus text color of a flat button.
|
|
1346
|
+
/// @prop {Color} active-background [transparent] - The active background color of a flat button.
|
|
1347
|
+
/// @prop {Color} active-foreground [color: ('gray', 700)] - The active text color of a flat button.
|
|
1348
|
+
/// @prop {Color} focus-visible-background [transparent] - The focus-visible background color of a flat button.
|
|
1349
|
+
/// @prop {Map} focus-visible-foreground [color: ('gray', 900)] - The focus-visible text color of a flat button.
|
|
1350
|
+
/// @prop {Color} disabled-background [transparent] - The disabled background color of a flat button.
|
|
1351
|
+
/// @prop {Map} shadow-color [color: ('gray', 300)] - The shadow color of a flat button.
|
|
1352
|
+
/// @prop {Number} border-radius [20px] - The border radius used for flat button.
|
|
1353
|
+
/// @requires {Map} $material-flat-button
|
|
1354
|
+
/// @requires {Map} $indigo-base-button
|
|
1355
|
+
$indigo-flat-button: extend(
|
|
1356
|
+
$material-flat-button,
|
|
1357
|
+
$indigo-base-button,
|
|
1358
|
+
(
|
|
1359
|
+
foreground: (
|
|
1360
|
+
color: (
|
|
1361
|
+
'gray',
|
|
1362
|
+
700,
|
|
1363
|
+
),
|
|
1364
|
+
),
|
|
1365
|
+
hover-background: transparent,
|
|
1366
|
+
hover-foreground: (
|
|
1367
|
+
color: (
|
|
1368
|
+
'gray',
|
|
1369
|
+
900,
|
|
1370
|
+
),
|
|
1371
|
+
),
|
|
1372
|
+
focus-background: transparent,
|
|
1373
|
+
focus-foreground: (
|
|
1374
|
+
color: (
|
|
1375
|
+
'gray',
|
|
1376
|
+
900,
|
|
1377
|
+
),
|
|
1378
|
+
),
|
|
1379
|
+
active-background: transparent,
|
|
1380
|
+
active-foreground: (
|
|
1381
|
+
color: (
|
|
1382
|
+
'gray',
|
|
1383
|
+
700,
|
|
1384
|
+
),
|
|
1385
|
+
),
|
|
1386
|
+
focus-visible-background: transparent,
|
|
1387
|
+
focus-visible-foreground: (
|
|
1388
|
+
color: (
|
|
1389
|
+
'gray',
|
|
1390
|
+
900,
|
|
1391
|
+
),
|
|
1392
|
+
),
|
|
1393
|
+
shadow-color: (
|
|
1394
|
+
color: (
|
|
1395
|
+
'gray',
|
|
1396
|
+
300,
|
|
1397
|
+
),
|
|
1398
|
+
),
|
|
1399
|
+
disabled-background: transparent,
|
|
1400
|
+
border-radius: rem(20px),
|
|
1401
|
+
)
|
|
1402
|
+
);
|
|
1403
|
+
|
|
1404
|
+
/// @type {Map}
|
|
1405
|
+
/// @prop {Color} background [transparent] - The background color of a outlined button.
|
|
1406
|
+
/// @prop {Map} foreground [color: ('gray', 700)] - The idle text color of a outlined button.
|
|
1407
|
+
/// @prop {Map} hover-background [color: ('gray', 100)] - The hover background color of a outlined button.
|
|
1408
|
+
/// @prop {Map} hover-foreground [ color: ('gray', 900)] - The hover text color of a outlined button.
|
|
1409
|
+
/// @prop {Color} focus-background [transparent] - The focus background color of a outlined button.
|
|
1410
|
+
/// @prop {Map} focus-foreground [color: ('gray', 900)] - The focus text color of a outlined button.
|
|
1411
|
+
/// @prop {Color} focus-visible-background [transparent] - The focus-visible background color of a outlined button.
|
|
1412
|
+
/// @prop {Map} focus-visible-foreground [color: ('gray', 900)] - The focus-visible text color of a outlined button.
|
|
1413
|
+
/// @prop {Map} border-color [color: 'gray'] - The border color of an outlined button.
|
|
1414
|
+
/// @prop {Map} hover-border-color [color: 'gray'] - The hover border color of a outlined button.
|
|
1415
|
+
/// @prop {Map} focus-border-color [color: 'gray'] - The focus border color of a outlined button.
|
|
1416
|
+
/// @prop {Map} focus-visible-border-color [color: 'gray'] - The focus-visible border color of a outlined button.
|
|
1417
|
+
/// @prop {Map} active-border-color [color: 'gray'] - The active border color of a outlined button.
|
|
1418
|
+
/// @prop {Color} active-background [transparent] - The active background color of a flat button.
|
|
1419
|
+
/// @prop {Color} active-foreground [color: ('gray', 900)] - The active text color of a flat button.
|
|
1420
|
+
/// @prop {Map} shadow-color [color: ('gray', 300)] - The shadow color of a outlined button.
|
|
1421
|
+
/// @prop {Color} disabled-background [transparent] - The disabled background color of a outlined button.
|
|
1422
|
+
/// @prop {Number} border-radius [20px] - The border radius used for flat button.
|
|
1423
|
+
/// @requires {Map} $material-outlined-button
|
|
1424
|
+
/// @requires {Map} $indigo-base-button
|
|
1425
|
+
$indigo-outlined-button: extend(
|
|
1426
|
+
$material-outlined-button,
|
|
1427
|
+
$indigo-base-button,
|
|
1428
|
+
(
|
|
1429
|
+
background: transparent,
|
|
1430
|
+
foreground: (
|
|
1431
|
+
color: (
|
|
1432
|
+
'gray',
|
|
1433
|
+
700,
|
|
1434
|
+
),
|
|
1435
|
+
),
|
|
1436
|
+
hover-background: (
|
|
1437
|
+
color: (
|
|
1438
|
+
'gray',
|
|
1439
|
+
100,
|
|
1440
|
+
),
|
|
1441
|
+
),
|
|
1442
|
+
hover-foreground: (
|
|
1443
|
+
color: (
|
|
1444
|
+
'gray',
|
|
1445
|
+
900,
|
|
1446
|
+
),
|
|
1447
|
+
),
|
|
1448
|
+
focus-background: transparent,
|
|
1449
|
+
focus-foreground: (
|
|
1450
|
+
color: (
|
|
1451
|
+
'gray',
|
|
1452
|
+
900,
|
|
1453
|
+
),
|
|
1454
|
+
),
|
|
1455
|
+
focus-visible-background: transparent,
|
|
1456
|
+
focus-visible-foreground: (
|
|
1457
|
+
color: (
|
|
1458
|
+
'gray',
|
|
1459
|
+
900,
|
|
1460
|
+
),
|
|
1461
|
+
),
|
|
1462
|
+
border-color: (
|
|
1463
|
+
color: 'gray',
|
|
1464
|
+
),
|
|
1465
|
+
hover-border-color: (
|
|
1466
|
+
color: 'gray',
|
|
1467
|
+
),
|
|
1468
|
+
focus-border-color: (
|
|
1469
|
+
color: 'gray',
|
|
1470
|
+
),
|
|
1471
|
+
focus-visible-border-color: (
|
|
1472
|
+
color: 'gray',
|
|
1473
|
+
),
|
|
1474
|
+
active-border-color: (
|
|
1475
|
+
color: 'gray',
|
|
1476
|
+
),
|
|
1477
|
+
active-background: transparent,
|
|
1478
|
+
active-foreground: (
|
|
1479
|
+
color: (
|
|
1480
|
+
'gray',
|
|
1481
|
+
900,
|
|
1482
|
+
),
|
|
1483
|
+
),
|
|
1484
|
+
shadow-color: (
|
|
1485
|
+
color: (
|
|
1486
|
+
'gray',
|
|
1487
|
+
300,
|
|
1488
|
+
),
|
|
1489
|
+
),
|
|
1490
|
+
disabled-background: transparent,
|
|
1491
|
+
border-radius: rem(20px),
|
|
1492
|
+
)
|
|
1493
|
+
);
|
|
1494
|
+
|
|
1495
|
+
/// @type {Map}
|
|
1496
|
+
/// @prop {Map} foreground [color: ('gray', 50)] - The idle text color of a raised button.
|
|
1497
|
+
/// @prop {Map} hover-background [color: ('primary', 400)] - The hover background color of a raised button.
|
|
1498
|
+
/// @prop {Map} hover-foreground [ color: ('gray', 50)] - The hover text color of a raised button.
|
|
1499
|
+
/// @prop {Map} focus-background [color: ('primary', 400)] - The focus background color of a raised button.
|
|
1500
|
+
/// @prop {Map} focus-foreground [ color: ('gray', 50)] - The focus text color of a raised button.
|
|
1501
|
+
/// @prop {Map} focus-visible-background [color: ('primary', 400)] - The focus-visible background color of a raised button.
|
|
1502
|
+
/// @prop {Map} focus-visible-foreground [ color: ('gray', 50)] - The focus-visible text color of a raised button.
|
|
1503
|
+
/// @prop {Map} active-background [color: ('gray', 50)] - The active background color of a raised button.
|
|
1504
|
+
/// @prop {Map} shadow-color [color: ('primary', 200)] - The shadow color of a raised button.
|
|
1505
|
+
/// @prop {Number} border-radius [20px] - The border radius used for flat button.
|
|
1506
|
+
/// @requires {Map} $material-raised-button
|
|
1507
|
+
/// @requires {Map} $indigo-base-button
|
|
1508
|
+
$indigo-raised-button: extend(
|
|
1509
|
+
$material-raised-button,
|
|
1510
|
+
$indigo-base-button,
|
|
1511
|
+
(
|
|
1512
|
+
foreground: (
|
|
1513
|
+
color: (
|
|
1514
|
+
'gray',
|
|
1515
|
+
50,
|
|
1516
|
+
),
|
|
1517
|
+
),
|
|
1518
|
+
hover-background: (
|
|
1519
|
+
color: (
|
|
1520
|
+
'secondary',
|
|
1521
|
+
400,
|
|
1522
|
+
),
|
|
1523
|
+
),
|
|
1524
|
+
hover-foreground: (
|
|
1525
|
+
color: (
|
|
1526
|
+
'gray',
|
|
1527
|
+
50,
|
|
1528
|
+
),
|
|
1529
|
+
),
|
|
1530
|
+
focus-background: (
|
|
1531
|
+
color: (
|
|
1532
|
+
'secondary',
|
|
1533
|
+
400,
|
|
1534
|
+
),
|
|
1535
|
+
),
|
|
1536
|
+
focus-foreground: (
|
|
1537
|
+
color: (
|
|
1538
|
+
'gray',
|
|
1539
|
+
50,
|
|
1540
|
+
),
|
|
1541
|
+
),
|
|
1542
|
+
focus-visible-background: (
|
|
1543
|
+
color: (
|
|
1544
|
+
'secondary',
|
|
1545
|
+
400,
|
|
1546
|
+
),
|
|
1547
|
+
),
|
|
1548
|
+
focus-visible-foreground: (
|
|
1549
|
+
color: (
|
|
1550
|
+
'gray',
|
|
1551
|
+
50,
|
|
1552
|
+
),
|
|
1553
|
+
),
|
|
1554
|
+
active-foreground: (
|
|
1555
|
+
color: (
|
|
1556
|
+
'gray',
|
|
1557
|
+
50,
|
|
1558
|
+
),
|
|
1559
|
+
),
|
|
1560
|
+
shadow-color: (
|
|
1561
|
+
color: (
|
|
1562
|
+
'secondary',
|
|
1563
|
+
200,
|
|
1564
|
+
),
|
|
1565
|
+
),
|
|
1566
|
+
border-radius: rem(20px),
|
|
1567
|
+
)
|
|
1568
|
+
);
|
|
1569
|
+
|
|
1570
|
+
/// @type {Map}
|
|
1571
|
+
/// @prop {Map} foreground [ color: ('gray', 50)] - The idle text color of a fab button.
|
|
1572
|
+
/// @prop {Map} hover-foreground [ color: ('gray', 50)] - The hover text color of a fab button.
|
|
1573
|
+
/// @prop {Map} focus-foreground [ color: ('gray', 50)] - The focus text color of a fab button.
|
|
1574
|
+
/// @prop {Map} focus-visible-foreground [ color: ('gray', 50)] - The focus-visible text color of a fab button.
|
|
1575
|
+
/// @prop {Number} border-radius [28px] - The border radius used for flat button.
|
|
1576
|
+
/// @requires {Map} $material-fab-button
|
|
1577
|
+
/// @requires {Map} $indigo-base-button
|
|
1578
|
+
/// @requires {Map} $indigo-raised-button
|
|
1579
|
+
$indigo-fab-button: extend(
|
|
1580
|
+
$material-fab-button,
|
|
1581
|
+
$indigo-base-button,
|
|
1582
|
+
$indigo-raised-button,
|
|
1583
|
+
(
|
|
1584
|
+
selector: '[igxButton="fab"], .igx-button--fab',
|
|
1585
|
+
foreground: (
|
|
1586
|
+
color: (
|
|
1587
|
+
'gray',
|
|
1588
|
+
50,
|
|
1589
|
+
),
|
|
1590
|
+
),
|
|
1591
|
+
hover-foreground: (
|
|
1592
|
+
color: (
|
|
1593
|
+
'gray',
|
|
1594
|
+
50,
|
|
1595
|
+
),
|
|
1596
|
+
),
|
|
1597
|
+
focus-foreground: (
|
|
1598
|
+
color: (
|
|
1599
|
+
'gray',
|
|
1600
|
+
50,
|
|
1601
|
+
),
|
|
1602
|
+
),
|
|
1603
|
+
focus-visible-foreground: (
|
|
1604
|
+
color: (
|
|
1605
|
+
'gray',
|
|
1606
|
+
50,
|
|
1607
|
+
),
|
|
1608
|
+
),
|
|
1609
|
+
border-radius: rem(28px),
|
|
1610
|
+
)
|
|
1611
|
+
);
|
|
1612
|
+
|
|
1613
|
+
/// @type {Map}
|
|
1614
|
+
/// @prop {Map} foreground [ color: ('gray', 700)] - The idle text color of a fab button.
|
|
1615
|
+
/// @prop {Color} hover-background [transparent] - The hover background color of a icon button.
|
|
1616
|
+
/// @prop {Map} hover-foreground [ color: ('gray', 900)] - The hover text color of a raised button.
|
|
1617
|
+
/// @prop {Color} focus-background [transparent] - The focus background color of a icon button.
|
|
1618
|
+
/// @prop {Map} focus-foreground [ color: ('gray', 900)] - The focus text color of a fab button.
|
|
1619
|
+
/// @prop {Color} focus-visible-background [transparent] - The focus-visible background color of a icon button.
|
|
1620
|
+
/// @prop {Map} focus-visible-foreground [ color: ('gray', 900)] - The focus-visible text color of a fab button.
|
|
1621
|
+
/// @prop {Color} active-background [transparent] - The active background color of a flat button.
|
|
1622
|
+
/// @prop {Color} active-foreground [color: ('gray', 900)] - The active text color of a flat button.
|
|
1623
|
+
/// @prop {Color} disabled-background [transparent] - The disabled background color of a outlined button.
|
|
1624
|
+
/// @prop {Map} focus-border-color [color: ('gray' 300)] - The focus border color of the button.
|
|
1625
|
+
/// @prop {Map} focus-visible-border-color [color: ('gray' 300)] - The focus-visible border color of the button.
|
|
1626
|
+
/// @prop {Map} active-border-color [color: ('gray' 300)] - The active border color of the button.
|
|
1627
|
+
/// @prop {Number} border-radius [20px] - The border radius used for flat button.
|
|
1628
|
+
/// @requires {Map} $material-icon-button
|
|
1629
|
+
/// @requires {Map} $indigo-base-button
|
|
1630
|
+
$indigo-icon-button: extend(
|
|
1631
|
+
$material-icon-button,
|
|
1632
|
+
$indigo-base-button,
|
|
1633
|
+
(
|
|
1634
|
+
foreground: (
|
|
1635
|
+
color: (
|
|
1636
|
+
'gray',
|
|
1637
|
+
700,
|
|
1638
|
+
),
|
|
1639
|
+
),
|
|
1640
|
+
hover-background: transparent,
|
|
1641
|
+
hover-foreground: (
|
|
1642
|
+
color: (
|
|
1643
|
+
'gray',
|
|
1644
|
+
900,
|
|
1645
|
+
),
|
|
1646
|
+
),
|
|
1647
|
+
focus-background: transparent,
|
|
1648
|
+
focus-foreground: (
|
|
1649
|
+
color: (
|
|
1650
|
+
'gray',
|
|
1651
|
+
900,
|
|
1652
|
+
),
|
|
1653
|
+
),
|
|
1654
|
+
focus-visible-background: transparent,
|
|
1655
|
+
focus-visible-foreground: (
|
|
1656
|
+
color: (
|
|
1657
|
+
'gray',
|
|
1658
|
+
900,
|
|
1659
|
+
),
|
|
1660
|
+
),
|
|
1661
|
+
active-background: transparent,
|
|
1662
|
+
active-foreground: (
|
|
1663
|
+
color: (
|
|
1664
|
+
'gray',
|
|
1665
|
+
900,
|
|
1666
|
+
),
|
|
1667
|
+
),
|
|
1668
|
+
disabled-background: transparent,
|
|
1669
|
+
focus-border-color: (
|
|
1670
|
+
color: (
|
|
1671
|
+
'gray' 300,
|
|
1672
|
+
),
|
|
1673
|
+
),
|
|
1674
|
+
focus-visible-border-color: (
|
|
1675
|
+
color: (
|
|
1676
|
+
'gray' 300,
|
|
1677
|
+
),
|
|
1678
|
+
),
|
|
1679
|
+
active-border-color: (
|
|
1680
|
+
color: (
|
|
1681
|
+
'gray' 300,
|
|
1682
|
+
),
|
|
1683
|
+
),
|
|
1684
|
+
)
|
|
1685
|
+
);
|
|
1686
|
+
|
|
1687
|
+
/// Generates a light indigo button schema.
|
|
1688
|
+
/// @type {Map}
|
|
1689
|
+
/// @requires {Map} $indigo-flat-button
|
|
1690
|
+
/// @requires {Map} $indigo-outlined-button
|
|
1691
|
+
/// @requires {Map} $indigo-raised-button
|
|
1692
|
+
/// @requires {Map} $indigo-fab-button
|
|
1693
|
+
/// @requires {Map} $indigo-icon-button
|
|
1694
|
+
$indigo-button: (
|
|
1695
|
+
flat: $indigo-flat-button,
|
|
1696
|
+
outlined: $indigo-outlined-button,
|
|
1697
|
+
raised: $indigo-raised-button,
|
|
1698
|
+
fab: $indigo-fab-button,
|
|
1699
|
+
icon: $indigo-icon-button,
|
|
1700
|
+
);
|