@madgex/design-system 6.3.3 → 6.3.5

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.
Files changed (44) hide show
  1. package/dist/_tokens/css/_tokens.css +2 -3
  2. package/dist/_tokens/js/_tokens-module.js +13 -72
  3. package/dist/assets/icons.json +1 -1
  4. package/dist/css/index.css +1 -1
  5. package/dist/js/index.js +1 -1
  6. package/package.json +2 -2
  7. package/src/components/button/button.scss +21 -20
  8. package/src/components/card/README.md +1 -1
  9. package/src/components/card/card.scss +12 -12
  10. package/src/components/icons/README.md +3 -3
  11. package/src/components/icons/icons.scss +7 -7
  12. package/src/components/inputs/_form-elements.scss +44 -44
  13. package/src/components/inputs/checkbox-pill/checkbox-pill.scss +14 -11
  14. package/src/components/inputs/combobox/combobox.scss +14 -14
  15. package/src/components/inputs/file-upload/file-upload.scss +14 -14
  16. package/src/components/inputs/input-number/input-number.scss +8 -8
  17. package/src/components/inputs/text-editor/text-editor.scss +19 -19
  18. package/src/components/modal/modal.scss +4 -4
  19. package/src/components/notification/notification.scss +1 -1
  20. package/src/components/pagination/pagination.scss +8 -8
  21. package/src/components/popover/popover.scss +14 -13
  22. package/src/components/section-title/section-title.scss +1 -1
  23. package/src/components/skip-link/skip-link.scss +4 -4
  24. package/src/components/tabs/tabs.scss +20 -20
  25. package/src/components/toggle-button-links/toggle-button-links.scss +16 -22
  26. package/src/helpers/spacing/README.md +2 -2
  27. package/src/layout/grid/README.md +4 -4
  28. package/src/scss/constants/_sd-tokens.scss +53 -57
  29. package/src/scss/constants/_vars.scss +12 -2
  30. package/src/scss/core/_containers.scss +25 -21
  31. package/src/scss/core/_defaults.scss +4 -4
  32. package/src/scss/core/_grid.scss +20 -20
  33. package/src/scss/core/_lists.scss +12 -12
  34. package/src/scss/core/_message.scss +13 -13
  35. package/src/scss/functions/_media-queries.scss +4 -4
  36. package/src/scss/helpers/_borders.scss +6 -5
  37. package/src/scss/helpers/_edited-text.scss +5 -5
  38. package/src/scss/helpers/_font-types.scss +3 -3
  39. package/src/scss/helpers/_spacing.scss +24 -24
  40. package/src/tokens/_config.js +1 -1
  41. package/src/tokens/_constants.json +0 -8
  42. package/src/tokens/color.json +4 -4
  43. package/src/tokens/custom.json +1 -1
  44. package/src/tokens/effects.json +0 -3
@@ -1,4 +1,5 @@
1
1
  $arrow-size: 10px;
2
+ $border-color: var(--mds-color-border, #{$constant-color-neutral-lighter});
2
3
 
3
4
  .js .mds-popover {
4
5
  display: none;
@@ -9,11 +10,11 @@ $arrow-size: 10px;
9
10
  }
10
11
 
11
12
  .js .mds-popover {
12
- background: var(--mds-color-background-surface);
13
- border: var(--mds-size-border-width-base) solid var(--mds-color-border);
14
- border-radius: var(--mds-size-border-radius-base);
15
- padding: ($scss-var-size-baseline * 2);
16
- box-shadow: var(--mds-shadow-base);
13
+ background: $surface-background;
14
+ border: $regular-border;
15
+ border-radius: $border-radius;
16
+ padding: ($constant-size-baseline * 2);
17
+ box-shadow: 0 2px 5px 0 $constant-color-neutral-lighter;
17
18
  text-align: left;
18
19
  max-width: 250px;
19
20
  @include z-index(popup);
@@ -48,11 +49,11 @@ $arrow-size: 10px;
48
49
  .mds-popover[data-popper-placement='top-start'] &,
49
50
  .mds-popover[data-popper-placement='top-end'] & {
50
51
  bottom: $arrow-size * -1;
51
- border-top-color: var(--mds-color-border);
52
+ border-top-color: $border-color;
52
53
  border-bottom-width: 0;
53
54
 
54
55
  &:after {
55
- border-top-color: var(--mds-color-background-surface);
56
+ border-top-color: $surface-background;
56
57
  border-bottom-width: 0;
57
58
  left: $arrow-size * -1;
58
59
  bottom: 1px;
@@ -62,11 +63,11 @@ $arrow-size: 10px;
62
63
  .mds-popover[data-popper-placement='right-start'] &,
63
64
  .mds-popover[data-popper-placement='right-end'] & {
64
65
  left: $arrow-size * -1;
65
- border-right-color: var(--mds-color-border);
66
+ border-right-color: $border-color;
66
67
  border-left-width: 0;
67
68
 
68
69
  &:after {
69
- border-right-color: var(--mds-color-background-surface);
70
+ border-right-color: $surface-background;
70
71
  border-left-width: 0;
71
72
  top: $arrow-size * -1;
72
73
  left: 1px;
@@ -76,11 +77,11 @@ $arrow-size: 10px;
76
77
  .mds-popover[data-popper-placement='bottom-start'] &,
77
78
  .mds-popover[data-popper-placement='bottom-end'] & {
78
79
  top: $arrow-size * -1;
79
- border-bottom-color: var(--mds-color-border);
80
+ border-bottom-color: $border-color;
80
81
  border-top-width: 0;
81
82
 
82
83
  &:after {
83
- border-bottom-color: var(--mds-color-background-surface);
84
+ border-bottom-color: $surface-background;
84
85
  border-top-width: 0;
85
86
  left: $arrow-size * -1;
86
87
  top: 1px;
@@ -90,11 +91,11 @@ $arrow-size: 10px;
90
91
  .mds-popover[data-popper-placement='left-start'] &,
91
92
  .mds-popover[data-popper-placement='left-end'] & {
92
93
  right: $arrow-size * -1;
93
- border-left-color: var(--mds-color-border);
94
+ border-left-color: $border-color;
94
95
  border-right-width: 0;
95
96
 
96
97
  &:after {
97
- border-left-color: var(--mds-color-background-surface);
98
+ border-left-color: $surface-background;
98
99
  border-right-width: 0;
99
100
  top: $arrow-size * -1;
100
101
  right: 1px;
@@ -1,3 +1,3 @@
1
1
  .mds-section-title {
2
- border-bottom: var(--mds-size-border-width-base) solid var(--mds-color-border);
2
+ border-bottom: $regular-border;
3
3
  }
@@ -1,13 +1,13 @@
1
1
  .mds-skip-to-content__link {
2
- background-color: $scss-var-color-neutral-lightest;
3
- border: 5px solid var(--mds-color-border);
2
+ background-color: $constant-color-neutral-lightest;
3
+ border: 5px solid $constant-color-neutral-lighter;
4
4
  @extend .mds-font-double-pica;
5
5
  font-weight: bold;
6
6
  left: -10000px;
7
- padding: $scss-var-size-baseline * 6;
7
+ padding: $constant-size-baseline * 6;
8
8
  position: absolute;
9
9
  text-align: center;
10
- border-radius: var(--mds-size-border-radius-base);
10
+ border-radius: 4px;
11
11
 
12
12
  &:focus {
13
13
  left: 0;
@@ -1,13 +1,13 @@
1
1
  .mds-tabs__list {
2
2
  margin-bottom: 0;
3
- padding-top: $scss-var-size-baseline * 3;
4
- padding-bottom: $scss-var-size-baseline * 3;
5
- @extend .mds-border-bottom;
3
+ padding-top: $constant-size-baseline * 3;
4
+ padding-bottom: $constant-size-baseline * 3;
5
+ border-bottom: $regular-border;
6
6
  }
7
7
 
8
8
  .mds-tabs__panel {
9
9
  &:not(:last-child) {
10
- @extend .mds-border-bottom;
10
+ border-bottom: $regular-border;
11
11
  }
12
12
  &__content {
13
13
  @extend .mds-surface__inner;
@@ -17,11 +17,11 @@
17
17
  .mds-tabs__panel-header {
18
18
  @extend .mds-font-great-primer;
19
19
  @extend .mds-surface__inner;
20
- @extend .mds-border-bottom;
21
- padding-top: $scss-var-size-baseline * 3;
22
- padding-bottom: $scss-var-size-baseline * 3;
20
+ border-bottom: $regular-border;
21
+ padding-top: $constant-size-baseline * 3;
22
+ padding-bottom: $constant-size-baseline * 3;
23
23
  margin-bottom: 0;
24
- background: $scss-var-color-neutral-lightest;
24
+ background: $constant-color-neutral-lightest;
25
25
  }
26
26
 
27
27
  .mds-tabs__list-item {
@@ -31,8 +31,8 @@
31
31
  .mds-tabs__tab {
32
32
  display: inline-block;
33
33
  @extend .mds-surface__inner;
34
- padding-top: $scss-var-size-baseline * 2;
35
- padding-bottom: $scss-var-size-baseline * 2;
34
+ padding-top: $constant-size-baseline * 2;
35
+ padding-bottom: $constant-size-baseline * 2;
36
36
  }
37
37
 
38
38
  // MIXIN to share between the 2 variations
@@ -40,7 +40,7 @@
40
40
  .mds-tabs__list {
41
41
  padding: 0;
42
42
  display: flex;
43
- gap: $scss-var-size-baseline * 2;
43
+ gap: $constant-size-baseline * 2;
44
44
  }
45
45
 
46
46
  .mds-tabs__list-item {
@@ -55,7 +55,7 @@
55
55
  .mds-tabs__panel-header--visible {
56
56
  background: transparent;
57
57
  border-bottom: 0;
58
- padding-top: $scss-var-size-baseline * 8;
58
+ padding-top: $constant-size-baseline * 8;
59
59
  padding-bottom: 0;
60
60
  }
61
61
 
@@ -67,24 +67,24 @@
67
67
  width: 100%;
68
68
  text-decoration: none;
69
69
  text-align: left;
70
- margin-right: $scss-var-size-baseline;
71
- padding-top: $scss-var-size-baseline * 6;
72
- padding-bottom: $scss-var-size-baseline * 5;
70
+ margin-right: $constant-size-baseline;
71
+ padding-top: $constant-size-baseline * 6;
72
+ padding-bottom: $constant-size-baseline * 5;
73
73
  }
74
74
 
75
75
  .mds-tabs__tab:hover {
76
- border-bottom: 6px solid $scss-var-color-neutral-light;
76
+ border-bottom: 6px solid $constant-color-neutral-light;
77
77
  }
78
78
 
79
79
  .mds-tabs__tab.mds-tabs__tab--selected {
80
- border-bottom: 6px solid var(--mds-color-link-base);
80
+ border-bottom: 6px solid $link-color;
81
81
  color: var(--mds-color-text-headers-base);
82
82
  }
83
83
  }
84
84
 
85
85
  .js {
86
86
  // DEFAULT (desktop-tabbed)
87
- @include mq($from: $scss-var-size-breakpoint-lg) {
87
+ @include mq($from: $constant-size-breakpoint-lg) {
88
88
  @include tabbed-items;
89
89
  }
90
90
  // FULL-TABBED
@@ -92,13 +92,13 @@
92
92
  @include tabbed-items;
93
93
  .mds-tabs__list-item {
94
94
  width: 50%;
95
- @include mq($from: $scss-var-size-breakpoint-md) {
95
+ @include mq($from: $constant-size-breakpoint-md) {
96
96
  width: auto;
97
97
  }
98
98
  }
99
99
  .mds-tabs__tab {
100
100
  text-align: center;
101
- @include mq($from: $scss-var-size-breakpoint-md) {
101
+ @include mq($from: $constant-size-breakpoint-md) {
102
102
  text-align: left;
103
103
  }
104
104
  }
@@ -1,22 +1,19 @@
1
- .mds-toggle-button-links {
2
- }
3
-
4
1
  .mds-toggle-button-links__label {
5
2
  display: inline;
6
3
  margin-bottom: 0;
7
4
  /* @include mds-visually-hidden;
8
- @include mq($from: $scss-var-size-breakpoint-md) {
5
+ @include mq($from: $constant-size-breakpoint-md) {
9
6
  position: relative;
10
7
  clip: inherit;
11
8
  clip-path: none;
12
9
  width: auto;
13
10
  height: auto;
14
11
  white-space: inherit;
15
- margin-right: $scss-var-size-baseline * 4;
12
+ margin-right: $constant-size-baseline * 4;
16
13
  } */
17
14
 
18
- margin-right: $scss-var-size-baseline * 4;
19
- @include mq($until: $scss-var-size-breakpoint-md - 1px) {
15
+ margin-right: $constant-size-baseline * 4;
16
+ @include mq($until: $constant-size-breakpoint-md - 1px) {
20
17
  @include mds-visually-hidden;
21
18
  }
22
19
  }
@@ -24,16 +21,16 @@
24
21
  .mds-toggle-button-links__list {
25
22
  display: flex;
26
23
  margin-bottom: 0;
27
- @include mq($from: $scss-var-size-breakpoint-md) {
24
+ @include mq($from: $constant-size-breakpoint-md) {
28
25
  display: inline;
29
26
  }
30
27
  }
31
28
  .mds-toggle-button-links__list-item {
32
29
  display: flex;
33
30
  flex: 1;
34
- @include mq($from: $scss-var-size-breakpoint-md) {
31
+ @include mq($from: $constant-size-breakpoint-md) {
35
32
  display: inline;
36
- margin-right: $scss-var-size-baseline * 4;
33
+ margin-right: $constant-size-baseline * 4;
37
34
  }
38
35
  }
39
36
 
@@ -45,26 +42,23 @@
45
42
  text-align: center;
46
43
  justify-content: center;
47
44
 
48
- border: 1px solid $scss-var-color-neutral-lighter;
45
+ border: $regular-border;
49
46
  border-right-width: 0;
50
- padding: ($scss-var-size-baseline * 3) ($scss-var-size-baseline * 5);
47
+ padding: ($constant-size-baseline * 3) ($constant-size-baseline * 5);
51
48
  @extend .mds-font-body-copy;
52
49
  text-decoration: underline;
53
50
 
54
- font-weight: var(--mds-font-weight-link-base);
55
- color: var(--mds-color-link-base);
56
-
57
51
  .mds-toggle-button-links__list-item:first-child & {
58
- border-top-left-radius: var(--mds-size-border-radius-button);
59
- border-bottom-left-radius: var(--mds-size-border-radius-button);
52
+ border-top-left-radius: $border-radius;
53
+ border-bottom-left-radius: $border-radius;
60
54
  }
61
55
  .mds-toggle-button-links__list-item:last-child & {
62
- border-top-right-radius: var(--mds-size-border-radius-button);
63
- border-bottom-right-radius: var(--mds-size-border-radius-button);
56
+ border-top-right-radius: $border-radius;
57
+ border-bottom-right-radius: $border-radius;
64
58
  border-right-width: 1px;
65
59
  }
66
60
 
67
- @include mq($from: $scss-var-size-breakpoint-md) {
61
+ @include mq($from: $constant-size-breakpoint-md) {
68
62
  display: inline;
69
63
  padding: 0;
70
64
  border: 0;
@@ -74,9 +68,9 @@
74
68
  color: var(--mds-color-text-base);
75
69
  text-decoration: none;
76
70
  font-weight: bolder;
77
- background: $scss-var-color-neutral-lightest;
71
+ background: $constant-color-neutral-lightest;
78
72
 
79
- @include mq($from: $scss-var-size-breakpoint-md) {
73
+ @include mq($from: $constant-size-breakpoint-md) {
80
74
  background: none;
81
75
  }
82
76
  }
@@ -1,10 +1,10 @@
1
1
  ## Space scale
2
2
 
3
- We are using a spacing scale based on a single tolen: `$scss-var-size-baseline = 0.25 rem | 4px`.
3
+ We are using a spacing scale based on a single tolen: `$constant-size-baseline = 0.25 rem | 4px`.
4
4
 
5
5
  We multiply this token to create any spacing on the design system.
6
6
 
7
- Ex: `margin-bottom: $scss-var-size-baseline * 5`
7
+ Ex: `margin-bottom: $constant-size-baseline * 5`
8
8
 
9
9
  ## Helpers
10
10
 
@@ -11,10 +11,10 @@ The default will start at 0 and then we add breakpoints to target the wider view
11
11
 
12
12
  We are using the following breakpoints:
13
13
 
14
- - `$scss-var-size-breakpoint-sm` : `400px`
15
- - `$scss-var-size-breakpoint-md` : `600px`
16
- - `$scss-var-size-breakpoint-lg` : `1008px`
17
- - `$scss-var-size-breakpoint-xl` : `1280px`
14
+ - `$constant-size-breakpoint-sm` : `400px`
15
+ - `$constant-size-breakpoint-md` : `600px`
16
+ - `$constant-size-breakpoint-lg` : `1008px`
17
+ - `$constant-size-breakpoint-xl` : `1280px`
18
18
 
19
19
  They can be overridden as necessary.
20
20
 
@@ -1,81 +1,77 @@
1
1
 
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Mon, 15 Apr 2024 11:20:57 GMT
4
+ * Generated on Mon, 13 May 2024 09:52:30 GMT
5
5
  */
6
6
 
7
- $scss-var-color-neutral-white: #FFFFFF;
8
- $scss-var-color-neutral-black: #000000;
9
- $scss-var-color-neutral-base: #707070;
10
- $scss-var-color-neutral-light: #949494;
11
- $scss-var-color-neutral-lighter: #DDDDDD;
12
- $scss-var-color-neutral-lightest: #F8F8F8;
13
- $scss-var-color-neutral-darker: #333333;
14
- $scss-var-color-status-error-light: #fd0826;
15
- $scss-var-color-status-error-lightest: #ffe3e6;
16
- $scss-var-color-status-error-dark: #d0021b;
17
- $scss-var-color-status-error-darkest: #ae0216;
18
- $scss-var-color-status-error-base: #e1021d;
19
- $scss-var-color-status-success-light: #6ac52d;
20
- $scss-var-color-status-success-lightest: #f0faea;
21
- $scss-var-color-status-success-dark: #549b24;
22
- $scss-var-color-status-success-darkest: #40791B;
23
- $scss-var-color-status-success-base: #5ba927;
24
- $scss-var-color-status-info-light: #ffc442;
25
- $scss-var-color-status-info-lightest: #fff7e5;
26
- $scss-var-color-status-info-dark: #f4aa08;
27
- $scss-var-color-status-info-darkest: #946500;
28
- $scss-var-color-status-info-base: #ffb411;
29
- $scss-var-size-baseline: 4px;
30
- $scss-var-size-breakpoint-sm: 400px;
31
- $scss-var-size-breakpoint-md: 600px;
32
- $scss-var-size-breakpoint-lg: 1008px;
33
- $scss-var-size-breakpoint-xl: 1280px;
34
- $scss-var-size-gutter-width: 20px;
7
+ $constant-color-neutral-base: #707070;
8
+ $constant-color-neutral-light: #949494;
9
+ $constant-color-neutral-lighter: #DDDDDD;
10
+ $constant-color-neutral-lightest: #F8F8F8;
11
+ $constant-color-neutral-darker: #333333;
12
+ $constant-color-status-error-light: #fd0826;
13
+ $constant-color-status-error-lightest: #ffe3e6;
14
+ $constant-color-status-error-dark: #d0021b;
15
+ $constant-color-status-error-darkest: #ae0216;
16
+ $constant-color-status-error-base: #e1021d;
17
+ $constant-color-status-success-light: #6ac52d;
18
+ $constant-color-status-success-lightest: #f0faea;
19
+ $constant-color-status-success-dark: #549b24;
20
+ $constant-color-status-success-darkest: #40791B;
21
+ $constant-color-status-success-base: #5ba927;
22
+ $constant-color-status-info-light: #ffc442;
23
+ $constant-color-status-info-lightest: #fff7e5;
24
+ $constant-color-status-info-dark: #f4aa08;
25
+ $constant-color-status-info-darkest: #946500;
26
+ $constant-color-status-info-base: #ffb411;
27
+ $constant-size-baseline: 4px;
28
+ $constant-size-breakpoint-sm: 400px;
29
+ $constant-size-breakpoint-md: 600px;
30
+ $constant-size-breakpoint-lg: 1008px;
31
+ $constant-size-breakpoint-xl: 1280px;
32
+ $constant-size-gutter-width: 20px;
35
33
 
36
34
  $tokens: (
37
35
  'color': (
38
36
  'neutral': (
39
- 'white': $scss-var-color-neutral-white,
40
- 'black': $scss-var-color-neutral-black,
41
- 'base': $scss-var-color-neutral-base,
42
- 'light': $scss-var-color-neutral-light,
43
- 'lighter': $scss-var-color-neutral-lighter,
44
- 'lightest': $scss-var-color-neutral-lightest,
45
- 'darker': $scss-var-color-neutral-darker
37
+ 'base': $constant-color-neutral-base,
38
+ 'light': $constant-color-neutral-light,
39
+ 'lighter': $constant-color-neutral-lighter,
40
+ 'lightest': $constant-color-neutral-lightest,
41
+ 'darker': $constant-color-neutral-darker
46
42
  ),
47
43
  'status': (
48
44
  'error': (
49
- 'light': $scss-var-color-status-error-light,
50
- 'lightest': $scss-var-color-status-error-lightest,
51
- 'dark': $scss-var-color-status-error-dark,
52
- 'darkest': $scss-var-color-status-error-darkest,
53
- 'base': $scss-var-color-status-error-base
45
+ 'light': $constant-color-status-error-light,
46
+ 'lightest': $constant-color-status-error-lightest,
47
+ 'dark': $constant-color-status-error-dark,
48
+ 'darkest': $constant-color-status-error-darkest,
49
+ 'base': $constant-color-status-error-base
54
50
  ),
55
51
  'success': (
56
- 'light': $scss-var-color-status-success-light,
57
- 'lightest': $scss-var-color-status-success-lightest,
58
- 'dark': $scss-var-color-status-success-dark,
59
- 'darkest': $scss-var-color-status-success-darkest,
60
- 'base': $scss-var-color-status-success-base
52
+ 'light': $constant-color-status-success-light,
53
+ 'lightest': $constant-color-status-success-lightest,
54
+ 'dark': $constant-color-status-success-dark,
55
+ 'darkest': $constant-color-status-success-darkest,
56
+ 'base': $constant-color-status-success-base
61
57
  ),
62
58
  'info': (
63
- 'light': $scss-var-color-status-info-light,
64
- 'lightest': $scss-var-color-status-info-lightest,
65
- 'dark': $scss-var-color-status-info-dark,
66
- 'darkest': $scss-var-color-status-info-darkest,
67
- 'base': $scss-var-color-status-info-base
59
+ 'light': $constant-color-status-info-light,
60
+ 'lightest': $constant-color-status-info-lightest,
61
+ 'dark': $constant-color-status-info-dark,
62
+ 'darkest': $constant-color-status-info-darkest,
63
+ 'base': $constant-color-status-info-base
68
64
  )
69
65
  )
70
66
  ),
71
67
  'size': (
72
- 'baseline': $scss-var-size-baseline,
68
+ 'baseline': $constant-size-baseline,
73
69
  'breakpoint': (
74
- 'sm': $scss-var-size-breakpoint-sm,
75
- 'md': $scss-var-size-breakpoint-md,
76
- 'lg': $scss-var-size-breakpoint-lg,
77
- 'xl': $scss-var-size-breakpoint-xl
70
+ 'sm': $constant-size-breakpoint-sm,
71
+ 'md': $constant-size-breakpoint-md,
72
+ 'lg': $constant-size-breakpoint-lg,
73
+ 'xl': $constant-size-breakpoint-xl
78
74
  ),
79
- 'gutter-width': $scss-var-size-gutter-width
75
+ 'gutter-width': $constant-size-gutter-width
80
76
  )
81
77
  );
@@ -1,4 +1,14 @@
1
1
  $breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
2
2
 
3
- $scss-var-size-half-gutter-width: $scss-var-size-gutter-width * 0.5;
4
- $scss-var-size-quarter-gutter-width: $scss-var-size-gutter-width * 0.25;
3
+ $constant-size-half-gutter-width: $constant-size-gutter-width * 0.5;
4
+ $constant-size-quarter-gutter-width: $constant-size-gutter-width * 0.25;
5
+
6
+
7
+ $regular-border: var(--mds-size-border-width-base, 1px) solid var(--mds-color-border, #{$constant-color-neutral-lighter});
8
+ $input-border: var(--mds-size-border-width-base, 1px) solid var(--mds-color-input-border, #{$constant-color-neutral-base});
9
+ $border-radius: var(--mds-size-border-radius-base, 4px);
10
+ $surface-background: var(--mds-color-background-surface, #fff);
11
+ $link-color: var(--mds-color-link-base, #1B75BB);
12
+ $link-hover-color: var(--mds-color-link-hover, #15598e);
13
+ $focus-color: var(--mds-color-input-focus, #5092fd);
14
+ $disabled-input-color: var(--mds-color-input-disabled-field, rgba(176, 176, 176, 0.5));
@@ -1,3 +1,5 @@
1
+ $wrapper-width: var(--mds-size-wrapper-width, 97%);
2
+
1
3
  html,
2
4
  body {
3
5
  background: var(--mds-color-background-body);
@@ -22,15 +24,15 @@ body {
22
24
  z-index: 1;
23
25
  }
24
26
  .mds-wrapper {
25
- width: calc(var(--mds-size-wrapper-width) - #{$scss-var-size-gutter-width});
26
- max-width: var(--mds-size-wrapper-max-width);
27
+ width: calc(#{$wrapper-width} - #{$constant-size-gutter-width});
28
+ max-width: var(--mds-size-wrapper-max-width, 1240px);
27
29
  margin: 0 auto;
28
30
  }
29
31
 
30
32
  .mds-surface {
31
- background: var(--mds-color-background-surface);
32
- @extend .mds-border;
33
- @extend .mds-border-radius;
33
+ background: $surface-background;
34
+ border: $regular-border;
35
+ border-radius: $border-radius;
34
36
  }
35
37
 
36
38
  /*
@@ -38,6 +40,8 @@ body {
38
40
  * unless it is contained within a grid column less than half the width of its container
39
41
  */
40
42
 
43
+ $surface-padding: var(--mds-size-surface-padding, 16px);
44
+
41
45
  @mixin calcSurfacePadding($bpname: null) {
42
46
  $classWithBp: null;
43
47
  @if ($bpname) {
@@ -47,19 +51,19 @@ body {
47
51
  @for $i from 1 through 12 {
48
52
  .mds-grid-col-#{$classWithBp}#{$i} & {
49
53
  @if ($i < 6) {
50
- padding: var(--mds-size-surface-padding);
54
+ padding: $surface-padding;
51
55
  } @else {
52
- padding: calc(var(--mds-size-surface-padding) * 2);
56
+ padding: calc($surface-padding * 2);
53
57
  }
54
58
  }
55
59
  }
56
60
  }
57
61
 
58
62
  .mds-surface__inner {
59
- padding: var(--mds-size-surface-padding);
63
+ padding: $surface-padding;
60
64
 
61
- @include mq($from: $scss-var-size-breakpoint-md) {
62
- padding: calc(var(--mds-size-surface-padding) * 2);
65
+ @include mq($from: $constant-size-breakpoint-md) {
66
+ padding: calc($surface-padding * 2);
63
67
  @include calcSurfacePadding();
64
68
  }
65
69
 
@@ -74,7 +78,7 @@ body {
74
78
 
75
79
  .mds-fixed-container {
76
80
  width: 100%;
77
- background: $scss-var-color-neutral-lightest;
81
+ background: $constant-color-neutral-lightest;
78
82
  position: fixed;
79
83
  left: 0;
80
84
  bottom: 0;
@@ -90,16 +94,16 @@ body {
90
94
  // Calculate space left between the wrapper and the edge of the screen on each side
91
95
  // so we can stretch the sticky container to make it appear full screen
92
96
  // I added 0.01% to stretch the container slightly more to avoid a tiny gap between the edge of the screen and the container
93
- --space-between-wrapper-and-edge: (((100% - var(--mds-size-wrapper-width)) / 2) + 0.01%);
97
+ --space-between-wrapper-and-edge: (((100% - #{$wrapper-width}) / 2) + 0.01%);
94
98
 
95
99
  position: sticky;
96
100
 
97
101
  .mds-wrapper & {
98
- width: calc(100% + (var(--space-between-wrapper-and-edge) * 2) + #{$scss-var-size-gutter-width});
99
- margin-left: calc((var(--space-between-wrapper-and-edge) + #{$scss-var-size-half-gutter-width}) * -1);
100
- margin-right: calc((var(--space-between-wrapper-and-edge) + #{$scss-var-size-half-gutter-width}) * -1);
102
+ width: calc(100% + (var(--space-between-wrapper-and-edge) * 2) + #{$constant-size-gutter-width});
103
+ margin-left: calc((var(--space-between-wrapper-and-edge) + #{$constant-size-half-gutter-width}) * -1);
104
+ margin-right: calc((var(--space-between-wrapper-and-edge) + #{$constant-size-half-gutter-width}) * -1);
101
105
 
102
- @include mq($from: $scss-var-size-breakpoint-md) {
106
+ @include mq($from: $constant-size-breakpoint-md) {
103
107
  width: 100%;
104
108
  margin-left: auto;
105
109
  margin-right: auto;
@@ -108,7 +112,7 @@ body {
108
112
  }
109
113
 
110
114
  .mds-branded-container {
111
- @extend .mds-border-radius;
115
+ border-radius: $border-radius;
112
116
 
113
117
  & h1,
114
118
  & h2,
@@ -124,8 +128,8 @@ body {
124
128
  }
125
129
 
126
130
  &--1 {
127
- background: var(--mds-color-branded-container-1-background);
128
- color: var(--mds-color-branded-container-1-text);
131
+ background: var(--mds-color-branded-container-1-background, #000);
132
+ color: var(--mds-color-branded-container-1-text, #fff);
129
133
 
130
134
  & button {
131
135
  background: var(--mds-color-branded-container-1-button-bg-base);
@@ -154,6 +158,6 @@ body {
154
158
  }
155
159
 
156
160
  .mds-highlighted-container {
157
- @extend .mds-border-radius;
158
- background: $scss-var-color-neutral-lightest;
161
+ border-radius: $border-radius;
162
+ background: $constant-color-neutral-lightest;
159
163
  }
@@ -1,5 +1,5 @@
1
1
  h1 {
2
- margin-bottom: $scss-var-size-baseline * 6;
2
+ margin-bottom: $constant-size-baseline * 6;
3
3
  }
4
4
 
5
5
  h2,
@@ -13,11 +13,11 @@ ol,
13
13
  dl,
14
14
  blockquote,
15
15
  pre {
16
- margin-bottom: $scss-var-size-baseline * 3;
16
+ margin-bottom: $constant-size-baseline * 3;
17
17
  }
18
18
 
19
19
  a {
20
- --link-color: var(--mds-color-link-base);
20
+ --link-color: #{$link-color};
21
21
  --link-font-weight: var(--mds-font-weight-link-base);
22
22
  --link-text-decoration: none;
23
23
 
@@ -27,7 +27,7 @@ a {
27
27
 
28
28
  &:hover,
29
29
  &:focus {
30
- --link-color: var(--mds-color-link-hover);
30
+ --link-color: #{$link-hover-color};
31
31
  --link-text-decoration: underline;
32
32
  }
33
33
  }