mp-design-system 0.5.0 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/build/scss/library.css +1 -1
- package/dist/build/scss/library.css.map +1 -1
- package/dist/build/scss/main.css +1 -1
- package/dist/build/scss/main.css.map +1 -1
- package/package.json +1 -1
- package/src/_includes/components/card/card.scss +6 -9
- package/src/_includes/components/filter-search/filter-search.scss +5 -0
- package/src/_includes/components/footer/footer.scss +8 -18
- package/src/_includes/components/table/table.scss +1 -1
- package/src/_includes/page.njk +0 -4
- package/src/assets/scss/elements/reset.scss +102 -19
- package/src/assets/scss/library.scss +1 -1
- package/src/brand/visual/colors.njk +55 -2
- package/src/prototype/index.njk +132 -6
- package/src/assets/scss/elements/reset-full.scss +0 -123
@@ -5,8 +5,13 @@
|
|
5
5
|
flex-direction: column;
|
6
6
|
align-items: stretch;
|
7
7
|
|
8
|
-
&--alt
|
8
|
+
&--alt,
|
9
|
+
&--event {
|
9
10
|
background: color("petrol", "step-3");
|
11
|
+
|
12
|
+
&__specs {
|
13
|
+
color: color("grey", "step-1")
|
14
|
+
}
|
10
15
|
}
|
11
16
|
|
12
17
|
&--featured {
|
@@ -156,14 +161,6 @@
|
|
156
161
|
@extend .u-16\/9;
|
157
162
|
}
|
158
163
|
|
159
|
-
&--event {
|
160
|
-
background: color("petrol", "step-3");
|
161
|
-
}
|
162
|
-
|
163
|
-
&--event &__specs {
|
164
|
-
color: color("grey", "step-1");
|
165
|
-
}
|
166
|
-
|
167
164
|
&__primary {
|
168
165
|
@include flow("s");
|
169
166
|
}
|
@@ -21,6 +21,9 @@
|
|
21
21
|
}
|
22
22
|
|
23
23
|
&__sections {
|
24
|
+
@extend .o-grid, .o-grid--of-four;
|
25
|
+
@include margin-bottom(0);
|
26
|
+
|
24
27
|
& > li {
|
25
28
|
@include margin-bottom('gutter');
|
26
29
|
}
|
@@ -90,24 +93,6 @@
|
|
90
93
|
}
|
91
94
|
|
92
95
|
@media (min-width: 43em) {
|
93
|
-
&__sections {
|
94
|
-
display: flex;
|
95
|
-
flex-wrap: wrap;
|
96
|
-
justify-content: space-between;
|
97
|
-
|
98
|
-
& > li {
|
99
|
-
@include padding-right('s-m');
|
100
|
-
|
101
|
-
&:last-child {
|
102
|
-
padding-right: 0;
|
103
|
-
}
|
104
|
-
}
|
105
|
-
|
106
|
-
ul {
|
107
|
-
max-width: 250px;
|
108
|
-
}
|
109
|
-
}
|
110
|
-
|
111
96
|
&__secondary .u-wrap {
|
112
97
|
display: flex;
|
113
98
|
justify-content: space-between;
|
@@ -131,3 +116,8 @@
|
|
131
116
|
}
|
132
117
|
}
|
133
118
|
}
|
119
|
+
|
120
|
+
// Temporary fix until RichTextRegion is fixed
|
121
|
+
.rich-text-region + .c-footer {
|
122
|
+
@include margin-top('l-xl');
|
123
|
+
}
|
package/src/_includes/page.njk
CHANGED
@@ -1,46 +1,109 @@
|
|
1
|
+
|
1
2
|
*,
|
2
3
|
*:before,
|
3
4
|
*:after {
|
4
5
|
box-sizing: border-box;
|
5
6
|
}
|
6
7
|
|
8
|
+
body {
|
9
|
+
display: flex;
|
10
|
+
flex-direction: column;
|
11
|
+
justify-content: flex-start;
|
12
|
+
align-items: stretch;
|
13
|
+
min-height: 100vh;
|
14
|
+
margin: 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
html {
|
18
|
+
scroll-behavior: smooth;
|
19
|
+
}
|
20
|
+
|
21
|
+
blockquote,
|
22
|
+
pre,
|
23
|
+
ol,
|
24
|
+
ul,
|
25
|
+
figure {
|
26
|
+
padding: 0;
|
27
|
+
margin: 0;
|
28
|
+
}
|
29
|
+
|
30
|
+
img {
|
31
|
+
max-width: 100%;
|
32
|
+
display: block;
|
33
|
+
height: auto;
|
34
|
+
border: none;
|
35
|
+
}
|
36
|
+
|
37
|
+
article,
|
38
|
+
aside,
|
39
|
+
figure,
|
40
|
+
footer,
|
41
|
+
header,
|
42
|
+
aside,
|
43
|
+
main,
|
44
|
+
nav {
|
45
|
+
display: block;
|
46
|
+
}
|
47
|
+
|
48
|
+
iframe {
|
49
|
+
border: none;
|
50
|
+
}
|
51
|
+
|
52
|
+
// Typography
|
53
|
+
|
7
54
|
@mixin mp-reset-base {
|
8
55
|
font: weight() #{1.125rem}/lh() $font-stack;
|
9
56
|
@include step();
|
10
57
|
color: color('grey');
|
11
58
|
}
|
12
59
|
|
13
|
-
|
60
|
+
body {
|
14
61
|
@include mp-reset-base();
|
62
|
+
}
|
15
63
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
64
|
+
h1,
|
65
|
+
h2,
|
66
|
+
h3,
|
67
|
+
h4,
|
68
|
+
h5,
|
69
|
+
h6,
|
70
|
+
p,
|
71
|
+
ul,
|
72
|
+
ol,
|
73
|
+
dl {
|
74
|
+
margin: 0
|
75
|
+
}
|
25
76
|
|
26
|
-
|
27
|
-
|
28
|
-
|
77
|
+
ul, ol, p {
|
78
|
+
line-height: lh();
|
79
|
+
}
|
29
80
|
|
30
|
-
|
31
|
-
|
32
|
-
}
|
81
|
+
a {
|
82
|
+
text-decoration: none;
|
33
83
|
}
|
34
84
|
|
35
|
-
|
36
|
-
|
85
|
+
a,
|
86
|
+
a:hover {
|
87
|
+
cursor: pointer;
|
88
|
+
color: inherit;
|
37
89
|
}
|
38
90
|
|
91
|
+
// Lists
|
92
|
+
|
39
93
|
.mp ol,
|
40
94
|
.mp ul {
|
41
95
|
list-style: none;
|
42
96
|
}
|
43
97
|
|
98
|
+
// Font styles
|
99
|
+
|
100
|
+
cite,
|
101
|
+
address {
|
102
|
+
font-style: normal;
|
103
|
+
}
|
104
|
+
|
105
|
+
// Form
|
106
|
+
|
44
107
|
[type="submit"],
|
45
108
|
[type="button"],
|
46
109
|
button {
|
@@ -59,4 +122,24 @@ button {
|
|
59
122
|
.mp.c-button[disabled] {
|
60
123
|
opacity: 0.5;
|
61
124
|
cursor: not-allowed;
|
62
|
-
}
|
125
|
+
}
|
126
|
+
|
127
|
+
label {
|
128
|
+
cursor: pointer;
|
129
|
+
}
|
130
|
+
|
131
|
+
fieldset {
|
132
|
+
border: 0;
|
133
|
+
padding: 0.01em 0 0 0;
|
134
|
+
}
|
135
|
+
|
136
|
+
// Animation
|
137
|
+
|
138
|
+
@media (prefers-reduced-motion:reduce) {
|
139
|
+
* {
|
140
|
+
-webkit-animation: none!important;
|
141
|
+
animation: none!important;
|
142
|
+
transition: none!important;
|
143
|
+
scroll-behavior: auto!important;
|
144
|
+
}
|
145
|
+
}
|
@@ -130,6 +130,38 @@ status: 'In production'
|
|
130
130
|
}
|
131
131
|
]
|
132
132
|
},
|
133
|
+
{
|
134
|
+
name: 'MP21UtilGold',
|
135
|
+
key: 'Utility-Orange',
|
136
|
+
steps: [
|
137
|
+
|
138
|
+
{
|
139
|
+
name: "-1",
|
140
|
+
hex: 'AE7809',
|
141
|
+
cmyk: '29.51.100.10'
|
142
|
+
},
|
143
|
+
{
|
144
|
+
name: 0,
|
145
|
+
hex: 'F2A60D',
|
146
|
+
cmyk: '04.38.100.00'
|
147
|
+
},
|
148
|
+
{
|
149
|
+
name: 1,
|
150
|
+
hex: 'F6BF51',
|
151
|
+
cmyk: '03.26.79.00'
|
152
|
+
},
|
153
|
+
{
|
154
|
+
name: 2,
|
155
|
+
hex: 'FCEAC5',
|
156
|
+
cmyk: '01.07.25.00'
|
157
|
+
},
|
158
|
+
{
|
159
|
+
name: 3,
|
160
|
+
hex: 'FEF8EC',
|
161
|
+
cmyk: '00.02.06.00'
|
162
|
+
}
|
163
|
+
]
|
164
|
+
},
|
133
165
|
{
|
134
166
|
name: 'MP21Charcoal',
|
135
167
|
key: 'Grey',
|
@@ -181,8 +213,8 @@ status: 'In production'
|
|
181
213
|
</div>
|
182
214
|
<table class="c-table">
|
183
215
|
<tbody>
|
184
|
-
<tr><
|
185
|
-
<tr><
|
216
|
+
<tr><td>Hex</td><td>#{{step.hex | upper}}</td></tr>
|
217
|
+
<tr><td>CMYK</td><td>{{step.cmyk}}</td></tr>
|
186
218
|
</tbody>
|
187
219
|
</table>
|
188
220
|
{% endfor %}
|
@@ -190,6 +222,27 @@ status: 'In production'
|
|
190
222
|
{% endfor%}
|
191
223
|
</div>
|
192
224
|
|
225
|
+
{{ markdown({
|
226
|
+
content: "# When to use color
|
227
|
+
|
228
|
+
The color palette works best when it's used in a balanced way; too much of a strong color can make a design feel crowded or busy. Instead, try to keep your designs to mainly white backgrounds, with Grey text, and splashes of color to highlight important elements.
|
229
|
+
|
230
|
+
**Petrol** is our primary color - it represents Malvern Panalytical's spirit and personality. Along with **Blue** it is the color you will use most often in your designs.
|
231
|
+
|
232
|
+
**Green** is reserved for _calls to action_ - the single most important action that we want a reader or viewer to take next. On a web page for example, this would be the \"buy now\" button.
|
233
|
+
|
234
|
+
**Rubine** is reserved for important notices or warnings. It's such an eye-catching color that it must be used sparingly.
|
235
|
+
|
236
|
+
**Utility Gold** is intended for notices which are less urgent than Rubine. It can also be used sparingly as an accent color, to contrast against Petrol and Blue.
|
237
|
+
|
238
|
+
**Grey** is widely used for text in all designs.
|
239
|
+
|
240
|
+
## Tints and shades
|
241
|
+
Each color is provided in _steps_. Step 0 is the \"default\" for each color. If you need a colored background, consider using step 2 or 3, as step 0 or 1 will often be too overpowering.
|
242
|
+
|
243
|
+
Using Petrol step 3 as a background color (instead of grey) can be a nice way to introduce a bit of our personality into a design."
|
244
|
+
}) }}
|
245
|
+
|
193
246
|
{{ alert({
|
194
247
|
type: 'warning',
|
195
248
|
content: '<ul>
|
package/src/prototype/index.njk
CHANGED
@@ -20,7 +20,7 @@ tags: prototype
|
|
20
20
|
{% block content %}
|
21
21
|
{{ hero({
|
22
22
|
title: "We’re BIG on small.",
|
23
|
-
content: '<p>We make scientific instruments and services that make the invisible visible,
|
23
|
+
content: '<p>We make scientific instruments and services that make the invisible visible, so you can make the impossible possible.</p>',
|
24
24
|
cta: {
|
25
25
|
label: 'About Malvern Panalytical',
|
26
26
|
link: ''
|
@@ -115,16 +115,14 @@ tags: prototype
|
|
115
115
|
<nav class="c-tabs__controls u-scroll-shadows--h">
|
116
116
|
<ul class="c-tabs__controls-list">
|
117
117
|
<li><a class="c-tabs__control c-tabs__control--active" href="#tab-industry-1">Primary materials</a></li>
|
118
|
-
<li><a class="c-tabs__control" href="#tab-industry-
|
119
|
-
<li><a class="c-tabs__control" href="#tab-industry-
|
120
|
-
<li><a class="c-tabs__control" href="#tab-industry-1">Contract research services</a></li>
|
121
|
-
<li><a class="c-tabs__control" href="#tab-industry-1">Academia</a></li>
|
118
|
+
<li><a class="c-tabs__control" href="#tab-industry-2">Pharmaceuticals and food</a></li>
|
119
|
+
<li><a class="c-tabs__control" href="#tab-industry-3">Advanced materials</a></li>
|
122
120
|
</ul>
|
123
121
|
</nav>
|
124
122
|
|
125
123
|
<div class="c-tabs__content">
|
126
124
|
<div id="tab-industry-1" class="c-tab c-tab--active">
|
127
|
-
<div class="o-grid o-grid--of-four">
|
125
|
+
<div class="o-grid o-grid--of-four o-grid--swipeable">
|
128
126
|
{{ industryCard({
|
129
127
|
title: 'Building materials',
|
130
128
|
link: '',
|
@@ -165,6 +163,134 @@ tags: prototype
|
|
165
163
|
alt: ''
|
166
164
|
}
|
167
165
|
}) }}
|
166
|
+
{{ industryCard({
|
167
|
+
title: 'Academia',
|
168
|
+
link: '',
|
169
|
+
image: {
|
170
|
+
src: '/static/img/sector-1.jpg',
|
171
|
+
alt: ''
|
172
|
+
}
|
173
|
+
}) }}
|
174
|
+
</div>
|
175
|
+
</div>
|
176
|
+
<div id="tab-industry-2" class="c-tab">
|
177
|
+
<div class="o-grid o-grid--of-four o-grid--swipeable">
|
178
|
+
{{ industryCard({
|
179
|
+
title: 'Biologics',
|
180
|
+
link: '',
|
181
|
+
image: {
|
182
|
+
src: '/static/img/sector-3.jpg',
|
183
|
+
alt: ''
|
184
|
+
}
|
185
|
+
}) }}
|
186
|
+
{{ industryCard({
|
187
|
+
title: 'Food and drink analysis',
|
188
|
+
link: '',
|
189
|
+
image: {
|
190
|
+
src: '/static/img/sector-4.jpg',
|
191
|
+
alt: ''
|
192
|
+
}
|
193
|
+
}) }}
|
194
|
+
{{ industryCard({
|
195
|
+
title: 'Pharmaceutical solutions',
|
196
|
+
link: '',
|
197
|
+
image: {
|
198
|
+
src: '/static/img/sector-5.jpg',
|
199
|
+
alt: ''
|
200
|
+
}
|
201
|
+
}) }}
|
202
|
+
{{ industryCard({
|
203
|
+
title: 'Contract research services',
|
204
|
+
link: '',
|
205
|
+
image: {
|
206
|
+
src: '/static/img/sector-1.jpg',
|
207
|
+
alt: ''
|
208
|
+
}
|
209
|
+
}) }}
|
210
|
+
{{ industryCard({
|
211
|
+
title: 'Academia',
|
212
|
+
link: '',
|
213
|
+
image: {
|
214
|
+
src: '/static/img/sector-2.jpg',
|
215
|
+
alt: ''
|
216
|
+
}
|
217
|
+
}) }}
|
218
|
+
</div>
|
219
|
+
</div>
|
220
|
+
<div id="tab-industry-3" class="c-tab">
|
221
|
+
<div class="o-grid o-grid--of-four o-grid--swipeable">
|
222
|
+
{{ industryCard({
|
223
|
+
title: 'Advanced manufacturing',
|
224
|
+
link: '',
|
225
|
+
image: {
|
226
|
+
src: '/static/img/sector-5.jpg',
|
227
|
+
alt: ''
|
228
|
+
}
|
229
|
+
}) }}
|
230
|
+
{{ industryCard({
|
231
|
+
title: 'Aerospace and automotive',
|
232
|
+
link: '',
|
233
|
+
image: {
|
234
|
+
src: '/static/img/sector-1.jpg',
|
235
|
+
alt: ''
|
236
|
+
}
|
237
|
+
}) }}
|
238
|
+
{{ industryCard({
|
239
|
+
title: 'Battery and energy',
|
240
|
+
link: '',
|
241
|
+
image: {
|
242
|
+
src: '/static/img/sector-2.jpg',
|
243
|
+
alt: ''
|
244
|
+
}
|
245
|
+
}) }}
|
246
|
+
{{ industryCard({
|
247
|
+
title: 'Electronics and semiconductors',
|
248
|
+
link: '',
|
249
|
+
image: {
|
250
|
+
src: '/static/img/sector-3.jpg',
|
251
|
+
alt: ''
|
252
|
+
}
|
253
|
+
}) }}
|
254
|
+
{{ industryCard({
|
255
|
+
title: 'Environmental monitoring and analysis',
|
256
|
+
link: '',
|
257
|
+
image: {
|
258
|
+
src: '/static/img/sector-4.jpg',
|
259
|
+
alt: ''
|
260
|
+
}
|
261
|
+
}) }}
|
262
|
+
{{ industryCard({
|
263
|
+
title: 'Forensic analysis',
|
264
|
+
link: '',
|
265
|
+
image: {
|
266
|
+
src: '/static/img/sector-5.jpg',
|
267
|
+
alt: ''
|
268
|
+
}
|
269
|
+
}) }}
|
270
|
+
{{ industryCard({
|
271
|
+
title: 'Nanomaterials',
|
272
|
+
link: '',
|
273
|
+
image: {
|
274
|
+
src: '/static/img/sector-1.jpg',
|
275
|
+
alt: ''
|
276
|
+
}
|
277
|
+
}) }}
|
278
|
+
{{ industryCard({
|
279
|
+
title: 'Polymers, plastics, fibers and elastomers',
|
280
|
+
link: '',
|
281
|
+
image: {
|
282
|
+
src: '/static/img/sector-2.jpg',
|
283
|
+
alt: ''
|
284
|
+
}
|
285
|
+
}) }}
|
286
|
+
{{ industryCard({
|
287
|
+
title: 'Specialty chemicals',
|
288
|
+
link: '',
|
289
|
+
image: {
|
290
|
+
src: '/static/img/sector-3.jpg',
|
291
|
+
alt: ''
|
292
|
+
}
|
293
|
+
}) }}
|
168
294
|
</div>
|
169
295
|
</div>
|
170
296
|
</div>
|
@@ -1,123 +0,0 @@
|
|
1
|
-
*,
|
2
|
-
*:before,
|
3
|
-
*:after {
|
4
|
-
box-sizing: border-box;
|
5
|
-
}
|
6
|
-
|
7
|
-
body {
|
8
|
-
display: flex;
|
9
|
-
flex-direction: column;
|
10
|
-
justify-content: flex-start;
|
11
|
-
align-items: stretch;
|
12
|
-
min-height: 100vh;
|
13
|
-
}
|
14
|
-
|
15
|
-
body {
|
16
|
-
margin: 0;
|
17
|
-
}
|
18
|
-
|
19
|
-
html {
|
20
|
-
scroll-behavior: smooth;
|
21
|
-
}
|
22
|
-
|
23
|
-
blockquote,
|
24
|
-
pre,
|
25
|
-
ol,
|
26
|
-
ul,
|
27
|
-
figure {
|
28
|
-
padding: 0;
|
29
|
-
margin: 0;
|
30
|
-
}
|
31
|
-
|
32
|
-
img {
|
33
|
-
max-width: 100%;
|
34
|
-
display: block;
|
35
|
-
height: auto;
|
36
|
-
border: none;
|
37
|
-
}
|
38
|
-
|
39
|
-
article,
|
40
|
-
aside,
|
41
|
-
figure,
|
42
|
-
footer,
|
43
|
-
header,
|
44
|
-
aside,
|
45
|
-
main,
|
46
|
-
nav {
|
47
|
-
display: block;
|
48
|
-
}
|
49
|
-
|
50
|
-
iframe {
|
51
|
-
border: none;
|
52
|
-
}
|
53
|
-
|
54
|
-
// Typography
|
55
|
-
|
56
|
-
h1,
|
57
|
-
h2,
|
58
|
-
h3,
|
59
|
-
h4,
|
60
|
-
h5,
|
61
|
-
h6,
|
62
|
-
p,
|
63
|
-
ul,
|
64
|
-
ol,
|
65
|
-
dl {
|
66
|
-
margin: 0
|
67
|
-
}
|
68
|
-
|
69
|
-
a {
|
70
|
-
color: inherit;
|
71
|
-
text-decoration: none;
|
72
|
-
cursor: pointer;
|
73
|
-
}
|
74
|
-
|
75
|
-
// Lists
|
76
|
-
|
77
|
-
.mp ol,
|
78
|
-
.mp ul {
|
79
|
-
list-style: none;
|
80
|
-
}
|
81
|
-
|
82
|
-
// Font styles
|
83
|
-
|
84
|
-
cite,
|
85
|
-
address {
|
86
|
-
font-style: normal;
|
87
|
-
}
|
88
|
-
|
89
|
-
// Form
|
90
|
-
|
91
|
-
[type="submit"],
|
92
|
-
[type="button"],
|
93
|
-
button {
|
94
|
-
border-radius: 0;
|
95
|
-
background: transparent;
|
96
|
-
box-shadow: none;
|
97
|
-
appearance: none;
|
98
|
-
padding: 0;
|
99
|
-
cursor: pointer;
|
100
|
-
border: none;
|
101
|
-
color: inherit;
|
102
|
-
font: inherit;
|
103
|
-
}
|
104
|
-
|
105
|
-
[disabled] {
|
106
|
-
opacity: 0.5;
|
107
|
-
cursor: not-allowed;
|
108
|
-
}
|
109
|
-
|
110
|
-
label {
|
111
|
-
cursor: pointer;
|
112
|
-
}
|
113
|
-
|
114
|
-
// Animation
|
115
|
-
|
116
|
-
@media (prefers-reduced-motion:reduce) {
|
117
|
-
* {
|
118
|
-
-webkit-animation: none!important;
|
119
|
-
animation: none!important;
|
120
|
-
transition: none!important;
|
121
|
-
scroll-behavior: auto!important;
|
122
|
-
}
|
123
|
-
}
|