mp-design-system 0.8.6 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/js/app.js +1 -1
- package/dist/build/js/app.js.map +1 -1
- 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/campaign/campaign.scss +16 -8
- package/src/_includes/components/hero/hero.config.js +24 -24
- package/src/_includes/components/hero/hero.njk +3 -1
- package/src/_includes/components/hero/hero.scss +4 -4
- package/src/_includes/includes/system-header.njk +1 -1
- package/src/_includes/layout.njk +1 -1
- package/src/_includes/library-navigation/brand-nav.njk +1 -0
- package/src/_includes/system-home-page.njk +2 -1
- package/src/assets/js/imports/hero-video.js +25 -6
- package/src/assets/scss/foundations/colour.scss +3 -3
- package/src/assets/scss/library.scss +5 -0
- package/src/assets/scss/objects/prose.scss +2 -1
- package/src/assets/scss/tools/cutoff.scss +56 -0
- package/src/assets/scss/tools/index.scss +1 -0
- package/src/brand/basics.md +35 -0
- package/src/brand/colors.njk +3 -3
- package/src/brand/index.njk +74 -7
- package/src/brand/logo.md +1 -1
- package/src/brand/typography.md +9 -12
- package/src/checklist.md +4 -3
- package/src/components/colour.njk +1 -1
- package/src/components/flow.njk +9 -0
- package/src/components/utilities.md +39 -13
- package/src/index.njk +33 -27
- package/src/static/img/favicon.svg +1 -0
- package/src/static/svg/crop-diagram-2.svg +1 -1
- package/src/static/svg/imaging-matrix.svg +1 -1
package/package.json
CHANGED
@@ -1,14 +1,19 @@
|
|
1
|
+
$angle: 225deg;
|
2
|
+
|
1
3
|
.c-campaign {
|
4
|
+
@include cutoff;
|
5
|
+
|
2
6
|
position: relative;
|
3
|
-
background: color('grey');
|
4
7
|
max-width: calc(#{$wrapper}) !important;
|
5
8
|
padding: 0 !important;
|
6
9
|
|
7
10
|
&__link {
|
8
11
|
@extend .u-fill, .u-fill--link;
|
9
12
|
}
|
10
|
-
|
13
|
+
|
11
14
|
&__content {
|
15
|
+
background: color('grey');
|
16
|
+
background: linear-gradient($angle, color('grey', 'step--2'), color('grey'));
|
12
17
|
color: color('white');
|
13
18
|
width: 100%;
|
14
19
|
@include padding('m-l');
|
@@ -33,9 +38,10 @@
|
|
33
38
|
}
|
34
39
|
|
35
40
|
&--petrol {
|
36
|
-
|
37
|
-
|
41
|
+
|
38
42
|
.c-campaign__content {
|
43
|
+
background: color('petrol', 'step-2');
|
44
|
+
background: linear-gradient($angle, color('petrol', 'step-2'), color('petrol', 'step-3'));
|
39
45
|
color: color('grey');
|
40
46
|
}
|
41
47
|
|
@@ -45,9 +51,10 @@
|
|
45
51
|
}
|
46
52
|
|
47
53
|
&--blue {
|
48
|
-
|
49
|
-
|
54
|
+
|
50
55
|
.c-campaign__content {
|
56
|
+
background: color('blue', 'step-3');
|
57
|
+
background: linear-gradient($angle, color('blue', 'step-2'), color('blue', 'step-3'));
|
51
58
|
color: color('grey');
|
52
59
|
}
|
53
60
|
|
@@ -57,9 +64,10 @@
|
|
57
64
|
}
|
58
65
|
|
59
66
|
&--orange {
|
60
|
-
|
61
|
-
|
67
|
+
|
62
68
|
.c-campaign__content {
|
69
|
+
background: color('utility-orange', 'step-2');
|
70
|
+
background: linear-gradient($angle, color('utility-orange', 'step-2'), color('utility-orange', 'step-3'));
|
63
71
|
color: color('grey', 'step--1');
|
64
72
|
}
|
65
73
|
|
@@ -96,30 +96,30 @@ module.exports = {
|
|
96
96
|
homepage: 'light'
|
97
97
|
}
|
98
98
|
},
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
99
|
+
{
|
100
|
+
title: 'Homepage with video',
|
101
|
+
context: {
|
102
|
+
title: 'We\'re big on small.',
|
103
|
+
subtitle: null,
|
104
|
+
content: '<p>We make scientific instruments and services that make the invisible visible, and the impossible possible.</p>',
|
105
|
+
videoplaceholder: {
|
106
|
+
src: 'https://p3.aprimocdn.net/malvernpanalytical/bf169dc6-9edb-4609-9ba8-add301206d1e/bridge-bg_Original%20file.webp?quality=60'
|
107
|
+
},
|
108
|
+
shortvideo: [
|
109
|
+
{ src: '' },
|
110
|
+
{ type: 'video/mp4' },
|
111
|
+
],
|
112
|
+
longvideo: [
|
113
|
+
{ src: '' },
|
114
|
+
{ type: 'video/mp4' },
|
115
|
+
],
|
116
|
+
cta: {
|
117
|
+
label: 'About Malvern Panalytical',
|
118
|
+
link: ''
|
119
|
+
},
|
120
|
+
homepage: 'dark'
|
121
|
+
}
|
122
|
+
}
|
123
123
|
],
|
124
124
|
props: [
|
125
125
|
{
|
@@ -75,6 +75,7 @@
|
|
75
75
|
{% endif %}
|
76
76
|
</figure>
|
77
77
|
|
78
|
+
{% if params.longvideo %}
|
78
79
|
<div id="lightboxVideo" class="c-lightbox u-hidden">
|
79
80
|
<div class="c-lightbox__close">
|
80
81
|
{{ icon({ id: 'cross' }) }}
|
@@ -84,4 +85,5 @@
|
|
84
85
|
<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">
|
85
86
|
</video>
|
86
87
|
</div>
|
87
|
-
</div>
|
88
|
+
</div>
|
89
|
+
{% endif %}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<ul class="u-row">
|
14
14
|
<li><a href="/brand" class="{% if '/brand' in page.url %}c-library-page-active{% endif %}">Brand & visual identity</a></li>
|
15
15
|
<li><a href="/content" class="{% if '/content' in page.url %}c-library-page-active{% endif %}">Tone of voice</a></li>
|
16
|
-
<li><a href="/components" class="{% if '/components' in page.url or '/patterns' in page.url %}c-library-page-active{% endif %}">
|
16
|
+
<li><a href="/components" class="{% if '/components' in page.url or '/patterns' in page.url %}c-library-page-active{% endif %}">Component library</a></li>
|
17
17
|
<li class="u-petrol-step-2">V.{{ config.dsVersion }}</li>
|
18
18
|
</ul>
|
19
19
|
</nav>
|
package/src/_includes/layout.njk
CHANGED
@@ -39,7 +39,7 @@
|
|
39
39
|
document.documentElement.style.setProperty('--headerHeight', headerHeight)
|
40
40
|
}, 250);
|
41
41
|
</script>
|
42
|
-
<link rel="icon" type="image/png" sizes="32x32" href="/static/img/favicon
|
42
|
+
<link rel="icon" type="image/png" sizes="32x32" href="/static/img/favicon.svg">
|
43
43
|
<link rel="stylesheet" href="/build/scss/main.css" />
|
44
44
|
<script>window.MSInputMethodContext && document.documentMode && document.write('<script src="https://cdn.jsdelivr.net/gh/nuxodin/ie11CustomProperties@4.1.0/ie11CustomProperties.min.js"><\/script>');</script>
|
45
45
|
<script src="https://polyfill.io/v3/polyfill.min.js?features=Array.prototype.forEach%2CDOMTokenList.prototype.forEach%2CNodeList.prototype.forEach%2CArray.from"></script>
|
@@ -5,6 +5,7 @@
|
|
5
5
|
<h3>Brand & visual identity</h3>
|
6
6
|
<ul>
|
7
7
|
{{ libraryList('Overview', '/brand/', page.url) }}
|
8
|
+
{{ libraryList('The basics', '/brand/basics/', page.url) }}
|
8
9
|
{{ libraryList('Downloads', '/brand/downloads/', page.url) }}
|
9
10
|
{{ libraryList('Logo', '/brand/logo/', page.url) }}
|
10
11
|
{{ libraryList('Colors', '/brand/colors/', page.url) }}
|
@@ -8,25 +8,44 @@ function HeroVideo() {
|
|
8
8
|
}
|
9
9
|
|
10
10
|
const lightboxTrigger = document.getElementById('playVideo');
|
11
|
-
const
|
11
|
+
const lightboxContainer = document.getElementById('lightboxVideo');
|
12
|
+
const lightboxVideo = lightboxContainer.querySelector('.c-lightbox__video');
|
12
13
|
|
13
14
|
lightboxTrigger.addEventListener('click', e => {
|
14
|
-
videoBackground.
|
15
|
-
|
15
|
+
videoBackground.pause();
|
16
|
+
lightboxContainer.classList.remove('u-hidden');
|
17
|
+
checkVideos();
|
16
18
|
});
|
17
19
|
|
18
|
-
|
20
|
+
lightboxContainer.addEventListener('click', (e) => {
|
19
21
|
if (!e.target.classList.contains('c-lightbox__video')) {
|
20
22
|
videoBackground.setAttribute('autoplay','');
|
21
|
-
|
23
|
+
lightboxContainer.classList.add('u-hidden');
|
24
|
+
checkVideos();
|
22
25
|
}
|
23
26
|
});
|
24
27
|
window.addEventListener('keydown', function(e) {
|
25
28
|
if (e.key == "Escape") {
|
26
29
|
videoBackground.setAttribute('autoplay','');
|
27
|
-
|
30
|
+
lightboxContainer.classList.add('u-hidden');
|
31
|
+
checkVideos();
|
28
32
|
}
|
29
33
|
});
|
34
|
+
|
35
|
+
function checkVideos() {
|
36
|
+
if(lightboxContainer.classList.contains('u-hidden')) {
|
37
|
+
if (videoBackground.paused) {
|
38
|
+
videoBackground.play();
|
39
|
+
}
|
40
|
+
if (!lightboxVideo.paused) {
|
41
|
+
lightboxVideo.pause();
|
42
|
+
}
|
43
|
+
} else {
|
44
|
+
if (!videoBackground.paused) {
|
45
|
+
videoBackground.pause();
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
30
49
|
}
|
31
50
|
});
|
32
51
|
}
|
@@ -71,10 +71,10 @@ $colours: (
|
|
71
71
|
|
72
72
|
'grey': (
|
73
73
|
-50: mix(black, #CCC, 50%),
|
74
|
-
'step--2': mp-mix($f-mp-grey, black,
|
75
|
-
'step--1': mp-mix($f-mp-grey, black,
|
74
|
+
'step--2': mp-mix($f-mp-grey, black, 80%),
|
75
|
+
'step--1': mp-mix($f-mp-grey, black, 45%),
|
76
76
|
'step-0': $f-mp-grey,
|
77
|
-
'step-1': mp-mix($f-mp-grey, white,
|
77
|
+
'step-1': mp-mix($f-mp-grey, white, 48%),
|
78
78
|
'step-2': mp-mix($f-mp-grey, white, 76%),
|
79
79
|
'step-3': mp-mix($f-mp-grey, white, 92%)
|
80
80
|
),
|
@@ -0,0 +1,56 @@
|
|
1
|
+
// Cutoff corner effect
|
2
|
+
|
3
|
+
$g : var(--gutter);
|
4
|
+
$og : calc(100% - var(--gutter));
|
5
|
+
|
6
|
+
@mixin cutoff($corner:"bottom-right") {
|
7
|
+
@if $corner == "top-left" {
|
8
|
+
clip-path: polygon(
|
9
|
+
$g 0,
|
10
|
+
100% 0,
|
11
|
+
100% 100%,
|
12
|
+
0 100%,
|
13
|
+
0 $g
|
14
|
+
);
|
15
|
+
} @else if $corner == "top-right" {
|
16
|
+
clip-path: polygon(
|
17
|
+
0 0,
|
18
|
+
$og 0,
|
19
|
+
100% $g,
|
20
|
+
100% 100%,
|
21
|
+
0 100%
|
22
|
+
);
|
23
|
+
} @else if $corner == "bottom-left" {
|
24
|
+
clip-path: polygon(
|
25
|
+
0 0,
|
26
|
+
100% 0,
|
27
|
+
100% 100%,
|
28
|
+
$g 100%,
|
29
|
+
0 $og
|
30
|
+
);
|
31
|
+
} @else {
|
32
|
+
clip-path: polygon(
|
33
|
+
0 0,
|
34
|
+
100% 0,
|
35
|
+
100% $og,
|
36
|
+
$og 100%,
|
37
|
+
0 100%
|
38
|
+
);
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
.u-cutoff {
|
43
|
+
@include cutoff
|
44
|
+
}
|
45
|
+
|
46
|
+
.u-cutoff--top-right {
|
47
|
+
@include cutoff("top-right")
|
48
|
+
}
|
49
|
+
|
50
|
+
.u-cutoff--top-left {
|
51
|
+
@include cutoff("top-left")
|
52
|
+
}
|
53
|
+
|
54
|
+
.u-cutoff--bottom-left {
|
55
|
+
@include cutoff("bottom-left")
|
56
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
title: The basics of our digital brand
|
3
|
+
layout: content-page
|
4
|
+
sidebar: brand
|
5
|
+
tags: brand
|
6
|
+
version: 0.0.0
|
7
|
+
status: 'Development'
|
8
|
+
---
|
9
|
+
|
10
|
+
## Text
|
11
|
+
- Our font is [Inter](/brand/typography).
|
12
|
+
- Text is colored MP Charcoal (#333333).
|
13
|
+
- 18px font size.
|
14
|
+
- We write in American English using [sentence case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
|
15
|
+
|
16
|
+
## Buttons
|
17
|
+
{% button 'Primary button' %}
|
18
|
+
{% button 'Secondary button' '' 'c-button--blue' %}
|
19
|
+
{% button 'Tertiary button' '' 'c-button--outline-green' %}
|
20
|
+
- Primary buttons are always colored MP Green (#13AA13). Please use this color sparingly, for the most important elements on the page.
|
21
|
+
- Secondary buttons may be colored MP Blue (#00A2C2), or outlined.
|
22
|
+
- The font is Inter Bold, 18px.
|
23
|
+
- 6px border-radius.
|
24
|
+
- Padding is 0.777em (horizontal) and 1.5em (vertical).
|
25
|
+
|
26
|
+
## Layout
|
27
|
+
- Use a plain white background, with a splash of color to emphasise important elements.
|
28
|
+
- Reduce visual clutter by using space to separate items, rather than lines or boxes. Don't be afraid of white space!
|
29
|
+
- Text is most comfortable to read when it's between 50-75 characters wide. This translates to 30-50 em.
|
30
|
+
|
31
|
+
## More details
|
32
|
+
- [Fonts and typography](../typography)
|
33
|
+
- [Colors](../colors)
|
34
|
+
- [Buttons](/components/button)
|
35
|
+
- [Tone of voice](/content)
|
package/src/brand/colors.njk
CHANGED
@@ -21,7 +21,7 @@ Step 0 is the 'default' shade for each color."
|
|
21
21
|
<div class="u-wrap--content">
|
22
22
|
|
23
23
|
{{ alert({
|
24
|
-
content: "<p>
|
24
|
+
content: "<p>If you're building a website which consumes the Franklin CSS via CDN, see the <a href='/components/colour'>Components ➝ colors</a> page instead.</p>",
|
25
25
|
type: "info"
|
26
26
|
})}}
|
27
27
|
|
@@ -139,7 +139,7 @@ Step 0 is the 'default' shade for each color."
|
|
139
139
|
|
140
140
|
{
|
141
141
|
name: "-1",
|
142
|
-
hex: '
|
142
|
+
hex: '1c1c1c',
|
143
143
|
cmyk: '00.00.00.95'
|
144
144
|
},
|
145
145
|
{
|
@@ -149,7 +149,7 @@ Step 0 is the 'default' shade for each color."
|
|
149
149
|
},
|
150
150
|
{
|
151
151
|
name: 1,
|
152
|
-
hex: '
|
152
|
+
hex: '959595',
|
153
153
|
cmyk: '00.00.00.70'
|
154
154
|
},
|
155
155
|
{
|
package/src/brand/index.njk
CHANGED
@@ -29,19 +29,19 @@ To strengthen Malvern Panalytical’s market position, we must ensure consistent
|
|
29
29
|
border: true
|
30
30
|
},
|
31
31
|
header: {
|
32
|
-
title: '
|
32
|
+
title: 'Quick start'
|
33
33
|
},
|
34
34
|
body: {
|
35
|
-
content: '<p>The
|
35
|
+
content: '<p>The basics of our brand.</p>'
|
36
36
|
},
|
37
37
|
footer: {
|
38
38
|
cta: {
|
39
|
-
link: '/brand/
|
39
|
+
link: '/brand/basics',
|
40
40
|
label: 'Read more'
|
41
41
|
}
|
42
42
|
}
|
43
43
|
}) }}
|
44
|
-
|
44
|
+
|
45
45
|
{{ card({
|
46
46
|
theme: {
|
47
47
|
layout: 'single',
|
@@ -65,13 +65,80 @@ To strengthen Malvern Panalytical’s market position, we must ensure consistent
|
|
65
65
|
{{ card({
|
66
66
|
theme: {
|
67
67
|
layout: 'single',
|
68
|
-
size: 'medium'
|
68
|
+
size: 'medium',
|
69
|
+
border: true
|
69
70
|
},
|
70
71
|
header: {
|
71
|
-
title: '
|
72
|
+
title: 'Logo'
|
72
73
|
},
|
73
74
|
body: {
|
74
|
-
content: '<p>
|
75
|
+
content: '<p>How to make sure our logo looks its best in your designs.</p>'
|
76
|
+
},
|
77
|
+
footer: {
|
78
|
+
cta: {
|
79
|
+
link: '/brand/logo',
|
80
|
+
label: 'Read more'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}) }}
|
84
|
+
|
85
|
+
{{ card({
|
86
|
+
theme: {
|
87
|
+
layout: 'single',
|
88
|
+
size: 'medium',
|
89
|
+
border: true
|
90
|
+
},
|
91
|
+
header: {
|
92
|
+
title: 'Colors'
|
93
|
+
},
|
94
|
+
body: {
|
95
|
+
content: '<p>Our complete color palette for digital and physical media.</p>'
|
96
|
+
},
|
97
|
+
footer: {
|
98
|
+
cta: {
|
99
|
+
link: '/brand/colors',
|
100
|
+
label: 'Read more'
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}) }}
|
104
|
+
|
105
|
+
{{ card({
|
106
|
+
theme: {
|
107
|
+
layout: 'single',
|
108
|
+
size: 'medium',
|
109
|
+
border: true
|
110
|
+
},
|
111
|
+
header: {
|
112
|
+
title: 'Typography'
|
113
|
+
},
|
114
|
+
body: {
|
115
|
+
content: '<p>Information on font sizes, spacing, and colors.</p>'
|
116
|
+
},
|
117
|
+
footer: {
|
118
|
+
cta: {
|
119
|
+
link: '/brand/typography',
|
120
|
+
label: 'Read more'
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}) }}
|
124
|
+
|
125
|
+
{{ card({
|
126
|
+
theme: {
|
127
|
+
layout: 'single',
|
128
|
+
size: 'medium',
|
129
|
+
border: true
|
130
|
+
},
|
131
|
+
header: {
|
132
|
+
title: 'Images'
|
133
|
+
},
|
134
|
+
body: {
|
135
|
+
content: '<p>Guidelines on choosing images that represent our brand.</p>'
|
136
|
+
},
|
137
|
+
footer: {
|
138
|
+
cta: {
|
139
|
+
link: '/brand/images',
|
140
|
+
label: 'Read more'
|
141
|
+
}
|
75
142
|
}
|
76
143
|
}) }}
|
77
144
|
</div>
|
package/src/brand/logo.md
CHANGED
@@ -7,7 +7,7 @@ version: 1.0.0
|
|
7
7
|
status: 'Ready'
|
8
8
|
---
|
9
9
|
|
10
|
-
|
10
|
+
{% button 'Download the logo' '/static/zip/MP_logo.zip' %}
|
11
11
|
|
12
12
|
The Malvern Panalytical logo is available in three formats:
|
13
13
|
|
package/src/brand/typography.md
CHANGED
@@ -17,7 +17,7 @@ Our brand font is [Inter](https://rsms.me/inter). This typeface has been selecte
|
|
17
17
|
|
18
18
|
Find more information about Inter at [https://rsms.me/inter](https://rsms.me/inter)
|
19
19
|
|
20
|
-
|
20
|
+
{% button 'Download Inter font' 'https://github.com/rsms/inter/releases/download/v3.19/Inter-3.19.zip' %}
|
21
21
|
|
22
22
|
<br>
|
23
23
|
|
@@ -31,16 +31,13 @@ Find more information about Inter at [https://rsms.me/inter](https://rsms.me/int
|
|
31
31
|
ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789
|
32
32
|
abcdefghijklmnopqrstuvwxyz @ $ € £ ¥ & © ® ™ μ ± °
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<li>Maximum: 9pt with 12pt leading</li>
|
42
|
-
</li>
|
43
|
-
</ul>
|
34
|
+
- Inter Light for printed materials, Inter Regular for digital (e.g. Powerpoint)
|
35
|
+
- Color: 100% black for printed materials, [MP21Charcoal](/brand/visual/colors) for digital
|
36
|
+
- <span class="c-library__semi">Inter Semi Bold</span> for emphasis
|
37
|
+
- Recommended font sizes for body text:
|
38
|
+
- Minimum: 7pt with 9.5pt leading
|
39
|
+
- Standard: 8pt with 11pt leading
|
40
|
+
- Maximum: 9pt with 12pt leading
|
44
41
|
|
45
42
|
<div class="u-bg-petrol u-white u-pad-m">
|
46
43
|
Inter Regular<br>
|
@@ -74,7 +71,7 @@ abcdefghijklmnopqrstuvwxyz @ $ € £ ¥ & © ® ™ μ ± °
|
|
74
71
|
- H4 will be approximately the same size as bodytext, but in bold weight.
|
75
72
|
- The size of the Headings define the space around them: If the cap height is x, then the space underneath should be x as well. The height over the heading is 2x.
|
76
73
|
|
77
|
-

|
78
75
|
|
79
76
|
---
|
80
77
|
|
package/src/checklist.md
CHANGED
@@ -4,9 +4,9 @@ layout: content-page
|
|
4
4
|
sidebar: components
|
5
5
|
---
|
6
6
|
|
7
|
-
We use a variety of digital marketing platforms, each with different styling
|
7
|
+
We use a variety of digital marketing platforms, each with different styling capabilities. We created this design system to bring these platforms together under a single look and feel, but unfortunately not all of them are able to follow the guidelines to the letter.
|
8
8
|
|
9
|
-
When evaluating a new platform, we should aim to ensure they are capable of following the Franklin
|
9
|
+
When evaluating a new platform, we should aim to ensure they are capable of following the Franklin style as closely as possible.
|
10
10
|
|
11
11
|
Platforms can be categorized into three groups:
|
12
12
|
|
@@ -56,11 +56,12 @@ Full:
|
|
56
56
|
- Careers website
|
57
57
|
|
58
58
|
Medium:
|
59
|
-
- Bizzabo
|
59
|
+
- Bizzabo event pages
|
60
60
|
- OneWelcome login screen
|
61
61
|
|
62
62
|
Basic:
|
63
63
|
- Salesforce customer portal
|
64
|
+
- Bizzabo agenda pages
|
64
65
|
|
65
66
|
### Notes
|
66
67
|
More detailed instructions on consuming Franklin’s CSS and JS can be found at <https://brand.malvernpanalytical.com/components/installation>.
|
@@ -15,7 +15,7 @@ A limited set of color tints and shades are available for element backgrounds, b
|
|
15
15
|
|
16
16
|
<div class="u-flow--l">
|
17
17
|
{{ alert({
|
18
|
-
content: "<p>This page explains how to use color on the web. For print or other uses, see the <a href='/brand/visual/colors'>Brand
|
18
|
+
content: "<p>This page explains how to use color on the web. For print or other uses, see the <a href='/brand/visual/colors'>Brand ➝ colors</a> page.</p>",
|
19
19
|
type: "info"
|
20
20
|
})}}
|
21
21
|
|
package/src/components/flow.njk
CHANGED
@@ -9,6 +9,15 @@ sidebar: components
|
|
9
9
|
|
10
10
|
<div class="u-flow--m">
|
11
11
|
{% set content %}
|
12
|
+
Add the class `u-flow` to any container, to space its contents.
|
13
|
+
```
|
14
|
+
<div class="u-flow">
|
15
|
+
<h1>Flow</h1>
|
16
|
+
<img />
|
17
|
+
<div></div>
|
18
|
+
<a class="c-button"></a>
|
19
|
+
</div>
|
20
|
+
```
|
12
21
|
Spacing content effectively is imperative to good component composition. Taking learnings from broader CSS spacing paradigms, rather than dictate spacing at a child-level, we set the rules at a parent-level, overriding at a child-level where appropriate.
|
13
22
|
|
14
23
|
With this approach, we can add any number of new children to a parent without breaking this existing variants. This mindset is crucial to extending the design system over time.
|