@madgex/design-system 1.15.6 → 1.16.1
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 -1
- package/dist/_tokens/js/_tokens-module.js +24 -1
- package/dist/_tokens/scss/_tokens.scss +7 -1
- package/dist/css/index.css +16 -1
- package/package.json +1 -1
- package/src/components/button/button.scss +1 -0
- package/src/layout/containers/README.md +2 -0
- package/src/layout/containers/containers.njk +5 -2
- package/src/scss/core/_containers.scss +14 -0
- package/src/tokens/size.json +7 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 16 Jul 2019 12:41:51 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -128,4 +128,5 @@
|
|
|
128
128
|
--mds-size-wrapper-max-width: 1280px;
|
|
129
129
|
--mds-size-wrapper-padding: 1.5%;
|
|
130
130
|
--mds-size-surface-padding: 28px 32px;
|
|
131
|
+
--mds-size-button-border-radius: 4px;
|
|
131
132
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 16 Jul 2019 12:41:51 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
@@ -2614,6 +2614,29 @@ module.exports = {
|
|
|
2614
2614
|
"padding"
|
|
2615
2615
|
]
|
|
2616
2616
|
}
|
|
2617
|
+
},
|
|
2618
|
+
"button": {
|
|
2619
|
+
"border": {
|
|
2620
|
+
"radius": {
|
|
2621
|
+
"value": "4rem",
|
|
2622
|
+
"original": {
|
|
2623
|
+
"value": "{size.border.radius.value}"
|
|
2624
|
+
},
|
|
2625
|
+
"name": "MdsSizeButtonBorderRadius",
|
|
2626
|
+
"attributes": {
|
|
2627
|
+
"category": "size",
|
|
2628
|
+
"type": "button",
|
|
2629
|
+
"item": "border",
|
|
2630
|
+
"subitem": "radius"
|
|
2631
|
+
},
|
|
2632
|
+
"path": [
|
|
2633
|
+
"size",
|
|
2634
|
+
"button",
|
|
2635
|
+
"border",
|
|
2636
|
+
"radius"
|
|
2637
|
+
]
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2617
2640
|
}
|
|
2618
2641
|
}
|
|
2619
2642
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
3
|
Do not edit directly
|
|
4
|
-
Generated on
|
|
4
|
+
Generated on Tue, 16 Jul 2019 12:41:51 GMT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
$mds-color-brand-1-base: #1b75bb !default;
|
|
@@ -128,6 +128,7 @@ $mds-size-wrapper-width: 100% !default;
|
|
|
128
128
|
$mds-size-wrapper-max-width: 1280px !default;
|
|
129
129
|
$mds-size-wrapper-padding: 1.5% !default;
|
|
130
130
|
$mds-size-surface-padding: 28px 32px !default;
|
|
131
|
+
$mds-size-button-border-radius: 4px !default;
|
|
131
132
|
|
|
132
133
|
$tokens: (
|
|
133
134
|
'color': (
|
|
@@ -388,6 +389,11 @@ $tokens: (
|
|
|
388
389
|
),
|
|
389
390
|
'surface': (
|
|
390
391
|
'padding': $mds-size-surface-padding
|
|
392
|
+
),
|
|
393
|
+
'button': (
|
|
394
|
+
'border': (
|
|
395
|
+
'radius': $mds-size-button-border-radius
|
|
396
|
+
)
|
|
391
397
|
)
|
|
392
398
|
)
|
|
393
399
|
);
|
package/dist/css/index.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Do not edit directly
|
|
3
|
-
Generated on
|
|
3
|
+
Generated on Tue, 16 Jul 2019 12:41:51 GMT
|
|
4
4
|
*/
|
|
5
5
|
html,
|
|
6
6
|
body,
|
|
@@ -489,6 +489,20 @@ body {
|
|
|
489
489
|
padding: 28px 32px;
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
+
.mds-fixed-container {
|
|
493
|
+
width: 100%;
|
|
494
|
+
background: #f8f8f8;
|
|
495
|
+
position: fixed;
|
|
496
|
+
left: 0;
|
|
497
|
+
bottom: 0;
|
|
498
|
+
z-index: 5;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.mds-fixed-container--top {
|
|
502
|
+
bottom: auto;
|
|
503
|
+
top: 0;
|
|
504
|
+
}
|
|
505
|
+
|
|
492
506
|
.mds-list {
|
|
493
507
|
margin: 0 0 20px 0;
|
|
494
508
|
padding: 0;
|
|
@@ -1379,6 +1393,7 @@ body {
|
|
|
1379
1393
|
white-space: nowrap;
|
|
1380
1394
|
-webkit-appearance: none;
|
|
1381
1395
|
border: 1px solid transparent;
|
|
1396
|
+
border-radius: 4px;
|
|
1382
1397
|
background-color: #f0af11;
|
|
1383
1398
|
padding: 8px 12px;
|
|
1384
1399
|
font-size: 100%;
|
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ $mds-color-button-bg-hover: $mds-color-brand-2-light !default;
|
|
|
8
8
|
white-space: nowrap;
|
|
9
9
|
-webkit-appearance: none;
|
|
10
10
|
border: 1px solid transparent;
|
|
11
|
+
border-radius: $mds-size-button-border-radius;
|
|
11
12
|
background-color: $mds-color-button-bg;
|
|
12
13
|
padding: ($mds-size-baseline * 2) ($mds-size-baseline * 3);
|
|
13
14
|
font-size: 100%;
|
|
@@ -4,3 +4,5 @@ Class `mds-site-container` should be added right after the body, it contains all
|
|
|
4
4
|
`mds-wrapper` inside `mds-site-container` will give a max-width to the content of the pages
|
|
5
5
|
|
|
6
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.
|
|
7
|
+
|
|
8
|
+
To add a `position: fixed` container, use `mds-fixed-container`. By default it will be fixed at the bottom. Use `mds-fixed-container--top` to fix it at the top.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="mds-site-container container-example">
|
|
1
|
+
<div class="mds-site-container container-example" style="margin: 80px 0;">
|
|
2
2
|
<div class="mds-wrapper">
|
|
3
3
|
<div class="content-example">
|
|
4
4
|
<div class="mds-surface">
|
|
@@ -10,4 +10,7 @@
|
|
|
10
10
|
</div>
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
|
-
</div>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div class="mds-fixed-container mds-padding-b5 mds-text-align-center">This a fixed container at the bottom</div>
|
|
16
|
+
<div class="mds-fixed-container mds-fixed-container--top mds-padding-b5 mds-text-align-center">This a fixed container at the top</div>
|
|
@@ -26,3 +26,17 @@ body {
|
|
|
26
26
|
.mds-surface__inner {
|
|
27
27
|
padding: $mds-size-surface-padding;
|
|
28
28
|
}
|
|
29
|
+
|
|
30
|
+
.mds-fixed-container {
|
|
31
|
+
width: 100%;
|
|
32
|
+
background: $mds-color-neutral-lightest;
|
|
33
|
+
position: fixed;
|
|
34
|
+
left: 0;
|
|
35
|
+
bottom: 0;
|
|
36
|
+
z-index: 5;
|
|
37
|
+
|
|
38
|
+
&--top {
|
|
39
|
+
bottom: auto;
|
|
40
|
+
top: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|