mp-design-system 1.2.41 → 1.2.43
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -66,6 +66,7 @@
|
|
66
66
|
width: 2rem;
|
67
67
|
@include margin('auto', 0);
|
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
|
+
flex-shrink: 0;
|
69
70
|
}
|
70
71
|
}
|
71
72
|
|
@@ -12,12 +12,13 @@
|
|
12
12
|
}
|
13
13
|
|
14
14
|
&__input-wrap {
|
15
|
+
display: flex;
|
15
16
|
align-items: flex-start;
|
16
17
|
gap: var(--space-s);
|
17
|
-
flex-wrap:
|
18
|
-
display: flex;
|
18
|
+
flex-wrap: nowrap;
|
19
19
|
|
20
20
|
.c-label {
|
21
|
+
min-width: 115px;
|
21
22
|
flex-basis: 115px;
|
22
23
|
margin-bottom: 0;
|
23
24
|
|
@@ -40,11 +41,20 @@
|
|
40
41
|
}
|
41
42
|
|
42
43
|
& > .c-fieldset {
|
43
|
-
& >
|
44
|
+
& > * + *:not(:has(> .u-hidden)) {
|
44
45
|
@include padding-top('s');
|
45
46
|
}
|
46
47
|
}
|
47
48
|
|
49
|
+
.o-grid {
|
50
|
+
flex-wrap: wrap;
|
51
|
+
row-gap: var(--space-s);
|
52
|
+
|
53
|
+
.c-input {
|
54
|
+
flex-shrink: 1;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
48
58
|
.c-label--required:after {
|
49
59
|
content: "*";
|
50
60
|
color: color('red');
|
@@ -70,7 +80,7 @@
|
|
70
80
|
|
71
81
|
.c-fieldset {
|
72
82
|
border: 0;
|
73
|
-
padding: 0.01em 0
|
83
|
+
padding: 0.01em 0 var(--space-s) 0;
|
74
84
|
margin: 0;
|
75
85
|
min-width: 0;
|
76
86
|
|
@@ -89,9 +99,22 @@
|
|
89
99
|
}
|
90
100
|
|
91
101
|
& + & {
|
92
|
-
@include
|
93
|
-
|
94
|
-
|
102
|
+
@include padding-top('s');
|
103
|
+
position: relative;
|
104
|
+
|
105
|
+
&::before {
|
106
|
+
content: '';
|
107
|
+
position: absolute;
|
108
|
+
height: 1px;
|
109
|
+
width: 100%;
|
110
|
+
background: color('petrol', 'step-2');
|
111
|
+
top: 0;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
& > .o-grid,
|
116
|
+
& > .o-grid > * {
|
117
|
+
@include margin-bottom(0);
|
95
118
|
}
|
96
119
|
}
|
97
120
|
|
package/src/prototype/forms.njk
CHANGED
@@ -12,7 +12,7 @@ tagTitle: Forms
|
|
12
12
|
|
13
13
|
{% block content %}
|
14
14
|
<div class="mp u-wrap u-margin-top-l u-margin-bottom-l-xl">
|
15
|
-
<div id="dynamicForm" class="o-grid o-grid--
|
15
|
+
<div id="dynamicForm" class="o-grid o-grid--8/3 o-grid--float o-grid--layout">
|
16
16
|
<form id="EmailSales" class="mp-dynamicform u-bg-blue-step-3 u-pad-l" action="/en/about-us/contact-us/sales" method="post" name="dynamicForm" novalidate="">
|
17
17
|
<input name="__RequestVerificationToken" type="hidden" value="Qi0kKqKOgcp5Eu-jjtGH2urIvru-qcwVkx788JhJvIwYb9O-8yHLaI6G-yQgyXXkHzsRRRMdWpzDIcC0OS6lg45vSQMtCyNJSZE0gWrZIINhqHclzzooFx3bTpKp_szrk2r0PKkYkmapgFP5UZ3Rwg2">
|
18
18
|
<div class="validation-summary-valid" data-valmsg-summary="true">
|
@@ -195,7 +195,7 @@ tagTitle: Forms
|
|
195
195
|
</div>
|
196
196
|
</div>
|
197
197
|
<div class="c-form__row o-grid o-grid--of-two">
|
198
|
-
<div class="c-form__input FirstName required ">
|
198
|
+
<div class="c-form__input FirstName required c-input-error">
|
199
199
|
<div class="c-form__input-wrap">
|
200
200
|
<label class="c-label u-pad-xs c-label--required" for="FirstName">First name</label>
|
201
201
|
<input type="text" class="c-input" name="FirstName" value="" placeholder="" id="FirstName" required="">
|
@@ -511,6 +511,8 @@ tagTitle: Forms
|
|
511
511
|
</div>
|
512
512
|
</div>
|
513
513
|
</div>
|
514
|
+
</div>
|
515
|
+
<div class="c-form__row o-grid o-grid--of-two">
|
514
516
|
<div class="c-form__input Province u-hidden required ">
|
515
517
|
<div class="c-form__input-wrap u-hidden">
|
516
518
|
<label class="c-label u-pad-xs c-label--required" for="Province">Province</label>
|