@madgex/design-system 6.3.2 → 6.3.4
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 +2 -3
- package/dist/_tokens/js/_tokens-module.js +13 -72
- package/dist/assets/icons.json +1 -1
- package/dist/css/index.css +1 -1
- package/dist/js/index.js +1 -1
- package/package.json +2 -2
- package/src/components/button/button.scss +21 -20
- package/src/components/card/README.md +1 -1
- package/src/components/card/card.scss +12 -12
- package/src/components/icons/README.md +3 -3
- package/src/components/icons/icons.scss +7 -7
- package/src/components/inputs/_form-elements.scss +44 -44
- package/src/components/inputs/checkbox-pill/checkbox-pill.scss +14 -11
- package/src/components/inputs/combobox/combobox.scss +14 -14
- package/src/components/inputs/file-upload/file-upload.scss +14 -14
- package/src/components/inputs/input-number/input-number.scss +8 -8
- package/src/components/inputs/text-editor/text-editor.scss +19 -19
- package/src/components/modal/modal.scss +4 -4
- package/src/components/notification/notification.scss +1 -1
- package/src/components/pagination/pagination.scss +8 -8
- package/src/components/popover/popover.scss +14 -13
- package/src/components/section-title/section-title.scss +1 -1
- package/src/components/skip-link/skip-link.scss +4 -4
- package/src/components/tabs/tabs.scss +24 -18
- package/src/components/toggle-button-links/toggle-button-links.scss +16 -22
- package/src/helpers/spacing/README.md +2 -2
- package/src/layout/grid/README.md +4 -4
- package/src/scss/constants/_sd-tokens.scss +53 -57
- package/src/scss/constants/_vars.scss +12 -2
- package/src/scss/core/_containers.scss +25 -21
- package/src/scss/core/_defaults.scss +4 -4
- package/src/scss/core/_grid.scss +20 -20
- package/src/scss/core/_lists.scss +12 -12
- package/src/scss/core/_message.scss +13 -13
- package/src/scss/functions/_media-queries.scss +4 -4
- package/src/scss/helpers/_borders.scss +6 -5
- package/src/scss/helpers/_edited-text.scss +5 -5
- package/src/scss/helpers/_font-types.scss +3 -3
- package/src/scss/helpers/_spacing.scss +24 -24
- package/src/tokens/_config.js +1 -1
- package/src/tokens/_constants.json +0 -8
- package/src/tokens/color.json +4 -4
- package/src/tokens/custom.json +1 -1
- 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:
|
|
13
|
-
border:
|
|
14
|
-
border-radius:
|
|
15
|
-
padding: ($
|
|
16
|
-
box-shadow:
|
|
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:
|
|
52
|
+
border-top-color: $border-color;
|
|
52
53
|
border-bottom-width: 0;
|
|
53
54
|
|
|
54
55
|
&:after {
|
|
55
|
-
border-top-color:
|
|
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:
|
|
66
|
+
border-right-color: $border-color;
|
|
66
67
|
border-left-width: 0;
|
|
67
68
|
|
|
68
69
|
&:after {
|
|
69
|
-
border-right-color:
|
|
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:
|
|
80
|
+
border-bottom-color: $border-color;
|
|
80
81
|
border-top-width: 0;
|
|
81
82
|
|
|
82
83
|
&:after {
|
|
83
|
-
border-bottom-color:
|
|
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:
|
|
94
|
+
border-left-color: $border-color;
|
|
94
95
|
border-right-width: 0;
|
|
95
96
|
|
|
96
97
|
&:after {
|
|
97
|
-
border-left-color:
|
|
98
|
+
border-left-color: $surface-background;
|
|
98
99
|
border-right-width: 0;
|
|
99
100
|
top: $arrow-size * -1;
|
|
100
101
|
right: 1px;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
.mds-skip-to-content__link {
|
|
2
|
-
background-color: $
|
|
3
|
-
border: 5px solid
|
|
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: $
|
|
7
|
+
padding: $constant-size-baseline * 6;
|
|
8
8
|
position: absolute;
|
|
9
9
|
text-align: center;
|
|
10
|
-
border-radius:
|
|
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: $
|
|
4
|
-
padding-bottom: $
|
|
5
|
-
|
|
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
|
-
|
|
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
|
-
|
|
21
|
-
padding-top: $
|
|
22
|
-
padding-bottom: $
|
|
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: $
|
|
24
|
+
background: $constant-color-neutral-lightest;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.mds-tabs__list-item {
|
|
@@ -31,14 +31,16 @@
|
|
|
31
31
|
.mds-tabs__tab {
|
|
32
32
|
display: inline-block;
|
|
33
33
|
@extend .mds-surface__inner;
|
|
34
|
-
padding-top: $
|
|
35
|
-
padding-bottom: $
|
|
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
|
|
39
39
|
@mixin tabbed-items {
|
|
40
40
|
.mds-tabs__list {
|
|
41
41
|
padding: 0;
|
|
42
|
+
display: flex;
|
|
43
|
+
gap: $constant-size-baseline * 2;
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
.mds-tabs__list-item {
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
.mds-tabs__panel-header--visible {
|
|
54
56
|
background: transparent;
|
|
55
57
|
border-bottom: 0;
|
|
56
|
-
padding-top: $
|
|
58
|
+
padding-top: $constant-size-baseline * 8;
|
|
57
59
|
padding-bottom: 0;
|
|
58
60
|
}
|
|
59
61
|
|
|
@@ -65,20 +67,24 @@
|
|
|
65
67
|
width: 100%;
|
|
66
68
|
text-decoration: none;
|
|
67
69
|
text-align: left;
|
|
68
|
-
margin-right: $
|
|
69
|
-
padding-top: $
|
|
70
|
-
padding-bottom: $
|
|
70
|
+
margin-right: $constant-size-baseline;
|
|
71
|
+
padding-top: $constant-size-baseline * 6;
|
|
72
|
+
padding-bottom: $constant-size-baseline * 5;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.mds-tabs__tab:hover {
|
|
76
|
+
border-bottom: 6px solid $constant-color-neutral-light;
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
.mds-tabs__tab.mds-tabs__tab--selected {
|
|
74
|
-
border-bottom: 6px solid
|
|
80
|
+
border-bottom: 6px solid $link-color;
|
|
75
81
|
color: var(--mds-color-text-headers-base);
|
|
76
82
|
}
|
|
77
83
|
}
|
|
78
84
|
|
|
79
85
|
.js {
|
|
80
86
|
// DEFAULT (desktop-tabbed)
|
|
81
|
-
@include mq($from: $
|
|
87
|
+
@include mq($from: $constant-size-breakpoint-lg) {
|
|
82
88
|
@include tabbed-items;
|
|
83
89
|
}
|
|
84
90
|
// FULL-TABBED
|
|
@@ -86,13 +92,13 @@
|
|
|
86
92
|
@include tabbed-items;
|
|
87
93
|
.mds-tabs__list-item {
|
|
88
94
|
width: 50%;
|
|
89
|
-
@include mq($from: $
|
|
95
|
+
@include mq($from: $constant-size-breakpoint-md) {
|
|
90
96
|
width: auto;
|
|
91
97
|
}
|
|
92
98
|
}
|
|
93
99
|
.mds-tabs__tab {
|
|
94
100
|
text-align: center;
|
|
95
|
-
@include mq($from: $
|
|
101
|
+
@include mq($from: $constant-size-breakpoint-md) {
|
|
96
102
|
text-align: left;
|
|
97
103
|
}
|
|
98
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: $
|
|
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: $
|
|
12
|
+
margin-right: $constant-size-baseline * 4;
|
|
16
13
|
} */
|
|
17
14
|
|
|
18
|
-
margin-right: $
|
|
19
|
-
@include mq($until: $
|
|
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: $
|
|
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: $
|
|
31
|
+
@include mq($from: $constant-size-breakpoint-md) {
|
|
35
32
|
display: inline;
|
|
36
|
-
margin-right: $
|
|
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:
|
|
45
|
+
border: $regular-border;
|
|
49
46
|
border-right-width: 0;
|
|
50
|
-
padding: ($
|
|
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:
|
|
59
|
-
border-bottom-left-radius:
|
|
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:
|
|
63
|
-
border-bottom-right-radius:
|
|
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: $
|
|
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: $
|
|
71
|
+
background: $constant-color-neutral-lightest;
|
|
78
72
|
|
|
79
|
-
@include mq($from: $
|
|
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: `$
|
|
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: $
|
|
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
|
-
- `$
|
|
15
|
-
- `$
|
|
16
|
-
- `$
|
|
17
|
-
- `$
|
|
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
|
|
4
|
+
* Generated on Tue, 07 May 2024 10:12:59 GMT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
$
|
|
8
|
-
$
|
|
9
|
-
$
|
|
10
|
-
$
|
|
11
|
-
$
|
|
12
|
-
$
|
|
13
|
-
$
|
|
14
|
-
$
|
|
15
|
-
$
|
|
16
|
-
$
|
|
17
|
-
$
|
|
18
|
-
$
|
|
19
|
-
$
|
|
20
|
-
$
|
|
21
|
-
$
|
|
22
|
-
$
|
|
23
|
-
$
|
|
24
|
-
$
|
|
25
|
-
$
|
|
26
|
-
$
|
|
27
|
-
$
|
|
28
|
-
$
|
|
29
|
-
$
|
|
30
|
-
$
|
|
31
|
-
$
|
|
32
|
-
$
|
|
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
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
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': $
|
|
50
|
-
'lightest': $
|
|
51
|
-
'dark': $
|
|
52
|
-
'darkest': $
|
|
53
|
-
'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': $
|
|
57
|
-
'lightest': $
|
|
58
|
-
'dark': $
|
|
59
|
-
'darkest': $
|
|
60
|
-
'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': $
|
|
64
|
-
'lightest': $
|
|
65
|
-
'dark': $
|
|
66
|
-
'darkest': $
|
|
67
|
-
'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': $
|
|
68
|
+
'baseline': $constant-size-baseline,
|
|
73
69
|
'breakpoint': (
|
|
74
|
-
'sm': $
|
|
75
|
-
'md': $
|
|
76
|
-
'lg': $
|
|
77
|
-
'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': $
|
|
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
|
-
$
|
|
4
|
-
$
|
|
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(
|
|
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:
|
|
32
|
-
|
|
33
|
-
|
|
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:
|
|
54
|
+
padding: $surface-padding;
|
|
51
55
|
} @else {
|
|
52
|
-
padding: calc(
|
|
56
|
+
padding: calc($surface-padding * 2);
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
}
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
.mds-surface__inner {
|
|
59
|
-
padding:
|
|
63
|
+
padding: $surface-padding;
|
|
60
64
|
|
|
61
|
-
@include mq($from: $
|
|
62
|
-
padding: calc(
|
|
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: $
|
|
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% -
|
|
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) + #{$
|
|
99
|
-
margin-left: calc((var(--space-between-wrapper-and-edge) + #{$
|
|
100
|
-
margin-right: calc((var(--space-between-wrapper-and-edge) + #{$
|
|
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: $
|
|
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
|
-
|
|
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
|
-
|
|
158
|
-
background: $
|
|
161
|
+
border-radius: $border-radius;
|
|
162
|
+
background: $constant-color-neutral-lightest;
|
|
159
163
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
h1 {
|
|
2
|
-
margin-bottom: $
|
|
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: $
|
|
16
|
+
margin-bottom: $constant-size-baseline * 3;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
a {
|
|
20
|
-
--link-color:
|
|
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:
|
|
30
|
+
--link-color: #{$link-hover-color};
|
|
31
31
|
--link-text-decoration: underline;
|
|
32
32
|
}
|
|
33
33
|
}
|