@madgex/design-system 5.11.3 → 6.0.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/README.md +4 -10
- package/dist/_tokens/css/_tokens.css +62 -96
- package/dist/_tokens/js/_tokens-module.js +1342 -1406
- package/dist/_tokens/sketch/_tokens.sketchpalette +1 -1
- package/dist/assets/icons.json +1 -1
- package/dist/css/index.css +1 -1
- package/dist/js/index-fractal.js +1 -1
- package/dist/js/index.js +1 -1
- package/package.json +4 -4
- package/src/components/_preview.njk +1 -0
- package/src/components/button/button.scss +50 -37
- package/src/components/card/README.md +1 -1
- package/src/components/card/_template.njk +1 -1
- package/src/components/card/card.config.js +1 -2
- package/src/components/card/card.scss +29 -39
- package/src/components/icons/README.md +3 -3
- package/src/components/icons/icons.scss +26 -19
- package/src/components/inputs/_form-elements.scss +44 -44
- package/src/components/inputs/checkbox-pill/checkbox-pill.scss +14 -14
- package/src/components/inputs/combobox/combobox.scss +13 -13
- package/src/components/inputs/file-upload/file-upload.scss +14 -14
- package/src/components/inputs/input-number/input-number.scss +10 -10
- package/src/components/inputs/text-editor/text-editor.scss +16 -16
- package/src/components/modal/modal.js +1 -1
- 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.js +1 -1
- package/src/components/popover/popover.scss +13 -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.js +1 -1
- package/src/components/tabs/tabs.scss +16 -16
- package/src/components/toggle-button-links/toggle-button-links.scss +20 -20
- package/src/helpers/spacing/README.md +2 -2
- package/src/layout/grid/README.md +4 -4
- package/src/scss/constants/__index.scss +2 -0
- package/src/scss/constants/_sd-tokens.scss +81 -0
- package/src/scss/constants/_vars.scss +4 -0
- package/src/scss/core/_containers.scss +35 -38
- package/src/scss/core/_defaults.scss +14 -8
- package/src/scss/core/_grid.scss +20 -23
- package/src/scss/core/_lists.scss +13 -13
- package/src/scss/core/_message.scss +32 -32
- package/src/scss/core/_typography.scss +13 -13
- package/src/scss/functions/__index.scss +0 -2
- package/src/scss/functions/_media-queries.scss +4 -4
- package/src/scss/functions/_text-contrast.scss +6 -7
- package/src/scss/helpers/_borders.scss +5 -38
- package/src/scss/helpers/_display.scss +0 -1
- package/src/scss/helpers/_edited-text.scss +5 -5
- package/src/scss/helpers/_floats.scss +0 -1
- package/src/scss/helpers/_font-types.scss +15 -15
- package/src/scss/helpers/_spacing.scss +33 -36
- package/src/scss/helpers/_text-align.scss +0 -1
- package/src/scss/helpers/_vertical-align.scss +0 -2
- package/src/scss/helpers/_width-height.scss +4 -6
- package/src/scss/import.scss +1 -0
- package/src/scss/index.scss +0 -2
- package/src/tokens/_config.js +22 -9
- package/src/tokens/_constants.json +130 -0
- package/src/tokens/color.json +8 -76
- package/src/tokens/custom.json +0 -8
- package/src/tokens/size.json +0 -16
- package/src/tokens/typography.json +3 -1
- package/tasks/registerTransforms.js +28 -1
- package/dist/_tokens/scss/_tokens.scss +0 -741
- package/src/scss/functions/_color.scss +0 -0
- package/src/scss/functions/_px2rem.scss +0 -20
|
@@ -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: `$scss-var-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: $scss-var-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
|
+
- `$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`
|
|
18
18
|
|
|
19
19
|
They can be overridden as necessary.
|
|
20
20
|
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly
|
|
4
|
+
* Generated on Thu, 04 Jan 2024 14:57:02 GMT
|
|
5
|
+
*/
|
|
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;
|
|
35
|
+
|
|
36
|
+
$tokens: (
|
|
37
|
+
'color': (
|
|
38
|
+
'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
|
|
46
|
+
),
|
|
47
|
+
'status': (
|
|
48
|
+
'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
|
|
54
|
+
),
|
|
55
|
+
'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
|
|
61
|
+
),
|
|
62
|
+
'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
|
|
68
|
+
)
|
|
69
|
+
)
|
|
70
|
+
),
|
|
71
|
+
'size': (
|
|
72
|
+
'baseline': $scss-var-size-baseline,
|
|
73
|
+
'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
|
|
78
|
+
),
|
|
79
|
+
'gutter-width': $scss-var-size-gutter-width
|
|
80
|
+
)
|
|
81
|
+
);
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
html,
|
|
2
2
|
body {
|
|
3
|
-
background:
|
|
3
|
+
background: var(--mds-color-background-body);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.mds-site-container {
|
|
7
|
-
width:
|
|
8
|
-
max-width:
|
|
9
|
-
min-width:
|
|
7
|
+
width: var(--mds-size-container-width);
|
|
8
|
+
max-width: var(--mds-size-container-max-width);
|
|
9
|
+
min-width: var(--mds-size-container-min-width);
|
|
10
10
|
margin: 0 auto;
|
|
11
|
-
background:
|
|
12
|
-
box-shadow:
|
|
11
|
+
background: var(--mds-color-background-site-container);
|
|
12
|
+
box-shadow: var(--mds-shadow-site-container);
|
|
13
13
|
}
|
|
14
14
|
.mds-main {
|
|
15
|
-
background:
|
|
16
|
-
padding:
|
|
17
|
-
margin:
|
|
18
|
-
max-width:
|
|
19
|
-
border-radius:
|
|
20
|
-
box-shadow:
|
|
15
|
+
background: var(--mds-color-background-main);
|
|
16
|
+
padding: var(--mds-size-main-padding);
|
|
17
|
+
margin: var(--mds-size-main-margin);
|
|
18
|
+
max-width: var(--mds-size-main-max-width);
|
|
19
|
+
border-radius: var(--mds-size-border-radius-main);
|
|
20
|
+
box-shadow: var(--mds-shadow-main);
|
|
21
21
|
position: relative;
|
|
22
22
|
z-index: 1;
|
|
23
23
|
}
|
|
24
24
|
.mds-wrapper {
|
|
25
|
-
width: calc(
|
|
26
|
-
max-width:
|
|
25
|
+
width: calc(var(--mds-size-wrapper-width) - #{$scss-var-size-gutter-width});
|
|
26
|
+
max-width: var(--mds-size-wrapper-max-width);
|
|
27
27
|
margin: 0 auto;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.mds-surface {
|
|
31
|
-
background:
|
|
31
|
+
background: var(--mds-color-background-surface);
|
|
32
32
|
@extend .mds-border;
|
|
33
33
|
@extend .mds-border-radius;
|
|
34
34
|
}
|
|
@@ -38,8 +38,6 @@ body {
|
|
|
38
38
|
* unless it is contained within a grid column less than half the width of its container
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
|
-
$breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
|
|
42
|
-
|
|
43
41
|
@mixin calcSurfacePadding($bpname: null) {
|
|
44
42
|
$classWithBp: null;
|
|
45
43
|
@if ($bpname) {
|
|
@@ -49,19 +47,19 @@ $breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
|
|
|
49
47
|
@for $i from 1 through 12 {
|
|
50
48
|
.mds-grid-col-#{$classWithBp}#{$i} & {
|
|
51
49
|
@if ($i < 6) {
|
|
52
|
-
padding:
|
|
50
|
+
padding: var(--mds-size-surface-padding);
|
|
53
51
|
} @else {
|
|
54
|
-
padding: calc(
|
|
52
|
+
padding: calc(var(--mds-size-surface-padding) * 2);
|
|
55
53
|
}
|
|
56
54
|
}
|
|
57
55
|
}
|
|
58
56
|
}
|
|
59
57
|
|
|
60
58
|
.mds-surface__inner {
|
|
61
|
-
padding:
|
|
59
|
+
padding: var(--mds-size-surface-padding);
|
|
62
60
|
|
|
63
|
-
@include mq($from: $
|
|
64
|
-
padding: calc(
|
|
61
|
+
@include mq($from: $scss-var-size-breakpoint-md) {
|
|
62
|
+
padding: calc(var(--mds-size-surface-padding) * 2);
|
|
65
63
|
@include calcSurfacePadding();
|
|
66
64
|
}
|
|
67
65
|
|
|
@@ -76,7 +74,7 @@ $breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
|
|
|
76
74
|
|
|
77
75
|
.mds-fixed-container {
|
|
78
76
|
width: 100%;
|
|
79
|
-
background: $
|
|
77
|
+
background: $scss-var-color-neutral-lightest;
|
|
80
78
|
position: fixed;
|
|
81
79
|
left: 0;
|
|
82
80
|
bottom: 0;
|
|
@@ -88,21 +86,20 @@ $breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
|
|
|
88
86
|
}
|
|
89
87
|
}
|
|
90
88
|
|
|
91
|
-
$mds-half-gutter-width: $mds-size-gutter-width * 0.5;
|
|
92
|
-
// Calculate space left between the wrapper and the edge of the screen on each side
|
|
93
|
-
// so we can stretch the sticky container to make it appear full screen
|
|
94
|
-
// I added 0.01 to stretch the container slightly more to avoid a tiny gap between the edge of the screen and the container
|
|
95
|
-
$space-between-wrapper-and-edge: math.div(100% - $mds-size-wrapper-width, 2) + 0.01;
|
|
96
|
-
|
|
97
89
|
.mds-fixed-container--sticky {
|
|
90
|
+
// Calculate space left between the wrapper and the edge of the screen on each side
|
|
91
|
+
// so we can stretch the sticky container to make it appear full screen
|
|
92
|
+
// 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%);
|
|
94
|
+
|
|
98
95
|
position: sticky;
|
|
99
96
|
|
|
100
97
|
.mds-wrapper & {
|
|
101
|
-
width: calc(100% +
|
|
102
|
-
margin-left: calc((
|
|
103
|
-
margin-right: calc((
|
|
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);
|
|
104
101
|
|
|
105
|
-
@include mq($from: $
|
|
102
|
+
@include mq($from: $scss-var-size-breakpoint-md) {
|
|
106
103
|
width: 100%;
|
|
107
104
|
margin-left: auto;
|
|
108
105
|
margin-right: auto;
|
|
@@ -127,15 +124,15 @@ $space-between-wrapper-and-edge: math.div(100% - $mds-size-wrapper-width, 2) + 0
|
|
|
127
124
|
}
|
|
128
125
|
|
|
129
126
|
&--1 {
|
|
130
|
-
background:
|
|
131
|
-
color:
|
|
127
|
+
background: var(--mds-color-branded-container-1-background);
|
|
128
|
+
color: var(--mds-color-branded-container-1-text);
|
|
132
129
|
}
|
|
133
130
|
}
|
|
134
131
|
|
|
135
132
|
.mds-ad-container {
|
|
136
133
|
&.mds-ad-container--leaderboard {
|
|
137
|
-
background:
|
|
138
|
-
min-height:
|
|
134
|
+
background: var(--mds-color-ad-container-leaderboard-background);
|
|
135
|
+
min-height: var(--mds-size-height-ad-container-leaderboard-min);
|
|
139
136
|
}
|
|
140
137
|
& > * {
|
|
141
138
|
margin: 0 auto;
|
|
@@ -147,5 +144,5 @@ $space-between-wrapper-and-edge: math.div(100% - $mds-size-wrapper-width, 2) + 0
|
|
|
147
144
|
|
|
148
145
|
.mds-highlighted-container {
|
|
149
146
|
@extend .mds-border-radius;
|
|
150
|
-
background: $
|
|
147
|
+
background: $scss-var-color-neutral-lightest;
|
|
151
148
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
h1 {
|
|
2
|
-
margin-bottom: $
|
|
2
|
+
margin-bottom: $scss-var-size-baseline * 6;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
h2,
|
|
@@ -13,22 +13,28 @@ ol,
|
|
|
13
13
|
dl,
|
|
14
14
|
blockquote,
|
|
15
15
|
pre {
|
|
16
|
-
margin-bottom: $
|
|
16
|
+
margin-bottom: $scss-var-size-baseline * 3;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
a {
|
|
20
|
-
color:
|
|
21
|
-
font-weight:
|
|
22
|
-
text-decoration: none;
|
|
20
|
+
--link-color: var(--mds-color-link-base);
|
|
21
|
+
--link-font-weight: var(--mds-font-weight-link-base);
|
|
22
|
+
--link-text-decoration: none;
|
|
23
|
+
|
|
24
|
+
color: var(--link-color);
|
|
25
|
+
font-weight: var(--link-font-weight);
|
|
26
|
+
text-decoration: var(--link-text-decoration);
|
|
23
27
|
|
|
24
28
|
&:hover,
|
|
25
29
|
&:focus {
|
|
26
|
-
color:
|
|
27
|
-
text-decoration: underline;
|
|
30
|
+
--link-color: var(--mds-color-link-hover);
|
|
31
|
+
--link-text-decoration: underline;
|
|
28
32
|
}
|
|
29
33
|
}
|
|
30
34
|
|
|
31
|
-
h1,
|
|
35
|
+
h1,
|
|
36
|
+
h2,
|
|
37
|
+
h3 {
|
|
32
38
|
a {
|
|
33
39
|
font-weight: inherit;
|
|
34
40
|
}
|
package/src/scss/core/_grid.scss
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
/* Source: https://github.com/kristoferjoseph/flexboxgrid */
|
|
2
2
|
|
|
3
|
-
$mds-half-gutter-width: $mds-size-gutter-width * 0.5;
|
|
4
|
-
$mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
|
|
5
|
-
|
|
6
3
|
.mds-grid-row {
|
|
7
4
|
box-sizing: border-box;
|
|
8
5
|
display: flex;
|
|
9
6
|
flex: 0 1 auto;
|
|
10
7
|
flex-direction: row;
|
|
11
8
|
flex-wrap: wrap;
|
|
12
|
-
margin-right: $
|
|
13
|
-
margin-left: $
|
|
9
|
+
margin-right: $scss-var-size-half-gutter-width * -1;
|
|
10
|
+
margin-left: $scss-var-size-half-gutter-width * -1;
|
|
14
11
|
}
|
|
15
12
|
|
|
16
13
|
.mds-grid-row.mds-grid-small {
|
|
17
|
-
margin-right: $
|
|
18
|
-
margin-left: $
|
|
14
|
+
margin-right: $scss-var-size-quarter-gutter-width * -1;
|
|
15
|
+
margin-left: $scss-var-size-quarter-gutter-width * -1;
|
|
19
16
|
}
|
|
20
17
|
|
|
21
18
|
.mds-grid-row.mds-grid-reverse {
|
|
@@ -54,12 +51,12 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
|
|
|
54
51
|
.mds-grid-col-offset-12 {
|
|
55
52
|
box-sizing: border-box;
|
|
56
53
|
flex: 0 0 auto;
|
|
57
|
-
padding-right: $
|
|
58
|
-
padding-left: $
|
|
54
|
+
padding-right: $scss-var-size-half-gutter-width;
|
|
55
|
+
padding-left: $scss-var-size-half-gutter-width;
|
|
59
56
|
|
|
60
57
|
.mds-grid-small & {
|
|
61
|
-
padding-right: $
|
|
62
|
-
padding-left: $
|
|
58
|
+
padding-right: $scss-var-size-quarter-gutter-width;
|
|
59
|
+
padding-left: $scss-var-size-quarter-gutter-width;
|
|
63
60
|
}
|
|
64
61
|
}
|
|
65
62
|
|
|
@@ -225,7 +222,7 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
|
|
|
225
222
|
flex-basis: auto;
|
|
226
223
|
}
|
|
227
224
|
|
|
228
|
-
@media only screen and (min-width: $
|
|
225
|
+
@media only screen and (min-width: $scss-var-size-breakpoint-sm) {
|
|
229
226
|
.mds-grid-col-sm,
|
|
230
227
|
.mds-grid-col-sm-1,
|
|
231
228
|
.mds-grid-col-sm-2,
|
|
@@ -254,8 +251,8 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
|
|
|
254
251
|
.mds-grid-col-sm-offset-12 {
|
|
255
252
|
box-sizing: border-box;
|
|
256
253
|
flex: 0 0 auto;
|
|
257
|
-
padding-right: $
|
|
258
|
-
padding-left: $
|
|
254
|
+
padding-right: $scss-var-size-half-gutter-width;
|
|
255
|
+
padding-left: $scss-var-size-half-gutter-width;
|
|
259
256
|
}
|
|
260
257
|
|
|
261
258
|
.mds-grid-col-sm {
|
|
@@ -420,7 +417,7 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
|
|
|
420
417
|
}
|
|
421
418
|
}
|
|
422
419
|
|
|
423
|
-
@media only screen and (min-width: $
|
|
420
|
+
@media only screen and (min-width: $scss-var-size-breakpoint-md) {
|
|
424
421
|
.mds-grid-col-md,
|
|
425
422
|
.mds-grid-col-md-1,
|
|
426
423
|
.mds-grid-col-md-2,
|
|
@@ -449,8 +446,8 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
|
|
|
449
446
|
.mds-grid-col-md-offset-12 {
|
|
450
447
|
box-sizing: border-box;
|
|
451
448
|
flex: 0 0 auto;
|
|
452
|
-
padding-right: $
|
|
453
|
-
padding-left: $
|
|
449
|
+
padding-right: $scss-var-size-half-gutter-width;
|
|
450
|
+
padding-left: $scss-var-size-half-gutter-width;
|
|
454
451
|
}
|
|
455
452
|
|
|
456
453
|
.mds-grid-col-md {
|
|
@@ -616,7 +613,7 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
|
|
|
616
613
|
}
|
|
617
614
|
}
|
|
618
615
|
|
|
619
|
-
@media only screen and (min-width: $
|
|
616
|
+
@media only screen and (min-width: $scss-var-size-breakpoint-lg) {
|
|
620
617
|
.mds-grid-col-lg,
|
|
621
618
|
.mds-grid-col-lg-1,
|
|
622
619
|
.mds-grid-col-lg-2,
|
|
@@ -645,8 +642,8 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
|
|
|
645
642
|
.mds-grid-col-lg-offset-12 {
|
|
646
643
|
box-sizing: border-box;
|
|
647
644
|
flex: 0 0 auto;
|
|
648
|
-
padding-right: $
|
|
649
|
-
padding-left: $
|
|
645
|
+
padding-right: $scss-var-size-half-gutter-width;
|
|
646
|
+
padding-left: $scss-var-size-half-gutter-width;
|
|
650
647
|
}
|
|
651
648
|
|
|
652
649
|
.mds-grid-col-lg {
|
|
@@ -812,7 +809,7 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
|
|
|
812
809
|
}
|
|
813
810
|
}
|
|
814
811
|
|
|
815
|
-
@media only screen and (min-width: $
|
|
812
|
+
@media only screen and (min-width: $scss-var-size-breakpoint-xl) {
|
|
816
813
|
.mds-grid-col-xl,
|
|
817
814
|
.mds-grid-col-xl-1,
|
|
818
815
|
.mds-grid-col-xl-2,
|
|
@@ -841,8 +838,8 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
|
|
|
841
838
|
.mds-grid-col-xl-offset-12 {
|
|
842
839
|
box-sizing: border-box;
|
|
843
840
|
flex: 0 0 auto;
|
|
844
|
-
padding-right: $
|
|
845
|
-
padding-left: $
|
|
841
|
+
padding-right: $scss-var-size-half-gutter-width;
|
|
842
|
+
padding-left: $scss-var-size-half-gutter-width;
|
|
846
843
|
}
|
|
847
844
|
|
|
848
845
|
.mds-grid-col-xl {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.mds-list {
|
|
2
|
-
margin: 0 0 ($
|
|
2
|
+
margin: 0 0 ($scss-var-size-baseline * 5) 0;
|
|
3
3
|
padding: 0;
|
|
4
4
|
list-style-type: none;
|
|
5
5
|
list-style-position: inside;
|
|
6
6
|
}
|
|
7
7
|
.mds-list__item {
|
|
8
|
-
margin-bottom: $
|
|
9
|
-
margin-left: $
|
|
8
|
+
margin-bottom: $scss-var-size-baseline;
|
|
9
|
+
margin-left: $scss-var-size-baseline * 4;
|
|
10
10
|
|
|
11
11
|
&:last-child {
|
|
12
12
|
margin-bottom: 0;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
.mds-list--bullet,
|
|
16
16
|
.mds-list--number {
|
|
17
|
-
margin-left: ($
|
|
17
|
+
margin-left: ($scss-var-size-baseline * 3);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.mds-list--bullet {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.mds-list--border {
|
|
29
|
-
border-left: 5px solid $
|
|
30
|
-
padding-left: $
|
|
29
|
+
border-left: 5px solid $scss-var-color-neutral-lightest;
|
|
30
|
+
padding-left: $scss-var-size-baseline * 5;
|
|
31
31
|
margin-left: 0;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
.mds-list__key {
|
|
39
39
|
@extend .mds-font-brevier;
|
|
40
40
|
font-weight: bold;
|
|
41
|
-
margin-bottom: $
|
|
41
|
+
margin-bottom: $scss-var-size-baseline;
|
|
42
42
|
}
|
|
43
43
|
.mds-list__value {
|
|
44
|
-
margin-bottom: $
|
|
44
|
+
margin-bottom: $scss-var-size-baseline * 3;
|
|
45
45
|
|
|
46
46
|
&:last-child {
|
|
47
47
|
margin-bottom: 0;
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
display: inline-block;
|
|
55
55
|
margin-bottom: 0;
|
|
56
56
|
margin-left: 0;
|
|
57
|
-
margin-right: $
|
|
57
|
+
margin-right: $scss-var-size-baseline * 2;
|
|
58
58
|
}
|
|
59
|
-
.mds-list--pipe .mds-list__item:not(:last-child){
|
|
60
|
-
border-right: 1px solid $
|
|
61
|
-
padding-right: $
|
|
59
|
+
.mds-list--pipe .mds-list__item:not(:last-child) {
|
|
60
|
+
border-right: 1px solid $scss-var-color-neutral-light;
|
|
61
|
+
padding-right: $scss-var-size-baseline * 3;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.mds-list--multilevel .mds-list {
|
|
65
|
-
margin: ($
|
|
65
|
+
margin: ($scss-var-size-baseline * 2) 0 0 0;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.mds-list--noindent {
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
.mds-message{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
.mds-message {
|
|
2
|
+
@extend .mds-padding-b3;
|
|
3
|
+
@extend .mds-border-radius;
|
|
4
|
+
@extend .mds-border;
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
&.mds-message--error {
|
|
7
|
+
color: $scss-var-color-status-error-darkest;
|
|
8
|
+
background-color: $scss-var-color-status-error-lightest;
|
|
9
|
+
border-color: $scss-var-color-status-error-base;
|
|
10
|
+
}
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
&.mds-message--success {
|
|
13
|
+
color: $scss-var-color-status-success-darkest;
|
|
14
|
+
background-color: $scss-var-color-status-success-lightest;
|
|
15
|
+
border-color: $scss-var-color-status-success-base;
|
|
16
|
+
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
&.mds-message--info {
|
|
19
|
+
color: $scss-var-color-status-info-darkest;
|
|
20
|
+
background-color: $scss-var-color-status-info-lightest;
|
|
21
|
+
border-color: $scss-var-color-status-info-base;
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
& * {
|
|
25
|
+
color: inherit;
|
|
26
|
+
}
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
28
|
+
& .mds-message__summary {
|
|
29
|
+
margin-bottom: 0;
|
|
30
|
+
& li:not(:last-child) {
|
|
31
|
+
@extend .mds-margin-bottom-b3;
|
|
32
|
+
}
|
|
33
|
+
& a {
|
|
34
|
+
color: inherit;
|
|
35
|
+
text-decoration: underline;
|
|
37
36
|
}
|
|
38
|
-
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
body {
|
|
2
2
|
@extend .mds-font-body-copy;
|
|
3
|
-
font-family:
|
|
4
|
-
font-weight:
|
|
5
|
-
color:
|
|
3
|
+
font-family: var(--mds-font-family-base);
|
|
4
|
+
font-weight: var(--mds-font-weight-base);
|
|
5
|
+
color: var(--mds-color-text-base);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
h1,
|
|
@@ -12,28 +12,28 @@ h4,
|
|
|
12
12
|
h5,
|
|
13
13
|
h6,
|
|
14
14
|
dl dt {
|
|
15
|
-
color:
|
|
15
|
+
color: var(--mds-color-text-headers-base);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
h1 {
|
|
19
19
|
@extend .mds-font-trafalgar;
|
|
20
|
-
font-family:
|
|
21
|
-
font-weight:
|
|
22
|
-
color:
|
|
20
|
+
font-family: var(--mds-font-family-heading-1);
|
|
21
|
+
font-weight: var(--mds-font-weight-heading-1);
|
|
22
|
+
color: var(--mds-color-text-headers-1);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
h2 {
|
|
26
26
|
@extend .mds-font-double-pica;
|
|
27
|
-
font-family:
|
|
28
|
-
font-weight:
|
|
29
|
-
color:
|
|
27
|
+
font-family: var(--mds-font-family-heading-2);
|
|
28
|
+
font-weight: var(--mds-font-weight-heading-2);
|
|
29
|
+
color: var(--mds-color-text-headers-2);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
h3 {
|
|
33
33
|
@extend .mds-font-great-primer;
|
|
34
|
-
font-family:
|
|
35
|
-
font-weight:
|
|
36
|
-
color:
|
|
34
|
+
font-family: var(--mds-font-family-heading-3);
|
|
35
|
+
font-weight: var(--mds-font-weight-heading-3);
|
|
36
|
+
color: var(--mds-color-text-headers-3);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
h4 {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Pass our breakpoints and static breakpoint definitions through to sass-mq.
|
|
2
2
|
$mq-breakpoints: (
|
|
3
|
-
sm: $
|
|
4
|
-
md: $
|
|
5
|
-
lg: $
|
|
6
|
-
xl: $
|
|
3
|
+
sm: $scss-var-size-breakpoint-sm,
|
|
4
|
+
md: $scss-var-size-breakpoint-md,
|
|
5
|
+
lg: $scss-var-size-breakpoint-lg,
|
|
6
|
+
xl: $scss-var-size-breakpoint-xl,
|
|
7
7
|
) !default;
|
|
8
8
|
|
|
9
9
|
// This is a horrible, horrible hack to prevent the 'dev mode' CSS to display
|