@madgex/design-system 1.16.6 → 1.17.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/dist/_tokens/css/_tokens.css +16 -1
- package/dist/_tokens/js/_tokens-module.js +318 -1
- package/dist/_tokens/scss/_tokens.scss +39 -1
- package/dist/css/index.css +46 -28
- package/package.json +1 -1
- package/src/helpers/message/README.md +9 -0
- package/src/helpers/message/message.njk +4 -0
- package/src/scss/core/__index.scss +1 -0
- package/src/scss/core/_message.scss +23 -0
- package/src/scss/core/_typography.scss +4 -4
- package/src/tokens/color.json +59 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 18 Jul 2019 11:38:18 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -19,6 +19,21 @@
|
|
|
19
19
|
--mds-color-brand-3-lightest: #e8fcfb;
|
|
20
20
|
--mds-color-brand-3-dark: #119389;
|
|
21
21
|
--mds-color-brand-3-darkest: #063733;
|
|
22
|
+
--mds-color-status-error-base: #e1021d;
|
|
23
|
+
--mds-color-status-error-light: #fd0826;
|
|
24
|
+
--mds-color-status-error-lightest: #ffe3e6;
|
|
25
|
+
--mds-color-status-error-dark: #d0021b;
|
|
26
|
+
--mds-color-status-error-darkest: #ae0216;
|
|
27
|
+
--mds-color-status-success-base: #5ba927;
|
|
28
|
+
--mds-color-status-success-light: #6ac52d;
|
|
29
|
+
--mds-color-status-success-lightest: #f0faea;
|
|
30
|
+
--mds-color-status-success-dark: #549b24;
|
|
31
|
+
--mds-color-status-success-darkest: #45801d;
|
|
32
|
+
--mds-color-status-info-base: #ffb411;
|
|
33
|
+
--mds-color-status-info-light: #ffc442;
|
|
34
|
+
--mds-color-status-info-lightest: #fff7e5;
|
|
35
|
+
--mds-color-status-info-dark: #f4aa08;
|
|
36
|
+
--mds-color-status-info-darkest: #d99500;
|
|
22
37
|
--mds-color-background-body: #ffffff;
|
|
23
38
|
--mds-color-background-site-container: #f8f8f8;
|
|
24
39
|
--mds-color-background-surface: #ffffff;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 18 Jul 2019 11:38:18 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
@@ -322,6 +322,323 @@ module.exports = {
|
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
},
|
|
325
|
+
"status": {
|
|
326
|
+
"error": {
|
|
327
|
+
"base": {
|
|
328
|
+
"value": "#e1021d",
|
|
329
|
+
"original": {
|
|
330
|
+
"value": "#e1021d"
|
|
331
|
+
},
|
|
332
|
+
"name": "MdsColorStatusErrorBase",
|
|
333
|
+
"attributes": {
|
|
334
|
+
"category": "color",
|
|
335
|
+
"type": "status",
|
|
336
|
+
"item": "error",
|
|
337
|
+
"subitem": "base"
|
|
338
|
+
},
|
|
339
|
+
"path": [
|
|
340
|
+
"color",
|
|
341
|
+
"status",
|
|
342
|
+
"error",
|
|
343
|
+
"base"
|
|
344
|
+
]
|
|
345
|
+
},
|
|
346
|
+
"light": {
|
|
347
|
+
"value": "#fd0826",
|
|
348
|
+
"scssColorFunction": "lighten($mds-color-status-error-base,10%)",
|
|
349
|
+
"original": {
|
|
350
|
+
"value": "#fd0826",
|
|
351
|
+
"scssColorFunction": "lighten($mds-color-status-error-base,10%)"
|
|
352
|
+
},
|
|
353
|
+
"name": "MdsColorStatusErrorLight",
|
|
354
|
+
"attributes": {
|
|
355
|
+
"category": "color",
|
|
356
|
+
"type": "status",
|
|
357
|
+
"item": "error",
|
|
358
|
+
"subitem": "light"
|
|
359
|
+
},
|
|
360
|
+
"path": [
|
|
361
|
+
"color",
|
|
362
|
+
"status",
|
|
363
|
+
"error",
|
|
364
|
+
"light"
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
"lightest": {
|
|
368
|
+
"value": "#ffe3e6",
|
|
369
|
+
"scssColorFunction": "lighten($mds-color-status-error-base,(95% - lightness($mds-color-status-error-base)))",
|
|
370
|
+
"original": {
|
|
371
|
+
"value": "#ffe3e6",
|
|
372
|
+
"scssColorFunction": "lighten($mds-color-status-error-base,(95% - lightness($mds-color-status-error-base)))"
|
|
373
|
+
},
|
|
374
|
+
"name": "MdsColorStatusErrorLightest",
|
|
375
|
+
"attributes": {
|
|
376
|
+
"category": "color",
|
|
377
|
+
"type": "status",
|
|
378
|
+
"item": "error",
|
|
379
|
+
"subitem": "lightest"
|
|
380
|
+
},
|
|
381
|
+
"path": [
|
|
382
|
+
"color",
|
|
383
|
+
"status",
|
|
384
|
+
"error",
|
|
385
|
+
"lightest"
|
|
386
|
+
]
|
|
387
|
+
},
|
|
388
|
+
"dark": {
|
|
389
|
+
"value": "#d0021b",
|
|
390
|
+
"scssColorFunction": "darken($mds-color-status-error-base,10%)",
|
|
391
|
+
"original": {
|
|
392
|
+
"value": "#d0021b",
|
|
393
|
+
"scssColorFunction": "darken($mds-color-status-error-base,10%)"
|
|
394
|
+
},
|
|
395
|
+
"name": "MdsColorStatusErrorDark",
|
|
396
|
+
"attributes": {
|
|
397
|
+
"category": "color",
|
|
398
|
+
"type": "status",
|
|
399
|
+
"item": "error",
|
|
400
|
+
"subitem": "dark"
|
|
401
|
+
},
|
|
402
|
+
"path": [
|
|
403
|
+
"color",
|
|
404
|
+
"status",
|
|
405
|
+
"error",
|
|
406
|
+
"dark"
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
"darkest": {
|
|
410
|
+
"value": "#ae0216",
|
|
411
|
+
"scssColorFunction": "darken($mds-color-status-error-base,(lightness($mds-color-status-error-base) - 12%))",
|
|
412
|
+
"original": {
|
|
413
|
+
"value": "#ae0216",
|
|
414
|
+
"scssColorFunction": "darken($mds-color-status-error-base,(lightness($mds-color-status-error-base) - 12%))"
|
|
415
|
+
},
|
|
416
|
+
"name": "MdsColorStatusErrorDarkest",
|
|
417
|
+
"attributes": {
|
|
418
|
+
"category": "color",
|
|
419
|
+
"type": "status",
|
|
420
|
+
"item": "error",
|
|
421
|
+
"subitem": "darkest"
|
|
422
|
+
},
|
|
423
|
+
"path": [
|
|
424
|
+
"color",
|
|
425
|
+
"status",
|
|
426
|
+
"error",
|
|
427
|
+
"darkest"
|
|
428
|
+
]
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
"success": {
|
|
432
|
+
"base": {
|
|
433
|
+
"value": "#5ba927",
|
|
434
|
+
"original": {
|
|
435
|
+
"value": "#5ba927"
|
|
436
|
+
},
|
|
437
|
+
"name": "MdsColorStatusSuccessBase",
|
|
438
|
+
"attributes": {
|
|
439
|
+
"category": "color",
|
|
440
|
+
"type": "status",
|
|
441
|
+
"item": "success",
|
|
442
|
+
"subitem": "base"
|
|
443
|
+
},
|
|
444
|
+
"path": [
|
|
445
|
+
"color",
|
|
446
|
+
"status",
|
|
447
|
+
"success",
|
|
448
|
+
"base"
|
|
449
|
+
]
|
|
450
|
+
},
|
|
451
|
+
"light": {
|
|
452
|
+
"value": "#6ac52d",
|
|
453
|
+
"scssColorFunction": "lighten($mds-color-status-success-base,10%)",
|
|
454
|
+
"original": {
|
|
455
|
+
"value": "#6ac52d",
|
|
456
|
+
"scssColorFunction": "lighten($mds-color-status-success-base,10%)"
|
|
457
|
+
},
|
|
458
|
+
"name": "MdsColorStatusSuccessLight",
|
|
459
|
+
"attributes": {
|
|
460
|
+
"category": "color",
|
|
461
|
+
"type": "status",
|
|
462
|
+
"item": "success",
|
|
463
|
+
"subitem": "light"
|
|
464
|
+
},
|
|
465
|
+
"path": [
|
|
466
|
+
"color",
|
|
467
|
+
"status",
|
|
468
|
+
"success",
|
|
469
|
+
"light"
|
|
470
|
+
]
|
|
471
|
+
},
|
|
472
|
+
"lightest": {
|
|
473
|
+
"value": "#f0faea",
|
|
474
|
+
"scssColorFunction": "lighten($mds-color-status-success-base,(95% - lightness($mds-color-status-success-base)))",
|
|
475
|
+
"original": {
|
|
476
|
+
"value": "#f0faea",
|
|
477
|
+
"scssColorFunction": "lighten($mds-color-status-success-base,(95% - lightness($mds-color-status-success-base)))"
|
|
478
|
+
},
|
|
479
|
+
"name": "MdsColorStatusSuccessLightest",
|
|
480
|
+
"attributes": {
|
|
481
|
+
"category": "color",
|
|
482
|
+
"type": "status",
|
|
483
|
+
"item": "success",
|
|
484
|
+
"subitem": "lightest"
|
|
485
|
+
},
|
|
486
|
+
"path": [
|
|
487
|
+
"color",
|
|
488
|
+
"status",
|
|
489
|
+
"success",
|
|
490
|
+
"lightest"
|
|
491
|
+
]
|
|
492
|
+
},
|
|
493
|
+
"dark": {
|
|
494
|
+
"value": "#549b24",
|
|
495
|
+
"scssColorFunction": "darken($mds-color-status-success-base,10%)",
|
|
496
|
+
"original": {
|
|
497
|
+
"value": "#549b24",
|
|
498
|
+
"scssColorFunction": "darken($mds-color-status-success-base,10%)"
|
|
499
|
+
},
|
|
500
|
+
"name": "MdsColorStatusSuccessDark",
|
|
501
|
+
"attributes": {
|
|
502
|
+
"category": "color",
|
|
503
|
+
"type": "status",
|
|
504
|
+
"item": "success",
|
|
505
|
+
"subitem": "dark"
|
|
506
|
+
},
|
|
507
|
+
"path": [
|
|
508
|
+
"color",
|
|
509
|
+
"status",
|
|
510
|
+
"success",
|
|
511
|
+
"dark"
|
|
512
|
+
]
|
|
513
|
+
},
|
|
514
|
+
"darkest": {
|
|
515
|
+
"value": "#45801d",
|
|
516
|
+
"scssColorFunction": "darken($mds-color-status-success-base,(lightness($mds-color-status-success-base) - 12%))",
|
|
517
|
+
"original": {
|
|
518
|
+
"value": "#45801d",
|
|
519
|
+
"scssColorFunction": "darken($mds-color-status-success-base,(lightness($mds-color-status-success-base) - 12%))"
|
|
520
|
+
},
|
|
521
|
+
"name": "MdsColorStatusSuccessDarkest",
|
|
522
|
+
"attributes": {
|
|
523
|
+
"category": "color",
|
|
524
|
+
"type": "status",
|
|
525
|
+
"item": "success",
|
|
526
|
+
"subitem": "darkest"
|
|
527
|
+
},
|
|
528
|
+
"path": [
|
|
529
|
+
"color",
|
|
530
|
+
"status",
|
|
531
|
+
"success",
|
|
532
|
+
"darkest"
|
|
533
|
+
]
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
"info": {
|
|
537
|
+
"base": {
|
|
538
|
+
"value": "#ffb411",
|
|
539
|
+
"original": {
|
|
540
|
+
"value": "#ffb411"
|
|
541
|
+
},
|
|
542
|
+
"name": "MdsColorStatusInfoBase",
|
|
543
|
+
"attributes": {
|
|
544
|
+
"category": "color",
|
|
545
|
+
"type": "status",
|
|
546
|
+
"item": "info",
|
|
547
|
+
"subitem": "base"
|
|
548
|
+
},
|
|
549
|
+
"path": [
|
|
550
|
+
"color",
|
|
551
|
+
"status",
|
|
552
|
+
"info",
|
|
553
|
+
"base"
|
|
554
|
+
]
|
|
555
|
+
},
|
|
556
|
+
"light": {
|
|
557
|
+
"value": "#ffc442",
|
|
558
|
+
"scssColorFunction": "lighten($mds-color-status-info-base,10%)",
|
|
559
|
+
"original": {
|
|
560
|
+
"value": "#ffc442",
|
|
561
|
+
"scssColorFunction": "lighten($mds-color-status-info-base,10%)"
|
|
562
|
+
},
|
|
563
|
+
"name": "MdsColorStatusInfoLight",
|
|
564
|
+
"attributes": {
|
|
565
|
+
"category": "color",
|
|
566
|
+
"type": "status",
|
|
567
|
+
"item": "info",
|
|
568
|
+
"subitem": "light"
|
|
569
|
+
},
|
|
570
|
+
"path": [
|
|
571
|
+
"color",
|
|
572
|
+
"status",
|
|
573
|
+
"info",
|
|
574
|
+
"light"
|
|
575
|
+
]
|
|
576
|
+
},
|
|
577
|
+
"lightest": {
|
|
578
|
+
"value": "#fff7e5",
|
|
579
|
+
"scssColorFunction": "lighten($mds-color-status-info-base,(95% - lightness($mds-color-status-info-base)))",
|
|
580
|
+
"original": {
|
|
581
|
+
"value": "#fff7e5",
|
|
582
|
+
"scssColorFunction": "lighten($mds-color-status-info-base,(95% - lightness($mds-color-status-info-base)))"
|
|
583
|
+
},
|
|
584
|
+
"name": "MdsColorStatusInfoLightest",
|
|
585
|
+
"attributes": {
|
|
586
|
+
"category": "color",
|
|
587
|
+
"type": "status",
|
|
588
|
+
"item": "info",
|
|
589
|
+
"subitem": "lightest"
|
|
590
|
+
},
|
|
591
|
+
"path": [
|
|
592
|
+
"color",
|
|
593
|
+
"status",
|
|
594
|
+
"info",
|
|
595
|
+
"lightest"
|
|
596
|
+
]
|
|
597
|
+
},
|
|
598
|
+
"dark": {
|
|
599
|
+
"value": "#f4aa08",
|
|
600
|
+
"scssColorFunction": "darken($mds-color-status-info-base,10%)",
|
|
601
|
+
"original": {
|
|
602
|
+
"value": "#f4aa08",
|
|
603
|
+
"scssColorFunction": "darken($mds-color-status-info-base,10%)"
|
|
604
|
+
},
|
|
605
|
+
"name": "MdsColorStatusInfoDark",
|
|
606
|
+
"attributes": {
|
|
607
|
+
"category": "color",
|
|
608
|
+
"type": "status",
|
|
609
|
+
"item": "info",
|
|
610
|
+
"subitem": "dark"
|
|
611
|
+
},
|
|
612
|
+
"path": [
|
|
613
|
+
"color",
|
|
614
|
+
"status",
|
|
615
|
+
"info",
|
|
616
|
+
"dark"
|
|
617
|
+
]
|
|
618
|
+
},
|
|
619
|
+
"darkest": {
|
|
620
|
+
"value": "#d99500",
|
|
621
|
+
"scssColorFunction": "darken($mds-color-status-info-base,(lightness($mds-color-status-info-base) - 12%))",
|
|
622
|
+
"original": {
|
|
623
|
+
"value": "#d99500",
|
|
624
|
+
"scssColorFunction": "darken($mds-color-status-info-base,(lightness($mds-color-status-info-base) - 12%))"
|
|
625
|
+
},
|
|
626
|
+
"name": "MdsColorStatusInfoDarkest",
|
|
627
|
+
"attributes": {
|
|
628
|
+
"category": "color",
|
|
629
|
+
"type": "status",
|
|
630
|
+
"item": "info",
|
|
631
|
+
"subitem": "darkest"
|
|
632
|
+
},
|
|
633
|
+
"path": [
|
|
634
|
+
"color",
|
|
635
|
+
"status",
|
|
636
|
+
"info",
|
|
637
|
+
"darkest"
|
|
638
|
+
]
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
},
|
|
325
642
|
"background": {
|
|
326
643
|
"body": {
|
|
327
644
|
"value": "#ffffff",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
3
|
Do not edit directly
|
|
4
|
-
Generated on
|
|
4
|
+
Generated on Thu, 18 Jul 2019 11:38:18 GMT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
$mds-color-brand-1-base: #1b75bb !default;
|
|
@@ -19,6 +19,21 @@ $mds-color-brand-3-light: lighten($mds-color-brand-3-base,10%) !default;
|
|
|
19
19
|
$mds-color-brand-3-lightest: lighten($mds-color-brand-3-base,(95% - lightness($mds-color-brand-3-base))) !default;
|
|
20
20
|
$mds-color-brand-3-dark: darken($mds-color-brand-3-base,10%) !default;
|
|
21
21
|
$mds-color-brand-3-darkest: darken($mds-color-brand-3-base,(lightness($mds-color-brand-3-base) - 12%)) !default;
|
|
22
|
+
$mds-color-status-error-base: #e1021d !default;
|
|
23
|
+
$mds-color-status-error-light: lighten($mds-color-status-error-base,10%) !default;
|
|
24
|
+
$mds-color-status-error-lightest: lighten($mds-color-status-error-base,(95% - lightness($mds-color-status-error-base))) !default;
|
|
25
|
+
$mds-color-status-error-dark: darken($mds-color-status-error-base,10%) !default;
|
|
26
|
+
$mds-color-status-error-darkest: darken($mds-color-status-error-base,(lightness($mds-color-status-error-base) - 12%)) !default;
|
|
27
|
+
$mds-color-status-success-base: #5ba927 !default;
|
|
28
|
+
$mds-color-status-success-light: lighten($mds-color-status-success-base,10%) !default;
|
|
29
|
+
$mds-color-status-success-lightest: lighten($mds-color-status-success-base,(95% - lightness($mds-color-status-success-base))) !default;
|
|
30
|
+
$mds-color-status-success-dark: darken($mds-color-status-success-base,10%) !default;
|
|
31
|
+
$mds-color-status-success-darkest: darken($mds-color-status-success-base,(lightness($mds-color-status-success-base) - 12%)) !default;
|
|
32
|
+
$mds-color-status-info-base: #ffb411 !default;
|
|
33
|
+
$mds-color-status-info-light: lighten($mds-color-status-info-base,10%) !default;
|
|
34
|
+
$mds-color-status-info-lightest: lighten($mds-color-status-info-base,(95% - lightness($mds-color-status-info-base))) !default;
|
|
35
|
+
$mds-color-status-info-dark: darken($mds-color-status-info-base,10%) !default;
|
|
36
|
+
$mds-color-status-info-darkest: darken($mds-color-status-info-base,(lightness($mds-color-status-info-base) - 12%)) !default;
|
|
22
37
|
$mds-color-background-body: #ffffff !default;
|
|
23
38
|
$mds-color-background-site-container: #f8f8f8 !default;
|
|
24
39
|
$mds-color-background-surface: #ffffff !default;
|
|
@@ -155,6 +170,29 @@ $tokens: (
|
|
|
155
170
|
'darkest': $mds-color-brand-3-darkest
|
|
156
171
|
)
|
|
157
172
|
),
|
|
173
|
+
'status': (
|
|
174
|
+
'error': (
|
|
175
|
+
'base': $mds-color-status-error-base,
|
|
176
|
+
'light': $mds-color-status-error-light,
|
|
177
|
+
'lightest': $mds-color-status-error-lightest,
|
|
178
|
+
'dark': $mds-color-status-error-dark,
|
|
179
|
+
'darkest': $mds-color-status-error-darkest
|
|
180
|
+
),
|
|
181
|
+
'success': (
|
|
182
|
+
'base': $mds-color-status-success-base,
|
|
183
|
+
'light': $mds-color-status-success-light,
|
|
184
|
+
'lightest': $mds-color-status-success-lightest,
|
|
185
|
+
'dark': $mds-color-status-success-dark,
|
|
186
|
+
'darkest': $mds-color-status-success-darkest
|
|
187
|
+
),
|
|
188
|
+
'info': (
|
|
189
|
+
'base': $mds-color-status-info-base,
|
|
190
|
+
'light': $mds-color-status-info-light,
|
|
191
|
+
'lightest': $mds-color-status-info-lightest,
|
|
192
|
+
'dark': $mds-color-status-info-dark,
|
|
193
|
+
'darkest': $mds-color-status-info-darkest
|
|
194
|
+
)
|
|
195
|
+
),
|
|
158
196
|
'background': (
|
|
159
197
|
'body': $mds-color-background-body,
|
|
160
198
|
'site-container': $mds-color-background-site-container,
|
package/dist/css/index.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Do not edit directly
|
|
3
|
-
Generated on
|
|
3
|
+
Generated on Thu, 18 Jul 2019 11:38:18 GMT
|
|
4
4
|
*/
|
|
5
5
|
html,
|
|
6
6
|
body,
|
|
@@ -1382,6 +1382,24 @@ body {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
1384
|
|
|
1385
|
+
.mds-message.mds-message--error {
|
|
1386
|
+
color: #3d0108;
|
|
1387
|
+
background-color: #ffe6e9;
|
|
1388
|
+
border-color: #e1021d;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
.mds-message.mds-message--success {
|
|
1392
|
+
color: #1b320b;
|
|
1393
|
+
background-color: #f1faea;
|
|
1394
|
+
border-color: #5ba927;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
.mds-message.mds-message--info {
|
|
1398
|
+
color: #3d2a00;
|
|
1399
|
+
background-color: #fff7e6;
|
|
1400
|
+
border-color: #ffb411;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1385
1403
|
.mds-icon {
|
|
1386
1404
|
display: inline-block;
|
|
1387
1405
|
width: 1em;
|
|
@@ -1475,157 +1493,157 @@ body {
|
|
|
1475
1493
|
padding: 28px 32px;
|
|
1476
1494
|
}
|
|
1477
1495
|
|
|
1478
|
-
.mds-font-canon
|
|
1496
|
+
.mds-font-canon {
|
|
1479
1497
|
font-size: 1.75rem;
|
|
1480
1498
|
line-height: 1.15;
|
|
1481
1499
|
}
|
|
1482
1500
|
|
|
1483
1501
|
@media (min-width: 25em) {
|
|
1484
|
-
.mds-font-canon
|
|
1502
|
+
.mds-font-canon {
|
|
1485
1503
|
font-size: 2rem;
|
|
1486
1504
|
line-height: 1.13;
|
|
1487
1505
|
}
|
|
1488
1506
|
}
|
|
1489
1507
|
|
|
1490
1508
|
@media (min-width: 37.5em) {
|
|
1491
|
-
.mds-font-canon
|
|
1509
|
+
.mds-font-canon {
|
|
1492
1510
|
font-size: 3.25rem;
|
|
1493
1511
|
line-height: 1.08;
|
|
1494
1512
|
}
|
|
1495
1513
|
}
|
|
1496
1514
|
|
|
1497
1515
|
@media (min-width: 63em) {
|
|
1498
|
-
.mds-font-canon
|
|
1516
|
+
.mds-font-canon {
|
|
1499
1517
|
font-size: 2.75rem;
|
|
1500
1518
|
line-height: 1.1;
|
|
1501
1519
|
}
|
|
1502
1520
|
}
|
|
1503
1521
|
|
|
1504
|
-
.mds-font-trafalgar,
|
|
1522
|
+
.mds-font-trafalgar, h1 {
|
|
1505
1523
|
font-size: 1.25rem;
|
|
1506
1524
|
line-height: 1.2;
|
|
1507
1525
|
}
|
|
1508
1526
|
|
|
1509
1527
|
@media (min-width: 25em) {
|
|
1510
|
-
.mds-font-trafalgar,
|
|
1528
|
+
.mds-font-trafalgar, h1 {
|
|
1511
1529
|
font-size: 1.5rem;
|
|
1512
1530
|
line-height: 1.17;
|
|
1513
1531
|
}
|
|
1514
1532
|
}
|
|
1515
1533
|
|
|
1516
1534
|
@media (min-width: 37.5em) {
|
|
1517
|
-
.mds-font-trafalgar,
|
|
1535
|
+
.mds-font-trafalgar, h1 {
|
|
1518
1536
|
font-size: 2.25rem;
|
|
1519
1537
|
line-height: 1.12;
|
|
1520
1538
|
}
|
|
1521
1539
|
}
|
|
1522
1540
|
|
|
1523
1541
|
@media (min-width: 63em) {
|
|
1524
|
-
.mds-font-trafalgar,
|
|
1542
|
+
.mds-font-trafalgar, h1 {
|
|
1525
1543
|
font-size: 2rem;
|
|
1526
1544
|
line-height: 1.13;
|
|
1527
1545
|
}
|
|
1528
1546
|
}
|
|
1529
1547
|
|
|
1530
|
-
.mds-font-paragon
|
|
1548
|
+
.mds-font-paragon {
|
|
1531
1549
|
font-size: 1.25rem;
|
|
1532
1550
|
line-height: 1.2;
|
|
1533
1551
|
}
|
|
1534
1552
|
|
|
1535
1553
|
@media (min-width: 25em) {
|
|
1536
|
-
.mds-font-paragon
|
|
1554
|
+
.mds-font-paragon {
|
|
1537
1555
|
font-size: 1.375rem;
|
|
1538
1556
|
line-height: 1.19;
|
|
1539
1557
|
}
|
|
1540
1558
|
}
|
|
1541
1559
|
|
|
1542
1560
|
@media (min-width: 37.5em) {
|
|
1543
|
-
.mds-font-paragon
|
|
1561
|
+
.mds-font-paragon {
|
|
1544
1562
|
font-size: 1.75rem;
|
|
1545
1563
|
line-height: 1.15;
|
|
1546
1564
|
}
|
|
1547
1565
|
}
|
|
1548
1566
|
|
|
1549
1567
|
@media (min-width: 63em) {
|
|
1550
|
-
.mds-font-paragon
|
|
1568
|
+
.mds-font-paragon {
|
|
1551
1569
|
font-size: 1.75rem;
|
|
1552
1570
|
line-height: 1.15;
|
|
1553
1571
|
}
|
|
1554
1572
|
}
|
|
1555
1573
|
|
|
1556
|
-
.mds-font-double-pica,
|
|
1574
|
+
.mds-font-double-pica, h2 {
|
|
1557
1575
|
font-size: 1.25rem;
|
|
1558
1576
|
line-height: 1.2;
|
|
1559
1577
|
}
|
|
1560
1578
|
|
|
1561
1579
|
@media (min-width: 25em) {
|
|
1562
|
-
.mds-font-double-pica,
|
|
1580
|
+
.mds-font-double-pica, h2 {
|
|
1563
1581
|
font-size: 1.25rem;
|
|
1564
1582
|
line-height: 1.2;
|
|
1565
1583
|
}
|
|
1566
1584
|
}
|
|
1567
1585
|
|
|
1568
1586
|
@media (min-width: 37.5em) {
|
|
1569
|
-
.mds-font-double-pica,
|
|
1587
|
+
.mds-font-double-pica, h2 {
|
|
1570
1588
|
font-size: 1.625rem;
|
|
1571
1589
|
line-height: 1.16;
|
|
1572
1590
|
}
|
|
1573
1591
|
}
|
|
1574
1592
|
|
|
1575
1593
|
@media (min-width: 63em) {
|
|
1576
|
-
.mds-font-double-pica,
|
|
1594
|
+
.mds-font-double-pica, h2 {
|
|
1577
1595
|
font-size: 1.5rem;
|
|
1578
1596
|
line-height: 1.17;
|
|
1579
1597
|
}
|
|
1580
1598
|
}
|
|
1581
1599
|
|
|
1582
|
-
.mds-font-great-primer, .js .mds-tabs__list-item {
|
|
1600
|
+
.mds-font-great-primer, h3, .js .mds-tabs__list-item {
|
|
1583
1601
|
font-size: 1.125rem;
|
|
1584
1602
|
line-height: 1.23;
|
|
1585
1603
|
}
|
|
1586
1604
|
|
|
1587
1605
|
@media (min-width: 25em) {
|
|
1588
|
-
.mds-font-great-primer, .js .mds-tabs__list-item {
|
|
1606
|
+
.mds-font-great-primer, h3, .js .mds-tabs__list-item {
|
|
1589
1607
|
font-size: 1.125rem;
|
|
1590
1608
|
line-height: 1.23;
|
|
1591
1609
|
}
|
|
1592
1610
|
}
|
|
1593
1611
|
|
|
1594
1612
|
@media (min-width: 37.5em) {
|
|
1595
|
-
.mds-font-great-primer, .js .mds-tabs__list-item {
|
|
1613
|
+
.mds-font-great-primer, h3, .js .mds-tabs__list-item {
|
|
1596
1614
|
font-size: 1.3125rem;
|
|
1597
1615
|
line-height: 1.15;
|
|
1598
1616
|
}
|
|
1599
1617
|
}
|
|
1600
1618
|
|
|
1601
1619
|
@media (min-width: 63em) {
|
|
1602
|
-
.mds-font-great-primer, .js .mds-tabs__list-item {
|
|
1620
|
+
.mds-font-great-primer, h3, .js .mds-tabs__list-item {
|
|
1603
1621
|
font-size: 1.25rem;
|
|
1604
1622
|
line-height: 1.2;
|
|
1605
1623
|
}
|
|
1606
1624
|
}
|
|
1607
1625
|
|
|
1608
|
-
.mds-font-body-copy, body {
|
|
1626
|
+
.mds-font-body-copy, body, h4 {
|
|
1609
1627
|
font-size: 0.875rem;
|
|
1610
1628
|
line-height: 1.43;
|
|
1611
1629
|
}
|
|
1612
1630
|
|
|
1613
1631
|
@media (min-width: 25em) {
|
|
1614
|
-
.mds-font-body-copy, body {
|
|
1632
|
+
.mds-font-body-copy, body, h4 {
|
|
1615
1633
|
font-size: 1rem;
|
|
1616
1634
|
line-height: 1.38;
|
|
1617
1635
|
}
|
|
1618
1636
|
}
|
|
1619
1637
|
|
|
1620
1638
|
@media (min-width: 37.5em) {
|
|
1621
|
-
.mds-font-body-copy, body {
|
|
1639
|
+
.mds-font-body-copy, body, h4 {
|
|
1622
1640
|
font-size: 1.125rem;
|
|
1623
1641
|
line-height: 1.34;
|
|
1624
1642
|
}
|
|
1625
1643
|
}
|
|
1626
1644
|
|
|
1627
1645
|
@media (min-width: 63em) {
|
|
1628
|
-
.mds-font-body-copy, body {
|
|
1646
|
+
.mds-font-body-copy, body, h4 {
|
|
1629
1647
|
font-size: 1rem;
|
|
1630
1648
|
line-height: 1.38;
|
|
1631
1649
|
}
|
|
@@ -1759,7 +1777,7 @@ body {
|
|
|
1759
1777
|
margin: 8px;
|
|
1760
1778
|
}
|
|
1761
1779
|
|
|
1762
|
-
.mds-padding-b3 {
|
|
1780
|
+
.mds-padding-b3, .mds-message {
|
|
1763
1781
|
padding: 12px;
|
|
1764
1782
|
}
|
|
1765
1783
|
|
|
@@ -4351,7 +4369,7 @@ body {
|
|
|
4351
4369
|
}
|
|
4352
4370
|
}
|
|
4353
4371
|
|
|
4354
|
-
.mds-border, .mds-surface {
|
|
4372
|
+
.mds-border, .mds-surface, .mds-message {
|
|
4355
4373
|
border: 1px solid #dddddd;
|
|
4356
4374
|
}
|
|
4357
4375
|
|
|
@@ -4559,7 +4577,7 @@ body {
|
|
|
4559
4577
|
}
|
|
4560
4578
|
}
|
|
4561
4579
|
|
|
4562
|
-
.mds-border-radius, .mds-surface {
|
|
4580
|
+
.mds-border-radius, .mds-surface, .mds-message {
|
|
4563
4581
|
border-radius: 4px;
|
|
4564
4582
|
}
|
|
4565
4583
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<p class="mds-message" role="alert">This is a message</p>
|
|
2
|
+
<p class="mds-message mds-message--error" role="alert">This is an error message</p>
|
|
3
|
+
<p class="mds-message mds-message--success" role="alert">This is a success message</p>
|
|
4
|
+
<p class="mds-message mds-message--info" role="alert">This is an info message</p>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.mds-message{
|
|
2
|
+
@extend .mds-padding-b3;
|
|
3
|
+
@extend .mds-border-radius;
|
|
4
|
+
@extend .mds-border;
|
|
5
|
+
|
|
6
|
+
&.mds-message--error{
|
|
7
|
+
color: $mds-color-status-error-darkest;
|
|
8
|
+
background-color: $mds-color-status-error-lightest;
|
|
9
|
+
border-color: $mds-color-status-error-base;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.mds-message--success{
|
|
13
|
+
color: $mds-color-status-success-darkest;
|
|
14
|
+
background-color: $mds-color-status-success-lightest;
|
|
15
|
+
border-color: $mds-color-status-success-base;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.mds-message--info{
|
|
19
|
+
color: $mds-color-status-info-darkest;
|
|
20
|
+
background-color: $mds-color-status-info-lightest;
|
|
21
|
+
border-color: $mds-color-status-info-base;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -4,17 +4,17 @@ body {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
h1 {
|
|
7
|
-
@extend .mds-font-
|
|
7
|
+
@extend .mds-font-trafalgar;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
h2 {
|
|
11
|
-
@extend .mds-font-
|
|
11
|
+
@extend .mds-font-double-pica;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
h3 {
|
|
15
|
-
@extend .mds-font-
|
|
15
|
+
@extend .mds-font-great-primer;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
h4 {
|
|
19
|
-
@extend .mds-font-
|
|
19
|
+
@extend .mds-font-body-copy;
|
|
20
20
|
}
|
package/src/tokens/color.json
CHANGED
|
@@ -59,6 +59,65 @@
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
+
"status": {
|
|
63
|
+
"error": {
|
|
64
|
+
"base": { "value": "#e1021d" },
|
|
65
|
+
"light": {
|
|
66
|
+
"value": "#fd0826",
|
|
67
|
+
"scssColorFunction": "lighten($mds-color-status-error-base,10%)"
|
|
68
|
+
},
|
|
69
|
+
"lightest": {
|
|
70
|
+
"value": "#ffe3e6",
|
|
71
|
+
"scssColorFunction": "lighten($mds-color-status-error-base,(95% - lightness($mds-color-status-error-base)))"
|
|
72
|
+
},
|
|
73
|
+
"dark": {
|
|
74
|
+
"value": "#d0021b",
|
|
75
|
+
"scssColorFunction": "darken($mds-color-status-error-base,10%)"
|
|
76
|
+
},
|
|
77
|
+
"darkest": {
|
|
78
|
+
"value": "#ae0216",
|
|
79
|
+
"scssColorFunction": "darken($mds-color-status-error-base,(lightness($mds-color-status-error-base) - 12%))"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"success": {
|
|
83
|
+
"base": { "value": "#5ba927" },
|
|
84
|
+
"light": {
|
|
85
|
+
"value": "#6ac52d",
|
|
86
|
+
"scssColorFunction": "lighten($mds-color-status-success-base,10%)"
|
|
87
|
+
},
|
|
88
|
+
"lightest": {
|
|
89
|
+
"value": "#f0faea",
|
|
90
|
+
"scssColorFunction": "lighten($mds-color-status-success-base,(95% - lightness($mds-color-status-success-base)))"
|
|
91
|
+
},
|
|
92
|
+
"dark": {
|
|
93
|
+
"value": "#549b24",
|
|
94
|
+
"scssColorFunction": "darken($mds-color-status-success-base,10%)"
|
|
95
|
+
},
|
|
96
|
+
"darkest": {
|
|
97
|
+
"value": "#45801d",
|
|
98
|
+
"scssColorFunction": "darken($mds-color-status-success-base,(lightness($mds-color-status-success-base) - 12%))"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"info": {
|
|
102
|
+
"base": { "value": "#ffb411" },
|
|
103
|
+
"light": {
|
|
104
|
+
"value": "#ffc442",
|
|
105
|
+
"scssColorFunction": "lighten($mds-color-status-info-base,10%)"
|
|
106
|
+
},
|
|
107
|
+
"lightest": {
|
|
108
|
+
"value": "#fff7e5",
|
|
109
|
+
"scssColorFunction": "lighten($mds-color-status-info-base,(95% - lightness($mds-color-status-info-base)))"
|
|
110
|
+
},
|
|
111
|
+
"dark": {
|
|
112
|
+
"value": "#f4aa08",
|
|
113
|
+
"scssColorFunction": "darken($mds-color-status-info-base,10%)"
|
|
114
|
+
},
|
|
115
|
+
"darkest": {
|
|
116
|
+
"value": "#d99500",
|
|
117
|
+
"scssColorFunction": "darken($mds-color-status-info-base,(lightness($mds-color-status-info-base) - 12%))"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
62
121
|
"background": {
|
|
63
122
|
"body": { "value": "{color.neutral.white.value}" },
|
|
64
123
|
"site-container": { "value": "{color.neutral.lightest.value}" },
|