matcha-theme 19.31.0 → 19.35.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/abstracts/_colors.scss +344 -375
- package/abstracts/_functions.scss +567 -0
- package/abstracts/_typography.scss +2 -0
- package/components/matcha-buttons.scss +220 -268
- package/components/matcha-checkbox.scss +391 -0
- package/components/matcha-form-field.scss +10 -1
- package/components/matcha-ripple.scss +7 -0
- package/main.scss +4 -0
- package/package.json +1 -1
|
@@ -95,20 +95,17 @@ a[matcha-button] {
|
|
|
95
95
|
&[size="large"],
|
|
96
96
|
&[size="huge"] {
|
|
97
97
|
min-width: 24px;
|
|
98
|
-
&.stroked {
|
|
99
|
-
box-shadow: 0px 0px 0px 2px inset;
|
|
100
|
-
}
|
|
101
98
|
}
|
|
102
99
|
|
|
103
100
|
@include generate-matcha-button-size-classes($helper-breakpoints);
|
|
104
101
|
|
|
105
102
|
|
|
106
103
|
&:hover{
|
|
107
|
-
filter: brightness(1.
|
|
104
|
+
// filter: brightness(1.02);
|
|
108
105
|
}
|
|
109
106
|
|
|
110
107
|
&:active{
|
|
111
|
-
filter: brightness(
|
|
108
|
+
// filter: brightness(0.98);
|
|
112
109
|
}
|
|
113
110
|
|
|
114
111
|
&[disabled] {
|
|
@@ -190,483 +187,451 @@ a[matcha-button] {
|
|
|
190
187
|
}
|
|
191
188
|
|
|
192
189
|
@mixin matcha-button-theme($theme) {
|
|
193
|
-
$is-dark: map-get($theme, is-dark);
|
|
194
|
-
$palettes: getBaseColorsPalettes();
|
|
195
|
-
// colors from base palette
|
|
196
|
-
$red: map-get($palettes, red);
|
|
197
|
-
$red-contrast: map-get($red, 'contrast');
|
|
198
|
-
$pink: map-get($palettes, pink);
|
|
199
|
-
$pink-contrast: map-get($pink, 'contrast');
|
|
200
|
-
$purple: map-get($palettes, purple);
|
|
201
|
-
$purple-contrast: map-get($purple, 'contrast');
|
|
202
|
-
$deep-purple: map-get($palettes, deep-purple);
|
|
203
|
-
$deep-purple-contrast: map-get($deep-purple, 'contrast');
|
|
204
|
-
$indigo: map-get($palettes, indigo);
|
|
205
|
-
$indigo-contrast: map-get($indigo, 'contrast');
|
|
206
|
-
$blue: map-get($palettes, blue);
|
|
207
|
-
$blue-contrast: map-get($blue, 'contrast');
|
|
208
|
-
$light-blue: map-get($palettes, light-blue);
|
|
209
|
-
$light-blue-contrast: map-get($light-blue, 'contrast');
|
|
210
|
-
$cyan: map-get($palettes, cyan);
|
|
211
|
-
$cyan-contrast: map-get($cyan, 'contrast');
|
|
212
|
-
$teal: map-get($palettes, teal);
|
|
213
|
-
$teal-contrast: map-get($teal, 'contrast');
|
|
214
|
-
$green: map-get($palettes, green);
|
|
215
|
-
$green-contrast: map-get($green, 'contrast');
|
|
216
|
-
$light-green: map-get($palettes, light-green);
|
|
217
|
-
$light-green-contrast: map-get($light-green, 'contrast');
|
|
218
|
-
$lime: map-get($palettes, lime);
|
|
219
|
-
$lime-contrast: map-get($lime, 'contrast');
|
|
220
|
-
$yellow: map-get($palettes, yellow);
|
|
221
|
-
$yellow-contrast: map-get($yellow, 'contrast');
|
|
222
|
-
$amber: map-get($palettes, amber);
|
|
223
|
-
$amber-contrast: map-get($amber, 'contrast');
|
|
224
|
-
$orange: map-get($palettes, orange);
|
|
225
|
-
$orange-contrast: map-get($orange, 'contrast');
|
|
226
|
-
$deep-orange: map-get($palettes, deep-orange);
|
|
227
|
-
$deep-orange-contrast: map-get($deep-orange, 'contrast');
|
|
228
|
-
$brown: map-get($palettes, brown);
|
|
229
|
-
$brown-contrast: map-get($brown, 'contrast');
|
|
230
|
-
$grey: map-get($palettes, grey);
|
|
231
|
-
$grey-contrast: map-get($grey, 'contrast');
|
|
232
|
-
$blue-grey: map-get($palettes, blue-grey);
|
|
233
|
-
$blue-grey-contrast: map-get($blue-grey, 'contrast');
|
|
234
|
-
|
|
235
|
-
// colors from theme
|
|
236
|
-
$primary: map-get($theme, primary);
|
|
237
|
-
$primary-contrast: map-get($primary, 'contrast');
|
|
238
|
-
$accent: map-get($theme, accent);
|
|
239
|
-
$accent-contrast: map-get($accent, 'contrast');
|
|
240
|
-
$warn: map-get($theme, warn);
|
|
241
|
-
$warn-contrast: map-get($warn, 'contrast');
|
|
242
|
-
|
|
243
|
-
$background: map-get($theme, background);
|
|
244
|
-
$foreground: map-get($theme, foreground);
|
|
245
|
-
|
|
246
|
-
$get-shade: if($is-dark, 100, 500); // Define $red-shade com base no valor de $is-dark
|
|
247
190
|
|
|
248
191
|
button[matcha-button],
|
|
249
192
|
a[matcha-button] {
|
|
250
193
|
&:not([color]) .ripple {
|
|
251
|
-
background:
|
|
194
|
+
background: getForegroundAlpha($theme)
|
|
252
195
|
}
|
|
253
196
|
// red
|
|
254
|
-
&[color="red"][outline]:not([outline="false"]) .ripple
|
|
255
|
-
|
|
197
|
+
&[color="red"][outline]:not([outline="false"]) .ripple,
|
|
198
|
+
&[color="red"][basic]:not([basic="false"]) .ripple {
|
|
199
|
+
background: getRedAlpha($theme)
|
|
256
200
|
}
|
|
257
201
|
&[color="red"][alpha]:not([alpha="false"]){
|
|
258
|
-
background:
|
|
259
|
-
color:
|
|
202
|
+
background: getRedAlpha($theme);
|
|
203
|
+
color: getRed($theme);
|
|
260
204
|
}
|
|
261
205
|
&[color="red"][outline]:not([outline="false"]),
|
|
262
206
|
&[color="red"][link]:not([link="false"]),
|
|
263
207
|
&[color="red"][basic]:not([basic="false"]) {
|
|
264
|
-
color:
|
|
208
|
+
color: getRed($theme)!important
|
|
265
209
|
}
|
|
266
210
|
&[color="red"]{
|
|
267
|
-
background:
|
|
268
|
-
color:
|
|
211
|
+
background: getRed($theme);
|
|
212
|
+
color: getRedContrast($theme);
|
|
269
213
|
}
|
|
270
|
-
&[color="red"] .ripple{background:
|
|
214
|
+
&[color="red"] .ripple{background: getRedContrastAlpha($theme)}
|
|
271
215
|
|
|
272
216
|
// pink
|
|
273
|
-
&[color="pink"][outline]:not([outline="false"]) .ripple
|
|
274
|
-
|
|
217
|
+
&[color="pink"][outline]:not([outline="false"]) .ripple,
|
|
218
|
+
&[color="pink"][basic]:not([basic="false"]) .ripple {
|
|
219
|
+
background: getPinkAlpha($theme)
|
|
275
220
|
}
|
|
276
221
|
&[color="pink"][alpha]:not([alpha="false"]){
|
|
277
|
-
background:
|
|
278
|
-
color:
|
|
222
|
+
background: getPinkAlpha($theme);
|
|
223
|
+
color: getPink($theme);
|
|
279
224
|
}
|
|
280
225
|
&[color="pink"][outline]:not([outline="false"]),
|
|
281
226
|
&[color="pink"][link]:not([link="false"]),
|
|
282
227
|
&[color="pink"][basic]:not([basic="false"]) {
|
|
283
|
-
color:
|
|
228
|
+
color: getPink($theme)!important
|
|
284
229
|
}
|
|
285
230
|
&[color="pink"]{
|
|
286
|
-
background:
|
|
287
|
-
color:
|
|
231
|
+
background: getPink($theme);
|
|
232
|
+
color: getPinkContrast($theme);
|
|
288
233
|
}
|
|
289
|
-
&[color="pink"] .ripple{background:
|
|
234
|
+
&[color="pink"] .ripple{background: getPinkContrastAlpha($theme)}
|
|
290
235
|
|
|
291
236
|
// purple
|
|
292
|
-
&[color="purple"][outline]:not([outline="false"]) .ripple
|
|
293
|
-
|
|
237
|
+
&[color="purple"][outline]:not([outline="false"]) .ripple,
|
|
238
|
+
&[color="purple"][basic]:not([basic="false"]) .ripple {
|
|
239
|
+
background: getPurpleAlpha($theme)
|
|
294
240
|
}
|
|
295
241
|
&[color="purple"][alpha]:not([alpha="false"]){
|
|
296
|
-
background:
|
|
297
|
-
color:
|
|
242
|
+
background: getPurpleAlpha($theme);
|
|
243
|
+
color: getPurple($theme);
|
|
298
244
|
}
|
|
299
245
|
&[color="purple"][outline]:not([outline="false"]),
|
|
300
246
|
&[color="purple"][link]:not([link="false"]),
|
|
301
247
|
&[color="purple"][basic]:not([basic="false"]) {
|
|
302
|
-
color:
|
|
248
|
+
color: getPurple($theme)!important
|
|
303
249
|
}
|
|
304
250
|
&[color="purple"]{
|
|
305
|
-
background:
|
|
306
|
-
color:
|
|
251
|
+
background: getPurple($theme);
|
|
252
|
+
color: getPurpleContrast($theme);
|
|
307
253
|
}
|
|
308
|
-
&[color="purple"] .ripple{background:
|
|
254
|
+
&[color="purple"] .ripple{background: getPurpleContrastAlpha($theme)}
|
|
309
255
|
|
|
310
256
|
// deep-purple
|
|
311
|
-
&[color="deep-purple"][outline]:not([outline="false"]) .ripple
|
|
312
|
-
|
|
257
|
+
&[color="deep-purple"][outline]:not([outline="false"]) .ripple,
|
|
258
|
+
&[color="deep-purple"][basic]:not([basic="false"]) .ripple {
|
|
259
|
+
background: getDeepPurpleAlpha($theme)
|
|
313
260
|
}
|
|
314
261
|
&[color="deep-purple"][alpha]:not([alpha="false"]){
|
|
315
|
-
background:
|
|
316
|
-
color:
|
|
262
|
+
background: getDeepPurpleAlpha($theme);
|
|
263
|
+
color: getDeepPurple($theme);
|
|
317
264
|
}
|
|
318
265
|
&[color="deep-purple"][outline]:not([outline="false"]),
|
|
319
266
|
&[color="deep-purple"][link]:not([link="false"]),
|
|
320
267
|
&[color="deep-purple"][basic]:not([basic="false"]) {
|
|
321
|
-
color:
|
|
268
|
+
color: getDeepPurple($theme)!important
|
|
322
269
|
}
|
|
323
270
|
&[color="deep-purple"]{
|
|
324
|
-
background:
|
|
325
|
-
color:
|
|
271
|
+
background: getDeepPurple($theme);
|
|
272
|
+
color: getDeepPurpleContrast($theme);
|
|
326
273
|
}
|
|
327
|
-
&[color="deep-purple"] .ripple{background:
|
|
274
|
+
&[color="deep-purple"] .ripple{background: getDeepPurpleContrastAlpha($theme)}
|
|
328
275
|
|
|
329
276
|
// indigo
|
|
330
|
-
&[color="indigo"][outline]:not([outline="false"]) .ripple
|
|
331
|
-
|
|
277
|
+
&[color="indigo"][outline]:not([outline="false"]) .ripple,
|
|
278
|
+
&[color="indigo"][basic]:not([basic="false"]) .ripple {
|
|
279
|
+
background: getIndigoAlpha($theme)
|
|
332
280
|
}
|
|
333
281
|
&[color="indigo"][alpha]:not([alpha="false"]){
|
|
334
|
-
background:
|
|
335
|
-
color:
|
|
282
|
+
background: getIndigoAlpha($theme);
|
|
283
|
+
color: getIndigo($theme);
|
|
336
284
|
}
|
|
337
285
|
&[color="indigo"][outline]:not([outline="false"]),
|
|
338
286
|
&[color="indigo"][link]:not([link="false"]),
|
|
339
287
|
&[color="indigo"][basic]:not([basic="false"]) {
|
|
340
|
-
color:
|
|
288
|
+
color: getIndigo($theme)!important
|
|
341
289
|
}
|
|
342
290
|
&[color="indigo"]{
|
|
343
|
-
background:
|
|
344
|
-
color:
|
|
291
|
+
background: getIndigo($theme);
|
|
292
|
+
color: getIndigoContrast($theme);
|
|
345
293
|
}
|
|
346
|
-
&[color="indigo"] .ripple{background:
|
|
294
|
+
&[color="indigo"] .ripple{background: getIndigoContrastAlpha($theme)}
|
|
347
295
|
|
|
348
296
|
// blue
|
|
349
|
-
&[color="blue"][outline]:not([outline="false"]) .ripple
|
|
350
|
-
|
|
297
|
+
&[color="blue"][outline]:not([outline="false"]) .ripple,
|
|
298
|
+
&[color="blue"][basic]:not([basic="false"]) .ripple {
|
|
299
|
+
background: getBlueAlpha($theme)
|
|
351
300
|
}
|
|
352
301
|
&[color="blue"][alpha]:not([alpha="false"]){
|
|
353
|
-
background:
|
|
354
|
-
color:
|
|
302
|
+
background: getBlueAlpha($theme);
|
|
303
|
+
color: getBlue($theme);
|
|
355
304
|
}
|
|
356
305
|
&[color="blue"][outline]:not([outline="false"]),
|
|
357
306
|
&[color="blue"][link]:not([link="false"]),
|
|
358
307
|
&[color="blue"][basic]:not([basic="false"]) {
|
|
359
|
-
color:
|
|
308
|
+
color: getBlue($theme)!important
|
|
360
309
|
}
|
|
361
310
|
&[color="blue"]{
|
|
362
|
-
background:
|
|
363
|
-
color:
|
|
311
|
+
background: getBlue($theme);
|
|
312
|
+
color: getBlueContrast($theme);
|
|
364
313
|
}
|
|
365
|
-
&[color="blue"] .ripple{background:
|
|
314
|
+
&[color="blue"] .ripple{background: getBlueContrastAlpha($theme)}
|
|
366
315
|
|
|
367
316
|
// light-blue
|
|
368
|
-
&[color="light-blue"][outline]:not([outline="false"]) .ripple
|
|
369
|
-
|
|
317
|
+
&[color="light-blue"][outline]:not([outline="false"]) .ripple,
|
|
318
|
+
&[color="light-blue"][basic]:not([basic="false"]) .ripple {
|
|
319
|
+
background: getLightBlueAlpha($theme)
|
|
370
320
|
}
|
|
371
321
|
&[color="light-blue"][alpha]:not([alpha="false"]){
|
|
372
|
-
background:
|
|
373
|
-
color:
|
|
322
|
+
background: getLightBlueAlpha($theme);
|
|
323
|
+
color: getLightBlue($theme);
|
|
374
324
|
}
|
|
375
325
|
&[color="light-blue"][outline]:not([outline="false"]),
|
|
376
326
|
&[color="light-blue"][link]:not([link="false"]),
|
|
377
327
|
&[color="light-blue"][basic]:not([basic="false"]) {
|
|
378
|
-
color:
|
|
328
|
+
color: getLightBlue($theme)!important
|
|
379
329
|
}
|
|
380
330
|
&[color="light-blue"]{
|
|
381
|
-
background:
|
|
382
|
-
color:
|
|
331
|
+
background: getLightBlue($theme);
|
|
332
|
+
color: getLightBlueContrast($theme);
|
|
383
333
|
}
|
|
384
|
-
&[color="light-blue"] .ripple{background:
|
|
334
|
+
&[color="light-blue"] .ripple{background: getLightBlueContrastAlpha($theme)}
|
|
385
335
|
|
|
386
336
|
// cyan
|
|
387
|
-
&[color="cyan"][outline]:not([outline="false"]) .ripple
|
|
388
|
-
|
|
337
|
+
&[color="cyan"][outline]:not([outline="false"]) .ripple,
|
|
338
|
+
&[color="cyan"][basic]:not([basic="false"]) .ripple {
|
|
339
|
+
background: getCyanAlpha($theme)
|
|
389
340
|
}
|
|
390
341
|
&[color="cyan"][alpha]:not([alpha="false"]){
|
|
391
|
-
background:
|
|
392
|
-
color:
|
|
342
|
+
background: getCyanAlpha($theme);
|
|
343
|
+
color: getCyan($theme);
|
|
393
344
|
}
|
|
394
345
|
&[color="cyan"][outline]:not([outline="false"]),
|
|
395
346
|
&[color="cyan"][link]:not([link="false"]),
|
|
396
347
|
&[color="cyan"][basic]:not([basic="false"]) {
|
|
397
|
-
color:
|
|
348
|
+
color: getCyan($theme)!important
|
|
398
349
|
}
|
|
399
350
|
&[color="cyan"]{
|
|
400
|
-
background:
|
|
401
|
-
color:
|
|
351
|
+
background: getCyan($theme);
|
|
352
|
+
color: getCyanContrast($theme);
|
|
402
353
|
}
|
|
403
|
-
&[color="cyan"] .ripple{background:
|
|
354
|
+
&[color="cyan"] .ripple{background: getCyanContrastAlpha($theme)}
|
|
404
355
|
|
|
405
356
|
// teal
|
|
406
|
-
&[color="teal"][outline]:not([outline="false"]) .ripple
|
|
407
|
-
|
|
357
|
+
&[color="teal"][outline]:not([outline="false"]) .ripple,
|
|
358
|
+
&[color="teal"][basic]:not([basic="false"]) .ripple {
|
|
359
|
+
background: getTealAlpha($theme)
|
|
408
360
|
}
|
|
409
361
|
&[color="teal"][alpha]:not([alpha="false"]){
|
|
410
|
-
background:
|
|
411
|
-
color:
|
|
362
|
+
background: getTealAlpha($theme);
|
|
363
|
+
color: getTeal($theme);
|
|
412
364
|
}
|
|
413
365
|
&[color="teal"][outline]:not([outline="false"]),
|
|
414
366
|
&[color="teal"][link]:not([link="false"]),
|
|
415
367
|
&[color="teal"][basic]:not([basic="false"]) {
|
|
416
|
-
color:
|
|
368
|
+
color: getTeal($theme)!important
|
|
417
369
|
}
|
|
418
370
|
&[color="teal"]{
|
|
419
|
-
background:
|
|
420
|
-
color:
|
|
371
|
+
background: getTeal($theme);
|
|
372
|
+
color: getTealContrast($theme);
|
|
421
373
|
}
|
|
422
|
-
&[color="teal"] .ripple{background:
|
|
374
|
+
&[color="teal"] .ripple{background: getTealContrastAlpha($theme)}
|
|
423
375
|
|
|
424
376
|
// green
|
|
425
|
-
&[color="green"][outline]:not([outline="false"]) .ripple
|
|
426
|
-
|
|
377
|
+
&[color="green"][outline]:not([outline="false"]) .ripple,
|
|
378
|
+
&[color="green"][basic]:not([basic="false"]) .ripple {
|
|
379
|
+
background: getGreenAlpha($theme)
|
|
427
380
|
}
|
|
428
381
|
&[color="green"][alpha]:not([alpha="false"]){
|
|
429
|
-
background:
|
|
430
|
-
color:
|
|
382
|
+
background: getGreenAlpha($theme);
|
|
383
|
+
color: getGreen($theme);
|
|
431
384
|
}
|
|
432
385
|
&[color="green"][outline]:not([outline="false"]),
|
|
433
386
|
&[color="green"][link]:not([link="false"]),
|
|
434
387
|
&[color="green"][basic]:not([basic="false"]) {
|
|
435
|
-
color:
|
|
388
|
+
color: getGreen($theme)!important
|
|
436
389
|
}
|
|
437
390
|
&[color="green"]{
|
|
438
|
-
background:
|
|
439
|
-
color:
|
|
391
|
+
background: getGreen($theme);
|
|
392
|
+
color: getGreenContrast($theme);
|
|
440
393
|
}
|
|
441
|
-
&[color="green"] .ripple{background:
|
|
394
|
+
&[color="green"] .ripple{background: getGreenContrastAlpha($theme)}
|
|
442
395
|
|
|
443
396
|
// light-green
|
|
444
|
-
&[color="light-green"][outline]:not([outline="false"]) .ripple
|
|
445
|
-
|
|
397
|
+
&[color="light-green"][outline]:not([outline="false"]) .ripple,
|
|
398
|
+
&[color="light-green"][basic]:not([basic="false"]) .ripple {
|
|
399
|
+
background: getLightGreenAlpha($theme)
|
|
446
400
|
}
|
|
447
401
|
&[color="light-green"][alpha]:not([alpha="false"]){
|
|
448
|
-
background:
|
|
449
|
-
color:
|
|
402
|
+
background: getLightGreenAlpha($theme);
|
|
403
|
+
color: getLightGreen($theme);
|
|
450
404
|
}
|
|
451
405
|
&[color="light-green"][outline]:not([outline="false"]),
|
|
452
406
|
&[color="light-green"][link]:not([link="false"]),
|
|
453
407
|
&[color="light-green"][basic]:not([basic="false"]) {
|
|
454
|
-
color:
|
|
408
|
+
color: getLightGreen($theme)!important
|
|
455
409
|
}
|
|
456
410
|
&[color="light-green"]{
|
|
457
|
-
background:
|
|
458
|
-
color:
|
|
411
|
+
background: getLightGreen($theme);
|
|
412
|
+
color: getLightGreenContrast($theme);
|
|
459
413
|
}
|
|
460
|
-
&[color="light-green"] .ripple{background:
|
|
414
|
+
&[color="light-green"] .ripple{background: getLightGreenContrastAlpha($theme)}
|
|
461
415
|
|
|
462
416
|
// lime
|
|
463
|
-
&[color="lime"][outline]:not([outline="false"]) .ripple
|
|
464
|
-
|
|
417
|
+
&[color="lime"][outline]:not([outline="false"]) .ripple,
|
|
418
|
+
&[color="lime"][basic]:not([basic="false"]) .ripple {
|
|
419
|
+
background: getLimeAlpha($theme)
|
|
465
420
|
}
|
|
466
421
|
&[color="lime"][alpha]:not([alpha="false"]){
|
|
467
|
-
background:
|
|
468
|
-
color:
|
|
422
|
+
background: getLimeAlpha($theme);
|
|
423
|
+
color: getLime($theme);
|
|
469
424
|
}
|
|
470
425
|
&[color="lime"][outline]:not([outline="false"]),
|
|
471
426
|
&[color="lime"][link]:not([link="false"]),
|
|
472
427
|
&[color="lime"][basic]:not([basic="false"]) {
|
|
473
|
-
color:
|
|
428
|
+
color: getLime($theme)!important
|
|
474
429
|
}
|
|
475
430
|
&[color="lime"]{
|
|
476
|
-
background:
|
|
477
|
-
color:
|
|
431
|
+
background: getLime($theme);
|
|
432
|
+
color: getLimeContrast($theme);
|
|
478
433
|
}
|
|
479
|
-
&[color="lime"] .ripple{background:
|
|
434
|
+
&[color="lime"] .ripple{background: getLimeContrastAlpha($theme)}
|
|
480
435
|
|
|
481
436
|
// yellow
|
|
482
|
-
&[color="yellow"][outline]:not([outline="false"]) .ripple
|
|
483
|
-
|
|
437
|
+
&[color="yellow"][outline]:not([outline="false"]) .ripple,
|
|
438
|
+
&[color="yellow"][basic]:not([basic="false"]) .ripple {
|
|
439
|
+
background: getYellowAlpha($theme)
|
|
484
440
|
}
|
|
485
441
|
&[color="yellow"][alpha]:not([alpha="false"]){
|
|
486
|
-
background:
|
|
487
|
-
color:
|
|
442
|
+
background: getYellowAlpha($theme);
|
|
443
|
+
color: getYellow($theme);
|
|
488
444
|
}
|
|
489
445
|
&[color="yellow"][outline]:not([outline="false"]),
|
|
490
446
|
&[color="yellow"][link]:not([link="false"]),
|
|
491
447
|
&[color="yellow"][basic]:not([basic="false"]) {
|
|
492
|
-
color:
|
|
448
|
+
color: getYellow($theme)!important
|
|
493
449
|
}
|
|
494
450
|
&[color="yellow"]{
|
|
495
|
-
background:
|
|
496
|
-
color:
|
|
451
|
+
background: getYellow($theme);
|
|
452
|
+
color: getYellowContrast($theme);
|
|
497
453
|
}
|
|
498
|
-
&[color="yellow"] .ripple{background:
|
|
454
|
+
&[color="yellow"] .ripple{background: getYellowContrastAlpha($theme)}
|
|
499
455
|
|
|
500
456
|
// amber
|
|
501
|
-
&[color="amber"][outline]:not([outline="false"]) .ripple
|
|
502
|
-
|
|
457
|
+
&[color="amber"][outline]:not([outline="false"]) .ripple,
|
|
458
|
+
&[color="amber"][basic]:not([basic="false"]) .ripple {
|
|
459
|
+
background: getAmberAlpha($theme)
|
|
503
460
|
}
|
|
504
461
|
&[color="amber"][alpha]:not([alpha="false"]){
|
|
505
|
-
background:
|
|
506
|
-
color:
|
|
462
|
+
background: getAmberAlpha($theme);
|
|
463
|
+
color: getAmber($theme);
|
|
507
464
|
}
|
|
508
465
|
&[color="amber"][outline]:not([outline="false"]),
|
|
509
466
|
&[color="amber"][link]:not([link="false"]),
|
|
510
467
|
&[color="amber"][basic]:not([basic="false"]) {
|
|
511
|
-
color:
|
|
468
|
+
color: getAmber($theme)!important
|
|
512
469
|
}
|
|
513
470
|
&[color="amber"]{
|
|
514
|
-
background:
|
|
515
|
-
color:
|
|
471
|
+
background: getAmber($theme);
|
|
472
|
+
color: getAmberContrast($theme);
|
|
516
473
|
}
|
|
517
|
-
&[color="amber"] .ripple{background:
|
|
474
|
+
&[color="amber"] .ripple{background: getAmberContrastAlpha($theme)}
|
|
518
475
|
|
|
519
476
|
// orange
|
|
520
|
-
&[color="orange"][outline]:not([outline="false"]) .ripple
|
|
521
|
-
|
|
477
|
+
&[color="orange"][outline]:not([outline="false"]) .ripple,
|
|
478
|
+
&[color="orange"][basic]:not([basic="false"]) .ripple {
|
|
479
|
+
background: getOrangeAlpha($theme)
|
|
522
480
|
}
|
|
523
481
|
&[color="orange"][alpha]:not([alpha="false"]){
|
|
524
|
-
background:
|
|
525
|
-
color:
|
|
482
|
+
background: getOrangeAlpha($theme);
|
|
483
|
+
color: getOrange($theme);
|
|
526
484
|
}
|
|
527
485
|
&[color="orange"][outline]:not([outline="false"]),
|
|
528
486
|
&[color="orange"][link]:not([link="false"]),
|
|
529
487
|
&[color="orange"][basic]:not([basic="false"]) {
|
|
530
|
-
color:
|
|
488
|
+
color: getOrange($theme)!important
|
|
531
489
|
}
|
|
532
490
|
&[color="orange"]{
|
|
533
|
-
background:
|
|
534
|
-
color:
|
|
491
|
+
background: getOrange($theme);
|
|
492
|
+
color: getOrangeContrast($theme);
|
|
535
493
|
}
|
|
536
|
-
&[color="orange"] .ripple{background:
|
|
494
|
+
&[color="orange"] .ripple{background: getOrangeContrastAlpha($theme)}
|
|
537
495
|
|
|
538
496
|
// deep-orange
|
|
539
|
-
&[color="deep-orange"][outline]:not([outline="false"]) .ripple
|
|
540
|
-
|
|
497
|
+
&[color="deep-orange"][outline]:not([outline="false"]) .ripple,
|
|
498
|
+
&[color="deep-orange"][basic]:not([basic="false"]) .ripple {
|
|
499
|
+
background: getDeepOrangeAlpha($theme)
|
|
541
500
|
}
|
|
542
501
|
&[color="deep-orange"][alpha]:not([alpha="false"]){
|
|
543
|
-
background:
|
|
544
|
-
color:
|
|
502
|
+
background: getDeepOrangeAlpha($theme);
|
|
503
|
+
color: getDeepOrange($theme);
|
|
545
504
|
}
|
|
546
505
|
&[color="deep-orange"][outline]:not([outline="false"]),
|
|
547
506
|
&[color="deep-orange"][link]:not([link="false"]),
|
|
548
507
|
&[color="deep-orange"][basic]:not([basic="false"]) {
|
|
549
|
-
color:
|
|
508
|
+
color: getDeepOrange($theme)!important
|
|
550
509
|
}
|
|
551
510
|
&[color="deep-orange"]{
|
|
552
|
-
background:
|
|
553
|
-
color:
|
|
511
|
+
background: getDeepOrange($theme);
|
|
512
|
+
color: getDeepOrangeContrast($theme);
|
|
554
513
|
}
|
|
555
|
-
&[color="deep-orange"] .ripple{background:
|
|
514
|
+
&[color="deep-orange"] .ripple{background: getDeepOrangeContrastAlpha($theme)}
|
|
556
515
|
|
|
557
516
|
// brown
|
|
558
|
-
&[color="brown"][outline]:not([outline="false"]) .ripple
|
|
559
|
-
|
|
517
|
+
&[color="brown"][outline]:not([outline="false"]) .ripple,
|
|
518
|
+
&[color="brown"][basic]:not([basic="false"]) .ripple {
|
|
519
|
+
background: getBrownAlpha($theme)
|
|
560
520
|
}
|
|
561
521
|
&[color="brown"][alpha]:not([alpha="false"]){
|
|
562
|
-
background:
|
|
563
|
-
color:
|
|
522
|
+
background: getBrownAlpha($theme);
|
|
523
|
+
color: getBrown($theme);
|
|
564
524
|
}
|
|
565
525
|
&[color="brown"][outline]:not([outline="false"]),
|
|
566
526
|
&[color="brown"][link]:not([link="false"]),
|
|
567
527
|
&[color="brown"][basic]:not([basic="false"]) {
|
|
568
|
-
color:
|
|
528
|
+
color: getBrown($theme)!important
|
|
569
529
|
}
|
|
570
530
|
&[color="brown"]{
|
|
571
|
-
background:
|
|
572
|
-
color:
|
|
531
|
+
background: getBrown($theme);
|
|
532
|
+
color: getBrownContrast($theme);
|
|
573
533
|
}
|
|
574
|
-
&[color="brown"] .ripple{background:
|
|
534
|
+
&[color="brown"] .ripple{background: getBrownContrastAlpha($theme)}
|
|
575
535
|
|
|
576
536
|
// grey
|
|
577
|
-
&[color="grey"][outline]:not([outline="false"]) .ripple
|
|
578
|
-
|
|
537
|
+
&[color="grey"][outline]:not([outline="false"]) .ripple,
|
|
538
|
+
&[color="grey"][basic]:not([basic="false"]) .ripple {
|
|
539
|
+
background: getGreyAlpha($theme)
|
|
579
540
|
}
|
|
580
541
|
&[color="grey"][alpha]:not([alpha="false"]){
|
|
581
|
-
background:
|
|
582
|
-
color:
|
|
542
|
+
background: getGreyAlpha($theme);
|
|
543
|
+
color: getGrey($theme);
|
|
583
544
|
}
|
|
584
545
|
&[color="grey"][outline]:not([outline="false"]),
|
|
585
546
|
&[color="grey"][link]:not([link="false"]),
|
|
586
547
|
&[color="grey"][basic]:not([basic="false"]) {
|
|
587
|
-
color:
|
|
548
|
+
color: getGrey($theme)!important
|
|
588
549
|
}
|
|
589
550
|
&[color="grey"]{
|
|
590
|
-
background:
|
|
591
|
-
color:
|
|
551
|
+
background: getGrey($theme);
|
|
552
|
+
color: getGreyContrast($theme);
|
|
592
553
|
}
|
|
593
|
-
&[color="grey"] .ripple{background:
|
|
554
|
+
&[color="grey"] .ripple{background: getGreyContrastAlpha($theme)}
|
|
594
555
|
|
|
595
556
|
// blue-grey
|
|
596
|
-
&[color="blue-grey"][outline]:not([outline="false"]) .ripple
|
|
597
|
-
|
|
557
|
+
&[color="blue-grey"][outline]:not([outline="false"]) .ripple,
|
|
558
|
+
&[color="blue-grey"][basic]:not([basic="false"]) .ripple {
|
|
559
|
+
background: getBlueGreyAlpha($theme)
|
|
598
560
|
}
|
|
599
561
|
&[color="blue-grey"][alpha]:not([alpha="false"]){
|
|
600
|
-
background:
|
|
601
|
-
color:
|
|
562
|
+
background: getBlueGreyAlpha($theme);
|
|
563
|
+
color: getBlueGrey($theme);
|
|
602
564
|
}
|
|
603
565
|
&[color="blue-grey"][outline]:not([outline="false"]),
|
|
604
566
|
&[color="blue-grey"][link]:not([link="false"]),
|
|
605
567
|
&[color="blue-grey"][basic]:not([basic="false"]) {
|
|
606
|
-
color:
|
|
568
|
+
color: getBlueGrey($theme)!important
|
|
607
569
|
}
|
|
608
570
|
&[color="blue-grey"]{
|
|
609
|
-
background:
|
|
610
|
-
color:
|
|
571
|
+
background: getBlueGrey($theme);
|
|
572
|
+
color: getBlueGreyContrast($theme);
|
|
611
573
|
}
|
|
612
|
-
&[color="blue-grey"] .ripple{background:
|
|
574
|
+
&[color="blue-grey"] .ripple{background: getBlueGreyContrastAlpha($theme)}
|
|
613
575
|
|
|
614
576
|
// primary
|
|
615
|
-
&[color="primary"][outline]:not([outline="false"]) .ripple
|
|
616
|
-
|
|
577
|
+
&[color="primary"][outline]:not([outline="false"]) .ripple,
|
|
578
|
+
&[color="primary"][basic]:not([basic="false"]) .ripple {
|
|
579
|
+
background: getPrimaryAlpha($theme)
|
|
617
580
|
}
|
|
618
581
|
&[color="primary"][alpha]:not([alpha="false"]){
|
|
619
|
-
background:
|
|
620
|
-
color:
|
|
582
|
+
background: getPrimaryAlpha($theme);
|
|
583
|
+
color: getPrimary($theme);
|
|
621
584
|
}
|
|
622
585
|
&[color="primary"][outline]:not([outline="false"]),
|
|
623
586
|
&[color="primary"][link]:not([link="false"]),
|
|
624
587
|
&[color="primary"][basic]:not([basic="false"]) {
|
|
625
|
-
color:
|
|
588
|
+
color: getPrimary($theme)!important
|
|
626
589
|
}
|
|
627
590
|
&[color="primary"]{
|
|
628
|
-
background:
|
|
629
|
-
color:
|
|
591
|
+
background: getPrimary($theme);
|
|
592
|
+
color: getPrimaryContrast($theme);
|
|
630
593
|
}
|
|
631
|
-
&[color="primary"] .ripple{background:
|
|
594
|
+
&[color="primary"] .ripple{background: getPrimaryContrastAlpha($theme)}
|
|
632
595
|
|
|
633
596
|
// accent
|
|
634
|
-
&[color="accent"][outline]:not([outline="false"]) .ripple
|
|
635
|
-
|
|
597
|
+
&[color="accent"][outline]:not([outline="false"]) .ripple,
|
|
598
|
+
&[color="accent"][basic]:not([basic="false"]) .ripple {
|
|
599
|
+
background: getAccentAlpha($theme)
|
|
636
600
|
}
|
|
637
601
|
&[color="accent"][alpha]:not([alpha="false"]){
|
|
638
|
-
background:
|
|
639
|
-
color:
|
|
602
|
+
background: getAccentAlpha($theme);
|
|
603
|
+
color: getAccent($theme);
|
|
640
604
|
}
|
|
641
605
|
&[color="accent"][outline]:not([outline="false"]),
|
|
642
606
|
&[color="accent"][link]:not([link="false"]),
|
|
643
607
|
&[color="accent"][basic]:not([basic="false"]) {
|
|
644
|
-
color:
|
|
608
|
+
color: getAccent($theme)!important
|
|
645
609
|
}
|
|
646
610
|
&[color="accent"]{
|
|
647
|
-
background:
|
|
648
|
-
color:
|
|
611
|
+
background: getAccent($theme);
|
|
612
|
+
color: getAccentContrast($theme);
|
|
649
613
|
}
|
|
650
|
-
&[color="accent"] .ripple{background:
|
|
614
|
+
&[color="accent"] .ripple{background: getAccentContrastAlpha($theme)}
|
|
651
615
|
|
|
652
616
|
// warn
|
|
653
|
-
&[color="warn"][outline]:not([outline="false"]) .ripple
|
|
654
|
-
|
|
617
|
+
&[color="warn"][outline]:not([outline="false"]) .ripple,
|
|
618
|
+
&[color="warn"][basic]:not([basic="false"]) .ripple {
|
|
619
|
+
background: getWarnAlpha($theme)
|
|
655
620
|
}
|
|
656
621
|
&[color="warn"][alpha]:not([alpha="false"]){
|
|
657
|
-
background:
|
|
658
|
-
color:
|
|
622
|
+
background: getWarnAlpha($theme);
|
|
623
|
+
color: getWarn($theme);
|
|
659
624
|
}
|
|
660
625
|
&[color="warn"][outline]:not([outline="false"]),
|
|
661
626
|
&[color="warn"][link]:not([link="false"]),
|
|
662
627
|
&[color="warn"][basic]:not([basic="false"]) {
|
|
663
|
-
color:
|
|
628
|
+
color: getWarn($theme)!important
|
|
664
629
|
}
|
|
665
630
|
&[color="warn"]{
|
|
666
|
-
background:
|
|
667
|
-
color:
|
|
631
|
+
background: getWarn($theme);
|
|
632
|
+
color: getWarnContrast($theme);
|
|
668
633
|
}
|
|
669
|
-
&[color="warn"] .ripple{background:
|
|
634
|
+
&[color="warn"] .ripple{background: getWarnContrastAlpha($theme)}
|
|
670
635
|
|
|
671
636
|
}
|
|
672
637
|
|
|
@@ -674,50 +639,32 @@ a[matcha-button] {
|
|
|
674
639
|
a[matcha-button] {
|
|
675
640
|
border: 0px solid currentColor;
|
|
676
641
|
|
|
677
|
-
&[size="tiny"],
|
|
678
|
-
&[size="small"],
|
|
679
|
-
&[size="medium"],
|
|
680
|
-
&[size="large"],
|
|
681
|
-
&[size="huge"] {
|
|
682
|
-
|
|
683
|
-
&.stroked {
|
|
684
|
-
|
|
685
|
-
&.color-label {
|
|
686
|
-
box-shadow: 0px 0px 0px 2px inset map-get($foreground, label);
|
|
687
|
-
color: map-get($foreground, label);
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
&.color-placeholder {
|
|
691
|
-
box-shadow: 0px 0px 0px 2px inset map-get($foreground, placeholder);
|
|
692
|
-
color: map-get($foreground, placeholder);
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
|
|
697
642
|
&[disabled] {
|
|
698
|
-
background-color:
|
|
699
|
-
color:
|
|
700
|
-
border-color:
|
|
643
|
+
background-color: getDisabled($theme);
|
|
644
|
+
color: getDisabledContrast($theme) !important;
|
|
645
|
+
border-color: getDisabled($theme);
|
|
701
646
|
}
|
|
702
647
|
|
|
703
648
|
&[outline]:not([outline="false"]) {
|
|
704
649
|
border: 0px solid currentColor;
|
|
705
650
|
background: transparent !important;
|
|
706
651
|
&:not([color]){
|
|
707
|
-
border-color:
|
|
708
|
-
color:
|
|
652
|
+
border-color: getForeground($theme);
|
|
653
|
+
color: getForeground($theme);
|
|
709
654
|
}
|
|
710
655
|
&[disabled] {
|
|
711
|
-
box-shadow: 0 0 0 2px
|
|
712
|
-
color:
|
|
656
|
+
box-shadow: 0 0 0 2px getDisabledContrast($theme);
|
|
657
|
+
color: getDisabledContrast($theme) !important;
|
|
713
658
|
}
|
|
714
659
|
}
|
|
715
660
|
|
|
716
661
|
&[basic]:not([basic="false"]){
|
|
717
|
-
background:
|
|
718
|
-
|
|
662
|
+
background: getSurface($theme);
|
|
663
|
+
&:not([color]){
|
|
664
|
+
color: getForeground($theme);
|
|
665
|
+
}
|
|
719
666
|
&[disabled] {
|
|
720
|
-
color:
|
|
667
|
+
color: getDisabledContrast($theme) !important;
|
|
721
668
|
}
|
|
722
669
|
&[alpha]:not([alpha="false"]){
|
|
723
670
|
background:transparent;
|
|
@@ -725,15 +672,20 @@ a[matcha-button] {
|
|
|
725
672
|
}
|
|
726
673
|
|
|
727
674
|
&[alpha]:not([alpha="false"]){
|
|
675
|
+
&:not([color]){
|
|
676
|
+
background: rgba(getForeground($theme), 0.2);
|
|
677
|
+
border-color: getForeground($theme);
|
|
678
|
+
color: getForeground($theme);
|
|
679
|
+
}
|
|
728
680
|
&[disabled] {
|
|
729
|
-
background: rgba(
|
|
681
|
+
background: rgba(getDisabled($theme), 0.2);
|
|
730
682
|
}
|
|
731
683
|
}
|
|
732
684
|
|
|
733
685
|
&[link]:not([link="false"]) {
|
|
734
686
|
background-color: transparent;
|
|
735
687
|
&:not([color]){
|
|
736
|
-
color:
|
|
688
|
+
color: getForeground($theme);
|
|
737
689
|
}
|
|
738
690
|
}
|
|
739
691
|
}
|