mp-design-system 1.2.54 → 1.2.56
Sign up to get free protection for your applications and to get access to all the features.
- 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/back-to-top/back-to-top.config.js +10 -0
- package/src/_includes/components/back-to-top/back-to-top.njk +7 -0
- package/src/_includes/components/back-to-top/back-to-top.scss +22 -0
- package/src/_includes/components/back-to-top/macro.njk +5 -0
- package/src/_includes/components/eyebrow/eyebrow.config.js +8 -0
- package/src/_includes/components/eyebrow/eyebrow.scss +9 -3
- package/src/_includes/components/footer/footer.njk +3 -0
- package/src/_includes/components/icon/icon.njk +11 -1
- package/src/assets/scss/components/index.scss +1 -0
- package/src/assets/scss/objects/prose.scss +10 -5
- package/src/brand/typography.md +3 -3
- package/src/components/iconography.njk +1 -0
- package/src/static/svg/sprite.svg +3 -1
package/package.json
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
.c-back-to-top {
|
2
|
+
position: fixed;
|
3
|
+
background: color('blue');
|
4
|
+
color: color('white') !important;
|
5
|
+
height: 2.6rem;
|
6
|
+
width: 2.6rem;
|
7
|
+
right: var(--space-xs);
|
8
|
+
bottom: var(--space-xs);
|
9
|
+
display: flex;
|
10
|
+
justify-content: center;
|
11
|
+
align-items: center;
|
12
|
+
border-radius: 4rem;
|
13
|
+
box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 20%);
|
14
|
+
transition: 300ms background-color, 300ms color;
|
15
|
+
|
16
|
+
&:where(:hover, :focus) {
|
17
|
+
background: color('blue', 'step--1');
|
18
|
+
}
|
19
|
+
|
20
|
+
&__icon {
|
21
|
+
}
|
22
|
+
}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
.c-eyebrow {
|
2
2
|
background-color: color('green');
|
3
|
-
color: color('white');
|
3
|
+
color: color('white');
|
4
4
|
@include padding('3xs', 'xs');
|
5
5
|
border: 1px solid color('green');
|
6
6
|
border-radius: 2em;
|
7
7
|
display: inline-flex;
|
8
8
|
align-items: center;
|
9
9
|
@include step(-1);
|
10
|
-
letter-spacing:
|
10
|
+
letter-spacing: -0.01em;
|
11
11
|
text-wrap: nowrap;
|
12
12
|
|
13
13
|
&--blue {
|
@@ -52,6 +52,12 @@
|
|
52
52
|
color: color('grey');
|
53
53
|
border-color: color('utility-orange', 'step-1');
|
54
54
|
}
|
55
|
+
|
56
|
+
&--white {
|
57
|
+
background-color: color('white');
|
58
|
+
color: color('petrol');
|
59
|
+
border-color: color('petrol');
|
60
|
+
}
|
55
61
|
}
|
56
62
|
|
57
63
|
button.c-eyebrow {
|
@@ -62,4 +68,4 @@ button.c-eyebrow {
|
|
62
68
|
svg {
|
63
69
|
@include margin-left('2xs');
|
64
70
|
}
|
65
|
-
}
|
71
|
+
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
{% from "components/icon/macro.njk" import icon %}
|
2
|
+
{% from "components/back-to-top/macro.njk" import backToTop %}
|
2
3
|
|
3
4
|
<footer class="mp c-footer" role="contentinfo">
|
4
5
|
<nav class="c-footer__primary u-wrap" aria-label="Footer">
|
@@ -76,3 +77,5 @@
|
|
76
77
|
</div>
|
77
78
|
</div>
|
78
79
|
</footer>
|
80
|
+
|
81
|
+
{{ backToTop({}) }}
|
@@ -1,3 +1,13 @@
|
|
1
|
-
|
1
|
+
{%- set classNames = "mp c-icon c-icon" -%}
|
2
|
+
|
3
|
+
{%- if params.id -%}
|
4
|
+
{% set classNames = classNames + " c-icon--" + params.id %}
|
5
|
+
{% endif -%}
|
6
|
+
|
7
|
+
{%- if params.class -%}
|
8
|
+
{% set classNames = classNames + " " + params.class %}
|
9
|
+
{% endif -%}
|
10
|
+
|
11
|
+
<svg role="img" aria-hidden="true" focusable="false" class="{{ classNames }}">
|
2
12
|
<use xlink:href="/static/svg/sprite.svg#{{ params.id }}"></use>
|
3
13
|
</svg>
|
@@ -2,15 +2,15 @@
|
|
2
2
|
color: inherit;
|
3
3
|
|
4
4
|
h2 {
|
5
|
-
@extend .c-h
|
5
|
+
@extend .c-h, .c-h--step-3;
|
6
6
|
}
|
7
7
|
|
8
8
|
h3 {
|
9
|
-
@extend .c-h
|
9
|
+
@extend .c-h, .c-h--step-2;
|
10
10
|
}
|
11
11
|
|
12
12
|
h4 {
|
13
|
-
@extend .c-h
|
13
|
+
@extend .c-h, .c-h--step-1;
|
14
14
|
}
|
15
15
|
|
16
16
|
p,
|
@@ -25,14 +25,15 @@
|
|
25
25
|
color: color('utility-blue');
|
26
26
|
text-decoration: underline;
|
27
27
|
text-underline-offset: 3px;
|
28
|
-
|
28
|
+
|
29
29
|
&:hover {
|
30
30
|
text-decoration: none;
|
31
31
|
}
|
32
32
|
}
|
33
33
|
|
34
34
|
ul li {
|
35
|
-
list-style: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="20" viewBox="0 0 10 20"><circle cx="5" cy="14" r="3.5" fill="%2313AA13" fill-rule="evenodd"/></svg>')
|
35
|
+
list-style: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="20" viewBox="0 0 10 20"><circle cx="5" cy="14" r="3.5" fill="%2313AA13" fill-rule="evenodd"/></svg>')
|
36
|
+
outside;
|
36
37
|
margin-left: 1em;
|
37
38
|
padding-left: 0.5rem;
|
38
39
|
|
@@ -152,6 +153,10 @@
|
|
152
153
|
table {
|
153
154
|
@extend .c-table;
|
154
155
|
}
|
156
|
+
|
157
|
+
video {
|
158
|
+
max-width: 100%;
|
159
|
+
}
|
155
160
|
}
|
156
161
|
|
157
162
|
.o-featured-image {
|
package/src/brand/typography.md
CHANGED
@@ -9,15 +9,15 @@ status: 'Ready'
|
|
9
9
|
|
10
10
|
## Inter
|
11
11
|
|
12
|
-
Our brand font is
|
12
|
+
Our brand font is **Inter**. This typeface has been selected for its;
|
13
13
|
- Excellent clarity and legibility
|
14
14
|
- Extensive character set
|
15
15
|
- Comprehensive weight and style options
|
16
16
|
- Understated authority
|
17
17
|
|
18
|
-
|
18
|
+
**We use Inter version 3**. Inter recently received a new v4 update, which changes the spacing and overall look of the font. To maintain consistent branding for Malvern Panalytical materials, we recommend avoiding any version later than v3.19.
|
19
19
|
|
20
|
-
{% button 'Download Inter font' 'https://github.com/rsms/inter/releases/download/v3.19/Inter-3.19.zip' %}
|
20
|
+
{% button 'Download Inter font (v3.19)' 'https://github.com/rsms/inter/releases/download/v3.19/Inter-3.19.zip' %}
|
21
21
|
|
22
22
|
Inter is also available from [Google Fonts](https://fonts.google.com/specimen/Inter).
|
23
23
|
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
<symbol id="log-out" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M9 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H9M16 17L21 12M21 12L16 7M21 12H9"/></symbol>
|
28
28
|
|
29
|
-
<symbol id="monitor" viewBox="0 0 24 24" fill="none"><path d="M18.6 4.23438H5.4C4.6268 4.23438 4 4.86118 4 5.63438V12.6344C4 13.4076 4.6268 14.0344 5.4 14.0344H18.6C19.3732 14.0344 20 13.4076 20 12.6344V5.63438C20 4.86118 19.3732 4.23438 18.6 4.23438Z" stroke="
|
29
|
+
<symbol id="monitor" viewBox="0 0 24 24" fill="none"><path d="M18.6 4.23438H5.4C4.6268 4.23438 4 4.86118 4 5.63438V12.6344C4 13.4076 4.6268 14.0344 5.4 14.0344H18.6C19.3732 14.0344 20 13.4076 20 12.6344V5.63438C20 4.86118 19.3732 4.23438 18.6 4.23438Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.2002 17.7695H15.8002" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 14.9688V17.7687" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
|
30
30
|
|
31
31
|
<symbol id="pin" viewBox="0 0 24 24" fill="none"><g style="mix-blend-mode:multiply"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.75 9.51163C19.75 10.9541 19.2189 12.2724 18.3415 13.2818C17.1715 14.746 15.0292 17.7626 14.3076 20.0155C14.2778 20.1086 14.2154 20.1722 14.1409 20.2064C14.0983 20.2275 14.0504 20.2393 13.9996 20.2393C13.8503 20.2393 13.7249 20.1367 13.6902 19.9981C12.9741 17.7811 10.8951 14.8329 9.71784 13.3491C8.80514 12.3313 8.25 10.9863 8.25 9.51163C8.25 6.33599 10.8244 3.76163 14 3.76163C17.1756 3.76163 19.75 6.33599 19.75 9.51163ZM14 11.414C15.1046 11.414 16 10.5185 16 9.41397C16 8.3094 15.1046 7.41397 14 7.41397C12.8954 7.41397 12 8.3094 12 9.41397C12 10.5185 12.8954 11.414 14 11.414Z" fill="currentColor"/></g></symbol>
|
32
32
|
|
@@ -36,6 +36,8 @@
|
|
36
36
|
|
37
37
|
<symbol id="search" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M22 22l-4.5-4.5M20 11a9 9 0 11-18 0 9 9 0 0118 0z"/></symbol>
|
38
38
|
|
39
|
+
<symbol id="shopping-cart" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M9 22.5c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1Zm11 0c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1ZM1 1.5h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72c.47 0 .93-.15 1.29-.44.37-.29.62-.71.71-1.17L23 6.5H6"/></symbol>
|
40
|
+
|
39
41
|
<symbol id="tick" viewBox="0 0 24 24" fill="none"><path d="M4 12.3529L9.64706 18L21 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
|
40
42
|
|
41
43
|
<symbol id="twitter" viewBox="0 0 24 24" fill="currentColor"><path d="M7.54752 21.5012C16.6042 21.5012 21.5578 13.9979 21.5578 7.49101C21.5578 7.27789 21.5578 7.06573 21.5434 6.85453C22.507 6.15748 23.3389 5.29441 24 4.30573C23.1013 4.70394 22.148 4.96508 21.1718 5.08045C22.1998 4.46507 22.9691 3.49719 23.3366 2.35693C22.3701 2.93049 21.3126 3.3347 20.2099 3.55213C19.4675 2.76271 18.4856 2.23997 17.4162 2.06481C16.3468 1.88966 15.2494 2.07184 14.294 2.58318C13.3385 3.09452 12.5782 3.9065 12.1307 4.89348C11.6833 5.88045 11.5735 6.98739 11.8186 8.04301C9.86088 7.94486 7.94572 7.43613 6.19741 6.54981C4.4491 5.6635 2.90672 4.41943 1.6704 2.89837C1.04073 3.98236 0.847872 5.2656 1.1311 6.48679C1.41433 7.70798 2.15234 8.77532 3.19488 9.47149C2.41127 9.44826 1.64475 9.23688 0.96 8.85517C0.96 8.87533 0.96 8.89645 0.96 8.91757C0.960311 10.0544 1.35385 11.1562 2.07387 12.0359C2.79389 12.9157 3.79606 13.5193 4.9104 13.7444C4.18547 13.9421 3.42488 13.9711 2.68704 13.8289C3.00169 14.8073 3.61427 15.6629 4.43911 16.276C5.26395 16.8892 6.25979 17.2291 7.28736 17.2484C5.54375 18.6188 3.38982 19.3627 1.17216 19.3604C0.780387 19.3597 0.388996 19.336 0 19.2894C2.25181 20.7345 4.87192 21.501 7.54752 21.4974"/></symbol>
|