mp-design-system 0.9.17 → 0.9.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/dist/build/arc.a8e07ecd.svg +1 -0
  2. package/dist/build/crystal.a90c9e1f.svg +1 -0
  3. package/dist/build/dots-pattern.1b95f054.svg +1 -0
  4. package/dist/build/js/app.js +1 -1
  5. package/dist/build/js/app.js.map +1 -1
  6. package/dist/build/scss/library.css +1 -1
  7. package/dist/build/scss/library.css.map +1 -1
  8. package/dist/build/scss/main.css +1 -1
  9. package/dist/build/scss/main.css.map +1 -1
  10. package/package.json +1 -1
  11. package/src/_includes/components/accordion/accordion.md +1 -1
  12. package/src/_includes/components/breadcrumb/breadcrumb.config.js +6 -4
  13. package/src/_includes/components/breadcrumb/breadcrumb.njk +18 -2
  14. package/src/_includes/components/breadcrumb/breadcrumb.scss +69 -0
  15. package/src/_includes/components/button/button.config.js +14 -1
  16. package/src/_includes/components/button/button.scss +34 -1
  17. package/src/_includes/components/campaign/campaign.config.js +4 -2
  18. package/src/_includes/components/card/card.config.js +43 -1
  19. package/src/_includes/components/card/card.scss +32 -0
  20. package/src/_includes/components/component/component.njk +2 -2
  21. package/src/_includes/components/gallery/gallery.config.js +34 -8
  22. package/src/_includes/components/gallery/gallery.md +1 -0
  23. package/src/_includes/components/gallery/gallery.njk +0 -1
  24. package/src/_includes/components/gallery/gallery.scss +7 -8
  25. package/src/_includes/components/input/radio.scss +21 -1
  26. package/src/_includes/components/post-meta/post-meta.njk +2 -2
  27. package/src/_includes/components/slat/slat.config.js +12 -0
  28. package/src/_includes/components/slat/slat.scss +14 -0
  29. package/src/_includes/components/table/table.config.js +7 -6
  30. package/src/_includes/components/table/table.md +16 -0
  31. package/src/_includes/components/table/table.scss +9 -0
  32. package/src/_includes/components/tabs/tabs.config.js +22 -3
  33. package/src/_includes/components/tabs/tabs.njk +1 -1
  34. package/src/_includes/components/tabs/tabs.scss +4 -0
  35. package/src/_includes/includes/system-header.njk +1 -1
  36. package/src/_includes/layout.njk +10 -5
  37. package/src/_includes/library-navigation/brand-nav.njk +1 -0
  38. package/src/_includes/library-navigation/components-nav.njk +1 -0
  39. package/src/assets/js/imports/accordion.js +0 -2
  40. package/src/assets/scss/components/index.scss +1 -0
  41. package/src/assets/scss/elements/reset.scss +2 -1
  42. package/src/assets/scss/foundations/animation.scss +4 -0
  43. package/src/assets/scss/foundations/index.scss +2 -1
  44. package/src/assets/scss/library.scss +9 -6
  45. package/src/assets/scss/objects/syntax-highlighting.scss +4 -0
  46. package/src/assets/scss/tools/cutoff.scss +21 -31
  47. package/src/assets/scss/utilities/flow.scss +1 -0
  48. package/src/assets/svg/arc.svg +1 -0
  49. package/src/assets/svg/crystal.svg +1 -0
  50. package/src/assets/svg/dots-pattern.svg +1 -1
  51. package/src/brand/basics.md +4 -3
  52. package/src/brand/illustration.md +8 -2
  53. package/src/brand/index.njk +1 -0
  54. package/src/brand/patterns.njk +43 -0
  55. package/src/brand/typography.md +12 -5
  56. package/src/components/creating-a-component.md +1 -1
  57. package/src/components/flow.njk +31 -18
  58. package/src/components/iconography.njk +1 -1
  59. package/src/components/index.njk +1 -0
  60. package/src/components/installation.md +3 -1
  61. package/src/components/utilities.md +37 -11
  62. package/src/content/index.njk +1 -0
  63. package/src/index.njk +8 -4
  64. package/src/prototype/product.njk +29 -19
  65. package/src/static/img/slide-4.webp +0 -0
  66. package/src/static/img/slide-5.webp +0 -0
  67. package/src/static/img/slide-6.webp +0 -0
  68. package/src/static/img/slide-7.webp +0 -0
  69. package/dist/build/dots-pattern.3c9c2a26.svg +0 -1
  70. package/src/_includes/components/campaign/campaign.md +0 -2
@@ -28,7 +28,7 @@ More typography utility classes are documented on the [typography page](/compone
28
28
 
29
29
  ---
30
30
 
31
- ## Display
31
+ ## Visibility & display
32
32
 
33
33
  ```html
34
34
  <div class="u-hidden">Visually hidden, but still accessible to screenreaders</div>
@@ -67,11 +67,11 @@ More typography utility classes are documented on the [typography page](/compone
67
67
  ```
68
68
 
69
69
  ```html
70
- <p class="u-sticky">This will "stick" to the top of the screen while scrolling</p>
70
+ <div class="u-sticky">This will "stick" to the top of the screen while scrolling</div>
71
71
  ```
72
72
 
73
73
  ```html
74
- <div class="u-sticky--gutter">Sticky positioning, with a gap above</div>
74
+ <div class="u-sticky--gutter">To create a small gap above a sticky element</div>
75
75
  ```
76
76
 
77
77
  ```html
@@ -91,14 +91,16 @@ The two child items will be aligned in a horizontal row
91
91
  ## Padding and margins
92
92
 
93
93
  #### Syntax:
94
- `u`-`(pad or margin)`-`(optional direction)`-`(size)`-`(optional flex size)`
94
+ `u`-`(pad or margin)`-`(size)`
95
+
96
+ `u`-`(pad or margin)`-`(direction, optional)`-`(size)`-`(flex size, optional)`
95
97
 
96
98
  ```html
97
99
  <div class="u-pad-s">Small padding on all sides</div>
98
100
  ```
99
101
 
100
102
  ```html
101
- <div class="u-margin-y-xl">Extra large margin on top and bottom</div>
103
+ <div class="u-margin-x-xs">Extra small margin on left and right</div>
102
104
  ```
103
105
 
104
106
  ```html
@@ -106,8 +108,8 @@ The two child items will be aligned in a horizontal row
106
108
  ```
107
109
 
108
110
  ```html
109
- <div class="u-pad-x-s-xl">Flexible (small to XL) padding on left and right</div>
110
- Grows from small padding on small screens, to xl padding on large screens
111
+ <div class="u-pad-y-l-xl">Flexible (large to XL) padding on top and bottom</div>
112
+ Grows from large padding on small screens, to xl padding on large screens
111
113
  ```
112
114
 
113
115
  Sizes | Directions
@@ -131,18 +133,42 @@ More padding and margin utility classes are documented on the [space page](/comp
131
133
 
132
134
  ## Miscellaneous
133
135
 
136
+ ```html
137
+ <div class="u-link-inside">Links inside will have underline styling</div>
138
+ ```
139
+
140
+ ```html
141
+ <div class="u-border">Element will have a subtle border</div>
142
+ ```
143
+
144
+ <br>
145
+
134
146
  #### Cutoff
135
147
 
136
- `u-cutoff`-`(optional direction; can be bottom-left, top-left, or top-right)`
148
+ `u-cutoff`-`(optional direction; can be bottom-left, top-left, or top-right)`-`(size, optional)`
137
149
 
138
- N.B. The diagonal size is based on `var(--gutter)`.
150
+ N.B. The default diagonal size is based on `var(--gutter)`.
139
151
 
140
152
  ```html
141
153
  <div class="u-cutoff">Cutoff effect on the bottom-right corner</div>
142
- ```
143
154
 
144
- ```html
145
155
  <div class="u-cutoff--top-left">Top left cutoff</div>
156
+
157
+ <div class="u-cutoff--xl">XL size cutoff</div>
146
158
  ```
147
159
 
148
160
  <div class="u-bg-blue-step-2 u-pad-xl u-cutoff">Cutoff effect on the bottom-right corner</div>
161
+
162
+ <div class="u-bg-blue-step-2 u-pad-xl u-cutoff--top-left">Top left cutoff</div>
163
+
164
+ <div class="u-bg-blue-step-2 u-pad-xl u-cutoff--xl">XL size cutoff</div>
165
+
166
+ <br>
167
+
168
+ #### Scroll shadows
169
+
170
+ When a tab row is too wide for the screen, this displays shadows which indicate that scrolling/swiping is available. Horizontal and vertical options are available. [See example](/components/tabs-scroll-shadows).
171
+
172
+ ```html
173
+ <nav class="c-tabs__controls u-scroll-shadows--h">
174
+ ```
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  title: Tone of voice
3
+ description: Guidelines to help us make our writing clearer, simpler and more inspiring.
3
4
  layout: system-page
4
5
  sidebar: content
5
6
  status: 'Ready'
package/src/index.njk CHANGED
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: "Welcome"
3
3
  subtitle: Our design system helps us create consistent experiences across our websites and beyond. It also makes the design and development process faster, more efficient and scalable.
4
+ description: Franklin is Malvern Panalytical's design system for public-facing websites and digital products.
4
5
  layout: system-home-page
5
6
  renderData:
6
7
  title: "Welcome to the Franklin design system"
@@ -100,11 +101,14 @@ A combination of brand guidelines and a library of HTML/CSS/JS components.
100
101
  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.
101
102
 
102
103
  ## Latest updates
103
- ##### V.{{ config.dsVersion }} - 04 Aug 2022
104
+ ##### V.{{ config.dsVersion }} - Jan 2022
104
105
 
105
- - Update MP Charcoal colours for better contrast and legibility
106
- - Add cutoff utility
107
- - Tweak campaign design
106
+ - New Features Table component
107
+ - New Gallery component
108
+ - New illustration documentation
109
+ - Fix IE11 navigation bug
110
+ - Misc. fixes
111
+ - Misc. documentation improvements
108
112
  {% endset %}
109
113
 
110
114
  {{ markdown({
@@ -13,6 +13,7 @@ tagTitle: Product
13
13
  {% from "components/scroll-spy/macro.njk" import scrollSpy %}
14
14
  {% from "components/embed/macro.njk" import youtube %}
15
15
  {% from "components/card/macro.njk" import card %}
16
+ {% from "components/gallery/macro.njk" import gallery %}
16
17
 
17
18
  {% set siteNav %}{% include "navigation/corporate.njk" %}{% endset %}
18
19
 
@@ -26,6 +27,34 @@ tagTitle: Product
26
27
  </nav>
27
28
 
28
29
  <div class="o-grid o-grid--of-two-late">
30
+
31
+ {{ gallery({
32
+ images: [
33
+ {
34
+ src: '/static/img/slide-4.webp',
35
+ title: 'Zetasizer slide 1'
36
+ },
37
+ {
38
+ src: '/static/img/slide-5.webp',
39
+ title: 'Zetasizer slide 2'
40
+ },
41
+ {
42
+ src: '/static/img/slide-6.webp',
43
+ title: 'Zetasizer slide 3'
44
+ },
45
+ {
46
+ src: '/static/img/slide-7.webp',
47
+ title: 'Zetasizer slide 4'
48
+ }
49
+ ],
50
+ videos: [
51
+ {
52
+ title: 'FOCUS ON THE AIR YOU BREATHE - Elemental analysis of air filters according to US EPA Method io-3.3',
53
+ id: 'Q4H7EdHFghs'
54
+ }
55
+ ]
56
+ })}}
57
+
29
58
  <div>
30
59
  <h1 class="c-h c-h--page-title">Mastersizer 3000</h1>
31
60
  <h2 class="c-h c-h--page-subtitle u-margin-top-s-m">Delivering the data you need for outcomes you can trust</h2>
@@ -39,25 +68,6 @@ tagTitle: Product
39
68
  <br />
40
69
  </div>
41
70
  </div>
42
-
43
- <div class="u-flow c-gallery">
44
- {{ youtube({
45
- title: 'FOCUS ON THE AIR YOU BREATHE - Elemental analysis of air filters according to US EPA Method io-3.3',
46
- id: 'Q4H7EdHFghs'
47
- }) }}
48
-
49
- <div class="c-gallery__thumbnails">
50
- <figure class="c-gallery__slide active">
51
- <img src="/static/img/slide-1.jpg" alt="Alt" />
52
- </figure>
53
- <figure class="c-gallery__slide">
54
- <img src="/static/img/slide-2.jpg" alt="Alt" />
55
- </figure>
56
- <figure class="c-gallery__slide">
57
- <img src="/static/img/slide-3.jpg" alt="Alt" />
58
- </figure>
59
- </div>
60
- </div>
61
71
  </div>
62
72
 
63
73
  <div class="o-grid o-grid--of-three u-pad-top-m-l">
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="421" height="724" fill="none"><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>
@@ -1,2 +0,0 @@
1
- ## Color options
2
- In the CMS for the main website (Tridion), users can select from four color options for a campaign component. This is implemented with utility classes in HTML, and is therefore not documented here.