mp-design-system 1.2.39 → 1.2.40

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-design-system",
3
- "version": "1.2.39",
3
+ "version": "1.2.40",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "dev": "npm-run-all --parallel bundle:*",
@@ -5,7 +5,7 @@
5
5
  appearance: none;
6
6
  border-radius: 0;
7
7
  font: inherit;
8
- @include padding('xs');
8
+ @include padding('2xs');
9
9
  color: inherit;
10
10
  font-size: 1rem;
11
11
  display: block;
@@ -118,38 +118,3 @@
118
118
  display: block;
119
119
  }
120
120
  }
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
- &__section {
4
- padding: 36px;
5
- padding: var(--space-l);
6
- background: color('petrol', 'step-3');
3
+ &__header {
4
+ @extend .o-prose;
5
+ @include flow('s');
6
+ @include padding-bottom('m');
7
7
  }
8
8
 
9
- &__section + .c-form__section {
10
- border-top: 2px solid color('white');
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
- .c-label--required:after {
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: 148px;
21
+ flex-basis: 115px;
36
22
  margin-bottom: 0;
37
23
 
38
24
  &+ * {
39
- flex: 1 0 148px;
40
- }
25
+ flex: 1 0 148px;
26
+ }
41
27
  }
42
28
  }
43
29
 
@@ -53,6 +39,20 @@
53
39
  }
54
40
  }
55
41
 
42
+ & > .c-fieldset {
43
+ & > * + * {
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
  }
@@ -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"