matcha-theme 18.1.45 → 18.1.47
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 +142 -49
- package/components/matcha-buttons.scss +184 -106
- package/package.json +1 -1
package/abstracts/_colors.scss
CHANGED
|
@@ -249,262 +249,356 @@ $index: 0;
|
|
|
249
249
|
|
|
250
250
|
$get-shade: if($is-dark, 100, 500); // Define $red-shade com base no valor de $is-dark
|
|
251
251
|
|
|
252
|
-
.red
|
|
252
|
+
.red[outline]:not([outline="false"]) .ripple, .background-red-alpha {background: rgba(map-get($red, $get-shade), 0.2)}
|
|
253
253
|
.red .ripple{background: rgba(map-get($red-contrast, $get-shade), 0.2)}
|
|
254
254
|
.background-red{background: map-get($red, $get-shade)}
|
|
255
255
|
.border-color-red{border-color: map-get($red, $get-shade)}
|
|
256
|
-
.red
|
|
256
|
+
.red[outline]:not([outline="false"]),
|
|
257
|
+
[color="red"][outline]:not([outline="false"]),
|
|
258
|
+
[color="red"][link]:not([link="false"]),
|
|
259
|
+
.color-red{color: map-get($red, $get-shade)!important}
|
|
257
260
|
.fill-red{fill: map-get($red, $get-shade)}
|
|
258
261
|
.stroke-red{stroke: map-get($red, $get-shade)}
|
|
262
|
+
.color-red-alpha{color: rgba(map-get($red, $get-shade),0.2)!important}
|
|
259
263
|
.red{
|
|
260
264
|
background: map-get($red, $get-shade);
|
|
261
265
|
color: map-get($red-contrast, $get-shade);
|
|
262
266
|
}
|
|
263
|
-
.pink
|
|
267
|
+
.pink[outline]:not([outline="false"]) .ripple, .background-pink-alpha {background: rgba(map-get($pink, $get-shade), 0.2)}
|
|
264
268
|
.pink .ripple{background: rgba(map-get($pink-contrast, $get-shade), 0.2)}
|
|
265
269
|
.background-pink{background: map-get($pink, $get-shade)}
|
|
266
270
|
.border-color-pink{border-color: map-get($pink, $get-shade)}
|
|
267
|
-
.pink
|
|
271
|
+
.pink[outline]:not([outline="false"]),
|
|
272
|
+
[color="pink"][outline]:not([outline="false"]),
|
|
273
|
+
[color="pink"][link]:not([link="false"]),
|
|
274
|
+
.color-pink{color: map-get($pink, $get-shade)!important}
|
|
268
275
|
.fill-pink{fill: map-get($pink, $get-shade)}
|
|
269
276
|
.stroke-pink{stroke: map-get($pink, $get-shade)}
|
|
277
|
+
.color-pink-alpha{color: rgba(map-get($pink, $get-shade),0.2)!important}
|
|
270
278
|
.pink{
|
|
271
279
|
background: map-get($pink, $get-shade);
|
|
272
280
|
color: map-get($pink-contrast, $get-shade);
|
|
273
281
|
}
|
|
274
|
-
.purple
|
|
282
|
+
.purple[outline]:not([outline="false"]) .ripple, .background-purple-alpha {background: rgba(map-get($purple, $get-shade), 0.2)}
|
|
275
283
|
.purple .ripple{background: rgba(map-get($purple-contrast, $get-shade), 0.2)}
|
|
276
284
|
.background-purple{background: map-get($purple, $get-shade)}
|
|
277
285
|
.border-color-purple{border-color: map-get($purple, $get-shade)}
|
|
278
|
-
.purple
|
|
286
|
+
.purple[outline]:not([outline="false"]),
|
|
287
|
+
[color="purple"][outline]:not([outline="false"]),
|
|
288
|
+
[color="purple"][link]:not([link="false"]),
|
|
289
|
+
.color-purple{color: map-get($purple, $get-shade)!important}
|
|
279
290
|
.fill-purple{fill: map-get($purple, $get-shade)}
|
|
280
291
|
.stroke-purple{stroke: map-get($purple, $get-shade)}
|
|
292
|
+
.color-purple-alpha{color: rgba(map-get($purple, $get-shade),0.2)!important}
|
|
281
293
|
.purple{
|
|
282
294
|
background: map-get($purple, $get-shade);
|
|
283
295
|
color: map-get($purple-contrast, $get-shade);
|
|
284
296
|
}
|
|
285
|
-
.deep-purple
|
|
297
|
+
.deep-purple[outline]:not([outline="false"]) .ripple, .background-deep-purple-alpha {background: rgba(map-get($deep-purple, $get-shade), 0.2)}
|
|
286
298
|
.deep-purple .ripple{background: rgba(map-get($deep-purple-contrast, $get-shade), 0.2)}
|
|
287
299
|
.background-deep-purple{background: map-get($deep-purple, $get-shade)}
|
|
288
300
|
.border-color-deep-purple{border-color: map-get($deep-purple, $get-shade)}
|
|
289
|
-
.deep-purple
|
|
301
|
+
.deep-purple[outline]:not([outline="false"]),
|
|
302
|
+
[color="deep-purple"][outline]:not([outline="false"]),
|
|
303
|
+
[color="deep-purple"][link]:not([link="false"]),
|
|
304
|
+
.color-deep-purple{color: map-get($deep-purple, $get-shade)!important}
|
|
290
305
|
.fill-deep-purple{fill: map-get($deep-purple, $get-shade)}
|
|
291
306
|
.stroke-deep-purple{stroke: map-get($deep-purple, $get-shade)}
|
|
307
|
+
.color-deep-purple-alpha{color: rgba(map-get($deep-purple, $get-shade),0.2)!important}
|
|
292
308
|
.deep-purple{
|
|
293
309
|
background: map-get($deep-purple, $get-shade);
|
|
294
310
|
color: map-get($deep-purple-contrast, $get-shade);
|
|
295
311
|
}
|
|
296
|
-
.indigo
|
|
312
|
+
.indigo[outline]:not([outline="false"]) .ripple, .background-indigo-alpha {background: rgba(map-get($indigo, $get-shade), 0.2)}
|
|
297
313
|
.indigo .ripple{background: rgba(map-get($indigo-contrast, $get-shade), 0.2)}
|
|
298
314
|
.background-indigo{background: map-get($indigo, $get-shade)}
|
|
299
315
|
.border-color-indigo{border-color: map-get($indigo, $get-shade)}
|
|
300
|
-
.indigo
|
|
316
|
+
.indigo[outline]:not([outline="false"]),
|
|
317
|
+
[color="indigo"][outline]:not([outline="false"]),
|
|
318
|
+
[color="indigo"][link]:not([link="false"]),
|
|
319
|
+
.color-indigo{color: map-get($indigo, $get-shade)!important}
|
|
301
320
|
.fill-indigo{fill: map-get($indigo, $get-shade)}
|
|
302
321
|
.stroke-indigo{stroke: map-get($indigo, $get-shade)}
|
|
322
|
+
.color-indigo-alpha{color: rgba(map-get($indigo, $get-shade),0.2)!important}
|
|
303
323
|
.indigo{
|
|
304
324
|
background: map-get($indigo, $get-shade);
|
|
305
325
|
color: map-get($indigo-contrast, $get-shade);
|
|
306
326
|
}
|
|
307
|
-
.blue
|
|
327
|
+
.blue[outline]:not([outline="false"]) .ripple, .background-blue-alpha {background: rgba(map-get($blue, $get-shade), 0.2)}
|
|
308
328
|
.blue .ripple{background: rgba(map-get($blue-contrast, $get-shade), 0.2)}
|
|
309
329
|
.background-blue{background: map-get($blue, $get-shade)}
|
|
310
330
|
.border-color-blue{border-color: map-get($blue, $get-shade)}
|
|
311
|
-
.blue
|
|
331
|
+
.blue[outline]:not([outline="false"]),
|
|
332
|
+
[color="blue"][outline]:not([outline="false"]),
|
|
333
|
+
[color="blue"][link]:not([link="false"]),
|
|
334
|
+
.color-blue{color: map-get($blue, $get-shade)!important}
|
|
312
335
|
.fill-blue{fill: map-get($blue, $get-shade)}
|
|
313
336
|
.stroke-blue{stroke: map-get($blue, $get-shade)}
|
|
337
|
+
.color-blue-alpha{color: rgba(map-get($blue, $get-shade),0.2)!important}
|
|
314
338
|
.blue{
|
|
315
339
|
background: map-get($blue, $get-shade);
|
|
316
340
|
color: map-get($blue-contrast, $get-shade);
|
|
317
341
|
}
|
|
318
|
-
.light-blue
|
|
342
|
+
.light-blue[outline]:not([outline="false"]) .ripple, .background-light-blue-alpha {background: rgba(map-get($light-blue, $get-shade), 0.2)}
|
|
319
343
|
.light-blue .ripple{background: rgba(map-get($light-blue-contrast, $get-shade), 0.2)}
|
|
320
344
|
.background-light-blue{background: map-get($light-blue, $get-shade)}
|
|
321
345
|
.border-color-light-blue{border-color: map-get($light-blue, $get-shade)}
|
|
322
|
-
.light-blue
|
|
346
|
+
.light-blue[outline]:not([outline="false"]),
|
|
347
|
+
[color="light-blue"][outline]:not([outline="false"]),
|
|
348
|
+
[color="light-blue"][link]:not([link="false"]),
|
|
349
|
+
.color-light-blue{color: map-get($light-blue, $get-shade)!important}
|
|
323
350
|
.fill-light-blue{fill: map-get($light-blue, $get-shade)}
|
|
324
351
|
.stroke-light-blue{stroke: map-get($light-blue, $get-shade)}
|
|
352
|
+
.color-light-blue-alpha{color: rgba(map-get($light-blue, $get-shade),0.2)!important}
|
|
325
353
|
.light-blue{
|
|
326
354
|
background: map-get($light-blue, $get-shade);
|
|
327
355
|
color: map-get($light-blue-contrast, $get-shade);
|
|
328
356
|
}
|
|
329
|
-
.cyan
|
|
357
|
+
.cyan[outline]:not([outline="false"]) .ripple, .background-cyan-alpha {background: rgba(map-get($cyan, $get-shade), 0.2)}
|
|
330
358
|
.cyan .ripple{background: rgba(map-get($cyan-contrast, $get-shade), 0.2)}
|
|
331
359
|
.background-cyan{background: map-get($cyan, $get-shade)}
|
|
332
360
|
.border-color-cyan{border-color: map-get($cyan, $get-shade)}
|
|
333
|
-
.cyan
|
|
361
|
+
.cyan[outline]:not([outline="false"]),
|
|
362
|
+
[color="cyan"][outline]:not([outline="false"]),
|
|
363
|
+
[color="cyan"][link]:not([link="false"]),
|
|
364
|
+
.color-cyan{color: map-get($cyan, $get-shade)!important}
|
|
334
365
|
.fill-cyan{fill: map-get($cyan, $get-shade)}
|
|
335
366
|
.stroke-cyan{stroke: map-get($cyan, $get-shade)}
|
|
367
|
+
.color-cyan-alpha{color: rgba(map-get($cyan, $get-shade),0.2)!important}
|
|
336
368
|
.cyan{
|
|
337
369
|
background: map-get($cyan, $get-shade);
|
|
338
370
|
color: map-get($cyan-contrast, $get-shade);
|
|
339
371
|
}
|
|
340
|
-
.teal
|
|
372
|
+
.teal[outline]:not([outline="false"]) .ripple, .background-teal-alpha {background: rgba(map-get($teal, $get-shade), 0.2)}
|
|
341
373
|
.teal .ripple{background: rgba(map-get($teal-contrast, $get-shade), 0.2)}
|
|
342
374
|
.background-teal{background: map-get($teal, $get-shade)}
|
|
343
375
|
.border-color-teal{border-color: map-get($teal, $get-shade)}
|
|
344
|
-
.teal
|
|
376
|
+
.teal[outline]:not([outline="false"]),
|
|
377
|
+
[color="teal"][outline]:not([outline="false"]),
|
|
378
|
+
[color="teal"][link]:not([link="false"]),
|
|
379
|
+
.color-teal{color: map-get($teal, $get-shade)!important}
|
|
345
380
|
.fill-teal{fill: map-get($teal, $get-shade)}
|
|
346
381
|
.stroke-teal{stroke: map-get($teal, $get-shade)}
|
|
382
|
+
.color-teal-alpha{color: rgba(map-get($teal, $get-shade),0.2)!important}
|
|
347
383
|
.teal{
|
|
348
384
|
background: map-get($teal, $get-shade);
|
|
349
385
|
color: map-get($teal-contrast, $get-shade);
|
|
350
386
|
}
|
|
351
|
-
.green
|
|
387
|
+
.green[outline]:not([outline="false"]) .ripple, .background-green-alpha {background: rgba(map-get($green, $get-shade), 0.2)}
|
|
352
388
|
.green .ripple{background: rgba(map-get($green-contrast, $get-shade), 0.2)}
|
|
353
389
|
.background-green{background: map-get($green, $get-shade)}
|
|
354
390
|
.border-color-green{border-color: map-get($green, $get-shade)}
|
|
355
|
-
.green
|
|
391
|
+
.green[outline]:not([outline="false"]),
|
|
392
|
+
[color="green"][outline]:not([outline="false"]),
|
|
393
|
+
[color="green"][link]:not([link="false"]),
|
|
394
|
+
.color-green{color: map-get($green, $get-shade)!important}
|
|
356
395
|
.fill-green{fill: map-get($green, $get-shade)}
|
|
357
396
|
.stroke-green{stroke: map-get($green, $get-shade)}
|
|
397
|
+
.color-green-alpha{color: rgba(map-get($green, $get-shade),0.2)!important}
|
|
358
398
|
.green{
|
|
359
399
|
background: map-get($green, $get-shade);
|
|
360
400
|
color: map-get($green-contrast, $get-shade);
|
|
361
401
|
}
|
|
362
|
-
.light-green
|
|
402
|
+
.light-green[outline]:not([outline="false"]) .ripple, .background-light-green-alpha {background: rgba(map-get($light-green, $get-shade), 0.2)}
|
|
363
403
|
.light-green .ripple{background: rgba(map-get($light-green-contrast, $get-shade), 0.2)}
|
|
364
404
|
.background-light-green{background: map-get($light-green, $get-shade)}
|
|
365
405
|
.border-color-light-green{border-color: map-get($light-green, $get-shade)}
|
|
366
|
-
.light-green
|
|
406
|
+
.light-green[outline]:not([outline="false"]),
|
|
407
|
+
[color="light-green"][outline]:not([outline="false"]),
|
|
408
|
+
[color="light-green"][link]:not([link="false"]),
|
|
409
|
+
.color-light-green{color: map-get($light-green, $get-shade)!important}
|
|
367
410
|
.fill-light-green{fill: map-get($light-green, $get-shade)}
|
|
368
411
|
.stroke-light-green{stroke: map-get($light-green, $get-shade)}
|
|
412
|
+
.color-light-green-alpha{color: rgba(map-get($light-green, $get-shade),0.2)!important}
|
|
369
413
|
.light-green{
|
|
370
414
|
background: map-get($light-green, $get-shade);
|
|
371
415
|
color: map-get($light-green-contrast, $get-shade);
|
|
372
416
|
}
|
|
373
|
-
.lime
|
|
417
|
+
.lime[outline]:not([outline="false"]) .ripple, .background-lime-alpha {background: rgba(map-get($lime, $get-shade), 0.2)}
|
|
374
418
|
.lime .ripple{background: rgba(map-get($lime-contrast, $get-shade), 0.2)}
|
|
375
419
|
.background-lime{background: map-get($lime, $get-shade)}
|
|
376
420
|
.border-color-lime{border-color: map-get($lime, $get-shade)}
|
|
377
|
-
.lime
|
|
421
|
+
.lime[outline]:not([outline="false"]),
|
|
422
|
+
[color="lime"][outline]:not([outline="false"]),
|
|
423
|
+
[color="lime"][link]:not([link="false"]),
|
|
424
|
+
.color-lime{color: map-get($lime, $get-shade)!important}
|
|
378
425
|
.fill-lime{fill: map-get($lime, $get-shade)}
|
|
379
426
|
.stroke-lime{stroke: map-get($lime, $get-shade)}
|
|
427
|
+
.color-lime-alpha{color: rgba(map-get($lime, $get-shade),0.2)!important}
|
|
380
428
|
.lime{
|
|
381
429
|
background: map-get($lime, $get-shade);
|
|
382
430
|
color: map-get($lime-contrast, $get-shade);
|
|
383
431
|
}
|
|
384
|
-
.yellow
|
|
432
|
+
.yellow[outline]:not([outline="false"]) .ripple, .background-yellow-alpha {background: rgba(map-get($yellow, $get-shade), 0.2)}
|
|
385
433
|
.yellow .ripple{background: rgba(map-get($yellow-contrast, $get-shade), 0.2)}
|
|
386
434
|
.background-yellow{background: map-get($yellow, $get-shade)}
|
|
387
435
|
.border-color-yellow{border-color: map-get($yellow, $get-shade)}
|
|
388
|
-
.yellow
|
|
436
|
+
.yellow[outline]:not([outline="false"]),
|
|
437
|
+
[color="yellow"][outline]:not([outline="false"]),
|
|
438
|
+
[color="yellow"][link]:not([link="false"]),
|
|
439
|
+
.color-yellow{color: map-get($yellow, $get-shade)!important}
|
|
389
440
|
.fill-yellow{fill: map-get($yellow, $get-shade)}
|
|
390
441
|
.stroke-yellow{stroke: map-get($yellow, $get-shade)}
|
|
442
|
+
.color-yellow-alpha{color: rgba(map-get($yellow, $get-shade),0.2)!important}
|
|
391
443
|
.yellow{
|
|
392
444
|
background: map-get($yellow, $get-shade);
|
|
393
445
|
color: map-get($yellow-contrast, $get-shade);
|
|
394
446
|
}
|
|
395
|
-
.amber
|
|
447
|
+
.amber[outline]:not([outline="false"]) .ripple, .background-amber-alpha {background: rgba(map-get($amber, $get-shade), 0.2)}
|
|
396
448
|
.amber .ripple{background: rgba(map-get($amber-contrast, $get-shade), 0.2)}
|
|
397
449
|
.background-amber{background: map-get($amber, $get-shade)}
|
|
398
450
|
.border-color-amber{border-color: map-get($amber, $get-shade)}
|
|
399
|
-
.amber
|
|
451
|
+
.amber[outline]:not([outline="false"]),
|
|
452
|
+
[color="amber"][outline]:not([outline="false"]),
|
|
453
|
+
[color="amber"][link]:not([link="false"]),
|
|
454
|
+
.color-amber{color: map-get($amber, $get-shade)!important}
|
|
400
455
|
.fill-amber{fill: map-get($amber, $get-shade)}
|
|
401
456
|
.stroke-amber{stroke: map-get($amber, $get-shade)}
|
|
457
|
+
.color-amber-alpha{color: rgba(map-get($amber, $get-shade),0.2)!important}
|
|
402
458
|
.amber{
|
|
403
459
|
background: map-get($amber, $get-shade);
|
|
404
460
|
color: map-get($amber-contrast, $get-shade);
|
|
405
461
|
}
|
|
406
|
-
.orange
|
|
462
|
+
.orange[outline]:not([outline="false"]) .ripple, .background-orange-alpha {background: rgba(map-get($orange, $get-shade), 0.2)}
|
|
407
463
|
.orange .ripple{background: rgba(map-get($orange-contrast, $get-shade), 0.2)}
|
|
408
464
|
.background-orange{background: map-get($orange, $get-shade)}
|
|
409
465
|
.border-color-orange{border-color: map-get($orange, $get-shade)}
|
|
410
|
-
.orange
|
|
466
|
+
.orange[outline]:not([outline="false"]),
|
|
467
|
+
[color="orange"][outline]:not([outline="false"]),
|
|
468
|
+
[color="orange"][link]:not([link="false"]),
|
|
469
|
+
.color-orange{color: map-get($orange, $get-shade)!important}
|
|
411
470
|
.fill-orange{fill: map-get($orange, $get-shade)}
|
|
412
471
|
.stroke-orange{stroke: map-get($orange, $get-shade)}
|
|
472
|
+
.color-orange-alpha{color: rgba(map-get($orange, $get-shade),0.2)!important}
|
|
413
473
|
.orange{
|
|
414
474
|
background: map-get($orange, $get-shade);
|
|
415
475
|
color: map-get($orange-contrast, $get-shade);
|
|
416
476
|
}
|
|
417
|
-
.deep-orange
|
|
477
|
+
.deep-orange[outline]:not([outline="false"]) .ripple, .background-deep-orange-alpha {background: rgba(map-get($deep-orange, $get-shade), 0.2)}
|
|
418
478
|
.deep-orange .ripple{background: rgba(map-get($deep-orange-contrast, $get-shade), 0.2)}
|
|
419
479
|
.background-deep-orange{background: map-get($deep-orange, $get-shade)}
|
|
420
480
|
.border-color-deep-orange{border-color: map-get($deep-orange, $get-shade)}
|
|
421
|
-
.deep-orange
|
|
481
|
+
.deep-orange[outline]:not([outline="false"]),
|
|
482
|
+
[color="deep-orange"][outline]:not([outline="false"]),
|
|
483
|
+
[color="deep-orange"][link]:not([link="false"]),
|
|
484
|
+
.color-deep-orange{color: map-get($deep-orange, $get-shade)!important}
|
|
422
485
|
.fill-deep-orange{fill: map-get($deep-orange, $get-shade)}
|
|
423
486
|
.stroke-deep-orange{stroke: map-get($deep-orange, $get-shade)}
|
|
487
|
+
.color-deep-orange-alpha{color: rgba(map-get($deep-orange, $get-shade),0.2)!important}
|
|
424
488
|
.deep-orange{
|
|
425
489
|
background: map-get($deep-orange, $get-shade);
|
|
426
490
|
color: map-get($deep-orange-contrast, $get-shade);
|
|
427
491
|
}
|
|
428
|
-
.brown
|
|
492
|
+
.brown[outline]:not([outline="false"]) .ripple, .background-brown-alpha {background: rgba(map-get($brown, $get-shade), 0.2)}
|
|
429
493
|
.brown .ripple{background: rgba(map-get($brown-contrast, $get-shade), 0.2)}
|
|
430
494
|
.background-brown{background: map-get($brown, $get-shade)}
|
|
431
495
|
.border-color-brown{border-color: map-get($brown, $get-shade)}
|
|
432
|
-
.brown
|
|
496
|
+
.brown[outline]:not([outline="false"]),
|
|
497
|
+
[color="brown"][outline]:not([outline="false"]),
|
|
498
|
+
[color="brown"][link]:not([link="false"]),
|
|
499
|
+
.color-brown{color: map-get($brown, $get-shade)!important}
|
|
433
500
|
.fill-brown{fill: map-get($brown, $get-shade)}
|
|
434
501
|
.stroke-brown{stroke: map-get($brown, $get-shade)}
|
|
502
|
+
.color-brown-alpha{color: rgba(map-get($brown, $get-shade),0.2)!important}
|
|
435
503
|
.brown{
|
|
436
504
|
background: map-get($brown, $get-shade);
|
|
437
505
|
color: map-get($brown-contrast, $get-shade);
|
|
438
506
|
}
|
|
439
|
-
.grey
|
|
507
|
+
.grey[outline]:not([outline="false"]) .ripple, .background-grey-alpha {background: rgba(map-get($grey, $get-shade), 0.2)}
|
|
440
508
|
.grey .ripple{background: rgba(map-get($grey-contrast, $get-shade), 0.2)}
|
|
441
509
|
.background-grey{background: map-get($grey, $get-shade)}
|
|
442
510
|
.border-color-grey{border-color: map-get($grey, $get-shade)}
|
|
443
|
-
.grey
|
|
511
|
+
.grey[outline]:not([outline="false"]),
|
|
512
|
+
[color="grey"][outline]:not([outline="false"]),
|
|
513
|
+
[color="grey"][link]:not([link="false"]),
|
|
514
|
+
.color-grey{color: map-get($grey, $get-shade)!important}
|
|
444
515
|
.fill-grey{fill: map-get($grey, $get-shade)}
|
|
445
516
|
.stroke-grey{stroke: map-get($grey, $get-shade)}
|
|
517
|
+
.color-grey-alpha{color: rgba(map-get($grey, $get-shade),0.2)!important}
|
|
446
518
|
.grey{
|
|
447
519
|
background: map-get($grey, $get-shade);
|
|
448
520
|
color: map-get($grey-contrast, $get-shade);
|
|
449
521
|
}
|
|
450
|
-
.blue-grey
|
|
522
|
+
.blue-grey[outline]:not([outline="false"]) .ripple, .background-blue-grey-alpha {background: rgba(map-get($blue-grey, $get-shade), 0.2)}
|
|
451
523
|
.blue-grey .ripple{background: rgba(map-get($blue-grey-contrast, $get-shade), 0.2)}
|
|
452
524
|
.background-blue-grey{background: map-get($blue-grey, $get-shade)}
|
|
453
525
|
.border-color-blue-grey{border-color: map-get($blue-grey, $get-shade)}
|
|
454
|
-
.blue-grey
|
|
526
|
+
.blue-grey[outline]:not([outline="false"]),
|
|
527
|
+
[color="blue-grey"][outline]:not([outline="false"]),
|
|
528
|
+
[color="blue-grey"][link]:not([link="false"]),
|
|
529
|
+
.color-blue-grey{color: map-get($blue-grey, $get-shade)!important}
|
|
455
530
|
.fill-blue-grey{fill: map-get($blue-grey, $get-shade)}
|
|
456
531
|
.stroke-blue-grey{stroke: map-get($blue-grey, $get-shade)}
|
|
532
|
+
.color-blue-grey-alpha{color: rgba(map-get($blue-grey, $get-shade),0.2)!important}
|
|
457
533
|
.blue-grey{
|
|
458
534
|
background: map-get($blue-grey, $get-shade);
|
|
459
535
|
color: map-get($blue-grey-contrast, $get-shade);
|
|
460
536
|
}
|
|
461
537
|
|
|
462
|
-
.primary
|
|
538
|
+
.primary[outline]:not([outline="false"]) .ripple, .background-primary-alpha {background: rgba(map-get($primary, default), 0.2)}
|
|
463
539
|
.primary .ripple{background: rgba(map-get($primary, default-contrast), 0.2)}
|
|
464
540
|
.background-primary{background: map-get($primary, default)}
|
|
465
541
|
.border-color-primary{border-color: map-get($primary, default)}
|
|
466
|
-
.primary
|
|
542
|
+
.primary[outline]:not([outline="false"]),
|
|
543
|
+
[color="primary"][outline]:not([outline="false"]),
|
|
544
|
+
[color="primary"][link]:not([link="false"]),
|
|
545
|
+
.color-primary{color: map-get($primary, default)!important}
|
|
467
546
|
.fill-primary{fill: map-get($primary, default)}
|
|
468
547
|
.stroke-primary{stroke: map-get($primary, default)}
|
|
548
|
+
.color-primary-alpha{color: rgba(map-get($primary, default),0.2)!important}
|
|
469
549
|
.primary{
|
|
470
550
|
background: map-get($primary, default);
|
|
471
551
|
color: map-get($primary, default-contrast);
|
|
472
552
|
}
|
|
473
553
|
|
|
474
|
-
.accent
|
|
554
|
+
.accent[outline]:not([outline="false"]) .ripple, .background-accent-alpha {background: rgba(map-get($accent, default), 0.2)}
|
|
475
555
|
.accent .ripple{background: rgba(map-get($accent, default-contrast), 0.2)}
|
|
476
556
|
.background-accent{background: map-get($accent, default)}
|
|
477
557
|
.border-color-accent{border-color: map-get($accent, default)}
|
|
478
|
-
.accent
|
|
558
|
+
.accent[outline]:not([outline="false"]),
|
|
559
|
+
[color="accent"][outline]:not([outline="false"]),
|
|
560
|
+
[color="accent"][link]:not([link="false"]),
|
|
561
|
+
.color-accent{color: map-get($accent, default)!important}
|
|
479
562
|
.fill-accent{fill: map-get($accent, default)}
|
|
480
563
|
.stroke-accent{stroke: map-get($accent, default)}
|
|
564
|
+
.color-accent-alpha{color: rgba(map-get($accent, default),0.2)!important}
|
|
481
565
|
.accent{
|
|
482
566
|
background: map-get($accent, default);
|
|
483
567
|
color: map-get($accent, default-contrast);
|
|
484
568
|
}
|
|
485
569
|
|
|
486
|
-
.warn
|
|
570
|
+
.warn[outline]:not([outline="false"]) .ripple, .background-warn-alpha {background: rgba(map-get($warn, default), 0.2)}
|
|
487
571
|
.warn .ripple{background: rgba(map-get($warn, default-contrast), 0.2)}
|
|
488
572
|
.background-warn{background: map-get($warn, default)}
|
|
489
573
|
.border-color-warn{border-color: map-get($warn, default)}
|
|
490
|
-
.warn
|
|
574
|
+
.warn[outline]:not([outline="false"]),
|
|
575
|
+
[color="warn"][outline]:not([outline="false"]),
|
|
576
|
+
[color="warn"][link]:not([link="false"]),
|
|
577
|
+
.color-warn{color: map-get($warn, default)!important}
|
|
491
578
|
.fill-warn{fill: map-get($warn, default)}
|
|
492
579
|
.stroke-warn{stroke: map-get($warn, default)}
|
|
580
|
+
.color-warn-alpha{color: rgba(map-get($warn, default),0.2)!important}
|
|
493
581
|
.warn{
|
|
494
582
|
background: map-get($warn, default);
|
|
495
583
|
color: map-get($warn, default-contrast);
|
|
496
584
|
}
|
|
497
585
|
|
|
498
|
-
.basic
|
|
586
|
+
.basic[outline]:not([outline="false"]) .ripple,.background-basic-alpha {background: rgba(map-get($foreground, base), 0.2)}
|
|
499
587
|
.basic .ripple{background: rgba(map-get($foreground, base), 0.2)}
|
|
500
588
|
.background-basic{background: map-get($background, card)}
|
|
501
589
|
.border-color-basic{border-color: map-get($foreground, base)}
|
|
502
|
-
.basic
|
|
590
|
+
.basic[outline]:not([outline="false"]):not([color]),
|
|
591
|
+
[color="basic"][outline]:not([outline="false"]),
|
|
592
|
+
[color="basic"][link]:not([link="false"]),
|
|
593
|
+
.color-basic{color: map-get($foreground, base)!important}
|
|
503
594
|
.fill-basic{fill: map-get($background, card)}
|
|
504
595
|
.stroke-basic{stroke: map-get($foreground, base)}
|
|
596
|
+
.color-basic-alpha{color: rgba(map-get($foreground, base),0.2)!important}
|
|
505
597
|
.basic{
|
|
506
598
|
background: map-get($background, card);
|
|
507
|
-
color
|
|
599
|
+
&:not([color]){
|
|
600
|
+
color: map-get($foreground, base);
|
|
601
|
+
}
|
|
508
602
|
}
|
|
509
603
|
|
|
510
604
|
|
|
@@ -538,8 +632,7 @@ $index: 0;
|
|
|
538
632
|
}
|
|
539
633
|
}
|
|
540
634
|
|
|
541
|
-
.background-transparent
|
|
542
|
-
.matcha-background-transparent {
|
|
635
|
+
.background-transparent {
|
|
543
636
|
background: transparent;
|
|
544
637
|
}
|
|
545
638
|
|
|
@@ -1,39 +1,58 @@
|
|
|
1
|
+
// TO-DO: Separar tudo o que for estilo estrutural do componente do que é estilo de tema
|
|
2
|
+
// levar todos os estilos estruturais para o arquivo de scss do componente
|
|
3
|
+
// na biblioteca matcha-components
|
|
4
|
+
|
|
5
|
+
// <button matcha-button size="tiny" color="primary">tiny</button>
|
|
6
|
+
// <button matcha-button size="small" color="primary">small</button>
|
|
7
|
+
// <button matcha-button size="medium" color="primary">medium</button>
|
|
8
|
+
// <button matcha-button size="large" color="primary">large</button>
|
|
9
|
+
// <button matcha-button size="huge" color="primary">huge</button>
|
|
10
|
+
|
|
11
|
+
// <button matcha-button
|
|
12
|
+
// [color]="color"
|
|
13
|
+
// [basic]="basic"
|
|
14
|
+
// [size]="size"
|
|
15
|
+
// [pill]="pill"
|
|
16
|
+
// [outline]="outline"
|
|
17
|
+
// [link]="link"
|
|
18
|
+
// [icon]="icon"
|
|
19
|
+
// [size-xs]="sizeXs"
|
|
20
|
+
// [size-sm]="sizeSm"
|
|
21
|
+
// [size-md]="sizeMd"
|
|
22
|
+
// [size-lg]="sizeLg"
|
|
23
|
+
// [size-xl]="sizeXl">
|
|
24
|
+
|
|
1
25
|
@mixin generate-matcha-button-size-classes($helper-breakpoints){
|
|
2
26
|
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
3
27
|
@include media-breakpoint($materialBreakpoint) {
|
|
4
28
|
$infix: if($materialBreakpoint == null, "", "-#{$breakpoint}");
|
|
5
29
|
|
|
6
|
-
|
|
30
|
+
&[size#{$infix}="tiny"] {
|
|
7
31
|
padding: 0 px-to-rem(32px);
|
|
8
|
-
border-radius: px-to-rem(8px);
|
|
9
32
|
line-height: px-to-rem(32px);
|
|
10
33
|
max-height: px-to-rem(32px);
|
|
11
34
|
}
|
|
12
35
|
|
|
13
|
-
|
|
36
|
+
&[size#{$infix}="small"] {
|
|
14
37
|
padding: 0 px-to-rem(32px);
|
|
15
|
-
border-radius: px-to-rem(8px);
|
|
16
38
|
line-height: px-to-rem(40px);
|
|
17
39
|
max-height: px-to-rem(40px);
|
|
18
40
|
}
|
|
19
41
|
|
|
20
|
-
|
|
42
|
+
&[size#{$infix}="medium"] {
|
|
21
43
|
padding: 0 px-to-rem(32px);
|
|
22
|
-
border-radius: px-to-rem(8px);
|
|
23
44
|
line-height: px-to-rem(48px);
|
|
24
45
|
max-height: px-to-rem(48px);
|
|
25
46
|
}
|
|
26
47
|
|
|
27
|
-
|
|
48
|
+
&[size#{$infix}="large"] {
|
|
28
49
|
padding: 0 px-to-rem(32px);
|
|
29
|
-
border-radius: px-to-rem(8px);
|
|
30
50
|
line-height: px-to-rem(56px);
|
|
31
51
|
max-height: px-to-rem(56px);
|
|
32
52
|
}
|
|
33
53
|
|
|
34
|
-
|
|
54
|
+
&[size#{$infix}="huge"] {
|
|
35
55
|
padding: 0 px-to-rem(32px);
|
|
36
|
-
border-radius: px-to-rem(8px);
|
|
37
56
|
line-height: px-to-rem(56px);
|
|
38
57
|
max-height: px-to-rem(56px);
|
|
39
58
|
}
|
|
@@ -41,57 +60,155 @@
|
|
|
41
60
|
}
|
|
42
61
|
}
|
|
43
62
|
|
|
63
|
+
button[matcha-button],
|
|
64
|
+
a[matcha-button] {
|
|
65
|
+
transition: all 50ms linear;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
position: relative;
|
|
68
|
+
font-size: 16px;
|
|
69
|
+
font-weight: 700;
|
|
70
|
+
height: 56px;
|
|
71
|
+
appearance: auto;
|
|
72
|
+
text-rendering: auto;
|
|
73
|
+
letter-spacing: normal;
|
|
74
|
+
word-spacing: normal;
|
|
75
|
+
line-height: normal;
|
|
76
|
+
text-transform: none;
|
|
77
|
+
text-indent: 0px;
|
|
78
|
+
text-shadow: none;
|
|
79
|
+
text-align: center;
|
|
80
|
+
display: flex;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
align-items: center;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
border-radius: px-to-rem(8px);
|
|
86
|
+
*{
|
|
87
|
+
pointer-events: none;
|
|
88
|
+
}
|
|
44
89
|
|
|
45
|
-
|
|
90
|
+
&[size="tiny"] {
|
|
91
|
+
line-height: px-to-rem(32px);
|
|
92
|
+
max-height: px-to-rem(32px);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&[size="small"] {
|
|
96
|
+
line-height: px-to-rem(40px);
|
|
97
|
+
max-height: px-to-rem(40px);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&[size="medium"] {
|
|
101
|
+
line-height: px-to-rem(48px);
|
|
102
|
+
max-height: px-to-rem(48px);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&[size="large"] {
|
|
106
|
+
line-height: px-to-rem(56px);
|
|
107
|
+
max-height: px-to-rem(56px);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&[size="huge"] {
|
|
111
|
+
line-height: px-to-rem(56px);
|
|
112
|
+
max-height: px-to-rem(56px);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&[size="tiny"],
|
|
116
|
+
&[size="small"],
|
|
117
|
+
&[size="medium"],
|
|
118
|
+
&[size="large"],
|
|
119
|
+
&[size="huge"] {
|
|
120
|
+
padding: 0 px-to-rem(32px);
|
|
121
|
+
min-width: 24px;
|
|
122
|
+
&.stroked {
|
|
123
|
+
box-shadow: 0px 0px 0px 2px inset;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@include generate-matcha-button-size-classes($helper-breakpoints);
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
&:hover{
|
|
131
|
+
filter: brightness(1.05);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&:active{
|
|
135
|
+
filter: brightness(1.1);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&[disabled] {
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&[basic]:not([basic="false"]) {
|
|
143
|
+
box-shadow: 0px 0px 0px 0px inset;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&[outline]:not([outline="false"]) {
|
|
147
|
+
box-shadow: 0px 0px 0px 2px inset;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&[pill]:not([pill="false"]) {
|
|
151
|
+
border-radius: 999px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&[link]:not([link="false"]) {
|
|
155
|
+
text-transform: initial;
|
|
156
|
+
letter-spacing: 0;
|
|
157
|
+
text-decoration: underline;
|
|
158
|
+
padding: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&[icon]:not([icon="false"]) {
|
|
162
|
+
aspect-ratio: 1;
|
|
163
|
+
padding: 0 !important;
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
justify-content: center;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.ripple {
|
|
170
|
+
position: absolute;
|
|
171
|
+
border-radius: 999px;
|
|
172
|
+
transform: scale(0);
|
|
173
|
+
pointer-events: none;
|
|
174
|
+
}
|
|
175
|
+
.ripple.show {
|
|
176
|
+
animation: ripple 400ms ease-out;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@keyframes ripple {
|
|
180
|
+
0% {
|
|
181
|
+
opacity: 0;
|
|
182
|
+
transform: scale(0);
|
|
183
|
+
}
|
|
184
|
+
25% {
|
|
185
|
+
opacity: 1;
|
|
186
|
+
}
|
|
187
|
+
100% {
|
|
188
|
+
opacity: 0;
|
|
189
|
+
transform: scale(2);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
46
193
|
|
|
194
|
+
@mixin matcha-button-theme($theme) {
|
|
47
195
|
$primary: map-get($theme, primary);
|
|
48
196
|
$accent: map-get($theme, accent);
|
|
49
197
|
$warn: map-get($theme, warn);
|
|
50
198
|
$background: map-get($theme, background);
|
|
51
199
|
$foreground: map-get($theme, foreground);
|
|
52
200
|
|
|
53
|
-
|
|
201
|
+
button[matcha-button],
|
|
202
|
+
a[matcha-button] {
|
|
54
203
|
border: 0px solid currentColor;
|
|
55
|
-
transition: all 50ms linear;
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
position: relative;
|
|
58
|
-
font-size: 16px;
|
|
59
|
-
font-weight: 700;
|
|
60
|
-
height: 56px;
|
|
61
|
-
appearance: auto;
|
|
62
|
-
text-rendering: auto;
|
|
63
|
-
letter-spacing: normal;
|
|
64
|
-
word-spacing: normal;
|
|
65
|
-
line-height: normal;
|
|
66
|
-
text-transform: none;
|
|
67
|
-
text-indent: 0px;
|
|
68
|
-
text-shadow: none;
|
|
69
|
-
display: inline-block;
|
|
70
|
-
text-align: center;
|
|
71
|
-
align-items: flex-start;
|
|
72
|
-
cursor: pointer;
|
|
73
|
-
box-sizing: border-box;
|
|
74
|
-
*{
|
|
75
|
-
pointer-events: none;
|
|
76
|
-
}
|
|
77
204
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
padding: 0 px-to-rem(16px);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&-tiny,
|
|
87
|
-
&-small,
|
|
88
|
-
&-medium,
|
|
89
|
-
&-large,
|
|
90
|
-
&-huge {
|
|
91
|
-
min-width: 24px;
|
|
205
|
+
&[size="tiny"],
|
|
206
|
+
&[size="small"],
|
|
207
|
+
&[size="medium"],
|
|
208
|
+
&[size="large"],
|
|
209
|
+
&[size="huge"] {
|
|
92
210
|
|
|
93
211
|
&.stroked {
|
|
94
|
-
box-shadow: 0px 0px 0px 2px inset;
|
|
95
212
|
|
|
96
213
|
&.color-label {
|
|
97
214
|
box-shadow: 0px 0px 0px 2px inset map-get($foreground, label);
|
|
@@ -105,79 +222,40 @@
|
|
|
105
222
|
}
|
|
106
223
|
}
|
|
107
224
|
|
|
108
|
-
&:hover{
|
|
109
|
-
filter: brightness(1.05);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&:active{
|
|
113
|
-
filter: brightness(1.1);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
225
|
&[disabled] {
|
|
117
226
|
background-color: map-get($background, disabled);
|
|
118
227
|
color: #b5bdc3 !important;
|
|
119
228
|
border-color: map-get($foreground, disabled);
|
|
120
|
-
pointer-events: none;
|
|
121
229
|
}
|
|
122
230
|
|
|
123
|
-
|
|
231
|
+
&[basic]:not([icon="false"]) {
|
|
124
232
|
border: 0px solid currentColor;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
233
|
+
background: map-get($background, card);
|
|
234
|
+
&:not([color]){
|
|
235
|
+
border-color: map-get($foreground, base);
|
|
236
|
+
background: transparent !important;
|
|
237
|
+
}
|
|
238
|
+
&[color]:not([outline]){
|
|
239
|
+
background: map-get($background, card)!important;
|
|
240
|
+
}
|
|
129
241
|
}
|
|
130
242
|
|
|
131
|
-
|
|
243
|
+
&[outline]:not([outline="false"]) {
|
|
132
244
|
border: 0px solid currentColor;
|
|
133
|
-
box-shadow: 0px 0px 0px 2px inset;
|
|
134
245
|
background: transparent !important;
|
|
135
|
-
color
|
|
136
|
-
|
|
246
|
+
&:not([color]){
|
|
247
|
+
border-color: map-get($foreground, base);
|
|
248
|
+
color: map-get($foreground, base);
|
|
249
|
+
}
|
|
137
250
|
}
|
|
138
251
|
|
|
139
|
-
|
|
140
|
-
border-radius: 999px;
|
|
252
|
+
&[pill]:not([pill="false"]) {
|
|
141
253
|
}
|
|
142
254
|
|
|
143
|
-
|
|
255
|
+
&[link]:not([link="false"]) {
|
|
144
256
|
background-color: transparent;
|
|
145
|
-
color
|
|
146
|
-
|
|
147
|
-
letter-spacing: 0;
|
|
148
|
-
text-decoration: underline;
|
|
149
|
-
padding: 0;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&-icon {
|
|
153
|
-
aspect-ratio: 1;
|
|
154
|
-
padding: 0 !important;
|
|
155
|
-
display: flex;
|
|
156
|
-
align-items: center;
|
|
157
|
-
justify-content: center;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.ripple {
|
|
161
|
-
position: absolute;
|
|
162
|
-
border-radius: 999px;
|
|
163
|
-
transform: scale(0);
|
|
164
|
-
pointer-events: none;
|
|
165
|
-
}
|
|
166
|
-
.ripple.show {
|
|
167
|
-
animation: ripple 400ms ease-out;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
@keyframes ripple {
|
|
171
|
-
0% {
|
|
172
|
-
opacity: 0;
|
|
173
|
-
transform: scale(0);
|
|
174
|
-
}
|
|
175
|
-
25% {
|
|
176
|
-
opacity: 1;
|
|
177
|
-
}
|
|
178
|
-
100% {
|
|
179
|
-
opacity: 0;
|
|
180
|
-
transform: scale(2);
|
|
257
|
+
&:not([color]){
|
|
258
|
+
color: map-get($foreground, label);
|
|
181
259
|
}
|
|
182
260
|
}
|
|
183
261
|
}
|