matcha-theme 19.54.0 → 19.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/matcha-button-toggle.scss +75 -36
- package/components/matcha-buttons.scss +81 -458
- package/components/matcha-slide-toggle.scss +398 -0
- package/main.scss +3 -0
- package/package.json +1 -1
|
@@ -1,11 +1,46 @@
|
|
|
1
|
+
@mixin _colorize-inactive-type-solid-button-toggle-item($theme, $color-functions) {
|
|
2
|
+
&:not([inactivetype]),
|
|
3
|
+
&[inactivetype="solid"]{
|
|
4
|
+
@each $colorName, $colorFn in $color-functions {
|
|
5
|
+
&[inactivecolor="#{$colorName}"]{
|
|
6
|
+
.button-group{
|
|
7
|
+
button[matcha-button],
|
|
8
|
+
a[matcha-button]{
|
|
9
|
+
&:not([active]){
|
|
10
|
+
background: call(#{$colorFn}, $theme);
|
|
11
|
+
color: call(#{$colorFn}Contrast, $theme);
|
|
12
|
+
box-shadow: 0 0 0 0px inset;
|
|
13
|
+
.ripple{
|
|
14
|
+
background: call(#{$colorFn}ContrastAlpha, $theme);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
&[disabled],
|
|
22
|
+
&[disabled]:not([disabled="false"]),
|
|
23
|
+
&[disabled="true"] {
|
|
24
|
+
.button-group{
|
|
25
|
+
button[matcha-button],
|
|
26
|
+
a[matcha-button]{
|
|
27
|
+
&:not([active]){
|
|
28
|
+
@include _disabled-solid-button($theme);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
@mixin _colorize-inactive-type-basic-button-toggle-item($theme, $color-functions) {
|
|
2
37
|
&[inactivetype="basic"]{
|
|
3
38
|
@each $colorName, $colorFn in $color-functions {
|
|
4
39
|
&[inactivecolor="#{$colorName}"]{
|
|
5
|
-
.button-group
|
|
40
|
+
.button-group{
|
|
6
41
|
button[matcha-button],
|
|
7
42
|
a[matcha-button]{
|
|
8
|
-
&:not([active
|
|
43
|
+
&:not([active]){
|
|
9
44
|
background: getSurface($theme);
|
|
10
45
|
color: call(#{$colorFn}, $theme);
|
|
11
46
|
box-shadow: 0 0 0 0px inset;
|
|
@@ -20,10 +55,10 @@
|
|
|
20
55
|
&[disabled],
|
|
21
56
|
&[disabled]:not([disabled="false"]),
|
|
22
57
|
&[disabled="true"] {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
58
|
+
.button-group{
|
|
59
|
+
button[matcha-button],
|
|
60
|
+
a[matcha-button]{
|
|
61
|
+
&:not([active]){
|
|
27
62
|
@include _disabled-basic-button($theme);
|
|
28
63
|
}
|
|
29
64
|
}
|
|
@@ -38,11 +73,11 @@
|
|
|
38
73
|
&:not([disabled="true"]){
|
|
39
74
|
@each $colorName, $colorFn in $color-functions {
|
|
40
75
|
&[inactivecolor="#{$colorName}"]{
|
|
41
|
-
.button-group
|
|
76
|
+
.button-group{
|
|
42
77
|
button[matcha-button],
|
|
43
78
|
a[matcha-button]{
|
|
44
79
|
//botão não ativo
|
|
45
|
-
&:not([active
|
|
80
|
+
&:not([active]){
|
|
46
81
|
color: call(#{$colorFn}, $theme);
|
|
47
82
|
background: transparent;
|
|
48
83
|
box-shadow: 0 0 0 2px call(#{$colorFn}, $theme) inset;
|
|
@@ -59,11 +94,11 @@
|
|
|
59
94
|
&[disabled],
|
|
60
95
|
&[disabled]:not([disabled="false"]),
|
|
61
96
|
&[disabled="true"] {
|
|
62
|
-
|
|
97
|
+
.button-group{
|
|
63
98
|
button[matcha-button],
|
|
64
99
|
a[matcha-button]{
|
|
65
100
|
//botão não ativo
|
|
66
|
-
&:not([active
|
|
101
|
+
&:not([active]){
|
|
67
102
|
@include _disabled-outline-button($theme);
|
|
68
103
|
}
|
|
69
104
|
}
|
|
@@ -76,10 +111,10 @@
|
|
|
76
111
|
&[inactivetype="alpha"]{
|
|
77
112
|
@each $colorName, $colorFn in $color-functions {
|
|
78
113
|
&[inactivecolor="#{$colorName}"]{
|
|
79
|
-
.button-group
|
|
114
|
+
.button-group{
|
|
80
115
|
button[matcha-button],
|
|
81
116
|
a[matcha-button]{
|
|
82
|
-
&:not([active
|
|
117
|
+
&:not([active]){
|
|
83
118
|
color: call(#{$colorFn}, $theme);
|
|
84
119
|
background: call(#{$colorFn}Alpha, $theme);
|
|
85
120
|
box-shadow: 0 0 0 0px;
|
|
@@ -94,11 +129,11 @@
|
|
|
94
129
|
&[disabled],
|
|
95
130
|
&[disabled]:not([disabled="false"]),
|
|
96
131
|
&[disabled="true"] {
|
|
97
|
-
.button-group
|
|
132
|
+
.button-group{
|
|
98
133
|
button[matcha-button],
|
|
99
134
|
a[matcha-button]{
|
|
100
135
|
//botão não ativo
|
|
101
|
-
&:not([active
|
|
136
|
+
&:not([active]){
|
|
102
137
|
@include _disabled-alpha-button($theme);
|
|
103
138
|
}
|
|
104
139
|
}
|
|
@@ -112,10 +147,10 @@
|
|
|
112
147
|
&[inactivetype="link"]{
|
|
113
148
|
@each $colorName, $colorFn in $color-functions {
|
|
114
149
|
&[inactivecolor="#{$colorName}"]{
|
|
115
|
-
.button-group
|
|
150
|
+
.button-group{
|
|
116
151
|
button[matcha-button],
|
|
117
152
|
a[matcha-button]{
|
|
118
|
-
&:not([active
|
|
153
|
+
&:not([active]){
|
|
119
154
|
|
|
120
155
|
background: transparent;
|
|
121
156
|
color: call(#{$colorFn}, $theme);
|
|
@@ -132,11 +167,11 @@
|
|
|
132
167
|
&[disabled],
|
|
133
168
|
&[disabled]:not([disabled="false"]),
|
|
134
169
|
&[disabled="true"] {
|
|
135
|
-
.button-group
|
|
170
|
+
.button-group{
|
|
136
171
|
button[matcha-button],
|
|
137
172
|
a[matcha-button]{
|
|
138
173
|
//botão não ativo
|
|
139
|
-
&:not([active
|
|
174
|
+
&:not([active]){
|
|
140
175
|
@include _disabled-link-button($theme);
|
|
141
176
|
}
|
|
142
177
|
}
|
|
@@ -177,6 +212,7 @@
|
|
|
177
212
|
|
|
178
213
|
matcha-button-toggle{
|
|
179
214
|
display: flex;
|
|
215
|
+
@include _colorize-inactive-type-solid-button-toggle-item($theme, $color-functions);
|
|
180
216
|
@include _colorize-inactive-type-basic-button-toggle-item($theme, $color-functions);
|
|
181
217
|
@include _colorize-inactive-type-outline-button-toggle-item($theme, $color-functions);
|
|
182
218
|
@include _colorize-inactive-type-alpha-button-toggle-item($theme, $color-functions);
|
|
@@ -185,10 +221,11 @@
|
|
|
185
221
|
&[disabled],
|
|
186
222
|
&[disabled]:not([disabled="false"]),
|
|
187
223
|
&[disabled="true"] {
|
|
188
|
-
.button-group
|
|
224
|
+
.button-group{
|
|
189
225
|
button[matcha-button],
|
|
190
226
|
a[matcha-button]{
|
|
191
|
-
&[active
|
|
227
|
+
&[active]{
|
|
228
|
+
|
|
192
229
|
&[outline],
|
|
193
230
|
&[outline]:not([outline="false"]),
|
|
194
231
|
&[outline="true"]{
|
|
@@ -212,6 +249,8 @@
|
|
|
212
249
|
&[link="true"]{
|
|
213
250
|
@include _disabled-link-button($theme);
|
|
214
251
|
}
|
|
252
|
+
|
|
253
|
+
@include _disabled-solid-button($theme);
|
|
215
254
|
}
|
|
216
255
|
}
|
|
217
256
|
}
|
|
@@ -219,25 +258,25 @@
|
|
|
219
258
|
}
|
|
220
259
|
}
|
|
221
260
|
}
|
|
261
|
+
matcha-button-toggle {
|
|
262
|
+
.button-group {
|
|
263
|
+
&.gap-0 {
|
|
264
|
+
gap: 0 !important;
|
|
222
265
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
matcha-button-toggle-item:first-child button[matcha-button] {
|
|
229
|
-
border-top-right-radius: 0;
|
|
230
|
-
border-bottom-right-radius: 0;
|
|
231
|
-
}
|
|
266
|
+
// Ajuste border-radius quando gap = 0
|
|
267
|
+
button[matcha-button]:first-child {
|
|
268
|
+
border-top-right-radius: 0;
|
|
269
|
+
border-bottom-right-radius: 0;
|
|
270
|
+
}
|
|
232
271
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
272
|
+
button[matcha-button]:last-child {
|
|
273
|
+
border-top-left-radius: 0;
|
|
274
|
+
border-bottom-left-radius: 0;
|
|
275
|
+
}
|
|
237
276
|
|
|
238
|
-
|
|
239
|
-
|
|
277
|
+
button[matcha-button]:not(:first-child):not(:last-child) {
|
|
278
|
+
border-radius: 0;
|
|
279
|
+
}
|
|
240
280
|
}
|
|
241
281
|
}
|
|
242
282
|
}
|
|
243
|
-
|
|
@@ -22,6 +22,13 @@
|
|
|
22
22
|
// [size-lg]="sizeLg"
|
|
23
23
|
// [size-xl]="sizeXl">
|
|
24
24
|
|
|
25
|
+
@mixin _disabled-solid-button($theme) {
|
|
26
|
+
background: getDisabled($theme);
|
|
27
|
+
color: getDisabledBgContrast($theme);
|
|
28
|
+
box-shadow: 0 0 0 0px inset;
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
25
32
|
@mixin _disabled-basic-button($theme) {
|
|
26
33
|
background: getSurface($theme);
|
|
27
34
|
color: getDisabled($theme);
|
|
@@ -215,472 +222,88 @@ a[matcha-button] {
|
|
|
215
222
|
}
|
|
216
223
|
|
|
217
224
|
@mixin matcha-button-theme($theme) {
|
|
225
|
+
$color-functions: (
|
|
226
|
+
red: getRed,
|
|
227
|
+
pink: getPink,
|
|
228
|
+
purple: getPurple,
|
|
229
|
+
deep-purple: getDeepPurple,
|
|
230
|
+
indigo: getIndigo,
|
|
231
|
+
blue: getBlue,
|
|
232
|
+
light-blue: getLightBlue,
|
|
233
|
+
cyan: getCyan,
|
|
234
|
+
teal: getTeal,
|
|
235
|
+
green: getGreen,
|
|
236
|
+
light-green: getLightGreen,
|
|
237
|
+
lime: getLime,
|
|
238
|
+
yellow: getYellow,
|
|
239
|
+
amber: getAmber,
|
|
240
|
+
orange: getOrange,
|
|
241
|
+
deep-orange: getDeepOrange,
|
|
242
|
+
brown: getBrown,
|
|
243
|
+
grey: getGrey,
|
|
244
|
+
blue-grey: getBlueGrey,
|
|
245
|
+
primary: getPrimary,
|
|
246
|
+
accent: getAccent,
|
|
247
|
+
warn: getWarn,
|
|
248
|
+
disabled: getDisabled,
|
|
249
|
+
);
|
|
218
250
|
|
|
219
251
|
button[matcha-button],
|
|
220
252
|
a[matcha-button] {
|
|
221
253
|
&:not([color]) .ripple {
|
|
222
254
|
background: getForegroundAlpha($theme)
|
|
223
255
|
}
|
|
224
|
-
// red
|
|
225
|
-
&[color="red"][outline]:not([outline="false"]) .ripple,
|
|
226
|
-
&[color="red"][basic]:not([basic="false"]) .ripple {
|
|
227
|
-
background: getRedAlpha($theme)
|
|
228
|
-
}
|
|
229
|
-
&[color="red"][alpha]:not([alpha="false"]){
|
|
230
|
-
background: getRedAlpha($theme);
|
|
231
|
-
color: getRed($theme);
|
|
232
|
-
}
|
|
233
|
-
&[color="red"][outline]:not([outline="false"]),
|
|
234
|
-
&[color="red"][link]:not([link="false"]),
|
|
235
|
-
&[color="red"][basic]:not([basic="false"]) {
|
|
236
|
-
color: getRed($theme);
|
|
237
|
-
}
|
|
238
|
-
&[color="red"]{
|
|
239
|
-
background: getRed($theme);
|
|
240
|
-
color: getRedContrast($theme);
|
|
241
|
-
}
|
|
242
|
-
&[color="red"] .ripple{background: getRedContrastAlpha($theme)}
|
|
243
|
-
|
|
244
|
-
// pink
|
|
245
|
-
&[color="pink"][outline]:not([outline="false"]) .ripple,
|
|
246
|
-
&[color="pink"][basic]:not([basic="false"]) .ripple {
|
|
247
|
-
background: getPinkAlpha($theme)
|
|
248
|
-
}
|
|
249
|
-
&[color="pink"][alpha]:not([alpha="false"]){
|
|
250
|
-
background: getPinkAlpha($theme);
|
|
251
|
-
color: getPink($theme);
|
|
252
|
-
}
|
|
253
|
-
&[color="pink"][outline]:not([outline="false"]),
|
|
254
|
-
&[color="pink"][link]:not([link="false"]),
|
|
255
|
-
&[color="pink"][basic]:not([basic="false"]) {
|
|
256
|
-
color: getPink($theme);
|
|
257
|
-
}
|
|
258
|
-
&[color="pink"]{
|
|
259
|
-
background: getPink($theme);
|
|
260
|
-
color: getPinkContrast($theme);
|
|
261
|
-
}
|
|
262
|
-
&[color="pink"] .ripple{background: getPinkContrastAlpha($theme)}
|
|
263
|
-
|
|
264
|
-
// purple
|
|
265
|
-
&[color="purple"][outline]:not([outline="false"]) .ripple,
|
|
266
|
-
&[color="purple"][basic]:not([basic="false"]) .ripple {
|
|
267
|
-
background: getPurpleAlpha($theme)
|
|
268
|
-
}
|
|
269
|
-
&[color="purple"][alpha]:not([alpha="false"]){
|
|
270
|
-
background: getPurpleAlpha($theme);
|
|
271
|
-
color: getPurple($theme);
|
|
272
|
-
}
|
|
273
|
-
&[color="purple"][outline]:not([outline="false"]),
|
|
274
|
-
&[color="purple"][link]:not([link="false"]),
|
|
275
|
-
&[color="purple"][basic]:not([basic="false"]) {
|
|
276
|
-
color: getPurple($theme);
|
|
277
|
-
}
|
|
278
|
-
&[color="purple"]{
|
|
279
|
-
background: getPurple($theme);
|
|
280
|
-
color: getPurpleContrast($theme);
|
|
281
|
-
}
|
|
282
|
-
&[color="purple"] .ripple{background: getPurpleContrastAlpha($theme)}
|
|
283
|
-
|
|
284
|
-
// deep-purple
|
|
285
|
-
&[color="deep-purple"][outline]:not([outline="false"]) .ripple,
|
|
286
|
-
&[color="deep-purple"][basic]:not([basic="false"]) .ripple {
|
|
287
|
-
background: getDeepPurpleAlpha($theme)
|
|
288
|
-
}
|
|
289
|
-
&[color="deep-purple"][alpha]:not([alpha="false"]){
|
|
290
|
-
background: getDeepPurpleAlpha($theme);
|
|
291
|
-
color: getDeepPurple($theme);
|
|
292
|
-
}
|
|
293
|
-
&[color="deep-purple"][outline]:not([outline="false"]),
|
|
294
|
-
&[color="deep-purple"][link]:not([link="false"]),
|
|
295
|
-
&[color="deep-purple"][basic]:not([basic="false"]) {
|
|
296
|
-
color: getDeepPurple($theme);
|
|
297
|
-
}
|
|
298
|
-
&[color="deep-purple"]{
|
|
299
|
-
background: getDeepPurple($theme);
|
|
300
|
-
color: getDeepPurpleContrast($theme);
|
|
301
|
-
}
|
|
302
|
-
&[color="deep-purple"] .ripple{background: getDeepPurpleContrastAlpha($theme)}
|
|
303
|
-
|
|
304
|
-
// indigo
|
|
305
|
-
&[color="indigo"][outline]:not([outline="false"]) .ripple,
|
|
306
|
-
&[color="indigo"][basic]:not([basic="false"]) .ripple {
|
|
307
|
-
background: getIndigoAlpha($theme)
|
|
308
|
-
}
|
|
309
|
-
&[color="indigo"][alpha]:not([alpha="false"]){
|
|
310
|
-
background: getIndigoAlpha($theme);
|
|
311
|
-
color: getIndigo($theme);
|
|
312
|
-
}
|
|
313
|
-
&[color="indigo"][outline]:not([outline="false"]),
|
|
314
|
-
&[color="indigo"][link]:not([link="false"]),
|
|
315
|
-
&[color="indigo"][basic]:not([basic="false"]) {
|
|
316
|
-
color: getIndigo($theme);
|
|
317
|
-
}
|
|
318
|
-
&[color="indigo"]{
|
|
319
|
-
background: getIndigo($theme);
|
|
320
|
-
color: getIndigoContrast($theme);
|
|
321
|
-
}
|
|
322
|
-
&[color="indigo"] .ripple{background: getIndigoContrastAlpha($theme)}
|
|
323
|
-
|
|
324
|
-
// blue
|
|
325
|
-
&[color="blue"][outline]:not([outline="false"]) .ripple,
|
|
326
|
-
&[color="blue"][basic]:not([basic="false"]) .ripple {
|
|
327
|
-
background: getBlueAlpha($theme)
|
|
328
|
-
}
|
|
329
|
-
&[color="blue"][alpha]:not([alpha="false"]){
|
|
330
|
-
background: getBlueAlpha($theme);
|
|
331
|
-
color: getBlue($theme);
|
|
332
|
-
}
|
|
333
|
-
&[color="blue"][outline]:not([outline="false"]),
|
|
334
|
-
&[color="blue"][link]:not([link="false"]),
|
|
335
|
-
&[color="blue"][basic]:not([basic="false"]) {
|
|
336
|
-
color: getBlue($theme);
|
|
337
|
-
}
|
|
338
|
-
&[color="blue"]{
|
|
339
|
-
background: getBlue($theme);
|
|
340
|
-
color: getBlueContrast($theme);
|
|
341
|
-
}
|
|
342
|
-
&[color="blue"] .ripple{background: getBlueContrastAlpha($theme)}
|
|
343
|
-
|
|
344
|
-
// light-blue
|
|
345
|
-
&[color="light-blue"][outline]:not([outline="false"]) .ripple,
|
|
346
|
-
&[color="light-blue"][basic]:not([basic="false"]) .ripple {
|
|
347
|
-
background: getLightBlueAlpha($theme)
|
|
348
|
-
}
|
|
349
|
-
&[color="light-blue"][alpha]:not([alpha="false"]){
|
|
350
|
-
background: getLightBlueAlpha($theme);
|
|
351
|
-
color: getLightBlue($theme);
|
|
352
|
-
}
|
|
353
|
-
&[color="light-blue"][outline]:not([outline="false"]),
|
|
354
|
-
&[color="light-blue"][link]:not([link="false"]),
|
|
355
|
-
&[color="light-blue"][basic]:not([basic="false"]) {
|
|
356
|
-
color: getLightBlue($theme);
|
|
357
|
-
}
|
|
358
|
-
&[color="light-blue"]{
|
|
359
|
-
background: getLightBlue($theme);
|
|
360
|
-
color: getLightBlueContrast($theme);
|
|
361
|
-
}
|
|
362
|
-
&[color="light-blue"] .ripple{background: getLightBlueContrastAlpha($theme)}
|
|
363
|
-
|
|
364
|
-
// cyan
|
|
365
|
-
&[color="cyan"][outline]:not([outline="false"]) .ripple,
|
|
366
|
-
&[color="cyan"][basic]:not([basic="false"]) .ripple {
|
|
367
|
-
background: getCyanAlpha($theme)
|
|
368
|
-
}
|
|
369
|
-
&[color="cyan"][alpha]:not([alpha="false"]){
|
|
370
|
-
background: getCyanAlpha($theme);
|
|
371
|
-
color: getCyan($theme);
|
|
372
|
-
}
|
|
373
|
-
&[color="cyan"][outline]:not([outline="false"]),
|
|
374
|
-
&[color="cyan"][link]:not([link="false"]),
|
|
375
|
-
&[color="cyan"][basic]:not([basic="false"]) {
|
|
376
|
-
color: getCyan($theme);
|
|
377
|
-
}
|
|
378
|
-
&[color="cyan"]{
|
|
379
|
-
background: getCyan($theme);
|
|
380
|
-
color: getCyanContrast($theme);
|
|
381
|
-
}
|
|
382
|
-
&[color="cyan"] .ripple{background: getCyanContrastAlpha($theme)}
|
|
383
256
|
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
&[color="light-green"][outline]:not([outline="false"]),
|
|
434
|
-
&[color="light-green"][link]:not([link="false"]),
|
|
435
|
-
&[color="light-green"][basic]:not([basic="false"]) {
|
|
436
|
-
color: getLightGreen($theme);
|
|
437
|
-
}
|
|
438
|
-
&[color="light-green"]{
|
|
439
|
-
background: getLightGreen($theme);
|
|
440
|
-
color: getLightGreenContrast($theme);
|
|
441
|
-
}
|
|
442
|
-
&[color="light-green"] .ripple{background: getLightGreenContrastAlpha($theme)}
|
|
443
|
-
|
|
444
|
-
// lime
|
|
445
|
-
&[color="lime"][outline]:not([outline="false"]) .ripple,
|
|
446
|
-
&[color="lime"][basic]:not([basic="false"]) .ripple {
|
|
447
|
-
background: getLimeAlpha($theme)
|
|
448
|
-
}
|
|
449
|
-
&[color="lime"][alpha]:not([alpha="false"]){
|
|
450
|
-
background: getLimeAlpha($theme);
|
|
451
|
-
color: getLime($theme);
|
|
452
|
-
}
|
|
453
|
-
&[color="lime"][outline]:not([outline="false"]),
|
|
454
|
-
&[color="lime"][link]:not([link="false"]),
|
|
455
|
-
&[color="lime"][basic]:not([basic="false"]) {
|
|
456
|
-
color: getLime($theme);
|
|
457
|
-
}
|
|
458
|
-
&[color="lime"]{
|
|
459
|
-
background: getLime($theme);
|
|
460
|
-
color: getLimeContrast($theme);
|
|
461
|
-
}
|
|
462
|
-
&[color="lime"] .ripple{background: getLimeContrastAlpha($theme)}
|
|
463
|
-
|
|
464
|
-
// yellow
|
|
465
|
-
&[color="yellow"][outline]:not([outline="false"]) .ripple,
|
|
466
|
-
&[color="yellow"][basic]:not([basic="false"]) .ripple {
|
|
467
|
-
background: getYellowAlpha($theme)
|
|
468
|
-
}
|
|
469
|
-
&[color="yellow"][alpha]:not([alpha="false"]){
|
|
470
|
-
background: getYellowAlpha($theme);
|
|
471
|
-
color: getYellow($theme);
|
|
472
|
-
}
|
|
473
|
-
&[color="yellow"][outline]:not([outline="false"]),
|
|
474
|
-
&[color="yellow"][link]:not([link="false"]),
|
|
475
|
-
&[color="yellow"][basic]:not([basic="false"]) {
|
|
476
|
-
color: getYellow($theme);
|
|
477
|
-
}
|
|
478
|
-
&[color="yellow"]{
|
|
479
|
-
background: getYellow($theme);
|
|
480
|
-
color: getYellowContrast($theme);
|
|
481
|
-
}
|
|
482
|
-
&[color="yellow"] .ripple{background: getYellowContrastAlpha($theme)}
|
|
483
|
-
|
|
484
|
-
// amber
|
|
485
|
-
&[color="amber"][outline]:not([outline="false"]) .ripple,
|
|
486
|
-
&[color="amber"][basic]:not([basic="false"]) .ripple {
|
|
487
|
-
background: getAmberAlpha($theme)
|
|
488
|
-
}
|
|
489
|
-
&[color="amber"][alpha]:not([alpha="false"]){
|
|
490
|
-
background: getAmberAlpha($theme);
|
|
491
|
-
color: getAmber($theme);
|
|
492
|
-
}
|
|
493
|
-
&[color="amber"][outline]:not([outline="false"]),
|
|
494
|
-
&[color="amber"][link]:not([link="false"]),
|
|
495
|
-
&[color="amber"][basic]:not([basic="false"]) {
|
|
496
|
-
color: getAmber($theme);
|
|
497
|
-
}
|
|
498
|
-
&[color="amber"]{
|
|
499
|
-
background: getAmber($theme);
|
|
500
|
-
color: getAmberContrast($theme);
|
|
501
|
-
}
|
|
502
|
-
&[color="amber"] .ripple{background: getAmberContrastAlpha($theme)}
|
|
503
|
-
|
|
504
|
-
// orange
|
|
505
|
-
&[color="orange"][outline]:not([outline="false"]) .ripple,
|
|
506
|
-
&[color="orange"][basic]:not([basic="false"]) .ripple {
|
|
507
|
-
background: getOrangeAlpha($theme)
|
|
508
|
-
}
|
|
509
|
-
&[color="orange"][alpha]:not([alpha="false"]){
|
|
510
|
-
background: getOrangeAlpha($theme);
|
|
511
|
-
color: getOrange($theme);
|
|
512
|
-
}
|
|
513
|
-
&[color="orange"][outline]:not([outline="false"]),
|
|
514
|
-
&[color="orange"][link]:not([link="false"]),
|
|
515
|
-
&[color="orange"][basic]:not([basic="false"]) {
|
|
516
|
-
color: getOrange($theme);
|
|
517
|
-
}
|
|
518
|
-
&[color="orange"]{
|
|
519
|
-
background: getOrange($theme);
|
|
520
|
-
color: getOrangeContrast($theme);
|
|
521
|
-
}
|
|
522
|
-
&[color="orange"] .ripple{background: getOrangeContrastAlpha($theme)}
|
|
523
|
-
|
|
524
|
-
// deep-orange
|
|
525
|
-
&[color="deep-orange"][outline]:not([outline="false"]) .ripple,
|
|
526
|
-
&[color="deep-orange"][basic]:not([basic="false"]) .ripple {
|
|
527
|
-
background: getDeepOrangeAlpha($theme)
|
|
528
|
-
}
|
|
529
|
-
&[color="deep-orange"][alpha]:not([alpha="false"]){
|
|
530
|
-
background: getDeepOrangeAlpha($theme);
|
|
531
|
-
color: getDeepOrange($theme);
|
|
532
|
-
}
|
|
533
|
-
&[color="deep-orange"][outline]:not([outline="false"]),
|
|
534
|
-
&[color="deep-orange"][link]:not([link="false"]),
|
|
535
|
-
&[color="deep-orange"][basic]:not([basic="false"]) {
|
|
536
|
-
color: getDeepOrange($theme);
|
|
537
|
-
}
|
|
538
|
-
&[color="deep-orange"]{
|
|
539
|
-
background: getDeepOrange($theme);
|
|
540
|
-
color: getDeepOrangeContrast($theme);
|
|
541
|
-
}
|
|
542
|
-
&[color="deep-orange"] .ripple{background: getDeepOrangeContrastAlpha($theme)}
|
|
543
|
-
|
|
544
|
-
// brown
|
|
545
|
-
&[color="brown"][outline]:not([outline="false"]) .ripple,
|
|
546
|
-
&[color="brown"][basic]:not([basic="false"]) .ripple {
|
|
547
|
-
background: getBrownAlpha($theme)
|
|
548
|
-
}
|
|
549
|
-
&[color="brown"][alpha]:not([alpha="false"]){
|
|
550
|
-
background: getBrownAlpha($theme);
|
|
551
|
-
color: getBrown($theme);
|
|
552
|
-
}
|
|
553
|
-
&[color="brown"][outline]:not([outline="false"]),
|
|
554
|
-
&[color="brown"][link]:not([link="false"]),
|
|
555
|
-
&[color="brown"][basic]:not([basic="false"]) {
|
|
556
|
-
color: getBrown($theme);
|
|
557
|
-
}
|
|
558
|
-
&[color="brown"]{
|
|
559
|
-
background: getBrown($theme);
|
|
560
|
-
color: getBrownContrast($theme);
|
|
561
|
-
}
|
|
562
|
-
&[color="brown"] .ripple{background: getBrownContrastAlpha($theme)}
|
|
563
|
-
|
|
564
|
-
// grey
|
|
565
|
-
&[color="grey"][outline]:not([outline="false"]) .ripple,
|
|
566
|
-
&[color="grey"][basic]:not([basic="false"]) .ripple {
|
|
567
|
-
background: getGreyAlpha($theme)
|
|
568
|
-
}
|
|
569
|
-
&[color="grey"][alpha]:not([alpha="false"]){
|
|
570
|
-
background: getGreyAlpha($theme);
|
|
571
|
-
color: getGrey($theme);
|
|
572
|
-
}
|
|
573
|
-
&[color="grey"][outline]:not([outline="false"]),
|
|
574
|
-
&[color="grey"][link]:not([link="false"]),
|
|
575
|
-
&[color="grey"][basic]:not([basic="false"]) {
|
|
576
|
-
color: getGrey($theme);
|
|
577
|
-
}
|
|
578
|
-
&[color="grey"]{
|
|
579
|
-
background: getGrey($theme);
|
|
580
|
-
color: getGreyContrast($theme);
|
|
581
|
-
}
|
|
582
|
-
&[color="grey"] .ripple{background: getGreyContrastAlpha($theme)}
|
|
583
|
-
|
|
584
|
-
// blue-grey
|
|
585
|
-
&[color="blue-grey"][outline]:not([outline="false"]) .ripple,
|
|
586
|
-
&[color="blue-grey"][basic]:not([basic="false"]) .ripple {
|
|
587
|
-
background: getBlueGreyAlpha($theme)
|
|
588
|
-
}
|
|
589
|
-
&[color="blue-grey"][alpha]:not([alpha="false"]){
|
|
590
|
-
background: getBlueGreyAlpha($theme);
|
|
591
|
-
color: getBlueGrey($theme);
|
|
592
|
-
}
|
|
593
|
-
&[color="blue-grey"][outline]:not([outline="false"]),
|
|
594
|
-
&[color="blue-grey"][link]:not([link="false"]),
|
|
595
|
-
&[color="blue-grey"][basic]:not([basic="false"]) {
|
|
596
|
-
color: getBlueGrey($theme);
|
|
597
|
-
}
|
|
598
|
-
&[color="blue-grey"]{
|
|
599
|
-
background: getBlueGrey($theme);
|
|
600
|
-
color: getBlueGreyContrast($theme);
|
|
601
|
-
}
|
|
602
|
-
&[color="blue-grey"] .ripple{background: getBlueGreyContrastAlpha($theme)}
|
|
603
|
-
|
|
604
|
-
// primary
|
|
605
|
-
&[color="primary"][outline]:not([outline="false"]) .ripple,
|
|
606
|
-
&[color="primary"][basic]:not([basic="false"]) .ripple {
|
|
607
|
-
background: getPrimaryAlpha($theme)
|
|
608
|
-
}
|
|
609
|
-
&[color="primary"][alpha]:not([alpha="false"]){
|
|
610
|
-
background: getPrimaryAlpha($theme);
|
|
611
|
-
color: getPrimary($theme);
|
|
612
|
-
}
|
|
613
|
-
&[color="primary"][outline]:not([outline="false"]),
|
|
614
|
-
&[color="primary"][link]:not([link="false"]),
|
|
615
|
-
&[color="primary"][basic]:not([basic="false"]) {
|
|
616
|
-
color: getPrimary($theme);
|
|
617
|
-
}
|
|
618
|
-
&[color="primary"]{
|
|
619
|
-
background: getPrimary($theme);
|
|
620
|
-
color: getPrimaryContrast($theme);
|
|
621
|
-
}
|
|
622
|
-
&[color="primary"] .ripple{background: getPrimaryContrastAlpha($theme)}
|
|
623
|
-
|
|
624
|
-
// accent
|
|
625
|
-
&[color="accent"][outline]:not([outline="false"]) .ripple,
|
|
626
|
-
&[color="accent"][basic]:not([basic="false"]) .ripple {
|
|
627
|
-
background: getAccentAlpha($theme)
|
|
628
|
-
}
|
|
629
|
-
&[color="accent"][alpha]:not([alpha="false"]){
|
|
630
|
-
background: getAccentAlpha($theme);
|
|
631
|
-
color: getAccent($theme);
|
|
632
|
-
}
|
|
633
|
-
&[color="accent"][outline]:not([outline="false"]),
|
|
634
|
-
&[color="accent"][link]:not([link="false"]),
|
|
635
|
-
&[color="accent"][basic]:not([basic="false"]) {
|
|
636
|
-
color: getAccent($theme);
|
|
637
|
-
}
|
|
638
|
-
&[color="accent"]{
|
|
639
|
-
background: getAccent($theme);
|
|
640
|
-
color: getAccentContrast($theme);
|
|
641
|
-
}
|
|
642
|
-
&[color="accent"] .ripple{background: getAccentContrastAlpha($theme)}
|
|
643
|
-
|
|
644
|
-
// warn
|
|
645
|
-
&[color="warn"][outline]:not([outline="false"]) .ripple,
|
|
646
|
-
&[color="warn"][basic]:not([basic="false"]) .ripple {
|
|
647
|
-
background: getWarnAlpha($theme)
|
|
648
|
-
}
|
|
649
|
-
&[color="warn"][alpha]:not([alpha="false"]){
|
|
650
|
-
background: getWarnAlpha($theme);
|
|
651
|
-
color: getWarn($theme);
|
|
652
|
-
}
|
|
653
|
-
&[color="warn"][outline]:not([outline="false"]),
|
|
654
|
-
&[color="warn"][link]:not([link="false"]),
|
|
655
|
-
&[color="warn"][basic]:not([basic="false"]) {
|
|
656
|
-
color: getWarn($theme);
|
|
657
|
-
}
|
|
658
|
-
&[color="warn"]{
|
|
659
|
-
background: getWarn($theme);
|
|
660
|
-
color: getWarnContrast($theme);
|
|
661
|
-
}
|
|
662
|
-
&[color="warn"] .ripple{background: getWarnContrastAlpha($theme)}
|
|
663
|
-
|
|
664
|
-
// Disabled
|
|
665
|
-
&[color="disabled"][outline]:not([outline="false"]) .ripple,
|
|
666
|
-
&[color="disabled"][basic]:not([basic="false"]) .ripple {
|
|
667
|
-
background: getDisabledAlpha($theme);
|
|
668
|
-
}
|
|
669
|
-
&[color="disabled"][alpha]:not([alpha="false"]){
|
|
670
|
-
background: getDisabledAlpha($theme);
|
|
671
|
-
color: getDisabled($theme);
|
|
672
|
-
}
|
|
673
|
-
&[color="disabled"][outline]:not([outline="false"]),
|
|
674
|
-
&[color="disabled"][link]:not([link="false"]),
|
|
675
|
-
&[color="disabled"][basic]:not([basic="false"]) {
|
|
676
|
-
color: getDisabled($theme);
|
|
677
|
-
}
|
|
678
|
-
&[color="disabled"]{
|
|
679
|
-
background: getDisabled($theme);
|
|
680
|
-
color: getDisabledBgContrast($theme);
|
|
257
|
+
@each $colorName, $colorFn in $color-functions {
|
|
258
|
+
&[color="#{$colorName}"][outline]:not([outline="false"]) .ripple,
|
|
259
|
+
&[color="#{$colorName}"][basic]:not([basic="false"]) .ripple {
|
|
260
|
+
background: call(#{$colorFn}Alpha, $theme)
|
|
261
|
+
}
|
|
262
|
+
&[color="#{$colorName}"][alpha]:not([alpha="false"]){
|
|
263
|
+
background: call(#{$colorFn}Alpha, $theme);
|
|
264
|
+
color: call(#{$colorFn}, $theme);
|
|
265
|
+
}
|
|
266
|
+
&[color="#{$colorName}"][outline]:not([outline="false"]),
|
|
267
|
+
&[color="#{$colorName}"][link]:not([link="false"]),
|
|
268
|
+
&[color="#{$colorName}"][basic]:not([basic="false"]) {
|
|
269
|
+
color: call(#{$colorFn}, $theme);
|
|
270
|
+
}
|
|
271
|
+
&[color="#{$colorName}"]{
|
|
272
|
+
background: call(#{$colorFn}, $theme);
|
|
273
|
+
color: call(#{$colorFn}Contrast, $theme);
|
|
274
|
+
}
|
|
275
|
+
&[color="#{$colorName}"] .ripple{background: call(#{$colorFn}ContrastAlpha, $theme)}
|
|
276
|
+
|
|
277
|
+
&[disabled],
|
|
278
|
+
&[disabled]:not([disabled="false"]),
|
|
279
|
+
&[disabled="true"] {
|
|
280
|
+
&[solid],
|
|
281
|
+
&[solid]:not([solid="false"]),
|
|
282
|
+
&[solid="true"]{
|
|
283
|
+
@include _disabled-solid-button($theme);
|
|
284
|
+
}
|
|
285
|
+
&[outline],
|
|
286
|
+
&[outline]:not([outline="false"]),
|
|
287
|
+
&[outline="true"]{
|
|
288
|
+
@include _disabled-outline-button($theme);
|
|
289
|
+
}
|
|
290
|
+
&[basic],
|
|
291
|
+
&[basic]:not([basic="false"]),
|
|
292
|
+
&[basic="true"]{
|
|
293
|
+
@include _disabled-basic-button($theme);
|
|
294
|
+
}
|
|
295
|
+
&[alpha],
|
|
296
|
+
&[alpha]:not([alpha="false"]),
|
|
297
|
+
&[alpha="true"]{
|
|
298
|
+
@include _disabled-alpha-button($theme);
|
|
299
|
+
}
|
|
300
|
+
&[link],
|
|
301
|
+
&[link]:not([link="false"]),
|
|
302
|
+
&[link="true"]{
|
|
303
|
+
@include _disabled-link-button($theme);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
681
306
|
}
|
|
682
|
-
&[color="disabled"] .ripple{background: getDisabledContrastAlpha($theme)}
|
|
683
|
-
|
|
684
307
|
}
|
|
685
308
|
|
|
686
309
|
button[matcha-button],
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
@mixin matcha-slide-toggle-theme($theme) {
|
|
2
|
+
matcha-slide-toggle {
|
|
3
|
+
input[type="checkbox"] {
|
|
4
|
+
&::before {
|
|
5
|
+
background-color: getDisabled($theme);
|
|
6
|
+
}
|
|
7
|
+
&::after {
|
|
8
|
+
box-shadow: getDisabledContrast($theme);
|
|
9
|
+
background-color: getGrey($theme);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
&:not([color]),
|
|
13
|
+
&[color="accent"] {
|
|
14
|
+
input[type="checkbox"] {
|
|
15
|
+
&:checked {
|
|
16
|
+
&::before {
|
|
17
|
+
background-color: getAccentAlpha($theme);
|
|
18
|
+
}
|
|
19
|
+
&::after {
|
|
20
|
+
background-color: getAccent($theme);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
//red
|
|
27
|
+
&[color="red"] {
|
|
28
|
+
input[type="checkbox"] {
|
|
29
|
+
&:checked {
|
|
30
|
+
&::before {
|
|
31
|
+
background-color: getRedAlpha($theme);
|
|
32
|
+
}
|
|
33
|
+
&::after {
|
|
34
|
+
background-color: getRed($theme);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
//pink
|
|
41
|
+
&[color="pink"] {
|
|
42
|
+
input[type="checkbox"] {
|
|
43
|
+
&:checked {
|
|
44
|
+
&::before {
|
|
45
|
+
background-color: getPinkAlpha($theme);
|
|
46
|
+
}
|
|
47
|
+
&::after {
|
|
48
|
+
background-color: getPink($theme);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
//purple
|
|
55
|
+
&[color="purple"] {
|
|
56
|
+
input[type="checkbox"] {
|
|
57
|
+
&:checked {
|
|
58
|
+
&::before {
|
|
59
|
+
background-color: getPurpleAlpha($theme);
|
|
60
|
+
}
|
|
61
|
+
&::after {
|
|
62
|
+
background-color: getPurple($theme);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
//deep-purple
|
|
69
|
+
&[color="deep-purple"] {
|
|
70
|
+
input[type="checkbox"] {
|
|
71
|
+
&:checked {
|
|
72
|
+
&::before {
|
|
73
|
+
background-color: getDeepPurpleAlpha($theme);
|
|
74
|
+
}
|
|
75
|
+
&::after {
|
|
76
|
+
background-color: getDeepPurple($theme);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
//indigo
|
|
83
|
+
&[color="indigo"] {
|
|
84
|
+
input[type="checkbox"] {
|
|
85
|
+
&:checked {
|
|
86
|
+
&::before {
|
|
87
|
+
background-color: getIndigoAlpha($theme);
|
|
88
|
+
}
|
|
89
|
+
&::after {
|
|
90
|
+
background-color: getIndigo($theme);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
//blue
|
|
97
|
+
&[color="blue"] {
|
|
98
|
+
input[type="checkbox"] {
|
|
99
|
+
&:checked {
|
|
100
|
+
&::before {
|
|
101
|
+
background-color: getBlueAlpha($theme);
|
|
102
|
+
}
|
|
103
|
+
&::after {
|
|
104
|
+
background-color: getBlue($theme);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
//light-blue
|
|
111
|
+
&[color="light-blue"] {
|
|
112
|
+
input[type="checkbox"] {
|
|
113
|
+
&:checked {
|
|
114
|
+
&::before {
|
|
115
|
+
background-color: getLightBlueAlpha($theme);
|
|
116
|
+
}
|
|
117
|
+
&::after {
|
|
118
|
+
background-color: getLightBlue($theme);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
//cyan
|
|
125
|
+
&[color="cyan"] {
|
|
126
|
+
input[type="checkbox"] {
|
|
127
|
+
&:checked {
|
|
128
|
+
&::before {
|
|
129
|
+
background-color: getCyanAlpha($theme);
|
|
130
|
+
}
|
|
131
|
+
&::after {
|
|
132
|
+
background-color: getCyan($theme);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
//teal
|
|
139
|
+
&[color="teal"] {
|
|
140
|
+
input[type="checkbox"] {
|
|
141
|
+
&:checked {
|
|
142
|
+
&::before {
|
|
143
|
+
background-color: getTealAlpha($theme);
|
|
144
|
+
}
|
|
145
|
+
&::after {
|
|
146
|
+
background-color: getTeal($theme);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
//green
|
|
153
|
+
&[color="green"] {
|
|
154
|
+
input[type="checkbox"] {
|
|
155
|
+
&:checked {
|
|
156
|
+
&::before {
|
|
157
|
+
background-color: getGreenAlpha($theme);
|
|
158
|
+
}
|
|
159
|
+
&::after {
|
|
160
|
+
background-color: getGreen($theme);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
//light-green
|
|
167
|
+
&[color="light-green"] {
|
|
168
|
+
input[type="checkbox"] {
|
|
169
|
+
&:checked {
|
|
170
|
+
&::before {
|
|
171
|
+
background-color: getLightGreenAlpha($theme);
|
|
172
|
+
}
|
|
173
|
+
&::after {
|
|
174
|
+
background-color: getLightGreen($theme);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
//lime
|
|
181
|
+
&[color="lime"] {
|
|
182
|
+
input[type="checkbox"] {
|
|
183
|
+
&:checked {
|
|
184
|
+
&::before {
|
|
185
|
+
background-color: getLimeAlpha($theme);
|
|
186
|
+
}
|
|
187
|
+
&::after {
|
|
188
|
+
background-color: getLime($theme);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
//yellow
|
|
195
|
+
&[color="yellow"] {
|
|
196
|
+
input[type="checkbox"] {
|
|
197
|
+
&:checked {
|
|
198
|
+
&::before {
|
|
199
|
+
background-color: getYellowAlpha($theme);
|
|
200
|
+
}
|
|
201
|
+
&::after {
|
|
202
|
+
background-color: getYellow($theme);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
//amber
|
|
209
|
+
&[color="amber"] {
|
|
210
|
+
input[type="checkbox"] {
|
|
211
|
+
&:checked {
|
|
212
|
+
&::before {
|
|
213
|
+
background-color: getAmberAlpha($theme);
|
|
214
|
+
}
|
|
215
|
+
&::after {
|
|
216
|
+
background-color: getAmber($theme);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
//orange
|
|
223
|
+
&[color="orange"] {
|
|
224
|
+
input[type="checkbox"] {
|
|
225
|
+
&:checked {
|
|
226
|
+
&::before {
|
|
227
|
+
background-color: getOrangeAlpha($theme);
|
|
228
|
+
}
|
|
229
|
+
&::after {
|
|
230
|
+
background-color: getOrange($theme);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
//deep-orange
|
|
237
|
+
&[color="deep-orange"] {
|
|
238
|
+
input[type="checkbox"] {
|
|
239
|
+
&:checked {
|
|
240
|
+
&::before {
|
|
241
|
+
background-color: getDeepOrangeAlpha($theme);
|
|
242
|
+
}
|
|
243
|
+
&::after {
|
|
244
|
+
background-color: getDeepOrange($theme);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
//brown
|
|
251
|
+
&[color="brown"] {
|
|
252
|
+
input[type="checkbox"] {
|
|
253
|
+
&:checked {
|
|
254
|
+
&::before {
|
|
255
|
+
background-color: getBrownAlpha($theme);
|
|
256
|
+
}
|
|
257
|
+
&::after {
|
|
258
|
+
background-color: getBrown($theme);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
//grey
|
|
265
|
+
&[color="grey"] {
|
|
266
|
+
input[type="checkbox"] {
|
|
267
|
+
&:checked {
|
|
268
|
+
&::before {
|
|
269
|
+
background-color: getGreyAlpha($theme);
|
|
270
|
+
}
|
|
271
|
+
&::after {
|
|
272
|
+
background-color: getGrey($theme);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
//blue-grey
|
|
279
|
+
&[color="blue-grey"] {
|
|
280
|
+
input[type="checkbox"] {
|
|
281
|
+
&:checked {
|
|
282
|
+
&::before {
|
|
283
|
+
background-color: getBlueGreyAlpha($theme);
|
|
284
|
+
}
|
|
285
|
+
&::after {
|
|
286
|
+
background-color: getBlueGrey($theme);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
//primary
|
|
293
|
+
&[color="primary"] {
|
|
294
|
+
input[type="checkbox"] {
|
|
295
|
+
&:checked {
|
|
296
|
+
&::before {
|
|
297
|
+
background-color: getPrimaryAlpha($theme);
|
|
298
|
+
}
|
|
299
|
+
&::after {
|
|
300
|
+
background-color: getPrimary($theme);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
//warn
|
|
307
|
+
&[color="warn"] {
|
|
308
|
+
input[type="checkbox"] {
|
|
309
|
+
&:checked {
|
|
310
|
+
&::before {
|
|
311
|
+
background-color: getWarnAlpha($theme);
|
|
312
|
+
}
|
|
313
|
+
&::after {
|
|
314
|
+
background-color: getWarn($theme);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.matcha-slide-toggle-label {
|
|
321
|
+
color: getGrey($theme);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
matcha-slide-toggle {
|
|
326
|
+
label {
|
|
327
|
+
display: inline-flex;
|
|
328
|
+
align-items: center;
|
|
329
|
+
cursor: pointer;
|
|
330
|
+
outline: none;
|
|
331
|
+
-webkit-tap-highlight-color: transparent;
|
|
332
|
+
vertical-align: middle;
|
|
333
|
+
position: relative;
|
|
334
|
+
|
|
335
|
+
.matcha-slide-toggle-label {
|
|
336
|
+
font-size: 14px;
|
|
337
|
+
user-select: none;
|
|
338
|
+
}
|
|
339
|
+
&.matcha-slide-toggle-disabled {
|
|
340
|
+
cursor: not-allowed;
|
|
341
|
+
opacity: 0.5;
|
|
342
|
+
|
|
343
|
+
input[type="checkbox"] {
|
|
344
|
+
cursor: not-allowed;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
input[type="checkbox"] {
|
|
350
|
+
appearance: none;
|
|
351
|
+
-webkit-appearance: none;
|
|
352
|
+
position: relative;
|
|
353
|
+
display: inline-block;
|
|
354
|
+
width: 36px;
|
|
355
|
+
height: 20px;
|
|
356
|
+
margin: 0;
|
|
357
|
+
outline: none;
|
|
358
|
+
cursor: pointer;
|
|
359
|
+
vertical-align: middle;
|
|
360
|
+
|
|
361
|
+
&::before {
|
|
362
|
+
content: "";
|
|
363
|
+
position: absolute;
|
|
364
|
+
top: 50%;
|
|
365
|
+
left: 0;
|
|
366
|
+
transform: translateY(-50%);
|
|
367
|
+
width: 100%;
|
|
368
|
+
height: 14px;
|
|
369
|
+
border-radius: 7px;
|
|
370
|
+
transition: background-color 0.15s linear;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
&::after {
|
|
374
|
+
content: "";
|
|
375
|
+
position: absolute;
|
|
376
|
+
top: 0;
|
|
377
|
+
left: -1px;
|
|
378
|
+
width: 20px;
|
|
379
|
+
height: 20px;
|
|
380
|
+
border-radius: 50%;
|
|
381
|
+
transition:
|
|
382
|
+
transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
|
|
383
|
+
background-color 0.15s linear,
|
|
384
|
+
outline 0.1s ease-out;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
&:checked {
|
|
388
|
+
&::after {
|
|
389
|
+
transform: translateX(17px);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
&:focus-visible::after {
|
|
394
|
+
outline-offset: 2px;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
package/main.scss
CHANGED
|
@@ -41,6 +41,8 @@
|
|
|
41
41
|
@import "./components/matcha-ripple.scss"; // matcha-ripple-theme($theme)
|
|
42
42
|
@import "./components/matcha-spin.scss"; // matcha-spin-theme($theme)
|
|
43
43
|
@import "./components/matcha-hint-text.scss"; // matcha-hint-theme($theme)
|
|
44
|
+
@import "./components/matcha-slide-toggle.scss"; // matcha-slide-toggle($theme)
|
|
45
|
+
|
|
44
46
|
@import "./components/matcha-tabs.scss"; // matcha-tabs($theme)
|
|
45
47
|
// VENDORS
|
|
46
48
|
@import "./vendors/angular-editor.scss";
|
|
@@ -142,5 +144,6 @@
|
|
|
142
144
|
@include matcha-checkbox($theme);
|
|
143
145
|
@include matcha-spin($theme);
|
|
144
146
|
@include matcha-hint-text($theme);
|
|
147
|
+
@include matcha-slide-toggle-theme($theme);
|
|
145
148
|
@include matcha-tabs($theme);
|
|
146
149
|
}
|