mp-design-system 1.2.26 → 1.2.28
Sign up to get free protection for your applications and to get access to all the features.
- 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 +2 -2
- package/src/_includes/components/card/existing-customer-card.config.js +51 -0
- package/src/_includes/components/card/existing-customer-card.njk +36 -0
- package/src/_includes/components/card/existing-customer-card.scss +100 -0
- package/src/_includes/components/card/macro.njk +8 -0
- package/src/_includes/components/card/search-result-card.config.js +29 -0
- package/src/_includes/components/card/search-result-card.njk +29 -0
- package/src/_includes/components/card/search-result-card.scss +44 -0
- package/src/_includes/components/component/preview-fixed-width.njk +5 -0
- package/src/_includes/components/eyebrow/eyebrow.config.js +61 -0
- package/src/_includes/components/eyebrow/eyebrow.njk +7 -0
- package/src/_includes/components/eyebrow/eyebrow.scss +39 -0
- package/src/_includes/components/eyebrow/macro.njk +5 -0
- package/src/_includes/components/usp/usp.config.js +5 -2
- package/src/_includes/components/usp/usp.md +82 -2
- package/src/_includes/components/usp/usp.njk +7 -1
- package/src/_includes/components/usp/usp.scss +2 -2
- package/src/_includes/layout.njk +0 -2
- package/src/assets/scss/components/index.scss +3 -0
- package/src/assets/scss/foundations/typography.scss +6 -6
- package/src/assets/scss/tools/index.scss +16 -0
- package/src/assets/scss/utilities/divider.scss +6 -0
- package/src/assets/scss/utilities/index.scss +1 -0
- package/src/patterns/usps.njk +34 -12
- package/dist/build/Inter-Bold.419e8c71.woff +0 -0
- package/dist/build/Inter-Bold.af5441a3.woff2 +0 -0
- package/dist/build/Inter-Regular.ca6858d7.woff +0 -0
- package/dist/build/Inter-Regular.ed77b881.woff2 +0 -0
- package/dist/build/Inter-SemiBold.cc1168df.woff +0 -0
- package/dist/build/Inter-SemiBold.dd034768.woff2 +0 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "mp-design-system",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.28",
|
4
4
|
"description": "",
|
5
5
|
"scripts": {
|
6
6
|
"dev": "npm-run-all --parallel bundle:*",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"parcel": "^2.4.0",
|
31
31
|
"require-glob": "^4.1.0",
|
32
32
|
"rimraf": "^3.0.2",
|
33
|
-
"sass": "^1.
|
33
|
+
"sass": "^1.71.0",
|
34
34
|
"slugify": "^1.6.5"
|
35
35
|
},
|
36
36
|
"alias": {
|
@@ -0,0 +1,51 @@
|
|
1
|
+
const categories = require('../component/categories');
|
2
|
+
|
3
|
+
module.exports = {
|
4
|
+
title: 'Existing customer card',
|
5
|
+
category: categories.card,
|
6
|
+
component: {
|
7
|
+
name: 'existing-customer-card',
|
8
|
+
folder: 'card'
|
9
|
+
},
|
10
|
+
preview: 'cards-two',
|
11
|
+
context: {
|
12
|
+
title: 'Mastersizer accessories',
|
13
|
+
lede: 'Configure your Mastersizer for your application and requirements with our range of accessories.',
|
14
|
+
cta: {
|
15
|
+
link: 'https://www.malvernpanalytical.com/en/products/product-range/mastersizer-range/mastersizer-3000#accessories',
|
16
|
+
label: 'View accessories',
|
17
|
+
},
|
18
|
+
image: {
|
19
|
+
src: 'https://p3.aprimocdn.net/malvernpanalytical/37015a45-6002-4cc3-9650-ad9e00b43396/636216816480633919JL_Original%20file.jpg?quality=60',
|
20
|
+
alt: 'Mastersizer accessories',
|
21
|
+
}
|
22
|
+
},
|
23
|
+
variants: [
|
24
|
+
{
|
25
|
+
title: 'Large',
|
26
|
+
preview: 'fixed-width',
|
27
|
+
context: {
|
28
|
+
width: 'large',
|
29
|
+
title: 'Looking for support?',
|
30
|
+
lede: 'Looking for support, manuals or software? Malvern Panalytical will provide the support for your business.',
|
31
|
+
cta: {
|
32
|
+
link: 'https://www.malvernpanalytical.com/en/support/product-support/mastersizer-range',
|
33
|
+
label: 'Get support',
|
34
|
+
},
|
35
|
+
image: {
|
36
|
+
src: 'https://p3.aprimocdn.net/malvernpanalytical/15fab5ad-6222-460d-aa00-ae0e011438ad/i_110714_063_m3kBROCHURE_w_MV_Original.JPG?quality=60',
|
37
|
+
alt: 'Mastersizer accessories',
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
],
|
42
|
+
props: [
|
43
|
+
{
|
44
|
+
table: [
|
45
|
+
['title', 'string'],
|
46
|
+
['description', 'string'],
|
47
|
+
['url', 'string'],
|
48
|
+
]
|
49
|
+
}
|
50
|
+
]
|
51
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
{%- from "components/twi/macro.njk" import twi -%}
|
2
|
+
|
3
|
+
{%- set classNames = "mp c-existing-customer-card" -%}
|
4
|
+
|
5
|
+
{%- if params.width -%}
|
6
|
+
{% set classNames = classNames + " c-existing-customer-card--" + params.width %}
|
7
|
+
{% endif -%}
|
8
|
+
|
9
|
+
<div class="{{ classNames }}">
|
10
|
+
<div class="c-existing-customer-card__wrapper">
|
11
|
+
<div class="c-existing-customer-card__main-wrapper">
|
12
|
+
{% if params.title | length %}
|
13
|
+
<h3 class="c-existing-customer-card__title">
|
14
|
+
<a href="{{ params.cta.link }}" aria-label="{{ params.title }}">
|
15
|
+
{{ params.title }}
|
16
|
+
</a>
|
17
|
+
</h3>
|
18
|
+
{% endif %}
|
19
|
+
{% if params.lede | length %}
|
20
|
+
<p class="c-existing-customer-card__lede">{{ params.lede }}</p>
|
21
|
+
{% endif %}
|
22
|
+
{% if params.cta | length %}
|
23
|
+
{{ twi({
|
24
|
+
label: params.cta.label,
|
25
|
+
classes: 'u-link',
|
26
|
+
icon: 'arrow-right'
|
27
|
+
}) }}
|
28
|
+
{% endif %}
|
29
|
+
</div>
|
30
|
+
{% if params.image | length %}
|
31
|
+
<figure class="c-existing-customer-card__media-wrapper">
|
32
|
+
<img class="c-existing-customer-card__image" src="{{ params.image.src }}" alt="{{ params.image.alt }}" />
|
33
|
+
</figure>
|
34
|
+
{% endif %}
|
35
|
+
</div>
|
36
|
+
</div>
|
@@ -0,0 +1,100 @@
|
|
1
|
+
.c-existing-customer-card {
|
2
|
+
background: color('white');
|
3
|
+
position: relative;
|
4
|
+
|
5
|
+
&::before {
|
6
|
+
content: '';
|
7
|
+
position: absolute;
|
8
|
+
top: 0;
|
9
|
+
right: 0;
|
10
|
+
width: 0;
|
11
|
+
height: 0;
|
12
|
+
border-style: solid;
|
13
|
+
border-width: 0 var(--space-l) var(--space-l) 0;
|
14
|
+
border-color: transparent color('grey', 'step-3') transparent transparent;
|
15
|
+
}
|
16
|
+
|
17
|
+
&:focus-within {
|
18
|
+
outline: 2px solid color('petrol');
|
19
|
+
}
|
20
|
+
|
21
|
+
&:where(:hover, :focus-within) .u-link {
|
22
|
+
text-decoration: underline;
|
23
|
+
}
|
24
|
+
|
25
|
+
&__wrapper {
|
26
|
+
@include padding('s-m');
|
27
|
+
display: flex;
|
28
|
+
flex-direction: column;
|
29
|
+
}
|
30
|
+
|
31
|
+
&__main-wrapper {
|
32
|
+
width: auto;
|
33
|
+
@extend .u-flow--s-m;
|
34
|
+
text-align: center;
|
35
|
+
}
|
36
|
+
|
37
|
+
&__title {
|
38
|
+
@include step(2);
|
39
|
+
|
40
|
+
a {
|
41
|
+
@include clickable-parent;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
&__lede {
|
46
|
+
line-height: lh('prose');
|
47
|
+
}
|
48
|
+
|
49
|
+
&__media-wrapper {
|
50
|
+
@include margin-top('m');
|
51
|
+
}
|
52
|
+
|
53
|
+
&__image {
|
54
|
+
max-height: 180px;
|
55
|
+
@include margin(0, 'auto');
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
.c-existing-customer-card--large {
|
60
|
+
@extend .c-existing-customer-card;
|
61
|
+
|
62
|
+
@media (min-width: 55em) {
|
63
|
+
.c-existing-customer-card {
|
64
|
+
&__wrapper {
|
65
|
+
@include o-grid(2);
|
66
|
+
@include padding-right('l-3xl');
|
67
|
+
@include padding-left('l-3xl');
|
68
|
+
display: flex;
|
69
|
+
flex-direction: row;
|
70
|
+
align-items: center;
|
71
|
+
justify-content: space-between;
|
72
|
+
|
73
|
+
& > * {
|
74
|
+
@include margin-bottom(0);
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
&__main-wrapper {
|
79
|
+
display: flex;
|
80
|
+
flex-direction: column;
|
81
|
+
justify-content: center;
|
82
|
+
text-align: left;
|
83
|
+
}
|
84
|
+
|
85
|
+
&__title {
|
86
|
+
@include step(3);
|
87
|
+
}
|
88
|
+
|
89
|
+
&__media-wrapper {
|
90
|
+
@include margin(0);
|
91
|
+
}
|
92
|
+
|
93
|
+
&__image {
|
94
|
+
max-height: unset;
|
95
|
+
height: auto;
|
96
|
+
width: auto;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
@@ -4,10 +4,18 @@
|
|
4
4
|
{{ c({ name: 'card' }, params) }}
|
5
5
|
{% endmacro %}
|
6
6
|
|
7
|
+
{% macro existingCustomerCard(params) %}
|
8
|
+
{{ c({ name: 'existing-customer-card', folder: 'card' }, params) }}
|
9
|
+
{% endmacro %}
|
10
|
+
|
7
11
|
{% macro industryCard(params) %}
|
8
12
|
{{ c({ name: 'industry-card', folder: 'card' }, params) }}
|
9
13
|
{% endmacro %}
|
10
14
|
|
11
15
|
{% macro productComparisonCard(params) %}
|
12
16
|
{{ c({ name: 'product-comparison-card', folder: 'card' }, params) }}
|
17
|
+
{% endmacro %}
|
18
|
+
|
19
|
+
{% macro searchResultCard(params) %}
|
20
|
+
{{ c({ name: 'search-result-card', folder: 'card' }, params) }}
|
13
21
|
{% endmacro %}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
const categories = require('../component/categories');
|
2
|
+
|
3
|
+
module.exports = {
|
4
|
+
title: 'Search result card',
|
5
|
+
category: categories.card,
|
6
|
+
component: {
|
7
|
+
name: 'search-result-card',
|
8
|
+
folder: 'card'
|
9
|
+
},
|
10
|
+
preview: 'content-width',
|
11
|
+
context: {
|
12
|
+
title: 'Mastersizer range',
|
13
|
+
description: 'The Mastersizer range of laser diffraction particle size analyzers set the standard for delivering rapid, accurate particle size distributions for both wet and dry dispersions.',
|
14
|
+
url: '/en/products/product-range/mastersizer-range',
|
15
|
+
tag: 'Product range'
|
16
|
+
},
|
17
|
+
variants: [
|
18
|
+
],
|
19
|
+
props: [
|
20
|
+
{
|
21
|
+
table: [
|
22
|
+
['title', 'string'],
|
23
|
+
['description', 'string'],
|
24
|
+
['url', 'string'],
|
25
|
+
['tag', 'string'],
|
26
|
+
]
|
27
|
+
}
|
28
|
+
]
|
29
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{%- from "components/eyebrow/macro.njk" import eyebrow -%}
|
2
|
+
|
3
|
+
<article class="mp c-search-result-card">
|
4
|
+
<header class="c-search-result-card__header">
|
5
|
+
{% if params.title | length %}
|
6
|
+
<h2 class="c-search-result-card__title">
|
7
|
+
<a href="{{ params.url }}" aria-label="{{ params.title }}">
|
8
|
+
{{ params.title }}
|
9
|
+
</a>
|
10
|
+
</h2>
|
11
|
+
{% endif %}
|
12
|
+
{% if params.tag | length %}
|
13
|
+
<div class="c-search-result-card__tag">
|
14
|
+
{{ eyebrow({
|
15
|
+
text: params.tag,
|
16
|
+
colour: 'blue'
|
17
|
+
}) }}
|
18
|
+
</div>
|
19
|
+
{% endif %}
|
20
|
+
</header>
|
21
|
+
<div class="c-search-result-card__body">
|
22
|
+
{% if params.description | length %}
|
23
|
+
<p class="c-search-result-card__description">{{ params.description }}</p>
|
24
|
+
{% endif %}
|
25
|
+
{% if params.url | length %}
|
26
|
+
<span class="c-search-result-card__url">{{ params.url }}</span>
|
27
|
+
{% endif %}
|
28
|
+
</div>
|
29
|
+
</article>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
.c-search-result-card {
|
2
|
+
@extend .u-flow--xs;
|
3
|
+
@include padding-top('m');
|
4
|
+
@include padding-bottom('m');
|
5
|
+
position: relative;
|
6
|
+
|
7
|
+
&:focus-within {
|
8
|
+
outline: 2px solid color('petrol');
|
9
|
+
}
|
10
|
+
|
11
|
+
&:where(:hover, :focus-within) .c-search-result-card__title {
|
12
|
+
text-decoration: underline;
|
13
|
+
text-underline-offset: 0.1em;
|
14
|
+
}
|
15
|
+
|
16
|
+
&__header,
|
17
|
+
&__body {
|
18
|
+
display: flex;
|
19
|
+
flex-direction: column;
|
20
|
+
}
|
21
|
+
|
22
|
+
&__title {
|
23
|
+
@include step(1);
|
24
|
+
|
25
|
+
a {
|
26
|
+
@include clickable-parent;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
&__tag,
|
31
|
+
&__description + &__url {
|
32
|
+
@include margin-bottom('2xs');
|
33
|
+
order: -1;
|
34
|
+
}
|
35
|
+
|
36
|
+
&__body {
|
37
|
+
@extend .o-prose;
|
38
|
+
@include step(-1);
|
39
|
+
}
|
40
|
+
|
41
|
+
&__url {
|
42
|
+
color: color('utility-blue');
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module.exports = {
|
2
|
+
title: 'Eyebrow',
|
3
|
+
component: {
|
4
|
+
name: 'eyebrow',
|
5
|
+
},
|
6
|
+
context: {
|
7
|
+
text: 'Product range',
|
8
|
+
colour: ''
|
9
|
+
},
|
10
|
+
variants: [
|
11
|
+
{
|
12
|
+
title: 'Blue',
|
13
|
+
context: {
|
14
|
+
text: 'Product range',
|
15
|
+
colour: 'blue'
|
16
|
+
}
|
17
|
+
},
|
18
|
+
{
|
19
|
+
title: 'Blue step 2',
|
20
|
+
context: {
|
21
|
+
text: 'Product range',
|
22
|
+
colour: 'blue-step-2'
|
23
|
+
}
|
24
|
+
},
|
25
|
+
{
|
26
|
+
title: 'Grey',
|
27
|
+
context: {
|
28
|
+
text: 'Product range',
|
29
|
+
colour: 'grey'
|
30
|
+
}
|
31
|
+
},
|
32
|
+
{
|
33
|
+
title: 'Petrol',
|
34
|
+
context: {
|
35
|
+
text: 'Product range',
|
36
|
+
colour: 'petrol'
|
37
|
+
}
|
38
|
+
},
|
39
|
+
{
|
40
|
+
title: 'Red',
|
41
|
+
context: {
|
42
|
+
text: 'Product range',
|
43
|
+
colour: 'red'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
{
|
47
|
+
title: 'Utility blue',
|
48
|
+
context: {
|
49
|
+
text: 'Product range',
|
50
|
+
colour: 'utility-blue'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
{
|
54
|
+
title: 'Utility orange',
|
55
|
+
context: {
|
56
|
+
text: 'Product range',
|
57
|
+
colour: 'utility-orange'
|
58
|
+
}
|
59
|
+
}
|
60
|
+
]
|
61
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
.c-eyebrow {
|
2
|
+
background-color: color('green');
|
3
|
+
color: color('white');
|
4
|
+
@include padding('3xs', 'xs');
|
5
|
+
border-radius: 2em;
|
6
|
+
display: inline-block;
|
7
|
+
@include step(-1);
|
8
|
+
letter-spacing: -.01em;
|
9
|
+
|
10
|
+
&--blue {
|
11
|
+
background-color: color('blue');
|
12
|
+
}
|
13
|
+
|
14
|
+
&--blue-step-2 {
|
15
|
+
background-color: color('blue', 'step-2');
|
16
|
+
color: color('petrol');
|
17
|
+
}
|
18
|
+
|
19
|
+
&--grey {
|
20
|
+
background-color: color('grey');
|
21
|
+
}
|
22
|
+
|
23
|
+
&--petrol {
|
24
|
+
background-color: color('petrol');
|
25
|
+
}
|
26
|
+
|
27
|
+
&--red {
|
28
|
+
background-color: color('red');
|
29
|
+
}
|
30
|
+
|
31
|
+
&--utility-blue {
|
32
|
+
background-color: color('utility-blue');
|
33
|
+
}
|
34
|
+
|
35
|
+
&--utility-orange {
|
36
|
+
background-color: color('utility-orange');
|
37
|
+
color: color('grey');
|
38
|
+
}
|
39
|
+
}
|
@@ -22,7 +22,9 @@ module.exports = {
|
|
22
22
|
context: {
|
23
23
|
classes: 'c-usp c-usp--center',
|
24
24
|
content: false,
|
25
|
-
icon:
|
25
|
+
icon: {
|
26
|
+
url: 'https://p3.aprimocdn.net/malvernpanalytical/7da9e7e5-edca-4d49-bc7f-b11401123c52/icon-stopwatch_Original%20file.svg'
|
27
|
+
}
|
26
28
|
}
|
27
29
|
},
|
28
30
|
{
|
@@ -45,7 +47,8 @@ module.exports = {
|
|
45
47
|
['content', 'html', 'HTML passed to the prose field'],
|
46
48
|
['link', 'string (deprecated)'],
|
47
49
|
['eyebrow', 'string'],
|
48
|
-
['icon', 'svg', 'HTML/SVG which is output raw']
|
50
|
+
['icon.svg', 'svg', 'HTML/SVG which is output raw'],
|
51
|
+
['icon.url', 'string', 'image url']
|
49
52
|
]
|
50
53
|
}
|
51
54
|
]
|
@@ -1,3 +1,81 @@
|
|
1
|
+
# Blank HTML templates
|
2
|
+
|
3
|
+
{% accordion %}
|
4
|
+
|
5
|
+
{% accordionItem "Grid of four, icon & text, left-aligned" %}
|
6
|
+
|
7
|
+
```html
|
8
|
+
<div class="o-grid o-grid--of-four">
|
9
|
+
|
10
|
+
<!-- First USP block: duplicate this -->
|
11
|
+
<div class="mp c-usp">
|
12
|
+
<div class="u-flow">
|
13
|
+
<div class="c-usp__icon">
|
14
|
+
<img src="https://p3.aprimocdn.net/malvernpanalytical/etc" />
|
15
|
+
</div>
|
16
|
+
<h3 class="c-h c-h--step-1 c-usp__title">Handles the toughest conditions</h3>
|
17
|
+
<div class="mp o-prose u-step--1">
|
18
|
+
<p>FORJ is designed for less thermal stress and reduced risk of contamination - which means low maintenance and high productivity.</p>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<!-- etc. -->
|
24
|
+
|
25
|
+
</div>
|
26
|
+
```
|
27
|
+
|
28
|
+
{% endaccordionItem %}
|
29
|
+
|
30
|
+
{% accordionItem "Grid of three, eyebrow & text, left-aligned" %}
|
31
|
+
|
32
|
+
```html
|
33
|
+
<div class="o-grid o-grid--of-three">
|
34
|
+
|
35
|
+
<!-- First USP block: duplicate this -->
|
36
|
+
<div class="mp c-usp">
|
37
|
+
<div class="u-flow ">
|
38
|
+
<span class="c-usp__eyebrow">Greater flexibility</span>
|
39
|
+
<h3 class="c-h c-h--step-2 c-usp__title">Impressive particle sizing performance</h3>
|
40
|
+
<div class="mp o-prose u-step--1">
|
41
|
+
<p>High sample throughput and a measurement size range from 10nm to 3.5mm</p>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<!-- etc. -->
|
47
|
+
|
48
|
+
</div>
|
49
|
+
```
|
50
|
+
|
51
|
+
{% endaccordionItem %}
|
52
|
+
|
53
|
+
{% accordionItem "Grid of seven (or more), icons only, centered" %}
|
54
|
+
|
55
|
+
```html
|
56
|
+
<div class="o-grid o-grid--of-three u-justify-center">
|
57
|
+
|
58
|
+
<!-- First USP block: duplicate this -->
|
59
|
+
<div class="mp c-usp c-usp c-usp--center">
|
60
|
+
<div class="u-flow u-text-center">
|
61
|
+
<div class="c-usp__icon">
|
62
|
+
<img src="https://p3.aprimocdn.net/malvernpanalytical/etc" />
|
63
|
+
</div>
|
64
|
+
<h3 class="c-h c-h--step-1 c-usp__title">Handles the toughest conditions</h3>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
|
68
|
+
<!-- etc. -->
|
69
|
+
|
70
|
+
</div>
|
71
|
+
```
|
72
|
+
|
73
|
+
{% endaccordionItem %}
|
74
|
+
|
75
|
+
{% endaccordion %}
|
76
|
+
|
77
|
+
---
|
78
|
+
|
1
79
|
A USP can include a few elements:
|
2
80
|
- Icon (optional)
|
3
81
|
- Eyebrow (optional)
|
@@ -17,5 +95,7 @@ When using USPs, please follow these guidelines:
|
|
17
95
|
- If there's no body text or eyebrow, the USP may be centered
|
18
96
|
- **Font size**
|
19
97
|
- Body text font size is always step -1
|
20
|
-
- Title text is step
|
21
|
-
- or step
|
98
|
+
- Title text is step 2 when using a three-column grid
|
99
|
+
- or step 1 when using a four-column grid
|
100
|
+
|
101
|
+
---
|
@@ -21,7 +21,13 @@
|
|
21
21
|
</span>
|
22
22
|
{% endif %}
|
23
23
|
{% if params.icon %}
|
24
|
-
<div class="c-usp__icon">
|
24
|
+
<div class="c-usp__icon">
|
25
|
+
{% if params.icon.svg %}
|
26
|
+
{{params.icon.svg | safe}}
|
27
|
+
{% elseif params.icon.url %}
|
28
|
+
<img src="{{params.icon.url}}"/>
|
29
|
+
{% endif %}
|
30
|
+
</div>
|
25
31
|
{% endif %}
|
26
32
|
<h3 class="c-h {{size}} c-usp__title">{{ params.title }}</h3>
|
27
33
|
{% if params.content %}
|
package/src/_includes/layout.njk
CHANGED
@@ -16,8 +16,6 @@
|
|
16
16
|
<meta property="og:image:alt" content="{{ config.name }}" />
|
17
17
|
<meta name="twitter:image" content="{{ config.openGraphImage }}" />
|
18
18
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
19
|
-
<link rel="preload" href="/build/Inter-Bold.af5441a3.woff2" as="font" type="font/woff2" crossorigin>
|
20
|
-
<link rel="preload" href="/build/Inter-Regular.ed77b881.woff2" as="font" type="font/woff2" crossorigin>
|
21
19
|
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap" as="style">
|
22
20
|
<link rel="icon" type="image/png" sizes="32x32" href="/static/img/favicon.svg">
|
23
21
|
<link rel="stylesheet" href="/build/scss/main.css" />
|
@@ -4,10 +4,13 @@
|
|
4
4
|
@import '~comp/button/button.scss';
|
5
5
|
@import '~comp/campaign/campaign.scss';
|
6
6
|
@import '~comp/card/card.scss';
|
7
|
+
@import '~comp/card/existing-customer-card.scss';
|
7
8
|
@import '~comp/card/industry-card.scss';
|
8
9
|
@import '~comp/card/product-comparison-card.scss';
|
10
|
+
@import '~comp/card/search-result-card.scss';
|
9
11
|
@import '~comp/comparison-table/comparison-table.scss';
|
10
12
|
@import '~comp/embed/embed.scss';
|
13
|
+
@import '~comp/eyebrow/eyebrow.scss';
|
11
14
|
@import '~comp/featured-article-card/featured-article-card.scss';
|
12
15
|
@import '~comp/features-table/features-table.scss';
|
13
16
|
@import '~comp/filter-search/filter-search.scss';
|
@@ -136,8 +136,8 @@ $f-max-width: 1332;
|
|
136
136
|
font-style: normal;
|
137
137
|
font-weight: 400;
|
138
138
|
font-display: swap;
|
139
|
-
src:
|
140
|
-
|
139
|
+
src: #{'../fonts/inter-regular.woff2'} format("woff2"),
|
140
|
+
#{'../fonts/inter-regular.woff'} format("woff");
|
141
141
|
}
|
142
142
|
|
143
143
|
@font-face {
|
@@ -145,8 +145,8 @@ $f-max-width: 1332;
|
|
145
145
|
font-style: normal;
|
146
146
|
font-weight: 600;
|
147
147
|
font-display: swap;
|
148
|
-
src:
|
149
|
-
|
148
|
+
src: #{'../fonts/inter-semibold.woff2'} format("woff2"),
|
149
|
+
#{'../fonts/inter-semibold.woff'} format("woff");
|
150
150
|
}
|
151
151
|
|
152
152
|
@font-face {
|
@@ -154,6 +154,6 @@ $f-max-width: 1332;
|
|
154
154
|
font-style: normal;
|
155
155
|
font-weight: 700;
|
156
156
|
font-display: swap;
|
157
|
-
src:
|
158
|
-
|
157
|
+
src: #{'../fonts/inter-bold.woff2'} format("woff2"),
|
158
|
+
#{'../fonts/inter-bold.woff'} format("woff");
|
159
159
|
}
|
@@ -152,4 +152,20 @@
|
|
152
152
|
hyphens: auto;
|
153
153
|
}
|
154
154
|
}
|
155
|
+
}
|
156
|
+
|
157
|
+
@mixin clickable-parent {
|
158
|
+
position: static;
|
159
|
+
|
160
|
+
&:focus {
|
161
|
+
outline: 0;
|
162
|
+
}
|
163
|
+
|
164
|
+
&::after {
|
165
|
+
content: '';
|
166
|
+
position: absolute;
|
167
|
+
inset: 0;
|
168
|
+
cursor: pointer !important;
|
169
|
+
display: flex;
|
170
|
+
}
|
155
171
|
}
|