mp-design-system 0.7.5 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. package/dist/build/{Inter-Bold.39130deb.woff → Inter-Bold.419e8c71.woff} +0 -0
  2. package/dist/build/{Inter-Bold.a2748096.woff2 → Inter-Bold.af5441a3.woff2} +0 -0
  3. package/dist/build/{Inter-Regular.27892b21.woff → Inter-Regular.ca6858d7.woff} +0 -0
  4. package/dist/build/{Inter-Regular.03253301.woff2 → Inter-Regular.ed77b881.woff2} +0 -0
  5. package/dist/build/{Inter-SemiBold.ba1d0d7d.woff → Inter-SemiBold.cc1168df.woff} +0 -0
  6. package/dist/build/{Inter-SemiBold.97a52f0e.woff2 → Inter-SemiBold.dd034768.woff2} +0 -0
  7. package/dist/build/concentric.05eaed9c.svg +1 -0
  8. package/dist/build/dots-pattern.3c9c2a26.svg +1 -0
  9. package/dist/build/js/app.js +2 -26
  10. package/dist/build/js/app.js.map +1 -1
  11. package/dist/build/scss/library.css +2 -2
  12. package/dist/build/scss/library.css.map +1 -1
  13. package/dist/build/scss/main.css +2 -2
  14. package/dist/build/scss/main.css.map +1 -1
  15. package/package.json +12 -13
  16. package/src/_includes/components/accordion/accordion.config.js +27 -0
  17. package/src/_includes/components/accordion/accordion.md +15 -0
  18. package/src/_includes/components/accordion/accordion.njk +10 -0
  19. package/src/_includes/components/accordion/accordion.scss +49 -0
  20. package/src/_includes/components/accordion/macro.njk +5 -0
  21. package/src/_includes/components/alert/alert.scss +1 -1
  22. package/src/_includes/components/campaign/campaign.config.js +6 -0
  23. package/src/_includes/components/campaign/campaign.njk +5 -3
  24. package/src/_includes/components/hero/hero.config.js +4 -4
  25. package/src/_includes/components/hero/hero.njk +10 -4
  26. package/src/_includes/components/hero/hero.scss +30 -4
  27. package/src/_includes/components/meta-box/meta-box.scss +24 -0
  28. package/src/_includes/includes/system-footer.njk +13 -5
  29. package/src/_includes/library-navigation/brand-nav.njk +8 -16
  30. package/src/_includes/library-navigation/components-nav.njk +1 -1
  31. package/src/_includes/library-navigation/content-nav.njk +2 -1
  32. package/src/_redirects +8 -0
  33. package/src/assets/js/app.js +2 -0
  34. package/src/assets/js/imports/accordion.js +19 -0
  35. package/src/assets/js/imports/gallery.js +6 -0
  36. package/src/assets/scss/components/index.scss +1 -0
  37. package/src/assets/scss/components/lightbox.scss +1 -0
  38. package/src/assets/scss/library.scss +3 -3
  39. package/src/assets/scss/objects/grid.scss +3 -1
  40. package/src/assets/scss/utilities/index.scss +4 -0
  41. package/src/brand/{visual/colors.njk → colors.njk} +52 -34
  42. package/src/brand/downloads.njk +16 -6
  43. package/src/brand/images.md +101 -0
  44. package/src/brand/index.njk +6 -15
  45. package/src/brand/{visual/logo.md → logo.md} +13 -6
  46. package/src/brand/{visual/typography.md → typography.md} +6 -1
  47. package/src/checklist.md +70 -0
  48. package/src/components/colour.njk +7 -7
  49. package/src/components/grid/index.njk +56 -14
  50. package/src/components/iconography.njk +15 -13
  51. package/src/components/publishing-the-system.md +2 -0
  52. package/src/content/big-ideas.md +1 -1
  53. package/src/content/boilerplate.md +27 -0
  54. package/src/content/index.njk +1 -1
  55. package/src/content/our-voice/1-big-picture.md +1 -1
  56. package/src/content/our-voice/2-whats-most-important.md +1 -1
  57. package/src/content/our-voice/3-write-like-we-speak.md +1 -1
  58. package/src/content/our-voice/4-write-to-be-skimmed.md +1 -1
  59. package/src/content/our-voice/5-active-sentences.md +1 -1
  60. package/src/content/our-voice/6-add-energy.md +1 -1
  61. package/src/content/our-voice/7-small-surprises.md +1 -1
  62. package/src/content/our-voice/seven-steps.md +1 -1
  63. package/src/content/our-voice/which-techniques-when.md +1 -1
  64. package/src/content/real-life-examples/01-who-we-are-boilerplate.md +10 -6
  65. package/src/index.njk +12 -6
  66. package/src/prototype/product.njk +24 -1
  67. package/src/prototype/range.njk +1 -1
  68. package/src/static/pdf/PN12558_Physical_branding_v23.pdf +0 -0
  69. package/src/static/svg/logo-simple.svg +1 -0
  70. package/src/static/zip/MP_logo.zip +0 -0
  71. package/dist/build/concentric.797defa2.svg +0 -1
  72. package/dist/build/dots-pattern.7a77e237.svg +0 -1
  73. package/src/brand/identity/boilerplate.md +0 -23
  74. package/src/brand/identity/index.md +0 -14
  75. package/src/brand/identity/legal-information.md +0 -9
  76. package/src/brand/identity/strategy.md +0 -12
  77. package/src/brand/visual/images.md +0 -101
  78. package/src/static/img/grid-captivate-2.jpg +0 -0
  79. package/src/static/img/grid-captivate-3.jpg +0 -0
  80. package/src/static/img/grid-captivate-4.jpg +0 -0
  81. package/src/static/img/grid-convince-1.jpg +0 -0
  82. package/src/static/img/grid-convince-2.jpg +0 -0
  83. package/src/static/img/grid-convince-3.jpg +0 -0
  84. package/src/static/img/grid-convince-4.jpg +0 -0
  85. package/src/static/img/grid-convince-6.jpg +0 -0
  86. package/src/static/img/grid-inform-applications-1.jpg +0 -0
  87. package/src/static/img/grid-inform-applications-2.jpg +0 -0
  88. package/src/static/img/grid-inform-applications-3.jpg +0 -0
  89. package/src/static/img/grid-inform-tech-1.jpg +0 -0
  90. package/src/static/img/grid-inform-tech-2.jpg +0 -0
  91. package/src/static/img/grid-inform-tech-4.jpg +0 -0
  92. package/src/static/img/grid-inspire-1.jpg +0 -0
  93. package/src/static/img/grid-inspire-2.jpg +0 -0
  94. package/src/static/img/grid-inspire-3.jpg +0 -0
  95. package/src/static/img/grid-inspire-4.jpg +0 -0
  96. package/src/static/img/grid-inspire-5.jpg +0 -0
  97. package/src/static/pdf/FINAL Tone of voice guidelines April 2021.pdf +0 -0
  98. package/src/static/pdf/Mastersizer 3000.pdf +58 -53069
  99. package/src/static/pdf/PN12316_Digital_brand_quickstart_v06.pdf +45 -19388
  100. package/src/static/ppt/MP Elevator pitch.pptx +0 -0
package/package.json CHANGED
@@ -1,15 +1,14 @@
1
1
  {
2
2
  "name": "mp-design-system",
3
- "version": "0.7.5",
3
+ "version": "0.8.4",
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 -d dist/build --public-url ../",
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 -d dist/build --public-url ../",
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": [
@@ -21,21 +20,21 @@
21
20
  "license": "ISC",
22
21
  "devDependencies": {
23
22
  "@11ty/eleventy": "^0.12.1",
24
- "@11ty/eleventy-plugin-syntaxhighlight": "^3.1.2",
23
+ "@11ty/eleventy-plugin-syntaxhighlight": "^3.2.2",
24
+ "@parcel/transformer-sass": "^2.4.0",
25
25
  "dotenv": "^8.6.0",
26
- "html-prettify": "^1.0.3",
27
- "markdown-it": "^12.1.0",
28
- "markdown-it-prism": "^2.1.8",
26
+ "html-prettify": "^1.0.6",
27
+ "markdown-it": "^12.3.2",
28
+ "markdown-it-prism": "^2.2.3",
29
29
  "npm-run-all": "^4.1.5",
30
- "parcel-bundler": "^1.12.5",
30
+ "parcel": "^2.4.0",
31
31
  "require-glob": "^3.2.0",
32
32
  "rimraf": "^3.0.2",
33
- "sass": "^1.35.2",
34
- "slugify": "^1.6.0"
33
+ "sass": "^1.49.10",
34
+ "slugify": "^1.6.5"
35
35
  },
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
  }
@@ -0,0 +1,27 @@
1
+ module.exports = {
2
+ title: 'Accordion',
3
+ component: {
4
+ name: 'accordion'
5
+ },
6
+ docs: true,
7
+ context: {
8
+ items: [
9
+ {
10
+ title: 'Do I need to prepare the workspace prior to installation?',
11
+ content: 'All instruments need a power source, and some have additional requirements such as a water supply or waste extraction. Where this the case, we will advise you prior to shipping your instrument.'
12
+ },
13
+ {
14
+ title: 'What specialist skills or knowledge are required?',
15
+ content: 'You don\'t need any specialist skills or knowledge to perform a Smart Install. Simply follow the instructions provided.'
16
+ },
17
+ {
18
+ title: 'Do I need specialist tools or equipment to Smart Install a new instrument?',
19
+ content: '<ul><li>For installation of a Mastersizer or Zetasizer system, you will need a computer with internet access in order to view the installation guides. For installation of an Epsilon 1 XRF instrument, you will also need a smartphone or tablet to connect with our support personnel via a secure, augmented reality (AR) platform.</li><li>Everything else you need to install your new instrument will be provided.</li></ul>'
20
+ },
21
+ {
22
+ title: 'What languages are available for the Smart Install guides?',
23
+ content: '<ul><li>Mastersizer: English, Chinese, Korean, French, German and Japanese</li><li>Zetasizer: English, Chinese, Korean, French, German and Japanese</li><li>Epsilon 1: English, French, German and Japanese, Spanish and Portuguese</li></ul>'
24
+ }
25
+ ]
26
+ }
27
+ }
@@ -0,0 +1,15 @@
1
+ ## Blank HTML template
2
+ ```
3
+ <dl class="c-accordion">
4
+ <div class="c-accordion__item">
5
+ <dt class="c-accordion__title">Title one</dt>
6
+ <dd class="c-accordion__content o-prose u-flow--prose">Content one</dd>
7
+ </div>
8
+ <div class="c-accordion__item">
9
+ <dt class="c-accordion__title">Title two</dt>
10
+ <dd class="c-accordion__content o-prose u-flow--prose">Content two</dd>
11
+ </div>
12
+ </dl>
13
+ ```
14
+ - To make an item display in its opened state when the page loads, add the class `c-accordion--item__open`
15
+ - The classnames `o-prose` and `u-flow--prose` on the content are optional
@@ -0,0 +1,10 @@
1
+ {% from "components/icon/macro.njk" import icon %}
2
+
3
+ <dl class="c-accordion">
4
+ {% for item in params.items %}
5
+ <div class="c-accordion__item {{ 'c-accordion__item--open' if item.state }}">
6
+ <dt class="c-accordion__title">{{ item.title }}</dt>
7
+ <dd class="c-accordion__content o-prose u-flow--prose">{{ item.content | safe }}</dd>
8
+ </div>
9
+ {% endfor %}
10
+ </dl>
@@ -0,0 +1,49 @@
1
+ .c-accordion {
2
+ &__item {
3
+ @include padding('xs',0);
4
+
5
+ & + & {
6
+ border-top: 1px solid color('petrol', 'step-2');
7
+ }
8
+ }
9
+
10
+ &__title {
11
+ @include step(1);
12
+ @include padding('xs',0);
13
+ cursor: pointer;
14
+ font-weight: weight('bold');
15
+ position: relative;
16
+
17
+ &:before {
18
+ background-image: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 1V17M1 9H17" stroke="%23252525" stroke-width="2" stroke-linecap="round"/></svg>');
19
+ background-position: center center;
20
+ background-repeat: no-repeat;
21
+ content: "";
22
+ display: block;
23
+ height: 1em;
24
+ left: 0;
25
+ position: absolute;
26
+ width: 1em;
27
+ }
28
+
29
+ .c-accordion__item--open &:before {
30
+ background-image: url('data:image/svg+xml;utf8,<svg width="10" height="2" viewBox="0 0 10 2" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1H9" stroke="%23252525" stroke-width="2" stroke-linecap="round"/></svg>');
31
+ transform: scaleX(1.75);
32
+ }
33
+ }
34
+
35
+ &__content {
36
+ margin-left: 0;
37
+ @include padding-bottom('xs');
38
+ display: none;
39
+
40
+ .c-accordion__item--open & {
41
+ display: block;
42
+ }
43
+ }
44
+
45
+ &__title,
46
+ &__content {
47
+ @include padding-left('l-xl');
48
+ }
49
+ }
@@ -0,0 +1,5 @@
1
+ {% from "components/component/component.njk" import c %}
2
+
3
+ {% macro alert(params) %}
4
+ {{ c({ name: 'accordion' }, params) }}
5
+ {% endmacro %}
@@ -24,7 +24,7 @@
24
24
  }
25
25
  }
26
26
 
27
- & > .c-icon {
27
+ & .c-icon {
28
28
  position: absolute;
29
29
  left: 1.25rem;
30
30
  top: 1.25rem;
@@ -38,6 +38,12 @@ module.exports = {
38
38
  context: {
39
39
  classes: 'c-campaign--orange'
40
40
  }
41
+ },
42
+ {
43
+ title: 'No image',
44
+ context: {
45
+ image: false
46
+ }
41
47
  }
42
48
  ],
43
49
  props: [
@@ -11,9 +11,11 @@
11
11
 
12
12
  <aside class="{{ classNames }}">
13
13
  <a href="" class="c-campaign__link">{{ params.title }}</a>
14
- <figure class="c-campaign__image">
15
- <img src="{{ params.image.src }}" alt="{{ params.image.alt }}" />
16
- </figure>
14
+ {% if params.image %}
15
+ <figure class="c-campaign__image">
16
+ <img src="{{ params.image.src }}" alt="{{ params.image.alt }}" />
17
+ </figure>
18
+ {% endif %}
17
19
  <div class="c-campaign__content u-flow">
18
20
  <h2 class="c-h c-h--step-2">{{ params.title }}</h2>
19
21
  <div class="mp o-prose u-flow--prose">
@@ -48,7 +48,7 @@ module.exports = {
48
48
  },
49
49
  cta: {
50
50
  label: 'Download brochure',
51
- link: '/static/pdf/Mastersizer 3000.pdf',
51
+ link: 'https://www.malvernpanalytical.com/en/assets/Mastersizer%203000%20Brochure%20%28EN%29_tcm50-58994.pdf',
52
52
  attrs: 'download',
53
53
  icon: 'file'
54
54
  }
@@ -102,9 +102,9 @@ module.exports = {
102
102
  // title: 'We\'re big on small.',
103
103
  // subtitle: null,
104
104
  // content: '<p>We make scientific instruments and services that make the invisible visible, and the impossible possible.</p>',
105
- // images: [
106
- // { src: '/static/img/homepage_1_back.webp' },
107
- // ],
105
+ // videoplaceholder: {
106
+ // src: 'https://p3.aprimocdn.net/malvernpanalytical/bf169dc6-9edb-4609-9ba8-add301206d1e/bridge-bg_Original%20file.webp?quality=60'
107
+ // },
108
108
  // shortvideo: [
109
109
  // { src: '' },
110
110
  // { type: 'video/mp4' },
@@ -13,6 +13,10 @@
13
13
  {%- set classes = classes + ' c-hero--homepage-light' -%}
14
14
  {% endif %}
15
15
 
16
+ {% if params.shortvideo %}
17
+ {%- set classes = classes + ' c-hero--homepage-video' -%}
18
+ {% endif %}
19
+
16
20
  <figure class="{{ classes }}">
17
21
  <div class="u-wrap">
18
22
  <div class="c-hero__content">
@@ -49,9 +53,11 @@
49
53
  {% endif %}
50
54
 
51
55
  {% if params.shortvideo %}
52
- <video id="videoBackground" class="c-hero__video-bg" autoplay loop>
53
- <source src="" type="video/mp4">
54
- </video>
56
+ <div class="c-hero__video-bg" style="background-image:url({{ params.videoplaceholder.src }});">
57
+ <video id="videoBackground" autoplay loop>
58
+ <source src="https://p3.aprimocdn.net/malvernpanalytical/304f04aa-ae04-4bed-9946-ae3101152327/PN12593_Brand_Movie_Malvern_Panalytical_MIX_0dBfs_website_header_Original%20file.mp4" type="video/mp4">
59
+ </video>
60
+ </div>
55
61
  {% endif %}
56
62
 
57
63
  {% if params.homepage %}
@@ -75,7 +81,7 @@
75
81
  </div>
76
82
  <div class="c-lightbox__slide active">
77
83
  <video class="c-lightbox__video" controls controlslist="nodownload">
78
- <source src="" type="video/mp4">
84
+ <source src="https://p3.aprimocdn.net/malvernpanalytical/304f04aa-ae04-4bed-9946-ae3101152327/PN12593_Brand_Movie_Malvern_Panalytical_MIX_0dBfs_website_header_Original%20file.mp4" type="video/mp4">
79
85
  </video>
80
86
  </div>
81
87
  </div>
@@ -141,7 +141,6 @@
141
141
  z-index: -1;
142
142
  transition: opacity 3s ease;
143
143
  background-position: 60% 40%;
144
- -webkit-mask-image: radial-gradient(circle farthest-side at top right, black 80%, transparent 98%);
145
144
 
146
145
  &:after {
147
146
  display: none;
@@ -157,21 +156,47 @@
157
156
  @extend .c-hero__image-bg;
158
157
  z-index: 1;
159
158
  }
159
+ }
160
+ }
161
+
162
+ &--homepage-video {
163
+ position: relative;
164
+
165
+ &::after {
166
+ position: absolute;
167
+ content: '';
168
+ top: 0;
169
+ left: 0;
170
+ background: rgba(black, 0.33);
171
+ width: 100%;
172
+ height: 100%;
173
+
174
+ @media (min-width: 38em) {
175
+ background: radial-gradient(circle farthest-side at top right, rgba(46, 50, 51, 0) 0%, rgba(46, 50, 51, 0) 15.16%, rgba(46, 50, 51, 0.2) 27.66%, rgba(41, 54, 56, 0.55) 39.61%, rgba(35, 66, 71, 0.8) 49.78%, #005461 59.87%, #003039 100%);
176
+ }
177
+ }
160
178
 
161
- &__video-bg {
179
+ .c-hero {
180
+ &__video-bg {
162
181
  width: 100%;
163
182
  height: auto;
164
183
  margin-bottom: -6px;
184
+ background-size: cover;
165
185
 
166
186
  @media (min-width: 38em) {
167
187
  position: absolute;
168
- top: 0;
188
+ top: 50%;
169
189
  right: 0;
170
190
  left: 40%;
171
191
  max-width: 60%;
172
192
  height: 100%;
193
+ transform: translateY(-50%);
194
+ }
195
+
196
+ video {
197
+ width: 100%;
198
+ height: 100%;
173
199
  object-fit: cover;
174
- -webkit-mask-image: radial-gradient(circle farthest-side at top right, black 80%, transparent 98%);
175
200
  }
176
201
  }
177
202
 
@@ -181,6 +206,7 @@
181
206
  right: 0;
182
207
  bottom: calc(56.25% / 2 - 25px);
183
208
  left: 0;
209
+ background: rgba(black, 0.2);
184
210
  margin: 0 auto;
185
211
 
186
212
  @media (min-width: 38em) {
@@ -7,4 +7,28 @@
7
7
  .u-wrap--fields {
8
8
  @include padding-right(0)
9
9
  }
10
+
11
+ @media only screen and (min-width: 35em) and (max-width: 54.95em) {
12
+ column-width: 18em;
13
+ display: grid;
14
+ grid-template-columns: 1fr 1fr;
15
+ grid-gap: 0 var(--gutter);
16
+ grid-template-rows: auto max-content auto;
17
+
18
+ h2 {
19
+ grid-column: 1/3;
20
+ }
21
+
22
+ li {
23
+ break-inside: avoid;
24
+ }
25
+
26
+ .u-grey-step-1 {
27
+ grid-row: 2/4;
28
+ }
29
+
30
+ .c-button {
31
+ align-self: start;
32
+ }
33
+ }
10
34
  }
@@ -1,17 +1,25 @@
1
+ {% from "components/component/component.njk" import libraryLink %}
2
+
1
3
  <footer class="mp c-footer" role="contentinfo">
2
4
  <nav class="c-footer__primary u-wrap" aria-label="Footer">
3
- <div class="mp o-prose u-flow--prose u-step--1">
5
+ <div class="o-grid o-grid--8/3-switch o-grid--push">
6
+ <ol class="u-flow--xs u-margin-top-2xs">
7
+ <li><h3>Quick links</h3></li>
8
+ <li><a href="/brand/downloads">Popular downloads</a></li>
9
+ <li><a href="/checklist">Franklin checklist</a></li>
10
+ </ol>
11
+ <div class="mp o-prose u-flow--prose u-step--1">
4
12
 
5
13
  {% markdown %}
6
14
  ### Get in touch
7
15
 
8
- This system is maintained by the Design System Team.
9
-
10
- Any feedback, questions or ideas are welcome, so please share your thoughts.
16
+ This system is maintained by the Design System Team. Any feedback, questions or ideas are welcome, so please share your thoughts.
11
17
 
12
- - For all enquiries please contact [will.wallace@malvernpanalytical.com](mailto:will.wallace@malvernpanalytical.com).
18
+ For all enquiries please contact Will Wallace at Malvern Panalytical, via email or Teams.
13
19
  {% endmarkdown %}
14
20
 
21
+ </div>
22
+ </div>
15
23
  </nav>
16
24
  <div class="c-footer__secondary">
17
25
  <div class="u-wrap">
@@ -2,27 +2,21 @@
2
2
  {%- from "components/icon/macro.njk" import icon -%}
3
3
 
4
4
  <div class="u-flow">
5
- <h3>Getting started</h3>
5
+ <h3>Brand & visual identity</h3>
6
6
  <ul>
7
7
  {{ libraryList('Overview', '/brand/', page.url) }}
8
- {{ libraryList('Downloads', '/brand/downloads', page.url) }}
8
+ {{ libraryList('Downloads', '/brand/downloads/', page.url) }}
9
+ {{ libraryList('Logo', '/brand/logo/', page.url) }}
10
+ {{ libraryList('Colors', '/brand/colors/', page.url) }}
11
+ {{ libraryList('Typography', '/brand/typography/', page.url) }}
12
+ {{ libraryList('Images', '/brand/images/', page.url) }}
9
13
  </ul>
10
- <h3>Brand identity</h3>
14
+ {# <h3>Brand identity</h3>
11
15
  <ul>
12
16
  {{ libraryList('Our brand identity', '/brand/identity/', page.url) }}
13
17
  {{ libraryList('Brand strategy', '/brand/identity/strategy/', page.url) }}
14
- {{ libraryList('Boilerplate', '/brand/identity/boilerplate/', page.url) }}
15
- {{ libraryList('Legal information', '/brand/identity/legal-information/', page.url) }}
16
- </ul>
18
+ </ul> #}
17
19
  </div>
18
-
19
- <div class="u-flow">
20
- <h3>Visual identity</h3>
21
- <ul>
22
- {{ libraryList('The logo', '/brand/visual/logo', page.url) }}
23
- {{ libraryList('Brand colors', '/brand/visual/colors/', page.url) }}
24
- {{ libraryList('Typography', '/brand/visual/typography/', page.url) }}
25
- {{ libraryList('Images', '/brand/visual/images/', page.url) }}
26
20
  {# <li>
27
21
  <a>Typography</a>
28
22
  <ul>
@@ -56,8 +50,6 @@
56
50
  <li>
57
51
  <li><a>Sector messaging</a><li>
58
52
  <li><a>Brand identity overviews</a><li> #}
59
- </ul>
60
- </div>
61
53
 
62
54
  {# <div class="u-flow">
63
55
  <h3><a href="/brand">Applications</a></h3>
@@ -14,7 +14,7 @@
14
14
  <div class="u-flow">
15
15
  <h3>Foundations</h3>
16
16
  <ul class="c-library-accordion">
17
- {{ libraryList('Colour', '/components/colour/', page.url) }}
17
+ {{ libraryList('Color', '/components/colour/', page.url) }}
18
18
  {{ libraryList('Space', '/components/space/', page.url) }}
19
19
  <li>
20
20
  {{ libraryLink('Grid', '/components/grid/', page.url) }}
@@ -2,10 +2,11 @@
2
2
  {%- from "components/icon/macro.njk" import icon -%}
3
3
 
4
4
  <div class="u-flow">
5
- <h3>Getting started</h3>
5
+ <h3>Tone of voice</h3>
6
6
  <ul>
7
7
  {{ libraryList('Our words matter', '/content/', page.url) }}
8
8
  {{ libraryList('Elevator pitch', '/content/elevator-pitch/', page.url) }}
9
+ {{ libraryList('Boilerplate', '/content/boilerplate/', page.url) }}
9
10
  {{ libraryList('Big ideas for a better world', '/content/big-ideas/', page.url) }}
10
11
  </ul>
11
12
  </div>
package/src/_redirects ADDED
@@ -0,0 +1,8 @@
1
+ /brand/identity/ /brand 301
2
+ /brand/identity/boilerplate /content/boilerplate 301
3
+ /brand/identity/strategy /brand 301
4
+ /brand/visual /brand 301
5
+ /brand/visual/colors /brand/colors 301
6
+ /brand/visual/images /brand/images 301
7
+ /brand/visual/logo /brand/logo 301
8
+ /brand/visual/typography /brand/typography 301
@@ -1,3 +1,4 @@
1
+ import Accordion from './imports/accordion';
1
2
  import Carousel from './imports/carousel';
2
3
  import ClearForm from './imports/clear-form';
3
4
  import Comparison from './imports/comparison';
@@ -17,6 +18,7 @@ import Tabs from './imports/tabs';
17
18
  HTMLCollection.prototype.forEach = Array.prototype.forEach;
18
19
  }
19
20
 
21
+ Accordion();
20
22
  Carousel();
21
23
  ClearForm();
22
24
  Comparison();
@@ -0,0 +1,19 @@
1
+ function Accordion() {
2
+ const accordions = Array.from(document.querySelectorAll('.c-accordion__title'));
3
+ accordions.forEach(setupAccordions);
4
+ }
5
+
6
+ function setupAccordions(title) {
7
+ title.addEventListener('click', titleClick())
8
+ }
9
+
10
+ function titleClick() {
11
+ return (event) => {
12
+ console.log(event)
13
+ var item = event.currentTarget.parentElement;
14
+ console.log(item)
15
+ item.classList.toggle('c-accordion__item--open');
16
+ }
17
+ }
18
+
19
+ export default Accordion;
@@ -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
  });
@@ -27,6 +27,7 @@
27
27
  @import '~comp/slat/slat.scss';
28
28
  @import '~comp/hero/hero.scss';
29
29
  @import '~comp/quote/quote.scss';
30
+ @import '~comp/accordion/accordion.scss';
30
31
 
31
32
  @import './headings.scss';
32
33
  @import './gallery.scss';
@@ -58,5 +58,6 @@
58
58
 
59
59
  &__video {
60
60
  width: 100%;
61
+ max-height: 80vh;
61
62
  }
62
63
  }
@@ -131,12 +131,12 @@
131
131
  &__logo {
132
132
  display: flex;
133
133
  align-items: center;
134
- // margin-left: -110px;
134
+ justify-content: center;
135
135
  max-width: 15%;
136
136
  min-width: 100px;
137
137
 
138
- @media only screen and (min-width:600px) {
139
- // margin-left: 0;
138
+ @media only screen and (min-width:650px) {
139
+ justify-content: flex-start;
140
140
  }
141
141
 
142
142
  &-name {
@@ -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: center;
195
+ scroll-snap-align: start;
196
+ scroll-snap-stop: always;
195
197
  }
196
198
 
197
199
  & > * + * {
@@ -1,3 +1,7 @@
1
+ html {
2
+ font-size:18px;
3
+ }
4
+
1
5
  html body {
2
6
 
3
7
  @import './typography.scss';