@madgex/design-system 1.12.0 → 1.13.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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 10 Jul 2019 14:24:59 GMT
3
+ * Generated on Thu, 11 Jul 2019 11:26:49 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -10,7 +10,7 @@
10
10
  --mds-color-brand-1-dark: #15598e;
11
11
  --mds-color-brand-1-darkest: #082135;
12
12
  --mds-color-brand-2-base: #f0af11;
13
- --mds-color-brand-2-light: #f3bf41;
13
+ --mds-color-brand-2-light: #f0af11;
14
14
  --mds-color-brand-2-lightest: #fdf7e7;
15
15
  --mds-color-brand-2-dark: #c28d0c;
16
16
  --mds-color-brand-2-darkest: #3a2a04;
@@ -19,16 +19,17 @@
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-background-body: #f0f0f0;
22
+ --mds-color-background-body: #ffffff;
23
23
  --mds-color-background-site-container: #f0f0f0;
24
24
  --mds-color-background-surface: #ffffff;
25
- --mds-color-text: #222222;
26
- --mds-color-border: #979797;
27
- --mds-color-white: #ffffff;
28
- --mds-color-black: #000000;
25
+ --mds-color-neutral-white: #ffffff;
26
+ --mds-color-neutral-black: #000000;
29
27
  --mds-color-neutral-base: #979797;
30
28
  --mds-color-neutral-lightest: #f0f0f0;
31
29
  --mds-color-neutral-darker: #333333;
30
+ --mds-color-text-base: #222222;
31
+ --mds-color-text-invert: #ffffff;
32
+ --mds-color-border: #979797;
32
33
  --mds-font-family-base: "Helvetica", Arial, sans-serif;
33
34
  --mds-font-type-canon-default-size: 28px;
34
35
  --mds-font-type-canon-default-line-height: 1.15;
@@ -123,5 +124,6 @@
123
124
  --mds-size-container-max-width: 100%;
124
125
  --mds-size-wrapper-width: 100%;
125
126
  --mds-size-wrapper-max-width: 1280px;
126
- --mds-size-wrapper-paddings: 2.5%;
127
+ --mds-size-wrapper-padding: 2.5%;
128
+ --mds-size-surface-padding: 20px;
127
129
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 10 Jul 2019 14:24:59 GMT
3
+ * Generated on Thu, 11 Jul 2019 11:26:49 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
@@ -132,11 +132,11 @@ module.exports = {
132
132
  ]
133
133
  },
134
134
  "light": {
135
- "value": "#f3bf41",
136
135
  "scssColorFunction": "lighten($mds-color-brand-2-base,10%)",
136
+ "value": "#f0af11",
137
137
  "original": {
138
- "value": "#f3bf41",
139
- "scssColorFunction": "lighten($mds-color-brand-2-base,10%)"
138
+ "scssColorFunction": "lighten($mds-color-brand-2-base,10%)",
139
+ "value": "{color.brand.2.base.value}"
140
140
  },
141
141
  "name": "MdsColorBrand2Light",
142
142
  "attributes": {
@@ -324,9 +324,9 @@ module.exports = {
324
324
  },
325
325
  "background": {
326
326
  "body": {
327
- "value": "#f0f0f0",
327
+ "value": "#ffffff",
328
328
  "original": {
329
- "value": "{color.background.site-container.value}"
329
+ "value": "{color.neutral.white.value}"
330
330
  },
331
331
  "name": "MdsColorBackgroundBody",
332
332
  "attributes": {
@@ -343,7 +343,7 @@ module.exports = {
343
343
  "site-container": {
344
344
  "value": "#f0f0f0",
345
345
  "original": {
346
- "value": "#f0f0f0"
346
+ "value": "{color.neutral.lightest.value}"
347
347
  },
348
348
  "name": "MdsColorBackgroundSiteContainer",
349
349
  "attributes": {
@@ -360,7 +360,7 @@ module.exports = {
360
360
  "surface": {
361
361
  "value": "#ffffff",
362
362
  "original": {
363
- "value": "#ffffff"
363
+ "value": "{color.neutral.white.value}"
364
364
  },
365
365
  "name": "MdsColorBackgroundSurface",
366
366
  "attributes": {
@@ -375,67 +375,41 @@ module.exports = {
375
375
  ]
376
376
  }
377
377
  },
378
- "text": {
379
- "value": "#222222",
380
- "original": {
381
- "value": "#222"
382
- },
383
- "name": "MdsColorText",
384
- "attributes": {
385
- "category": "color",
386
- "type": "text"
387
- },
388
- "path": [
389
- "color",
390
- "text"
391
- ]
392
- },
393
- "border": {
394
- "value": "#979797",
395
- "original": {
396
- "value": "{color.neutral.base.value}"
397
- },
398
- "name": "MdsColorBorder",
399
- "attributes": {
400
- "category": "color",
401
- "type": "border"
402
- },
403
- "path": [
404
- "color",
405
- "border"
406
- ]
407
- },
408
- "white": {
409
- "value": "#ffffff",
410
- "original": {
411
- "value": "#FFFFFF"
412
- },
413
- "name": "MdsColorWhite",
414
- "attributes": {
415
- "category": "color",
416
- "type": "white"
417
- },
418
- "path": [
419
- "color",
420
- "white"
421
- ]
422
- },
423
- "black": {
424
- "value": "#000000",
425
- "original": {
426
- "value": "#000000"
378
+ "neutral": {
379
+ "white": {
380
+ "value": "#ffffff",
381
+ "original": {
382
+ "value": "#FFFFFF"
383
+ },
384
+ "name": "MdsColorNeutralWhite",
385
+ "attributes": {
386
+ "category": "color",
387
+ "type": "neutral",
388
+ "item": "white"
389
+ },
390
+ "path": [
391
+ "color",
392
+ "neutral",
393
+ "white"
394
+ ]
427
395
  },
428
- "name": "MdsColorBlack",
429
- "attributes": {
430
- "category": "color",
431
- "type": "black"
396
+ "black": {
397
+ "value": "#000000",
398
+ "original": {
399
+ "value": "#000000"
400
+ },
401
+ "name": "MdsColorNeutralBlack",
402
+ "attributes": {
403
+ "category": "color",
404
+ "type": "neutral",
405
+ "item": "black"
406
+ },
407
+ "path": [
408
+ "color",
409
+ "neutral",
410
+ "black"
411
+ ]
432
412
  },
433
- "path": [
434
- "color",
435
- "black"
436
- ]
437
- },
438
- "neutral": {
439
413
  "base": {
440
414
  "value": "#979797",
441
415
  "original": {
@@ -487,6 +461,57 @@ module.exports = {
487
461
  "darker"
488
462
  ]
489
463
  }
464
+ },
465
+ "text": {
466
+ "base": {
467
+ "value": "#222222",
468
+ "original": {
469
+ "value": "#222"
470
+ },
471
+ "name": "MdsColorTextBase",
472
+ "attributes": {
473
+ "category": "color",
474
+ "type": "text",
475
+ "item": "base"
476
+ },
477
+ "path": [
478
+ "color",
479
+ "text",
480
+ "base"
481
+ ]
482
+ },
483
+ "invert": {
484
+ "value": "#ffffff",
485
+ "original": {
486
+ "value": "{color.neutral.white.value}"
487
+ },
488
+ "name": "MdsColorTextInvert",
489
+ "attributes": {
490
+ "category": "color",
491
+ "type": "text",
492
+ "item": "invert"
493
+ },
494
+ "path": [
495
+ "color",
496
+ "text",
497
+ "invert"
498
+ ]
499
+ }
500
+ },
501
+ "border": {
502
+ "value": "#979797",
503
+ "original": {
504
+ "value": "{color.neutral.base.value}"
505
+ },
506
+ "name": "MdsColorBorder",
507
+ "attributes": {
508
+ "category": "color",
509
+ "type": "border"
510
+ },
511
+ "path": [
512
+ "color",
513
+ "border"
514
+ ]
490
515
  }
491
516
  },
492
517
  "font": {
@@ -2517,21 +2542,40 @@ module.exports = {
2517
2542
  "max-width"
2518
2543
  ]
2519
2544
  },
2520
- "paddings": {
2545
+ "padding": {
2521
2546
  "value": "2.5rem",
2522
2547
  "original": {
2523
2548
  "value": "2.5%"
2524
2549
  },
2525
- "name": "MdsSizeWrapperPaddings",
2550
+ "name": "MdsSizeWrapperPadding",
2526
2551
  "attributes": {
2527
2552
  "category": "size",
2528
2553
  "type": "wrapper",
2529
- "item": "paddings"
2554
+ "item": "padding"
2530
2555
  },
2531
2556
  "path": [
2532
2557
  "size",
2533
2558
  "wrapper",
2534
- "paddings"
2559
+ "padding"
2560
+ ]
2561
+ }
2562
+ },
2563
+ "surface": {
2564
+ "padding": {
2565
+ "value": "20rem",
2566
+ "original": {
2567
+ "value": "20px"
2568
+ },
2569
+ "name": "MdsSizeSurfacePadding",
2570
+ "attributes": {
2571
+ "category": "size",
2572
+ "type": "surface",
2573
+ "item": "padding"
2574
+ },
2575
+ "path": [
2576
+ "size",
2577
+ "surface",
2578
+ "padding"
2535
2579
  ]
2536
2580
  }
2537
2581
  }
@@ -1,7 +1,7 @@
1
1
 
2
2
  /*
3
3
  Do not edit directly
4
- Generated on Wed, 10 Jul 2019 14:24:59 GMT
4
+ Generated on Thu, 11 Jul 2019 11:26:49 GMT
5
5
  */
6
6
 
7
7
  $mds-color-brand-1-base: #1b75bb !default;
@@ -10,7 +10,7 @@ $mds-color-brand-1-lightest: lighten($mds-color-brand-1-base,(95% - lightness($m
10
10
  $mds-color-brand-1-dark: darken($mds-color-brand-1-base,10%) !default;
11
11
  $mds-color-brand-1-darkest: darken($mds-color-brand-1-base,(lightness($mds-color-brand-1-base) - 12%)) !default;
12
12
  $mds-color-brand-2-base: #f0af11 !default;
13
- $mds-color-brand-2-light: lighten($mds-color-brand-2-base,10%) !default;
13
+ $mds-color-brand-2-light: #f0af11 !default;
14
14
  $mds-color-brand-2-lightest: lighten($mds-color-brand-2-base,(95% - lightness($mds-color-brand-2-base))) !default;
15
15
  $mds-color-brand-2-dark: darken($mds-color-brand-2-base,10%) !default;
16
16
  $mds-color-brand-2-darkest: darken($mds-color-brand-2-base,(lightness($mds-color-brand-2-base) - 12%)) !default;
@@ -19,16 +19,17 @@ $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-background-body: #f0f0f0 !default;
22
+ $mds-color-background-body: #ffffff !default;
23
23
  $mds-color-background-site-container: #f0f0f0 !default;
24
24
  $mds-color-background-surface: #ffffff !default;
25
- $mds-color-text: #222222 !default;
26
- $mds-color-border: #979797 !default;
27
- $mds-color-white: #ffffff !default;
28
- $mds-color-black: #000000 !default;
25
+ $mds-color-neutral-white: #ffffff !default;
26
+ $mds-color-neutral-black: #000000 !default;
29
27
  $mds-color-neutral-base: #979797 !default;
30
28
  $mds-color-neutral-lightest: #f0f0f0 !default;
31
29
  $mds-color-neutral-darker: #333333 !default;
30
+ $mds-color-text-base: #222222 !default;
31
+ $mds-color-text-invert: #ffffff !default;
32
+ $mds-color-border: #979797 !default;
32
33
  $mds-font-family-base: "Helvetica", Arial, sans-serif !default;
33
34
  $mds-font-type-canon-default-size: 28px !default;
34
35
  $mds-font-type-canon-default-line-height: 1.15 !default;
@@ -123,7 +124,8 @@ $mds-size-container-min-width: 0 !default;
123
124
  $mds-size-container-max-width: 100% !default;
124
125
  $mds-size-wrapper-width: 100% !default;
125
126
  $mds-size-wrapper-max-width: 1280px !default;
126
- $mds-size-wrapper-paddings: 2.5% !default;
127
+ $mds-size-wrapper-padding: 2.5% !default;
128
+ $mds-size-surface-padding: 20px !default;
127
129
 
128
130
  $tokens: (
129
131
  'color': (
@@ -155,15 +157,18 @@ $tokens: (
155
157
  'site-container': $mds-color-background-site-container,
156
158
  'surface': $mds-color-background-surface
157
159
  ),
158
- 'text': $mds-color-text,
159
- 'border': $mds-color-border,
160
- 'white': $mds-color-white,
161
- 'black': $mds-color-black,
162
160
  'neutral': (
161
+ 'white': $mds-color-neutral-white,
162
+ 'black': $mds-color-neutral-black,
163
163
  'base': $mds-color-neutral-base,
164
164
  'lightest': $mds-color-neutral-lightest,
165
165
  'darker': $mds-color-neutral-darker
166
- )
166
+ ),
167
+ 'text': (
168
+ 'base': $mds-color-text-base,
169
+ 'invert': $mds-color-text-invert
170
+ ),
171
+ 'border': $mds-color-border
167
172
  ),
168
173
  'font': (
169
174
  'family': (
@@ -373,7 +378,10 @@ $tokens: (
373
378
  'wrapper': (
374
379
  'width': $mds-size-wrapper-width,
375
380
  'max-width': $mds-size-wrapper-max-width,
376
- 'paddings': $mds-size-wrapper-paddings
381
+ 'padding': $mds-size-wrapper-padding
382
+ ),
383
+ 'surface': (
384
+ 'padding': $mds-size-surface-padding
377
385
  )
378
386
  )
379
387
  );
@@ -1,7 +1,104 @@
1
1
  /*
2
2
  Do not edit directly
3
- Generated on Wed, 10 Jul 2019 14:24:59 GMT
3
+ Generated on Thu, 11 Jul 2019 11:26:49 GMT
4
4
  */
5
+ html,
6
+ body,
7
+ div,
8
+ span,
9
+ applet,
10
+ object,
11
+ iframe,
12
+ h1,
13
+ h2,
14
+ h3,
15
+ h4,
16
+ h5,
17
+ h6,
18
+ p,
19
+ blockquote,
20
+ pre,
21
+ a,
22
+ abbr,
23
+ acronym,
24
+ address,
25
+ big,
26
+ cite,
27
+ code,
28
+ del,
29
+ dfn,
30
+ em,
31
+ img,
32
+ ins,
33
+ kbd,
34
+ q,
35
+ s,
36
+ samp,
37
+ small,
38
+ strike,
39
+ strong,
40
+ sub,
41
+ sup,
42
+ tt,
43
+ var,
44
+ b,
45
+ u,
46
+ i,
47
+ center,
48
+ dl,
49
+ dt,
50
+ dd,
51
+ ol,
52
+ ul,
53
+ li,
54
+ fieldset,
55
+ form,
56
+ label,
57
+ legend,
58
+ table,
59
+ caption,
60
+ tbody,
61
+ tfoot,
62
+ thead,
63
+ tr,
64
+ th,
65
+ td,
66
+ article,
67
+ aside,
68
+ canvas,
69
+ details,
70
+ embed,
71
+ figure,
72
+ figcaption,
73
+ footer,
74
+ header,
75
+ hgroup,
76
+ menu,
77
+ nav,
78
+ output,
79
+ ruby,
80
+ section,
81
+ summary,
82
+ time,
83
+ mark,
84
+ audio,
85
+ video {
86
+ margin: 0;
87
+ padding: 0;
88
+ border: 0;
89
+ font: inherit;
90
+ }
91
+
92
+ * {
93
+ box-sizing: border-box;
94
+ }
95
+
96
+ ol,
97
+ ul {
98
+ list-style-type: none;
99
+ list-style-position: outside;
100
+ }
101
+
5
102
  /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
6
103
  /* Document
7
104
  ========================================================================== */
@@ -32,15 +129,6 @@ main {
32
129
  display: block;
33
130
  }
34
131
 
35
- /**
36
- * Correct the font size and margin on `h1` elements within `section` and
37
- * `article` contexts in Chrome, Firefox, and Safari.
38
- */
39
- h1 {
40
- font-size: 2em;
41
- margin: 0.67em 0;
42
- }
43
-
44
132
  /* Grouping content
45
133
  ========================================================================== */
46
134
  /**
@@ -3217,8 +3305,8 @@ template {
3217
3305
  }
3218
3306
  }
3219
3307
 
3220
- .mds-border {
3221
- border: 1px solid red;
3308
+ .mds-border, .mds-surface {
3309
+ border: 1px solid #979797;
3222
3310
  }
3223
3311
 
3224
3312
  .mds-border-none {
@@ -3227,25 +3315,25 @@ template {
3227
3315
 
3228
3316
  @media (min-width: 25em) {
3229
3317
  .mds-border-sm {
3230
- border: 1px solid red;
3318
+ border: 1px solid #979797;
3231
3319
  }
3232
3320
  }
3233
3321
 
3234
3322
  @media (min-width: 37.5em) {
3235
3323
  .mds-border-md {
3236
- border: 1px solid red;
3324
+ border: 1px solid #979797;
3237
3325
  }
3238
3326
  }
3239
3327
 
3240
3328
  @media (min-width: 63em) {
3241
3329
  .mds-border-lg {
3242
- border: 1px solid red;
3330
+ border: 1px solid #979797;
3243
3331
  }
3244
3332
  }
3245
3333
 
3246
3334
  @media (min-width: 80em) {
3247
3335
  .mds-border-xl {
3248
- border: 1px solid red;
3336
+ border: 1px solid #979797;
3249
3337
  }
3250
3338
  }
3251
3339
 
@@ -3274,19 +3362,19 @@ template {
3274
3362
  }
3275
3363
 
3276
3364
  .mds-border-top {
3277
- border-top: 1px solid red;
3365
+ border-top: 1px solid #979797;
3278
3366
  }
3279
3367
 
3280
3368
  .mds-border-right {
3281
- border-right: 1px solid red;
3369
+ border-right: 1px solid #979797;
3282
3370
  }
3283
3371
 
3284
3372
  .mds-border-bottom {
3285
- border-bottom: 1px solid red;
3373
+ border-bottom: 1px solid #979797;
3286
3374
  }
3287
3375
 
3288
3376
  .mds-border-left {
3289
- border-left: 1px solid red;
3377
+ border-left: 1px solid #979797;
3290
3378
  }
3291
3379
 
3292
3380
  .mds-border-top-none {
@@ -3307,61 +3395,61 @@ template {
3307
3395
 
3308
3396
  @media (min-width: 25em) {
3309
3397
  .mds-border-sm-top {
3310
- border-top: 1px solid red;
3398
+ border-top: 1px solid #979797;
3311
3399
  }
3312
3400
  .mds-border-sm-right {
3313
- border-right: 1px solid red;
3401
+ border-right: 1px solid #979797;
3314
3402
  }
3315
3403
  .mds-border-sm-bottom {
3316
- border-bottom: 1px solid red;
3404
+ border-bottom: 1px solid #979797;
3317
3405
  }
3318
3406
  .mds-border-sm-left {
3319
- border-left: 1px solid red;
3407
+ border-left: 1px solid #979797;
3320
3408
  }
3321
3409
  }
3322
3410
 
3323
3411
  @media (min-width: 37.5em) {
3324
3412
  .mds-border-md-top {
3325
- border-top: 1px solid red;
3413
+ border-top: 1px solid #979797;
3326
3414
  }
3327
3415
  .mds-border-md-right {
3328
- border-right: 1px solid red;
3416
+ border-right: 1px solid #979797;
3329
3417
  }
3330
3418
  .mds-border-md-bottom {
3331
- border-bottom: 1px solid red;
3419
+ border-bottom: 1px solid #979797;
3332
3420
  }
3333
3421
  .mds-border-md-left {
3334
- border-left: 1px solid red;
3422
+ border-left: 1px solid #979797;
3335
3423
  }
3336
3424
  }
3337
3425
 
3338
3426
  @media (min-width: 63em) {
3339
3427
  .mds-border-lg-top {
3340
- border-top: 1px solid red;
3428
+ border-top: 1px solid #979797;
3341
3429
  }
3342
3430
  .mds-border-lg-right {
3343
- border-right: 1px solid red;
3431
+ border-right: 1px solid #979797;
3344
3432
  }
3345
3433
  .mds-border-lg-bottom {
3346
- border-bottom: 1px solid red;
3434
+ border-bottom: 1px solid #979797;
3347
3435
  }
3348
3436
  .mds-border-lg-left {
3349
- border-left: 1px solid red;
3437
+ border-left: 1px solid #979797;
3350
3438
  }
3351
3439
  }
3352
3440
 
3353
3441
  @media (min-width: 80em) {
3354
3442
  .mds-border-xl-top {
3355
- border-top: 1px solid red;
3443
+ border-top: 1px solid #979797;
3356
3444
  }
3357
3445
  .mds-border-xl-right {
3358
- border-right: 1px solid red;
3446
+ border-right: 1px solid #979797;
3359
3447
  }
3360
3448
  .mds-border-xl-bottom {
3361
- border-bottom: 1px solid red;
3449
+ border-bottom: 1px solid #979797;
3362
3450
  }
3363
3451
  .mds-border-xl-left {
3364
- border-left: 1px solid red;
3452
+ border-left: 1px solid #979797;
3365
3453
  }
3366
3454
  }
3367
3455
 
@@ -3425,7 +3513,7 @@ template {
3425
3513
  }
3426
3514
  }
3427
3515
 
3428
- .mds-border-radius {
3516
+ .mds-border-radius, .mds-surface {
3429
3517
  border-radius: 4px;
3430
3518
  }
3431
3519
 
@@ -3446,23 +3534,34 @@ template {
3446
3534
  white-space: nowrap;
3447
3535
  }
3448
3536
 
3449
- ol,
3450
- ul {
3451
- list-style-type: none;
3452
- list-style-position: outside;
3453
- margin: 0;
3454
- padding: 0;
3537
+ h1, h2, h3, h4, h5, h6, p, ul, ol, dl, blockquote, pre {
3538
+ margin-bottom: 12px;
3539
+ }
3540
+
3541
+ a {
3542
+ color: #1b75bb;
3543
+ text-decoration: none;
3544
+ }
3545
+
3546
+ a:hover, a:focus {
3547
+ color: #15598e;
3548
+ text-decoration: underline;
3455
3549
  }
3456
3550
 
3457
3551
  body {
3458
3552
  font-family: "Helvetica", Arial, sans-serif;
3459
3553
  }
3460
3554
 
3555
+ body {
3556
+ background: #ffffff;
3557
+ }
3558
+
3461
3559
  .mds-site-container {
3462
3560
  width: 100%;
3463
3561
  max-width: 100%;
3464
3562
  min-width: 0;
3465
3563
  margin: 0 auto;
3564
+ background: #f0f0f0;
3466
3565
  }
3467
3566
 
3468
3567
  .mds-wrapper {
@@ -3478,6 +3577,14 @@ body {
3478
3577
  }
3479
3578
  }
3480
3579
 
3580
+ .mds-surface {
3581
+ background: #ffffff;
3582
+ }
3583
+
3584
+ .mds-surface__inner {
3585
+ padding: 20px;
3586
+ }
3587
+
3481
3588
  .mds-list {
3482
3589
  margin: 0 0 20px 0;
3483
3590
  padding: 0;
@@ -4368,13 +4475,13 @@ body {
4368
4475
  white-space: nowrap;
4369
4476
  -webkit-appearance: none;
4370
4477
  border: 1px solid transparent;
4371
- color: #ffffff;
4478
+ background-color: #f0af11;
4372
4479
  padding: 8px 12px;
4373
- background-color: #1b75bb;
4374
4480
  font-size: 100%;
4375
4481
  width: 100%;
4376
4482
  display: inline-block;
4377
4483
  text-align: center;
4484
+ color: #222222;
4378
4485
  }
4379
4486
 
4380
4487
  @media (min-width: 37.5em) {
@@ -4383,9 +4490,15 @@ body {
4383
4490
  }
4384
4491
  }
4385
4492
 
4386
- .mds-button:link, .mds-button:visited, .mds-button:active, .mds-button:hover {
4387
- color: #ffffff;
4493
+ .mds-button:link, .mds-button:visited, .mds-button:active {
4494
+ text-decoration: none;
4495
+ color: #222222;
4496
+ }
4497
+
4498
+ .mds-button:hover, .mds-button:focus {
4499
+ background-color: #f0af11;
4388
4500
  text-decoration: none;
4501
+ color: #222222;
4389
4502
  }
4390
4503
 
4391
4504
  .mds-card {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madgex/design-system",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "scripts": {
5
5
  "clean": "rimraf dist public tokens/build",
6
6
  "commit": "commit",
@@ -37,10 +37,10 @@
37
37
  "babel-loader": "^8.0.6",
38
38
  "commitizen": "^3.1.1",
39
39
  "concurrently": "^4.1.0",
40
- "css-loader": "^2.1.1",
40
+ "css-loader": "^3.0.0",
41
41
  "cssnano": "^4.1.10",
42
42
  "cz-conventional-changelog": "^2.1.0",
43
- "del": "^4.1.1",
43
+ "del": "^5.0.0",
44
44
  "file-loader": "^4.0.0",
45
45
  "flat": "^4.1.0",
46
46
  "glob": "^7.1.4",
@@ -50,8 +50,8 @@
50
50
  "gulp-svgmin": "^2.2.0",
51
51
  "gulp-svgstore": "^7.0.1",
52
52
  "gulp-tap": "^1.0.1",
53
- "husky": "^2.4.0",
54
- "lint-staged": "^8.2.0",
53
+ "husky": "^3.0.0",
54
+ "lint-staged": "^9.2.0",
55
55
  "mini-css-extract-plugin": "^0.7.0",
56
56
  "node-sass": "^4.12.0",
57
57
  "postcss": "^7.0.17",
@@ -1,3 +1,6 @@
1
+ $mds-color-button-bg: $mds-color-brand-2-base !default;
2
+ $mds-color-button-bg-hover: $mds-color-brand-2-light !default;
3
+
1
4
  .mds-button {
2
5
  cursor: pointer;
3
6
  user-select: none;
@@ -5,13 +8,13 @@
5
8
  white-space: nowrap;
6
9
  -webkit-appearance: none;
7
10
  border: 1px solid transparent;
8
- color: $mds-color-white;
11
+ background-color: $mds-color-button-bg;
9
12
  padding: ($mds-size-baseline * 2) ($mds-size-baseline * 3);
10
- background-color: $mds-color-brand-1-base;
11
13
  font-size: 100%;
12
14
  width: 100%;
13
15
  display: inline-block;
14
16
  text-align: center;
17
+ @include mds-text-contrast($mds-color-button-bg);
15
18
 
16
19
  @include mq($from: md) {
17
20
  width: auto;
@@ -20,14 +23,15 @@
20
23
  // Ensure that any global link styles are overridden
21
24
  &:link,
22
25
  &:visited,
23
- &:active,
24
- &:hover {
25
- color: $mds-color-white;
26
+ &:active {
26
27
  text-decoration: none;
28
+ @include mds-text-contrast($mds-color-button-bg);
27
29
  }
28
30
 
29
31
  &:hover,
30
32
  &:focus {
31
- // background-color: $mds-color-primary-hover-colour;
33
+ background-color: $mds-color-button-bg-hover;
34
+ text-decoration: none;
35
+ @include mds-text-contrast($mds-color-button-bg-hover);
32
36
  }
33
37
  }
@@ -2,20 +2,20 @@
2
2
  display: none;
3
3
  }
4
4
 
5
- .mds-tabs__list{
5
+ .mds-tabs__list {
6
6
  margin-bottom: $mds-size-baseline * 2;
7
-
7
+
8
8
  .js & {
9
9
  border-bottom: $mds-size-border-width solid $mds-color-border;
10
10
  margin-bottom: 0;
11
11
  }
12
12
  }
13
13
 
14
- .js .mds-tabs__list-item{
14
+ .js .mds-tabs__list-item {
15
15
  display: inline-block;
16
16
  }
17
17
 
18
- .mds-tabs__tab{
18
+ .mds-tabs__tab {
19
19
  display: inline-block;
20
20
  margin-bottom: $mds-size-baseline * 2;
21
21
 
@@ -32,12 +32,12 @@
32
32
  }
33
33
 
34
34
  .js .mds-tabs__tab.mds-tabs__tab--selected {
35
- background-color: $mds-color-white;
35
+ background-color: $mds-color-neutral-white;
36
36
  padding-bottom: ($mds-size-baseline * 2) + 1px;
37
37
  margin-bottom: -1px;
38
38
  }
39
39
 
40
- .js .mds-tabs__panel{
40
+ .js .mds-tabs__panel {
41
41
  padding: ($mds-size-baseline * 3) ($mds-size-baseline * 4);
42
42
  border: $mds-size-border-width solid $mds-color-border;
43
43
  border-top: 0;
@@ -2,3 +2,5 @@
2
2
 
3
3
  Class `mds-site-container` should be added right after the body, it contains all the visual elements of the site
4
4
  `mds-wrapper` inside `mds-site-container` will give a max-width to the content of the pages
5
+
6
+ `mds-surface` will add a block with a white background, border and and border-radius. Add `mds-surface__inner` inside it to get the padding.
@@ -1,9 +1,13 @@
1
1
  <div class="mds-site-container container-example">
2
- <div class="mds-wrapper">
3
- <div class="content-example">
4
- <h2>Content inside the site-container and wrapper</h2>
5
- <p>site-container is 100%</p>
6
- <p>wrapper is 100% and max-width 1280px (2.5% paddings)</p>
2
+ <div class="mds-wrapper">
3
+ <div class="content-example">
4
+ <div class="mds-surface">
5
+ <div class="mds-surface__inner">
6
+ <h2>Content inside the site-container and wrapper</h2>
7
+ <p>site-container is 100%</p>
8
+ <p>wrapper is 100% and max-width 1280px (2.5% left and right padding)</p>
7
9
  </div>
10
+ </div>
8
11
  </div>
12
+ </div>
9
13
  </div>
@@ -1,17 +1,31 @@
1
+ body {
2
+ background: $mds-color-background-body;
3
+ }
4
+
1
5
  .mds-site-container {
2
6
  width: $mds-size-container-width;
3
7
  max-width: $mds-size-container-max-width;
4
8
  min-width: $mds-size-container-min-width;
5
9
  margin: 0 auto;
6
- // background: $mds-color-container-background;
10
+ background: $mds-color-background-site-container;
7
11
  // box-shadow: $mds-color-container-box-shadow;
8
12
  }
9
13
  .mds-wrapper {
10
14
  width: $mds-size-wrapper-width;
11
15
  max-width: $mds-size-wrapper-max-width;
12
16
  margin: 0 auto;
13
- padding: 0 $mds-size-wrapper-paddings;
17
+ padding: 0 $mds-size-wrapper-padding;
14
18
  @include mq($from: xl) {
15
19
  padding: 0;
16
20
  }
17
21
  }
22
+
23
+ .mds-surface {
24
+ background: $mds-color-background-surface;
25
+ @extend .mds-border;
26
+ @extend .mds-border-radius;
27
+ }
28
+
29
+ .mds-surface__inner {
30
+ padding: $mds-size-surface-padding;
31
+ }
@@ -1,8 +1,18 @@
1
+ $mds-color-link: $mds-color-brand-1-base !default;
2
+ $mds-color-link-hover: $mds-color-brand-1-dark !default;
1
3
 
2
- ol,
3
- ul {
4
- list-style-type: none;
5
- list-style-position: outside;
6
- margin: 0;
7
- padding: 0;
4
+ h1, h2, h3, h4, h5, h6, p, ul, ol, dl, blockquote, pre {
5
+ margin-bottom: $mds-size-baseline * 3;
6
+ }
7
+
8
+
9
+ a {
10
+ color: $mds-color-link;
11
+ text-decoration: none;
12
+
13
+ &:hover,
14
+ &:focus {
15
+ color: $mds-color-link-hover;
16
+ text-decoration: underline;
17
+ }
8
18
  }
@@ -3,7 +3,7 @@ $positions: top, right, bottom, left;
3
3
  $corners: top-left, top-right, bottom-right, bottom-left;
4
4
 
5
5
  .mds-border {
6
- border: $mds-size-border-width solid red;
6
+ border: $mds-size-border-width solid $mds-color-border;
7
7
  }
8
8
 
9
9
  .mds-border-none {
@@ -13,7 +13,7 @@ $corners: top-left, top-right, bottom-right, bottom-left;
13
13
  @each $bpname, $value in $breakpoints {
14
14
  @include mq($from: $bpname) {
15
15
  .mds-border-#{$bpname} {
16
- border: $mds-size-border-width solid red;
16
+ border: $mds-size-border-width solid $mds-color-border;
17
17
  }
18
18
  }
19
19
  }
@@ -28,7 +28,7 @@ $corners: top-left, top-right, bottom-right, bottom-left;
28
28
 
29
29
  @each $position in $positions {
30
30
  .mds-border-#{$position} {
31
- border-#{$position}: $mds-size-border-width solid red;
31
+ border-#{$position}: $mds-size-border-width solid $mds-color-border;
32
32
  }
33
33
  }
34
34
 
@@ -42,7 +42,7 @@ $corners: top-left, top-right, bottom-right, bottom-left;
42
42
  @include mq($from: $bpname) {
43
43
  @each $position in $positions {
44
44
  .mds-border-#{$bpname}-#{$position} {
45
- border-#{$position}: $mds-size-border-width solid red;
45
+ border-#{$position}: $mds-size-border-width solid $mds-color-border;
46
46
  }
47
47
  }
48
48
  }
@@ -1,4 +1,5 @@
1
1
  @import '../../dist/_tokens/scss/tokens';
2
+ @import 'resets/_index';
2
3
  @import 'vendor/normalize';
3
4
  @import 'helpers/_index';
4
5
  @import 'functions/_index';
@@ -0,0 +1,96 @@
1
+ html,
2
+ body,
3
+ div,
4
+ span,
5
+ applet,
6
+ object,
7
+ iframe,
8
+ h1,
9
+ h2,
10
+ h3,
11
+ h4,
12
+ h5,
13
+ h6,
14
+ p,
15
+ blockquote,
16
+ pre,
17
+ a,
18
+ abbr,
19
+ acronym,
20
+ address,
21
+ big,
22
+ cite,
23
+ code,
24
+ del,
25
+ dfn,
26
+ em,
27
+ img,
28
+ ins,
29
+ kbd,
30
+ q,
31
+ s,
32
+ samp,
33
+ small,
34
+ strike,
35
+ strong,
36
+ sub,
37
+ sup,
38
+ tt,
39
+ var,
40
+ b,
41
+ u,
42
+ i,
43
+ center,
44
+ dl,
45
+ dt,
46
+ dd,
47
+ ol,
48
+ ul,
49
+ li,
50
+ fieldset,
51
+ form,
52
+ label,
53
+ legend,
54
+ table,
55
+ caption,
56
+ tbody,
57
+ tfoot,
58
+ thead,
59
+ tr,
60
+ th,
61
+ td,
62
+ article,
63
+ aside,
64
+ canvas,
65
+ details,
66
+ embed,
67
+ figure,
68
+ figcaption,
69
+ footer,
70
+ header,
71
+ hgroup,
72
+ menu,
73
+ nav,
74
+ output,
75
+ ruby,
76
+ section,
77
+ summary,
78
+ time,
79
+ mark,
80
+ audio,
81
+ video {
82
+ margin: 0;
83
+ padding: 0;
84
+ border: 0;
85
+ font: inherit;
86
+ }
87
+
88
+ * {
89
+ box-sizing: border-box;
90
+ }
91
+
92
+ ol,
93
+ ul {
94
+ list-style-type: none;
95
+ list-style-position: outside;
96
+ }
@@ -4,3 +4,27 @@
4
4
  -moz-user-select: none;
5
5
  user-select: none;
6
6
  }
7
+
8
+ // This mixin will check the brightness of the background colour and text
9
+ // and return either light or dark text depending on the contrast
10
+ @mixin mds-text-contrast($bg-color) {
11
+ $color-text-base-brightness: round(
12
+ (red($mds-color-text-base) * 299) + (green($mds-color-text-base) * 587) + (blue($mds-color-text-base) * 114) / 1000
13
+ );
14
+ $color-brightness: round((red($bg-color) * 299) + (green($bg-color) * 587) + (blue($bg-color) * 114) / 1000);
15
+ $light-color: round((red(#ffffff) * 299) + (green(#ffffff) * 587) + (blue(#ffffff) * 114) / 1000);
16
+
17
+ $text-color-dark: $mds-color-text-base !default;
18
+ $text-color-light: $mds-color-text-invert !default;
19
+
20
+ @if abs($color-text-base-brightness) >= ($light-color/2) {
21
+ $text-color-dark: $mds-color-text-invert;
22
+ $text-color-light: $mds-color-text-base;
23
+ }
24
+
25
+ @if abs($color-brightness) < ($light-color/2) {
26
+ color: $text-color-light;
27
+ } @else {
28
+ color: $text-color-dark;
29
+ }
30
+ }
@@ -32,16 +32,6 @@ main {
32
32
  display: block;
33
33
  }
34
34
 
35
- /**
36
- * Correct the font size and margin on `h1` elements within `section` and
37
- * `article` contexts in Chrome, Firefox, and Safari.
38
- */
39
-
40
- h1 {
41
- font-size: 2em;
42
- margin: 0.67em 0;
43
- }
44
-
45
35
  /* Grouping content
46
36
  ========================================================================== */
47
37
 
@@ -1,77 +1,86 @@
1
1
  {
2
2
  "color": {
3
3
  "brand": {
4
- "1" : {
5
- "base": { "value" : "#1B75BB" },
6
- "light": {
7
- "value" : "#2990e0",
8
- "scssColorFunction" : "lighten($mds-color-brand-1-base,10%)"
9
- },
10
- "lightest" : {
11
- "value" : "#e9f3fc",
12
- "scssColorFunction" : "lighten($mds-color-brand-1-base,(95% - lightness($mds-color-brand-1-base)))"
4
+ "1": {
5
+ "base": { "value": "#1B75BB" },
6
+ "light": {
7
+ "value": "#2990e0",
8
+ "scssColorFunction": "lighten($mds-color-brand-1-base,10%)"
13
9
  },
14
- "dark" : {
15
- "value" : "#15598e",
16
- "scssColorFunction" : "darken($mds-color-brand-1-base,10%)"
10
+ "lightest": {
11
+ "value": "#e9f3fc",
12
+ "scssColorFunction": "lighten($mds-color-brand-1-base,(95% - lightness($mds-color-brand-1-base)))"
17
13
  },
18
- "darkest" : {
19
- "value" : "#082135",
20
- "scssColorFunction" : "darken($mds-color-brand-1-base,(lightness($mds-color-brand-1-base) - 12%))"
14
+ "dark": {
15
+ "value": "#15598e",
16
+ "scssColorFunction": "darken($mds-color-brand-1-base,10%)"
17
+ },
18
+ "darkest": {
19
+ "value": "#082135",
20
+ "scssColorFunction": "darken($mds-color-brand-1-base,(lightness($mds-color-brand-1-base) - 12%))"
21
21
  }
22
22
  },
23
- "2" : {
24
- "base": { "value" : "#f0af11" },
25
- "light": {
26
- "value" : "#f3bf41",
27
- "scssColorFunction" : "lighten($mds-color-brand-2-base,10%)"
28
- },
29
- "lightest" : {
30
- "value" : "#fdf7e7",
31
- "scssColorFunction" : "lighten($mds-color-brand-2-base,(95% - lightness($mds-color-brand-2-base)))"
23
+ "2": {
24
+ "base": { "value": "#f0af11" },
25
+ "light": {
26
+ "scssColorFunction": "lighten($mds-color-brand-2-base,10%)",
27
+ "value": "{color.brand.2.base.value}"
28
+ },
29
+ "lightest": {
30
+ "value": "#fdf7e7",
31
+ "scssColorFunction": "lighten($mds-color-brand-2-base,(95% - lightness($mds-color-brand-2-base)))"
32
32
  },
33
- "dark" : {
34
- "value" : "#c28d0c",
35
- "scssColorFunction" : "darken($mds-color-brand-2-base,10%)"
33
+ "dark": {
34
+ "value": "#c28d0c",
35
+ "scssColorFunction": "darken($mds-color-brand-2-base,10%)"
36
36
  },
37
- "darkest" : {
38
- "value" : "#3a2a04",
39
- "scssColorFunction" : "darken($mds-color-brand-2-base,(lightness($mds-color-brand-2-base) - 12%))"
37
+ "darkest": {
38
+ "value": "#3a2a04",
39
+ "scssColorFunction": "darken($mds-color-brand-2-base,(lightness($mds-color-brand-2-base) - 12%))"
40
40
  }
41
41
  },
42
- "3" : {
43
- "base": { "value" : "#16C1B4" },
44
- "light": {
45
- "value" : "#24e6d7",
46
- "scssColorFunction" : "lighten($mds-color-brand-3-base,10%)"
47
- },
48
- "lightest" : {
49
- "value" : "#e8fcfb",
50
- "scssColorFunction" : "lighten($mds-color-brand-3-base,(95% - lightness($mds-color-brand-3-base)))"
42
+ "3": {
43
+ "base": { "value": "#16C1B4" },
44
+ "light": {
45
+ "value": "#24e6d7",
46
+ "scssColorFunction": "lighten($mds-color-brand-3-base,10%)"
51
47
  },
52
- "dark" : {
53
- "value" : "#119389",
54
- "scssColorFunction" : "darken($mds-color-brand-3-base,10%)"
48
+ "lightest": {
49
+ "value": "#e8fcfb",
50
+ "scssColorFunction": "lighten($mds-color-brand-3-base,(95% - lightness($mds-color-brand-3-base)))"
55
51
  },
56
- "darkest" : {
57
- "value" : "#063733",
58
- "scssColorFunction" : "darken($mds-color-brand-3-base,(lightness($mds-color-brand-3-base) - 12%))"
52
+ "dark": {
53
+ "value": "#119389",
54
+ "scssColorFunction": "darken($mds-color-brand-3-base,10%)"
55
+ },
56
+ "darkest": {
57
+ "value": "#063733",
58
+ "scssColorFunction": "darken($mds-color-brand-3-base,(lightness($mds-color-brand-3-base) - 12%))"
59
59
  }
60
60
  }
61
61
  },
62
- "background" : {
63
- "body" : { "value" : "{color.background.site-container.value}" },
64
- "site-container" : { "value" : "#f0f0f0" },
65
- "surface" : { "value" : "#ffffff" }
62
+ "background": {
63
+ "body": { "value": "{color.neutral.white.value}" },
64
+ "site-container": { "value": "{color.neutral.lightest.value}" },
65
+ "surface": { "value": "{color.neutral.white.value}" }
66
66
  },
67
- "text" : { "value" : "#222" },
68
- "border" : { "value" : "{color.neutral.base.value}" },
69
- "white": { "value": "#FFFFFF" },
70
- "black": { "value": "#000000" },
71
67
  "neutral": {
68
+ "white": { "value": "#FFFFFF" },
69
+ "black": { "value": "#000000" },
72
70
  "base": { "value": "#979797" },
73
71
  "lightest": { "value": "#F0F0F0" },
74
72
  "darker": { "value": "#333333" }
73
+ },
74
+ "text": {
75
+ "base": {
76
+ "value": "#222"
77
+ },
78
+ "invert": {
79
+ "value": "{color.neutral.white.value}"
80
+ }
81
+ },
82
+ "border": {
83
+ "value": "{color.neutral.base.value}"
75
84
  }
76
85
  }
77
86
  }
@@ -34,9 +34,14 @@
34
34
  "max-width": {
35
35
  "value": "1280px"
36
36
  },
37
- "paddings": {
37
+ "padding": {
38
38
  "value": "2.5%"
39
39
  }
40
+ },
41
+ "surface": {
42
+ "padding": {
43
+ "value": "20px"
44
+ }
40
45
  }
41
46
  }
42
47
  }
@@ -1,8 +1,14 @@
1
1
  <h2>Unordered list</h2>
2
2
  <ul class="mds-list mds-list--bullet">
3
- <li class="mds-list__item">one</li>
4
- <li class="mds-list__item">two</li>
5
- <li class="mds-list__item">three</li>
3
+ <li class="mds-list__item">
4
+ <a href="#one">one</a>
5
+ </li>
6
+ <li class="mds-list__item">
7
+ <a href="#two">two</a>
8
+ </li>
9
+ <li class="mds-list__item">
10
+ <a href="#three">three</a>
11
+ </li>
6
12
  </ul>
7
13
 
8
14
  <h2>Ordered list</h2>