mp-design-system 1.2.39 → 1.2.41
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/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
appearance: none;
|
|
6
6
|
border-radius: 0;
|
|
7
7
|
font: inherit;
|
|
8
|
-
@include padding('
|
|
8
|
+
@include padding('2xs');
|
|
9
9
|
color: inherit;
|
|
10
10
|
font-size: 1rem;
|
|
11
11
|
display: block;
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
--error-state: #{color('red')};
|
|
59
59
|
position: relative;
|
|
60
60
|
|
|
61
|
-
.c-
|
|
62
|
-
&>
|
|
61
|
+
.c-form__input-wrap,
|
|
62
|
+
&> fieldset {
|
|
63
63
|
&::after {
|
|
64
64
|
content: '';
|
|
65
65
|
height: 2rem;
|
|
@@ -68,6 +68,13 @@
|
|
|
68
68
|
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><circle cx="12" cy="12" r="12" fill="%23CE0058"/><path stroke="%23fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16.666 7.333l-9.333 9.334M7.333 7.333l9.333 9.334"/></svg>') no-repeat center;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
|
|
72
|
+
&> fieldset::after {
|
|
73
|
+
position: absolute;
|
|
74
|
+
top: 0;
|
|
75
|
+
right: 0;
|
|
76
|
+
bottom: 0;
|
|
77
|
+
}
|
|
71
78
|
}
|
|
72
79
|
|
|
73
80
|
&-error & {
|
|
@@ -79,9 +86,12 @@
|
|
|
79
86
|
}
|
|
80
87
|
|
|
81
88
|
&-message {
|
|
82
|
-
@include margin-top('2xs');
|
|
83
89
|
@include step(-1);
|
|
84
90
|
color: var(--error-state);
|
|
91
|
+
|
|
92
|
+
&> * {
|
|
93
|
+
@include margin-top('2xs');
|
|
94
|
+
}
|
|
85
95
|
}
|
|
86
96
|
|
|
87
97
|
&[disabled],
|
|
@@ -118,38 +128,3 @@
|
|
|
118
128
|
display: block;
|
|
119
129
|
}
|
|
120
130
|
}
|
|
121
|
-
|
|
122
|
-
.c-label {
|
|
123
|
-
font-weight: weight('bold');
|
|
124
|
-
@include margin-bottom('2xs');
|
|
125
|
-
display: block;
|
|
126
|
-
align-self: center;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.c-fieldset {
|
|
130
|
-
border: 0;
|
|
131
|
-
padding: 0.01em 0 0 0;
|
|
132
|
-
margin: 0;
|
|
133
|
-
min-width: 0;
|
|
134
|
-
|
|
135
|
-
legend {
|
|
136
|
-
@extend .c-h--step-3;
|
|
137
|
-
font-weight: weight('bold');
|
|
138
|
-
letter-spacing: ls('-3%');
|
|
139
|
-
display: table;
|
|
140
|
-
float: left;
|
|
141
|
-
@include margin('xs', 0, 'l');
|
|
142
|
-
padding: 0;
|
|
143
|
-
width: 100%;
|
|
144
|
-
|
|
145
|
-
+ * {
|
|
146
|
-
clear: both;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
& + & {
|
|
151
|
-
border-top: 1px solid color('petrol', 'step-2');
|
|
152
|
-
@include margin-top('l-xl');
|
|
153
|
-
@include padding-top('l');
|
|
154
|
-
}
|
|
155
|
-
}
|
|
@@ -1,43 +1,29 @@
|
|
|
1
1
|
.mp-dynamicform {
|
|
2
2
|
.c-form {
|
|
3
|
-
&
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
&__header {
|
|
4
|
+
@extend .o-prose;
|
|
5
|
+
@include flow('s');
|
|
6
|
+
@include padding-bottom('m');
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
&
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&__section-title {
|
|
9
|
+
&__title {
|
|
10
|
+
font-size: var(--step-4) !important;
|
|
14
11
|
letter-spacing: -.02em;
|
|
15
|
-
font-size: var(--step-3);
|
|
16
12
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
content: "*";
|
|
20
|
-
color: color('red');
|
|
21
|
-
padding: 0 2px;
|
|
22
|
-
position: relative;
|
|
23
|
-
top: -2px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.c-input {
|
|
28
|
-
&__wrap {
|
|
13
|
+
|
|
14
|
+
&__input-wrap {
|
|
29
15
|
align-items: flex-start;
|
|
30
16
|
gap: var(--space-s);
|
|
31
17
|
flex-wrap: wrap;
|
|
32
18
|
display: flex;
|
|
33
19
|
|
|
34
20
|
.c-label {
|
|
35
|
-
flex-basis:
|
|
21
|
+
flex-basis: 115px;
|
|
36
22
|
margin-bottom: 0;
|
|
37
23
|
|
|
38
24
|
&+ * {
|
|
39
|
-
|
|
40
|
-
|
|
25
|
+
flex: 1 0 115px;
|
|
26
|
+
}
|
|
41
27
|
}
|
|
42
28
|
}
|
|
43
29
|
|
|
@@ -53,6 +39,20 @@
|
|
|
53
39
|
}
|
|
54
40
|
}
|
|
55
41
|
|
|
42
|
+
& > .c-fieldset {
|
|
43
|
+
& > *:not(:has(> .u-hidden)) + *:not(:has(> .u-hidden)) {
|
|
44
|
+
@include padding-top('s');
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.c-label--required:after {
|
|
49
|
+
content: "*";
|
|
50
|
+
color: color('red');
|
|
51
|
+
padding: 0 2px;
|
|
52
|
+
position: relative;
|
|
53
|
+
top: -2px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
56
|
.c-input__spacer {
|
|
57
57
|
height: 0;
|
|
58
58
|
flex-basis: 148px;
|
|
@@ -66,4 +66,39 @@
|
|
|
66
66
|
.c-radio + label {
|
|
67
67
|
display: inline-block;
|
|
68
68
|
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.c-fieldset {
|
|
72
|
+
border: 0;
|
|
73
|
+
padding: 0.01em 0 0 0;
|
|
74
|
+
margin: 0;
|
|
75
|
+
min-width: 0;
|
|
76
|
+
|
|
77
|
+
legend {
|
|
78
|
+
@extend .c-h--step-1;
|
|
79
|
+
font-weight: weight('bold');
|
|
80
|
+
letter-spacing: ls('-3%');
|
|
81
|
+
display: table;
|
|
82
|
+
float: left;
|
|
83
|
+
padding: 0;
|
|
84
|
+
width: 100%;
|
|
85
|
+
|
|
86
|
+
+ * {
|
|
87
|
+
clear: both;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
& + & {
|
|
92
|
+
@include margin('s', 0, 0);
|
|
93
|
+
@include padding('s', 0);
|
|
94
|
+
border-top: 1px solid color('petrol', 'step-2');
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.c-label {
|
|
99
|
+
@include margin-bottom('2xs');
|
|
100
|
+
display: block;
|
|
101
|
+
align-self: center;
|
|
102
|
+
font-size: var(--step--1);
|
|
103
|
+
font-weight: weight('bold');
|
|
69
104
|
}
|
package/src/brand/resources.njk
CHANGED
|
@@ -5,6 +5,7 @@ sidebar: brand
|
|
|
5
5
|
status: 'Ready'
|
|
6
6
|
tags: brand
|
|
7
7
|
---
|
|
8
|
+
|
|
8
9
|
{% from "components/prose/macro.njk" import markdown %}
|
|
9
10
|
{% from "components/card/macro.njk" import card %}
|
|
10
11
|
{% from "components/twi/macro.njk" import twi %}
|
|
@@ -28,7 +29,7 @@ tags: brand
|
|
|
28
29
|
}) }}
|
|
29
30
|
|
|
30
31
|
{{ twi({
|
|
31
|
-
link: "/static/adobe/MP%20Franklin%20colour%20swatches.ai"
|
|
32
|
+
link: "/static/adobe/MP%20Franklin%20colour%20swatches.ai",
|
|
32
33
|
label: "Adobe colour swatches",
|
|
33
34
|
classes: "u-link u-border u-pad-s",
|
|
34
35
|
icon: "file"
|