mp-design-system 0.8.0 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/build/{Inter-Bold.39130deb.woff → Inter-Bold.419e8c71.woff} +0 -0
- package/dist/build/{Inter-Bold.a2748096.woff2 → Inter-Bold.af5441a3.woff2} +0 -0
- package/dist/build/{Inter-Regular.27892b21.woff → Inter-Regular.ca6858d7.woff} +0 -0
- package/dist/build/{Inter-Regular.03253301.woff2 → Inter-Regular.ed77b881.woff2} +0 -0
- package/dist/build/{Inter-SemiBold.ba1d0d7d.woff → Inter-SemiBold.cc1168df.woff} +0 -0
- package/dist/build/{Inter-SemiBold.97a52f0e.woff2 → Inter-SemiBold.dd034768.woff2} +0 -0
- package/dist/build/concentric.05eaed9c.svg +1 -0
- package/dist/build/dots-pattern.3c9c2a26.svg +1 -0
- package/dist/build/js/app.js +2 -28
- package/dist/build/js/app.js.map +1 -1
- package/dist/build/scss/library.css +2 -2
- package/dist/build/scss/library.css.map +1 -1
- package/dist/build/scss/main.css +2 -2
- package/dist/build/scss/main.css.map +1 -1
- package/package.json +6 -7
- package/src/_includes/includes/system-footer.njk +2 -4
- package/src/assets/js/imports/gallery.js +6 -0
- package/src/assets/scss/components/lightbox.scss +1 -0
- package/src/assets/scss/objects/grid.scss +3 -1
- package/src/brand/downloads.njk +15 -5
- package/src/brand/visual/logo.md +2 -0
- package/src/components/iconography.njk +12 -12
- package/src/content/index.njk +1 -1
- package/src/index.njk +12 -4
- package/src/static/zip/MP_logo.zip +0 -0
- package/dist/build/concentric.797defa2.svg +0 -1
- package/dist/build/dots-pattern.7a77e237.svg +0 -1
package/package.json
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "mp-design-system",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.2",
|
4
4
|
"description": "",
|
5
|
-
"main": "app.js",
|
6
5
|
"scripts": {
|
7
6
|
"dev": "npm-run-all --parallel bundle:*",
|
8
7
|
"bundle:eleventy": "eleventy --serve --quiet",
|
9
|
-
"bundle:parcel": "parcel src/assets/js/*.js src/assets/scss/*.scss -
|
8
|
+
"bundle:parcel": "parcel src/assets/js/*.js src/assets/scss/*.scss --dist-dir ./dist/build",
|
10
9
|
"build": "run-s prod:*",
|
11
10
|
"prod:eleventy": "eleventy",
|
12
|
-
"prod:parcel": "rimraf dist/build && parcel build src/assets/js/*.js src/assets/scss/*.scss -
|
11
|
+
"prod:parcel": "rimraf dist/build && parcel build src/assets/js/*.js src/assets/scss/*.scss --dist-dir ./dist/build",
|
13
12
|
"prepublishOnly": "rimraf dist && npm run prod:parcel"
|
14
13
|
},
|
15
14
|
"files": [
|
@@ -22,12 +21,13 @@
|
|
22
21
|
"devDependencies": {
|
23
22
|
"@11ty/eleventy": "^0.12.1",
|
24
23
|
"@11ty/eleventy-plugin-syntaxhighlight": "^3.1.2",
|
24
|
+
"@parcel/transformer-sass": "^2.4.0",
|
25
25
|
"dotenv": "^8.6.0",
|
26
26
|
"html-prettify": "^1.0.3",
|
27
27
|
"markdown-it": "^12.1.0",
|
28
28
|
"markdown-it-prism": "^2.1.8",
|
29
29
|
"npm-run-all": "^4.1.5",
|
30
|
-
"parcel
|
30
|
+
"parcel": "^2.4.0",
|
31
31
|
"require-glob": "^3.2.0",
|
32
32
|
"rimraf": "^3.0.2",
|
33
33
|
"sass": "^1.35.2",
|
@@ -36,6 +36,5 @@
|
|
36
36
|
"alias": {
|
37
37
|
"mp": "./node_modules/mp-design-system/src/assets/scss",
|
38
38
|
"comp": "./src/_includes/components"
|
39
|
-
}
|
40
|
-
"dependencies": {}
|
39
|
+
}
|
41
40
|
}
|
@@ -5,11 +5,9 @@
|
|
5
5
|
{% markdown %}
|
6
6
|
### Get in touch
|
7
7
|
|
8
|
-
This system is maintained by the Design System Team.
|
8
|
+
This system is maintained by the Design System Team. Any feedback, questions or ideas are welcome, so please share your thoughts.
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
- For all enquiries please contact [will.wallace@malvernpanalytical.com](mailto:will.wallace@malvernpanalytical.com).
|
10
|
+
- For all enquiries please contact [will.wallace@malvernpanalytical.com](mailto:will.wallace@malvernpanalytical.com) via email or Teams.
|
13
11
|
{% endmarkdown %}
|
14
12
|
|
15
13
|
</nav>
|
@@ -33,6 +33,12 @@ function Gallery() {
|
|
33
33
|
if(slide.classList.contains('c-gallery__video')) {
|
34
34
|
slide.remove();
|
35
35
|
}
|
36
|
+
if(!slide.classList.contains('c-gallery__video')) {
|
37
|
+
var slideImg = slide.querySelector('img');
|
38
|
+
if(slideImg.srcset != '') {
|
39
|
+
slideImg.removeAttribute('srcset');
|
40
|
+
}
|
41
|
+
}
|
36
42
|
slide.classList.add('c-lightbox__slide');
|
37
43
|
slide.classList.remove('c-gallery__slide');
|
38
44
|
});
|
@@ -185,13 +185,15 @@ $grid-gutter-width: 36;
|
|
185
185
|
flex-wrap: nowrap;
|
186
186
|
overflow-x: scroll;
|
187
187
|
scroll-snap-type: x mandatory;
|
188
|
+
scroll-padding: var(--gutter);
|
188
189
|
-webkit-overflow-scrolling: touch;
|
189
190
|
|
190
191
|
& > * {
|
191
192
|
flex: 0 0 auto;
|
192
193
|
max-width: 23em;
|
193
194
|
width: calc(85vw - var(--gutter)*2.333); // !important
|
194
|
-
scroll-snap-align:
|
195
|
+
scroll-snap-align: start;
|
196
|
+
scroll-snap-stop: always;
|
195
197
|
}
|
196
198
|
|
197
199
|
& > * + * {
|
package/src/brand/downloads.njk
CHANGED
@@ -2,22 +2,22 @@
|
|
2
2
|
title: Downloads
|
3
3
|
layout: content-page
|
4
4
|
sidebar: brand
|
5
|
-
status: '
|
6
|
-
version: 0.0.1
|
5
|
+
status: 'Ready'
|
7
6
|
tags: brand
|
8
7
|
---
|
9
8
|
{% from "components/prose/macro.njk" import markdown %}
|
10
9
|
{% from "components/card/macro.njk" import card %}
|
11
10
|
{% from "components/twi/macro.njk" import twi %}
|
12
11
|
|
13
|
-
<div class="u-flow--l">
|
12
|
+
<div class="u-flow--l u-margin-top-xl">
|
14
13
|
|
15
14
|
{{ twi({
|
16
|
-
link: "
|
17
|
-
label: "
|
15
|
+
link: "/static/zip/MP_logo.zip",
|
16
|
+
label: "Malvern Panalytical logo",
|
18
17
|
classes: "u-link",
|
19
18
|
icon: "file"
|
20
19
|
}) }}
|
20
|
+
|
21
21
|
<br>
|
22
22
|
|
23
23
|
{{ twi({
|
@@ -26,6 +26,16 @@ label: 'Brand guidelines quick-start guide',
|
|
26
26
|
classes: 'u-link',
|
27
27
|
icon: 'file'
|
28
28
|
}) }}
|
29
|
+
|
30
|
+
<br>
|
31
|
+
|
32
|
+
{{ twi({
|
33
|
+
link: "https://malvern.sharepoint.com/:b:/r/sites/Intranet/Shared%20Documents/FINAL%20Tone%20of%20voice%20guidelines%20April%202021.pdf?csf=1&web=1&e=vW1Qzs",
|
34
|
+
label: "Tone of voice guidelines",
|
35
|
+
classes: "u-link",
|
36
|
+
icon: "file"
|
37
|
+
}) }}
|
38
|
+
|
29
39
|
<br>
|
30
40
|
|
31
41
|
{{ twi({
|
package/src/brand/visual/logo.md
CHANGED
@@ -7,6 +7,8 @@ version: 1.0.0
|
|
7
7
|
status: 'Ready'
|
8
8
|
---
|
9
9
|
|
10
|
+
<a href="/static/zip/MP_logo.zip" class="mp c-twi u-link c-twi--left"><span>Download: Malvern Panalytical logo</span><svg role="img" aria-hidden="true" focusable="false" class="mp c-icon c-icon--file"><use xlink:href="/static/svg/sprite.svg#file"></use></svg></a>
|
11
|
+
|
10
12
|
The Malvern Panalytical logo is available in two formats:
|
11
13
|
|
12
14
|
- Standard, with the text alongside the 'X' brandmark;
|
@@ -18,23 +18,23 @@ Icons add visual noise to designs and should be used sparingly.
|
|
18
18
|
{% endset %}
|
19
19
|
|
20
20
|
{% set icons = [
|
21
|
-
'file',
|
22
|
-
'arrow-right',
|
23
21
|
'arrow-left',
|
22
|
+
'arrow-right',
|
24
23
|
'chevron-down',
|
25
|
-
'
|
24
|
+
'cross',
|
25
|
+
'dash',
|
26
26
|
'facebook',
|
27
|
-
'
|
28
|
-
'
|
27
|
+
'file',
|
28
|
+
'info',
|
29
29
|
'instagram',
|
30
30
|
'linkedin',
|
31
|
-
'youtube',
|
32
|
-
'play',
|
33
|
-
'info',
|
34
31
|
'log-out',
|
35
|
-
'
|
32
|
+
'play',
|
33
|
+
'rss',
|
34
|
+
'search',
|
36
35
|
'tick',
|
37
|
-
'
|
36
|
+
'twitter',
|
37
|
+
'youtube'
|
38
38
|
] %}
|
39
39
|
|
40
40
|
{% set content2 %}
|
@@ -63,7 +63,7 @@ Adding new icons to the SVG sprite is a manual process.
|
|
63
63
|
<tr>
|
64
64
|
<th>Icon</th>
|
65
65
|
<th>ID</th>
|
66
|
-
<th>Code</th>
|
66
|
+
<th>Code (Nunjucks)</th>
|
67
67
|
</tr>
|
68
68
|
</thead>
|
69
69
|
<tbody>
|
@@ -73,7 +73,7 @@ Adding new icons to the SVG sprite is a manual process.
|
|
73
73
|
{{ icon({ id: id }) }}
|
74
74
|
</td>
|
75
75
|
<td><code>{{ id }}</code></td>
|
76
|
-
<td><code>{{ "{{ icon({ id: id }
|
76
|
+
<td><code>{{ "{{ icon({ id:" }} {{ id }} }) }}</code></td>
|
77
77
|
</tr>
|
78
78
|
{% endfor %}
|
79
79
|
</table>
|
package/src/content/index.njk
CHANGED
@@ -34,7 +34,7 @@ Which is why we’ve created these guidelines. They contain simple, practical ad
|
|
34
34
|
}) }}
|
35
35
|
|
36
36
|
{{ twi({
|
37
|
-
link: '/
|
37
|
+
link: 'https://malvern.sharepoint.com/:b:/r/sites/Intranet/Shared%20Documents/FINAL%20Tone%20of%20voice%20guidelines%20April%202021.pdf?csf=1&web=1&e=vW1Qzs',
|
38
38
|
label: 'Download this guide as a PDF',
|
39
39
|
classes: 'u-link',
|
40
40
|
icon: 'file',
|
package/src/index.njk
CHANGED
@@ -14,7 +14,7 @@ renderData:
|
|
14
14
|
{{ card({
|
15
15
|
theme: {
|
16
16
|
layout: 'single',
|
17
|
-
size: '
|
17
|
+
size: 'large',
|
18
18
|
border: true
|
19
19
|
},
|
20
20
|
header: {
|
@@ -34,7 +34,7 @@ renderData:
|
|
34
34
|
{{ card({
|
35
35
|
theme: {
|
36
36
|
layout: 'single',
|
37
|
-
size: '
|
37
|
+
size: 'large',
|
38
38
|
border: true
|
39
39
|
},
|
40
40
|
header: {
|
@@ -54,7 +54,7 @@ renderData:
|
|
54
54
|
{{ card({
|
55
55
|
theme: {
|
56
56
|
layout: 'single',
|
57
|
-
size: '
|
57
|
+
size: 'large',
|
58
58
|
border: true
|
59
59
|
},
|
60
60
|
header: {
|
@@ -73,9 +73,17 @@ renderData:
|
|
73
73
|
</div>
|
74
74
|
|
75
75
|
{% set content %}
|
76
|
+
## Latest
|
77
|
+
##### V.{{ config.dsVersion }} - Feb 17 2020
|
78
|
+
|
79
|
+
- Create [accordion component](/components/accordion)
|
80
|
+
- Create background-video variant for hero component
|
81
|
+
- Add downloadable copy of the [Malvern Panalytical logo](/brand/downloads)
|
82
|
+
- Misc. library improvements
|
83
|
+
|
76
84
|
## A living resource for everyone
|
77
85
|
|
78
|
-
As
|
86
|
+
As Malvern Panalytical has grown, our online experiences have become disparate and inconsistent. The goal of this design system is to address this by creating a single source of truth. It will rely on us all using and contributing to it, with the ongoing support of the Design System Team.
|
79
87
|
{% endset %}
|
80
88
|
|
81
89
|
{{ markdown({
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="641" height="1012" opacity="0.075" fill="none" viewBox="0 0 641 1012"><circle cx="641" cy="506" r="80" stroke="#004157"/><circle cx="641" cy="506" r="20" stroke="#004157"/><circle cx="641" cy="506" r="160" stroke="#004157"/><circle cx="641" cy="506" r="240" stroke="#004157"/><circle cx="641" cy="506" r="320" stroke="#004157"/><circle cx="641" cy="506" r="400" stroke="#004157"/><circle cx="641" cy="506" r="480" stroke="#004157"/><circle cx="641" cy="506" r="560" stroke="#004157"/><circle cx="641" cy="506" r="640" stroke="#004157"/></svg>
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="421" height="724" fill="none" viewBox="0 0 421 724"><g stroke="#004157" opacity=".075"><circle cx="36.965" cy="27.974" r="17.5" transform="rotate(-15 36.965 27.974)"/><circle cx="141.285" cy=".021" r="17.5" transform="rotate(-15 141.285 .021)"/><circle cx="3.44" cy="111.496" r="17.5" transform="rotate(-15 3.44 111.496)"/><circle cx="107.76" cy="83.544" r="17.5" transform="rotate(-15 107.76 83.544)"/><circle cx="212.08" cy="55.591" r="17.5" transform="rotate(-15 212.08 55.591)"/><circle cx="74.235" cy="167.067" r="17.5" transform="rotate(-15 74.235 167.067)"/><circle cx="178.555" cy="139.114" r="17.5" transform="rotate(-15 178.555 139.114)"/><circle cx="40.71" cy="250.59" r="17.5" transform="rotate(-15 40.71 250.59)"/><circle cx="145.03" cy="222.637" r="17.5" transform="rotate(-15 145.03 222.637)"/><circle cx="249.35" cy="194.685" r="17.5" transform="rotate(-15 249.35 194.685)"/><circle cx="7.185" cy="334.113" r="17.5" transform="rotate(-15 7.185 334.113)"/><circle cx="111.505" cy="306.16" r="17.5" transform="rotate(-15 111.505 306.16)"/><circle cx="215.825" cy="278.208" r="17.5" transform="rotate(-15 215.825 278.208)"/><circle cx="77.98" cy="389.683" r="17.5" transform="rotate(-15 77.98 389.683)"/><circle cx="182.3" cy="361.73" r="17.5" transform="rotate(-15 182.3 361.73)"/><circle cx="286.62" cy="333.778" r="17.5" transform="rotate(-15 286.62 333.778)"/><circle cx="44.455" cy="473.206" r="17.5" transform="rotate(-15 44.455 473.206)"/><circle cx="148.775" cy="445.254" r="17.5" transform="rotate(-15 148.775 445.254)"/><circle cx="253.095" cy="417.301" r="17.5" transform="rotate(-15 253.095 417.301)"/><circle cx="10.93" cy="556.729" r="17.5" transform="rotate(-15 10.93 556.729)"/><circle cx="115.25" cy="528.776" r="17.5" transform="rotate(-15 115.25 528.776)"/><circle cx="219.57" cy="500.824" r="17.5" transform="rotate(-15 219.57 500.824)"/><circle cx="323.89" cy="472.871" r="17.5" transform="rotate(-15 323.89 472.871)"/><circle cx="81.725" cy="612.299" r="17.5" transform="rotate(-15 81.725 612.299)"/><circle cx="186.045" cy="584.347" r="17.5" transform="rotate(-15 186.045 584.347)"/><circle cx="290.365" cy="556.394" r="17.5" transform="rotate(-15 290.365 556.394)"/><circle cx="48.2" cy="695.822" r="17.5" transform="rotate(-15 48.2 695.822)"/><circle cx="152.52" cy="667.87" r="17.5" transform="rotate(-15 152.52 667.87)"/><circle cx="256.84" cy="639.917" r="17.5" transform="rotate(-15 256.84 639.917)"/><circle cx="361.16" cy="611.965" r="17.5" transform="rotate(-15 361.16 611.965)"/><circle cx="223.315" cy="723.44" r="17.5" transform="rotate(-15 223.315 723.44)"/><circle cx="327.635" cy="695.488" r="17.5" transform="rotate(-15 327.635 695.488)"/></g></svg>
|