mp-design-system 1.2.64 → 1.2.65

Sign up to get free protection for your applications and to get access to all the features.
Files changed (493) hide show
  1. package/README.md +35 -29
  2. package/dist/build/js/app.js +1 -22
  3. package/dist/build/scss/library.css +1 -1
  4. package/dist/build/scss/main.css +1 -1
  5. package/package.json +35 -46
  6. package/src/_data/components.js +0 -104
  7. package/src/_data/config.js +0 -14
  8. package/src/_data/helpers.js +0 -6
  9. package/src/_headers +0 -9
  10. package/src/_includes/components/accordion/accordion.config.js +0 -28
  11. package/src/_includes/components/accordion/accordion.md +0 -15
  12. package/src/_includes/components/accordion/accordion.njk +0 -10
  13. package/src/_includes/components/accordion/accordion.scss +0 -54
  14. package/src/_includes/components/accordion/macro.njk +0 -5
  15. package/src/_includes/components/alert/alert.config.js +0 -65
  16. package/src/_includes/components/alert/alert.njk +0 -27
  17. package/src/_includes/components/alert/alert.scss +0 -80
  18. package/src/_includes/components/alert/macro.njk +0 -5
  19. package/src/_includes/components/back-to-top/back-to-top.config.js +0 -10
  20. package/src/_includes/components/back-to-top/back-to-top.njk +0 -7
  21. package/src/_includes/components/back-to-top/back-to-top.scss +0 -22
  22. package/src/_includes/components/back-to-top/macro.njk +0 -5
  23. package/src/_includes/components/breadcrumb/breadcrumb.config.js +0 -20
  24. package/src/_includes/components/breadcrumb/breadcrumb.njk +0 -19
  25. package/src/_includes/components/breadcrumb/breadcrumb.scss +0 -69
  26. package/src/_includes/components/breadcrumb/macro.njk +0 -5
  27. package/src/_includes/components/button/button.config.js +0 -89
  28. package/src/_includes/components/button/button.njk +0 -38
  29. package/src/_includes/components/button/button.scss +0 -178
  30. package/src/_includes/components/button/macro.njk +0 -5
  31. package/src/_includes/components/campaign/campaign.config.js +0 -68
  32. package/src/_includes/components/campaign/campaign.njk +0 -26
  33. package/src/_includes/components/campaign/campaign.scss +0 -108
  34. package/src/_includes/components/campaign/macro.njk +0 -5
  35. package/src/_includes/components/card/card.config.js +0 -1058
  36. package/src/_includes/components/card/card.njk +0 -206
  37. package/src/_includes/components/card/card.scss +0 -508
  38. package/src/_includes/components/card/existing-customer-card.config.js +0 -51
  39. package/src/_includes/components/card/existing-customer-card.njk +0 -40
  40. package/src/_includes/components/card/existing-customer-card.scss +0 -100
  41. package/src/_includes/components/card/industry-card.config.js +0 -51
  42. package/src/_includes/components/card/industry-card.njk +0 -34
  43. package/src/_includes/components/card/industry-card.scss +0 -85
  44. package/src/_includes/components/card/macro.njk +0 -29
  45. package/src/_includes/components/card/measurement-type-card.config.js +0 -35
  46. package/src/_includes/components/card/measurement-type-card.njk +0 -35
  47. package/src/_includes/components/card/measurement-type-card.scss +0 -56
  48. package/src/_includes/components/card/product-card.config.js +0 -91
  49. package/src/_includes/components/card/product-card.njk +0 -58
  50. package/src/_includes/components/card/product-card.scss +0 -88
  51. package/src/_includes/components/card/search-result-card.config.js +0 -29
  52. package/src/_includes/components/card/search-result-card.njk +0 -33
  53. package/src/_includes/components/card/search-result-card.scss +0 -48
  54. package/src/_includes/components/card/technology-card.config.js +0 -35
  55. package/src/_includes/components/card/technology-card.njk +0 -35
  56. package/src/_includes/components/card/technology-card.scss +0 -56
  57. package/src/_includes/components/card-new/card-new.config.js +0 -95
  58. package/src/_includes/components/card-new/card-new.md +0 -0
  59. package/src/_includes/components/card-new/card-new.njk +0 -169
  60. package/src/_includes/components/card-new/card-new.scss +0 -156
  61. package/src/_includes/components/card-new/macro.njk +0 -5
  62. package/src/_includes/components/comparison-table/comparison-table.config.js +0 -92
  63. package/src/_includes/components/comparison-table/comparison-table.njk +0 -76
  64. package/src/_includes/components/comparison-table/comparison-table.scss +0 -187
  65. package/src/_includes/components/comparison-table/macro.njk +0 -5
  66. package/src/_includes/components/component/categories.js +0 -5
  67. package/src/_includes/components/component/component.njk +0 -71
  68. package/src/_includes/components/component/preview-card-example.njk +0 -347
  69. package/src/_includes/components/component/preview-cards-three-alt.njk +0 -3
  70. package/src/_includes/components/component/preview-cards-three.njk +0 -3
  71. package/src/_includes/components/component/preview-cards-two.njk +0 -3
  72. package/src/_includes/components/component/preview-content-width.njk +0 -5
  73. package/src/_includes/components/component/preview-default.njk +0 -3
  74. package/src/_includes/components/component/preview-fixed-width.njk +0 -5
  75. package/src/_includes/components/component/preview-form.njk +0 -3
  76. package/src/_includes/components/component/preview-icons.njk +0 -3
  77. package/src/_includes/components/component/preview-sidebar.njk +0 -5
  78. package/src/_includes/components/embed/embed.njk +0 -11
  79. package/src/_includes/components/embed/embed.scss +0 -17
  80. package/src/_includes/components/embed/macro.njk +0 -9
  81. package/src/_includes/components/embed/youtube.config.js +0 -19
  82. package/src/_includes/components/embed/youtube.njk +0 -5
  83. package/src/_includes/components/event-card/event-card.config.js +0 -108
  84. package/src/_includes/components/event-card/event-card.njk +0 -1
  85. package/src/_includes/components/event-card/event-card.scss +0 -49
  86. package/src/_includes/components/event-card/macro.njk +0 -5
  87. package/src/_includes/components/eyebrow/eyebrow.config.js +0 -84
  88. package/src/_includes/components/eyebrow/eyebrow.njk +0 -24
  89. package/src/_includes/components/eyebrow/eyebrow.scss +0 -71
  90. package/src/_includes/components/eyebrow/macro.njk +0 -5
  91. package/src/_includes/components/facet/facet.config.js +0 -110
  92. package/src/_includes/components/facet/facet.njk +0 -25
  93. package/src/_includes/components/facet/facet.scss +0 -49
  94. package/src/_includes/components/facet/macro.njk +0 -5
  95. package/src/_includes/components/featured-article-card/featured-article-card.config.js +0 -32
  96. package/src/_includes/components/featured-article-card/featured-article-card.njk +0 -24
  97. package/src/_includes/components/featured-article-card/featured-article-card.scss +0 -34
  98. package/src/_includes/components/featured-article-card/macro.njk +0 -5
  99. package/src/_includes/components/features-table/features-table.config.js +0 -137
  100. package/src/_includes/components/features-table/features-table.njk +0 -364
  101. package/src/_includes/components/features-table/features-table.scss +0 -96
  102. package/src/_includes/components/features-table/macro.njk +0 -5
  103. package/src/_includes/components/filter-search/filter-search.config.js +0 -16
  104. package/src/_includes/components/filter-search/filter-search.njk +0 -11
  105. package/src/_includes/components/filter-search/filter-search.scss +0 -33
  106. package/src/_includes/components/filter-search/macro.njk +0 -5
  107. package/src/_includes/components/footer/footer.config.js +0 -7
  108. package/src/_includes/components/footer/footer.njk +0 -81
  109. package/src/_includes/components/footer/footer.scss +0 -127
  110. package/src/_includes/components/footer/macro.njk +0 -5
  111. package/src/_includes/components/gallery/gallery.config.js +0 -55
  112. package/src/_includes/components/gallery/gallery.md +0 -1
  113. package/src/_includes/components/gallery/gallery.njk +0 -51
  114. package/src/_includes/components/gallery/gallery.scss +0 -54
  115. package/src/_includes/components/gallery/macro.njk +0 -5
  116. package/src/_includes/components/header/header.config.js +0 -38
  117. package/src/_includes/components/header/header.md +0 -4
  118. package/src/_includes/components/header/header.njk +0 -111
  119. package/src/_includes/components/header/header.scss +0 -273
  120. package/src/_includes/components/header/macro.njk +0 -5
  121. package/src/_includes/components/hero/hero.config.js +0 -144
  122. package/src/_includes/components/hero/hero.njk +0 -109
  123. package/src/_includes/components/hero/hero.scss +0 -356
  124. package/src/_includes/components/hero/macro.njk +0 -5
  125. package/src/_includes/components/hotspot-image/hotspot-image.config.js +0 -55
  126. package/src/_includes/components/hotspot-image/hotspot-image.njk +0 -41
  127. package/src/_includes/components/hotspot-image/hotspot-image.scss +0 -103
  128. package/src/_includes/components/hotspot-image/macro.njk +0 -5
  129. package/src/_includes/components/icon/icon.config.js +0 -18
  130. package/src/_includes/components/icon/icon.md +0 -1
  131. package/src/_includes/components/icon/icon.njk +0 -13
  132. package/src/_includes/components/icon/icon.scss +0 -6
  133. package/src/_includes/components/icon/macro.njk +0 -5
  134. package/src/_includes/components/input/checkbox.config.js +0 -41
  135. package/src/_includes/components/input/checkbox.njk +0 -2
  136. package/src/_includes/components/input/input.config.js +0 -67
  137. package/src/_includes/components/input/input.njk +0 -15
  138. package/src/_includes/components/input/input.scss +0 -136
  139. package/src/_includes/components/input/macro.njk +0 -25
  140. package/src/_includes/components/input/radio.config.js +0 -41
  141. package/src/_includes/components/input/radio.njk +0 -2
  142. package/src/_includes/components/input/radio.scss +0 -143
  143. package/src/_includes/components/input/select.config.js +0 -70
  144. package/src/_includes/components/input/select.njk +0 -13
  145. package/src/_includes/components/input/textarea.config.js +0 -51
  146. package/src/_includes/components/input/textarea.njk +0 -4
  147. package/src/_includes/components/input/toggle.config.js +0 -41
  148. package/src/_includes/components/input/toggle.njk +0 -5
  149. package/src/_includes/components/input/toggle.scss +0 -75
  150. package/src/_includes/components/internal-nav/internal-nav.config.js +0 -41
  151. package/src/_includes/components/internal-nav/internal-nav.njk +0 -24
  152. package/src/_includes/components/internal-nav/internal-nav.scss +0 -74
  153. package/src/_includes/components/internal-nav/macro.njk +0 -5
  154. package/src/_includes/components/meta-box/macro.njk +0 -5
  155. package/src/_includes/components/meta-box/meta-box.config.js +0 -74
  156. package/src/_includes/components/meta-box/meta-box.njk +0 -36
  157. package/src/_includes/components/meta-box/meta-box.scss +0 -10
  158. package/src/_includes/components/off-canvas/macro.njk +0 -5
  159. package/src/_includes/components/off-canvas/off-canvas.config.js +0 -28
  160. package/src/_includes/components/off-canvas/off-canvas.njk +0 -28
  161. package/src/_includes/components/off-canvas/off-canvas.scss +0 -102
  162. package/src/_includes/components/option-list/macro.njk +0 -5
  163. package/src/_includes/components/option-list/option-list.config.js +0 -51
  164. package/src/_includes/components/option-list/option-list.njk +0 -10
  165. package/src/_includes/components/option-list/option-list.scss +0 -39
  166. package/src/_includes/components/post-meta/macro.njk +0 -5
  167. package/src/_includes/components/post-meta/post-meta.config.js +0 -44
  168. package/src/_includes/components/post-meta/post-meta.njk +0 -16
  169. package/src/_includes/components/post-meta/post-meta.scss +0 -7
  170. package/src/_includes/components/product-card/macro.njk +0 -5
  171. package/src/_includes/components/product-card/product-card.config.js +0 -84
  172. package/src/_includes/components/product-card/product-card.njk +0 -1
  173. package/src/_includes/components/product-card/product-card.scss +0 -36
  174. package/src/_includes/components/product-signpost/macro.njk +0 -3
  175. package/src/_includes/components/product-signpost/product-signpost.config.js +0 -43
  176. package/src/_includes/components/product-signpost/product-signpost.njk +0 -16
  177. package/src/_includes/components/product-signpost/product-signpost.scss +0 -61
  178. package/src/_includes/components/prose/macro.njk +0 -11
  179. package/src/_includes/components/prose/prose.config.js +0 -65
  180. package/src/_includes/components/prose/prose.md +0 -1
  181. package/src/_includes/components/prose/prose.njk +0 -17
  182. package/src/_includes/components/quote/macro.njk +0 -5
  183. package/src/_includes/components/quote/quote.config.js +0 -19
  184. package/src/_includes/components/quote/quote.njk +0 -9
  185. package/src/_includes/components/quote/quote.scss +0 -51
  186. package/src/_includes/components/resource-card/macro.njk +0 -5
  187. package/src/_includes/components/resource-card/resource-card.config.js +0 -59
  188. package/src/_includes/components/resource-card/resource-card.njk +0 -1
  189. package/src/_includes/components/resource-card/resource-card.scss +0 -0
  190. package/src/_includes/components/scroll-spy/macro.njk +0 -5
  191. package/src/_includes/components/scroll-spy/scroll-spy.config.js +0 -24
  192. package/src/_includes/components/scroll-spy/scroll-spy.md +0 -3
  193. package/src/_includes/components/scroll-spy/scroll-spy.njk +0 -5
  194. package/src/_includes/components/scroll-spy/scroll-spy.scss +0 -54
  195. package/src/_includes/components/series/macro.njk +0 -5
  196. package/src/_includes/components/series/series.config.js +0 -35
  197. package/src/_includes/components/series/series.njk +0 -15
  198. package/src/_includes/components/series/series.scss +0 -20
  199. package/src/_includes/components/signpost/macro.njk +0 -5
  200. package/src/_includes/components/signpost/signpost.config.js +0 -36
  201. package/src/_includes/components/signpost/signpost.njk +0 -21
  202. package/src/_includes/components/signpost/signpost.scss +0 -66
  203. package/src/_includes/components/slat/slat.config.js +0 -59
  204. package/src/_includes/components/slat/slat.njk +0 -15
  205. package/src/_includes/components/slat/slat.scss +0 -53
  206. package/src/_includes/components/table/macro.njk +0 -11
  207. package/src/_includes/components/table/table.config.js +0 -68
  208. package/src/_includes/components/table/table.md +0 -16
  209. package/src/_includes/components/table/table.njk +0 -28
  210. package/src/_includes/components/table/table.scss +0 -157
  211. package/src/_includes/components/tabs/macro.njk +0 -9
  212. package/src/_includes/components/tabs/tabs-radio.config.js +0 -32
  213. package/src/_includes/components/tabs/tabs-radio.njk +0 -9
  214. package/src/_includes/components/tabs/tabs.config.js +0 -57
  215. package/src/_includes/components/tabs/tabs.njk +0 -17
  216. package/src/_includes/components/tabs/tabs.scss +0 -105
  217. package/src/_includes/components/twi/macro.njk +0 -5
  218. package/src/_includes/components/twi/twi.config.js +0 -46
  219. package/src/_includes/components/twi/twi.md +0 -1
  220. package/src/_includes/components/twi/twi.njk +0 -30
  221. package/src/_includes/components/twi/twi.scss +0 -44
  222. package/src/_includes/components/usp/macro.njk +0 -5
  223. package/src/_includes/components/usp/usp.config.js +0 -55
  224. package/src/_includes/components/usp/usp.md +0 -101
  225. package/src/_includes/components/usp/usp.njk +0 -42
  226. package/src/_includes/components/usp/usp.scss +0 -60
  227. package/src/_includes/content-page.njk +0 -53
  228. package/src/_includes/includes/color-swatches.njk +0 -260
  229. package/src/_includes/includes/related-events.njk +0 -60
  230. package/src/_includes/includes/resources.njk +0 -78
  231. package/src/_includes/includes/system-footer.njk +0 -30
  232. package/src/_includes/includes/system-header.njk +0 -30
  233. package/src/_includes/includes/system-scripts.njk +0 -88
  234. package/src/_includes/layout.njk +0 -69
  235. package/src/_includes/library-navigation/brand-nav.njk +0 -67
  236. package/src/_includes/library-navigation/components-nav.njk +0 -88
  237. package/src/_includes/library-navigation/content-nav.njk +0 -53
  238. package/src/_includes/library-navigation/system-nav.njk +0 -9
  239. package/src/_includes/library.njk +0 -5
  240. package/src/_includes/navigation/blog.njk +0 -16
  241. package/src/_includes/navigation/corporate.njk +0 -25
  242. package/src/_includes/navigation/store.njk +0 -29
  243. package/src/_includes/page.njk +0 -14
  244. package/src/_includes/patterns-page.njk +0 -41
  245. package/src/_includes/system-home-page.njk +0 -28
  246. package/src/_includes/system-page.njk +0 -27
  247. package/src/_includes/system.njk +0 -39
  248. package/src/_redirects +0 -13
  249. package/src/assets/fonts/Inter-Bold.woff +0 -0
  250. package/src/assets/fonts/Inter-Bold.woff2 +0 -0
  251. package/src/assets/fonts/Inter-Regular.woff +0 -0
  252. package/src/assets/fonts/Inter-Regular.woff2 +0 -0
  253. package/src/assets/fonts/Inter-SemiBold.woff +0 -0
  254. package/src/assets/fonts/Inter-SemiBold.woff2 +0 -0
  255. package/src/assets/js/app.js +0 -40
  256. package/src/assets/js/imports/accordion.js +0 -17
  257. package/src/assets/js/imports/carousel.js +0 -22
  258. package/src/assets/js/imports/clear-form.js +0 -27
  259. package/src/assets/js/imports/comparison.js +0 -64
  260. package/src/assets/js/imports/facet.js +0 -23
  261. package/src/assets/js/imports/gallery.js +0 -87
  262. package/src/assets/js/imports/hero-pattern.js +0 -94
  263. package/src/assets/js/imports/hero-video.js +0 -53
  264. package/src/assets/js/imports/hotspot-image.js +0 -91
  265. package/src/assets/js/imports/internal-nav.js +0 -41
  266. package/src/assets/js/imports/off-canvas.js +0 -219
  267. package/src/assets/js/imports/responsive-table.js +0 -30
  268. package/src/assets/js/imports/scroll-spy.js +0 -46
  269. package/src/assets/js/imports/scrollbar-width.js +0 -15
  270. package/src/assets/js/imports/tabs.js +0 -58
  271. package/src/assets/js/imports/utilities.js +0 -31
  272. package/src/assets/scss/components/form.scss +0 -306
  273. package/src/assets/scss/components/headings.scss +0 -68
  274. package/src/assets/scss/components/index.scss +0 -52
  275. package/src/assets/scss/components/lightbox.scss +0 -64
  276. package/src/assets/scss/components/product-finder.scss +0 -75
  277. package/src/assets/scss/elements/index.scss +0 -2
  278. package/src/assets/scss/elements/reset.scss +0 -139
  279. package/src/assets/scss/elements/typography.scss +0 -25
  280. package/src/assets/scss/foundations/animation.scss +0 -4
  281. package/src/assets/scss/foundations/colour.scss +0 -85
  282. package/src/assets/scss/foundations/index.scss +0 -4
  283. package/src/assets/scss/foundations/space.scss +0 -57
  284. package/src/assets/scss/foundations/typography.scss +0 -159
  285. package/src/assets/scss/library.scss +0 -672
  286. package/src/assets/scss/main.scss +0 -6
  287. package/src/assets/scss/objects/button-wrap.scss +0 -18
  288. package/src/assets/scss/objects/clickable-parent.scss +0 -3
  289. package/src/assets/scss/objects/grid.scss +0 -329
  290. package/src/assets/scss/objects/index.scss +0 -4
  291. package/src/assets/scss/objects/prose.scss +0 -169
  292. package/src/assets/scss/objects/syntax-highlighting.scss +0 -211
  293. package/src/assets/scss/tools/breakout.scss +0 -17
  294. package/src/assets/scss/tools/cutoff.scss +0 -50
  295. package/src/assets/scss/tools/index.scss +0 -172
  296. package/src/assets/scss/utilities/colour.scss +0 -10
  297. package/src/assets/scss/utilities/disabled.scss +0 -8
  298. package/src/assets/scss/utilities/display.scss +0 -156
  299. package/src/assets/scss/utilities/divider.scss +0 -6
  300. package/src/assets/scss/utilities/ellipsis.scss +0 -7
  301. package/src/assets/scss/utilities/flex.scss +0 -47
  302. package/src/assets/scss/utilities/flow.scss +0 -69
  303. package/src/assets/scss/utilities/gap.scss +0 -3
  304. package/src/assets/scss/utilities/hr.scss +0 -23
  305. package/src/assets/scss/utilities/index.scss +0 -18
  306. package/src/assets/scss/utilities/link.scss +0 -26
  307. package/src/assets/scss/utilities/scroll-shadows.scss +0 -69
  308. package/src/assets/scss/utilities/space.scss +0 -370
  309. package/src/assets/scss/utilities/typography.scss +0 -35
  310. package/src/assets/scss/utilities/wrap.scss +0 -24
  311. package/src/assets/svg/arc.svg +0 -1
  312. package/src/assets/svg/concentric.svg +0 -1
  313. package/src/assets/svg/crystal.svg +0 -1
  314. package/src/assets/svg/dots-pattern.svg +0 -1
  315. package/src/brand/colors.njk +0 -69
  316. package/src/brand/illustration.md +0 -50
  317. package/src/brand/images.md +0 -101
  318. package/src/brand/index.njk +0 -147
  319. package/src/brand/logo.md +0 -107
  320. package/src/brand/patterns.njk +0 -49
  321. package/src/brand/requirements.md +0 -98
  322. package/src/brand/resources.njk +0 -75
  323. package/src/brand/typography.md +0 -101
  324. package/src/components/colour.njk +0 -327
  325. package/src/components/creating-a-component.md +0 -163
  326. package/src/components/css.md +0 -65
  327. package/src/components/flow.njk +0 -131
  328. package/src/components/grid/generic.njk +0 -99
  329. package/src/components/grid/index.njk +0 -86
  330. package/src/components/grid/layout.njk +0 -56
  331. package/src/components/grid/wrap.njk +0 -20
  332. package/src/components/iconography.njk +0 -92
  333. package/src/components/index.njk +0 -65
  334. package/src/components/installation.md +0 -61
  335. package/src/components/publishing-the-system.md +0 -25
  336. package/src/components/space.njk +0 -191
  337. package/src/components/typography.njk +0 -135
  338. package/src/components/utilities.md +0 -182
  339. package/src/components-full-pages.njk +0 -24
  340. package/src/components-pages.njk +0 -103
  341. package/src/content/and-so/please-write-responsibly.md +0 -15
  342. package/src/content/and-so/sitting-down.md +0 -13
  343. package/src/content/big-ideas.md +0 -63
  344. package/src/content/boilerplate.md +0 -33
  345. package/src/content/elevator-pitch.md +0 -33
  346. package/src/content/index.njk +0 -126
  347. package/src/content/our-voice/1-big-picture.md +0 -37
  348. package/src/content/our-voice/2-whats-most-important.md +0 -38
  349. package/src/content/our-voice/3-write-like-we-speak.md +0 -50
  350. package/src/content/our-voice/4-write-to-be-skimmed.md +0 -50
  351. package/src/content/our-voice/5-active-sentences.md +0 -73
  352. package/src/content/our-voice/6-add-energy.md +0 -34
  353. package/src/content/our-voice/7-small-surprises.md +0 -44
  354. package/src/content/our-voice/seven-steps.md +0 -21
  355. package/src/content/our-voice/which-techniques-when.md +0 -39
  356. package/src/content/real-life-examples/01-who-we-are-boilerplate.md +0 -39
  357. package/src/content/real-life-examples/02-event-announcement.md +0 -38
  358. package/src/content/real-life-examples/03-customer-support-letter.md +0 -58
  359. package/src/content/real-life-examples/04-delay-in-shipment-letter.md +0 -62
  360. package/src/content/real-life-examples/05-overview-events-training.md +0 -41
  361. package/src/content/real-life-examples/06-digital-product-description.md +0 -40
  362. package/src/content/real-life-examples/07-recruitment.md +0 -42
  363. package/src/content/real-life-examples/08-industry-sector-1.md +0 -43
  364. package/src/content/real-life-examples/09-industry-sector-2.md +0 -47
  365. package/src/content/real-life-examples/10-website-information.md +0 -50
  366. package/src/content/real-life-examples/11-internal-update.md +0 -37
  367. package/src/content/real-life-examples/12-value-proposition.md +0 -44
  368. package/src/index.njk +0 -152
  369. package/src/patterns/form.njk +0 -349
  370. package/src/patterns/grid-of-cards.njk +0 -66
  371. package/src/patterns/index.njk +0 -19
  372. package/src/patterns/mp-form.njk +0 -111
  373. package/src/patterns/usps.njk +0 -149
  374. package/src/prototype/blog-post.njk +0 -123
  375. package/src/prototype/blog.njk +0 -168
  376. package/src/prototype/card-test.njk +0 -147
  377. package/src/prototype/creating-a-page.njk +0 -74
  378. package/src/prototype/events-hub.njk +0 -520
  379. package/src/prototype/form-altcha.njk +0 -705
  380. package/src/prototype/form-cloudflare.njk +0 -688
  381. package/src/prototype/form-hcaptcha.njk +0 -693
  382. package/src/prototype/home.njk +0 -24
  383. package/src/prototype/index.njk +0 -893
  384. package/src/prototype/oma.njk +0 -167
  385. package/src/prototype/product.njk +0 -480
  386. package/src/prototype/products.njk +0 -163
  387. package/src/prototype/range.njk +0 -263
  388. package/src/prototype/request-a-quote.njk +0 -147
  389. package/src/prototype/sections.njk +0 -295
  390. package/src/prototype/spline.njk +0 -16
  391. package/src/prototype/thanks.njk +0 -31
  392. package/src/prototype/webinar.njk +0 -118
  393. package/src/prototype/webinars-3-2-1.njk +0 -397
  394. package/src/prototype/webinars.njk +0 -405
  395. package/src/quickstart.md +0 -41
  396. package/src/robots.txt +0 -5
  397. package/src/static/adobe/MP Franklin colour swatches.ai +0 -914
  398. package/src/static/img/aeris.jpg +0 -0
  399. package/src/static/img/article-1.jpg +0 -0
  400. package/src/static/img/article-2.jpg +0 -0
  401. package/src/static/img/blog-image-1.jpg +0 -0
  402. package/src/static/img/blog-page-image-1.jpg +0 -0
  403. package/src/static/img/blog-page-image-2.jpg +0 -0
  404. package/src/static/img/blog-page-image-3.jpg +0 -0
  405. package/src/static/img/blog-page-image-4.jpg +0 -0
  406. package/src/static/img/blog-page-image-5.jpg +0 -0
  407. package/src/static/img/blog-page-image-6.jpg +0 -0
  408. package/src/static/img/campaign.jpg +0 -0
  409. package/src/static/img/case-study-1.jpg +0 -0
  410. package/src/static/img/case-study-2.jpg +0 -0
  411. package/src/static/img/case-study-3.jpg +0 -0
  412. package/src/static/img/empyrean.jpg +0 -0
  413. package/src/static/img/epsilon.jpg +0 -0
  414. package/src/static/img/favicon-32x32.png +0 -0
  415. package/src/static/img/favicon.svg +0 -1
  416. package/src/static/img/featured-blog-post.jpg +0 -0
  417. package/src/static/img/featured-event-1.jpg +0 -0
  418. package/src/static/img/featured-event-2.jpg +0 -0
  419. package/src/static/img/featured-event-3.jpg +0 -0
  420. package/src/static/img/flow-2.png +0 -0
  421. package/src/static/img/flow-diagram.png +0 -0
  422. package/src/static/img/flow.png +0 -0
  423. package/src/static/img/grid-captivate-1.jpg +0 -0
  424. package/src/static/img/homepage_1_back.webp +0 -0
  425. package/src/static/img/homepage_1_back_alt.webp +0 -0
  426. package/src/static/img/homepage_1_front_full.webp +0 -0
  427. package/src/static/img/homepage_2_back.webp +0 -0
  428. package/src/static/img/homepage_2_back_alt.webp +0 -0
  429. package/src/static/img/homepage_2_front_full.webp +0 -0
  430. package/src/static/img/itcss.svg +0 -8
  431. package/src/static/img/leneo.jpg +0 -0
  432. package/src/static/img/mastersizer.jpg +0 -0
  433. package/src/static/img/microcal.jpg +0 -0
  434. package/src/static/img/morphologi.jpg +0 -0
  435. package/src/static/img/omnisec.jpg +0 -0
  436. package/src/static/img/open-graph-image.jpg +0 -0
  437. package/src/static/img/product-accessory-1.jpg +0 -0
  438. package/src/static/img/product-accessory-2.jpg +0 -0
  439. package/src/static/img/product-image.jpg +0 -0
  440. package/src/static/img/products-1.jpg +0 -0
  441. package/src/static/img/products-2.jpg +0 -0
  442. package/src/static/img/products-3.jpg +0 -0
  443. package/src/static/img/products-4.jpg +0 -0
  444. package/src/static/img/products-5.jpg +0 -0
  445. package/src/static/img/products-6.jpg +0 -0
  446. package/src/static/img/qualityspec.jpg +0 -0
  447. package/src/static/img/range-product-1.jpg +0 -0
  448. package/src/static/img/range-product-2.jpg +0 -0
  449. package/src/static/img/range.jpg +0 -0
  450. package/src/static/img/salt.png +0 -0
  451. package/src/static/img/sector-1.jpg +0 -0
  452. package/src/static/img/sector-2.jpg +0 -0
  453. package/src/static/img/sector-3.jpg +0 -0
  454. package/src/static/img/sector-4.jpg +0 -0
  455. package/src/static/img/sector-5.jpg +0 -0
  456. package/src/static/img/slide-1.jpg +0 -0
  457. package/src/static/img/slide-2.jpg +0 -0
  458. package/src/static/img/slide-3.jpg +0 -0
  459. package/src/static/img/slide-4.webp +0 -0
  460. package/src/static/img/slide-5.webp +0 -0
  461. package/src/static/img/slide-6.webp +0 -0
  462. package/src/static/img/slide-7.webp +0 -0
  463. package/src/static/img/zetasizer.jpg +0 -0
  464. package/src/static/pdf/PN12558_Physical_branding_v23.pdf +0 -0
  465. package/src/static/pdf/Power of One - Malvern Panalytical rebranding guidance.pdf +0 -0
  466. package/src/static/svg/crop-diagram-1.svg +0 -1
  467. package/src/static/svg/crop-diagram-2.svg +0 -1
  468. package/src/static/svg/icon-globe-alt--white.svg +0 -4
  469. package/src/static/svg/icon-globe-alt.svg +0 -4
  470. package/src/static/svg/icon-live-webinars--white.svg +0 -6
  471. package/src/static/svg/icon-live-webinars.svg +0 -6
  472. package/src/static/svg/icon-recorded-webinars--white.svg +0 -4
  473. package/src/static/svg/icon-recorded-webinars.svg +0 -4
  474. package/src/static/svg/icon-user-training--white.svg +0 -5
  475. package/src/static/svg/icon-user-training.svg +0 -5
  476. package/src/static/svg/imaging-matrix.svg +0 -56
  477. package/src/static/svg/large-envelope.svg +0 -1
  478. package/src/static/svg/large-globe.svg +0 -1
  479. package/src/static/svg/large-student.svg +0 -1
  480. package/src/static/svg/logo-black.svg +0 -1
  481. package/src/static/svg/logo-color-white-text.svg +0 -1
  482. package/src/static/svg/logo-simple.svg +0 -1
  483. package/src/static/svg/logo-small.svg +0 -1
  484. package/src/static/svg/logo-spacing-horizontal.svg +0 -1
  485. package/src/static/svg/logo-spacing-vertical.svg +0 -1
  486. package/src/static/svg/logo-stacked.svg +0 -1
  487. package/src/static/svg/logo-white.svg +0 -1
  488. package/src/static/svg/logo-x.svg +0 -1
  489. package/src/static/svg/logo.svg +0 -1
  490. package/src/static/svg/sprite.svg +0 -48
  491. package/src/static/svg/typography-spacing.svg +0 -2345
  492. package/src/static/zip/MP_logo.zip +0 -0
  493. package/src/static/zip/SVG_patterns.zip +0 -0
@@ -1,191 +0,0 @@
1
- ---
2
- title: Space
3
- layout: system-page
4
- ---
5
-
6
- {% from "components/prose/macro.njk" import markdown %}
7
-
8
- {% set base = 18 %}
9
- {% set sizes = {
10
- 3xs: 0.25,
11
- 2xs: 0.5,
12
- xs: 0.75,
13
- s: 1,
14
- m: 1.5,
15
- l: 2,
16
- xl: 3,
17
- 2xl: 4,
18
- 3xl: 6,
19
- 4xl: 8
20
- } %}
21
-
22
- {% set interpolated = [
23
- ['3xs', '2xs'],
24
- ['2xs', 'xs'],
25
- ['xs', 's'],
26
- ['s', 'm'],
27
- ['m', 'l'],
28
- ['l', 'xl'],
29
- ['xl', '2xl'],
30
- ['2xl', '3xl'],
31
- ['3xl', '4xl'],
32
- ['s', 'l'],
33
- ['s', 'xl'],
34
- ['m', 'xl'],
35
- ['l', '2xl'],
36
- ['l', '3xl'],
37
- ['xl', '3xl'],
38
- ['l', '4xl']
39
- ] %}
40
-
41
- {% set content %}
42
- Space is a key component of design, not an accidental gap which appears between components. It helps users understand how components relate to each other, and find and focus on the content they want to consume.
43
-
44
- A series of space values enables more efficient design decision making. The space palette comprises multiples of the body font size of `18px`.
45
-
46
- These values can be combined to create fluid spaces whose size depends on the browser’s current viewport width. This is a very code-efficient way to ensure designs always make the most of the available screen space and feel at home on any device.
47
-
48
- To see this in action, resize your browser window and watch the red squares below scale at different rates.
49
- {% endset %}
50
- <div class="u-flow--gutter">
51
- {{ markdown({
52
- content: content
53
- }) }}
54
-
55
- <div class="u-flow">
56
- <h3 class="c-h c-h--step-2">Base sizes</h3>
57
- <table class="c-table c-table--fixed">
58
- <thead>
59
- <tr>
60
- <th>Example</th>
61
- <th>Name</th>
62
- <th>Size</th>
63
- </tr>
64
- </thead>
65
- <tbody>
66
- {% for size, multiplier in sizes %}
67
- {% set px = multiplier * base %}
68
- <tr>
69
- <td>
70
- <span style="width: var(--space-{{ size }});" class="c-library__space"><span></span></span>
71
- </td>
72
- <td>{{ size }}</td>
73
- <td>{{ px }}px</td>
74
- {% endfor %}
75
- </tbody>
76
- </table>
77
- </div>
78
-
79
- <div class="u-flow">
80
- <h3 class="c-h c-h--step-2">Interpolated sizes</h3>
81
- <table class="c-table c-table--fixed">
82
- <thead>
83
- <tr>
84
- <th>Example</th>
85
- <th>Name</th>
86
- <th>From</th>
87
- <th>To</th>
88
- </tr>
89
- </thead>
90
- <tbody>
91
- {% for group in interpolated %}
92
- {% set from = group[0] %}
93
- {% set to = group[1] %}
94
- {% set fromPx = sizes[from] * base %}
95
- {% set toPx = sizes[to] * base %}
96
- <tr>
97
- <td>
98
- <span style="width: var(--space-{{ from }}-{{ to }});" class="c-library__space"><span></span></span>
99
- </td>
100
- <td>{{ from }}-{{ to }}</td>
101
- <td>{{ fromPx }}px</td>
102
- <td>{{ toPx }}px</td>
103
- {% endfor %}
104
- </tbody>
105
- </table>
106
- </div>
107
-
108
- {% set content %}
109
- ### CSS custom properties
110
-
111
- Underpinning the fluid space system is a set of calculations made by CSS custom properties. Using the [CSS lock](https://utopia.fyi/blog/fluid-custom-properties) technique, these fluid space units can be used with the following syntax:
112
-
113
- ```scss
114
- .c-component {
115
- padding: var(--space-s);
116
- }
117
- ```
118
-
119
- **However**, this syntax should be avoided if at all possible. Unless there are `calc()` calculations to be made (`calc(var(--space-xs) + 10px)`), you should use the SCSS or utility class syntax. This provides a sensible fallback for older browsers.
120
-
121
- ### SCSS mixin
122
-
123
- Fluid space is exposed via a number of mixins. As IE support is required and CSS Custom Properties are doing most of the heavy lifting in this fluid system, we need to be able to fallback to sensible defaults, without including an absurd number of media queries, as is usually achieved with CSS locks.
124
-
125
- There is a `space()` mixin that allows you to pass a property and up to four arguments. These map directly to the padding/margin shorthand arguments of top, right, bottom, and left:
126
-
127
- ```scss
128
- .c-component {
129
- @include padding('s', 0);
130
- }
131
- ```
132
-
133
- There are also mixins for the four direction properties:
134
-
135
- ```scss
136
- .c-component {
137
- @include margin-left('s');
138
- }
139
- ```
140
-
141
- Space units can also be interpolated to give a sliding scale from smaller to larger screens. This example runs the top margin between 'small' and 'medium', the right & left as 'large', and the bottom as `4rem`:
142
-
143
- ```scss
144
- .c-component {
145
- @include margin('s-m', 'l', 4rem);
146
- }
147
- ```
148
-
149
- ### Source → Compiled
150
-
151
- <table class="c-table">
152
- <thead>
153
- <tr>
154
- <th>Source</th>
155
- <th>Compiled</th>
156
- </tr>
157
- </thead>
158
- <tbody>
159
- <tr>
160
- <td><code>@include margin-left('s')</code></td>
161
- <td><code>margin-left: 18px;</code><br />
162
- <code>margin-left: var(--space-s);</code></td>
163
- </tr>
164
- <tr>
165
- <td><code>@include padding('l', 0)</code></td>
166
- <td><code>padding: 36px 0;</code><br />
167
- <code>padding: var(--space-l) 0;</code></td>
168
- </tr>
169
- <tr>
170
- <td><code>@include margin('s-m', 'l', 4rem)</code></td>
171
- <td><code>margin: 18px 36px 4rem;</code><br />
172
- <code>margin: var(--space-s-m) var(--space-l) 4rem;</code></td>
173
- </tr>
174
- </tbody>
175
- </table>
176
-
177
- ### Utility classes
178
-
179
- As well as custom properties, space units can be applied using utility classes, with one set for padding and another for margins.
180
-
181
- ```html
182
- <div class="u-margin-bottom-s"></div> // Small margin bottom
183
- <div class="u-pad-y-l"></div> // Large padding top and bottom
184
- <div class="u-margin-bottom-l-xl"></div> // Large to Extra Large margin bottom
185
- ```
186
- {% endset %}
187
-
188
- {{ markdown({
189
- content: content
190
- }) }}
191
- </div>
@@ -1,135 +0,0 @@
1
- ---
2
- title: Typography
3
- layout: system-page
4
- sidebar: components
5
- ---
6
-
7
- {% from "components/prose/macro.njk" import markdown %}
8
- {% from "components/alert/macro.njk" import alert %}
9
-
10
- {% set content %}
11
- ## Typographic scale
12
-
13
- The typographic system is based on [utopia.fyi](https://utopia.fyi/generator-mk-ii?c=320,16,1.2,1332,18,1.2,10,2,) – a method of scaling type and space without breakpoints. The benefit is that websites built this way feel at home on any device.
14
-
15
- [An introduction to the what and why of Utopia](https://utopia.fyi/blog/designing-with-fluid-type-scales).
16
- {% endset %}
17
-
18
- <div class="u-flow--l">
19
- {{ markdown({
20
- content: content
21
- }) }}
22
-
23
- <div class="u-flow">
24
- <h2 class="u-step--2">Step -2 <code class="u-step--1 u-grey-step-1 u-normal">.u-step--2</code></h2>
25
- <h2 class="u-step--1">Step -1 <code class="u-step--1 u-grey-step-1 u-normal">.u-step--1</code></h2>
26
- <h2 class="u-step-0">Step 0 <code class="u-step--1 u-grey-step-1 u-normal">.u-step-0</code></h2>
27
- <h2 class="u-step-1">Step 1 <code class="u-step--1 u-grey-step-1 u-normal">.u-step-1</code></h2>
28
- <h2 class="u-step-2">Step 2 <code class="u-step--1 u-grey-step-1 u-normal">.u-step-2</code></h2>
29
- <h2 class="u-step-3">Step 3 <code class="u-step--1 u-grey-step-1 u-normal">.u-step-3</code></h2>
30
- <h2 class="u-step-4">Step 4 <code class="u-step--1 u-grey-step-1 u-normal">.u-step-4</code></h2>
31
- <h2 class="u-step-5">Step 5 <code class="u-step--1 u-grey-step-1 u-normal">.u-step-5</code></h2>
32
- <h2 class="u-step-6">Step 6 <code class="u-step--1 u-grey-step-1 u-normal">.u-step-6</code></h2>
33
- <h2 class="u-step-7">Step 7 <code class="u-step--1 u-grey-step-1 u-normal">.u-step-7</code></h2>
34
-
35
- <p>Generated with <a class="u-link" href="https://utopia.fyi/generator-mk-ii?c=320,16,1.2,1332,18,1.2,10,2,">Utopia</a></p>
36
- </div>
37
-
38
- {{ alert({
39
- content: '<p><strong>Note:</strong> these classes affect the <code>font-size</code> and <code>letter-spacing</code>, not the weight. Check out the headings further down the page for those classes.</p>'
40
- }) }}
41
-
42
- {% set content %}
43
- ### SCSS mixin
44
-
45
- Fluid typography is exposed via a SCSS mixin with the `step($number)` syntax. This allows us to fall back to a sensible default if the browser doesn't support custom properties For example:
46
-
47
- ```scss
48
- .c-component {
49
- @include step(2);
50
-
51
- /* Generates */
52
- letter-spacing: -0.02em;
53
- font-size: 25.92px;
54
- font-size: var(--step-2);
55
- }
56
- ```
57
-
58
- For this font, `letter-spacing` is tightly coupled to the `font-size`, so this mixin covers that for you.
59
-
60
- ### Utility classes
61
-
62
- As well as the mixin, typographical units can be applied using utility classes:
63
-
64
- ```html
65
- <p class="u-step--1">Step -1</p>
66
- ```
67
- {% endset %}
68
-
69
- {{ markdown({
70
- content: content
71
- }) }}
72
-
73
- <hr class="u-hr" />
74
-
75
- {% set content %}
76
- ## Typeface
77
-
78
- The website currently uses a single font family: [Inter](https://rsms.me/inter/). This typeface has been selected for its;
79
- - Excellent clarity and legibility
80
- - Extensive character set
81
- - Comprehensive weight and style options
82
- - Understated authority
83
-
84
- Unless there’s a specific reason;
85
- - Text is regular weight and grey
86
- - Headings are bold and grey
87
- - Links are utility blue
88
- - Links within copy are underlined
89
-
90
- ### Hierarchy
91
-
92
- Page titles use the largest heading size: Step 6. Section headings use the next size down: Step 5, and so on. Designers and content authors should follow this convention to ensure consistency.
93
-
94
- **However**, other than in [prose](/components/prose/), there is no automatic relation between the HTML heading elements (`<h2>`), and the size of the text. This is an intentional semantic decision to allow us to control the page flow **and** the design, and not be hamstrung by one or the other.
95
-
96
- ### Site-specific variation
97
-
98
- The blog uses the “stylistic alternates” character set to subtly soften the formal aesthetic of the Inter UI typeface.
99
-
100
- ![Stylistic alternates demonstration](/static/img/salt.png)
101
-
102
- ## Headings
103
-
104
- Headings by default are bold and grey. In some contexts colour and weight variation can be used to highlight a specific element, for example a tagline on a product page. This option is used sparingly in order to maintain overall consistency.
105
- {% endset %}
106
-
107
- {{ markdown({
108
- content: content
109
- }) }}
110
-
111
- {% set headings = [
112
- ['Page title'],
113
- ['Step 6'],
114
- ['Step 5'],
115
- ['Step 4'],
116
- ['Step 3'],
117
- ['Step 2'],
118
- ['Step 1'],
119
- ['Step 0'],
120
- ['Step -1', 'step--1'],
121
- ['Page subtitle'],
122
- ['Upper'],
123
- ['Event date'],
124
- ['Reset']
125
- ] %}
126
-
127
- <div class="u-flow--m">
128
- {% for h in headings %}
129
- {% set heading = h[0] %}
130
- {% set class = h[1] or heading | slug %}
131
- <h2 class="c-h c-h--{{ class }}">{{ heading }}</h2> <code class="u-step--1 u-grey-step-1">c-h c-h--{{ class }}</code>
132
- {% endfor %}
133
- </div>
134
-
135
- </div>
@@ -1,182 +0,0 @@
1
- ---
2
- title: Utilities
3
- layout: content-page
4
- sidebar: components
5
- ---
6
-
7
- These utility classes each do a single, simple job. They can be applied to any HTML element, and are designed to be used in a wide variety of contexts, when creating a new component or variant might not be required.
8
-
9
- ## Typography
10
-
11
- ```html
12
- <div class="u-strong">Bold text</div>
13
- ```
14
-
15
- ```html
16
- <div class="u-normal">Regular-weight (non-bold) text</div>
17
- ```
18
-
19
- ```html
20
- <div class="u-text-center">Center-aligned text</div>
21
- ```
22
-
23
- ```html
24
- <div class="u-ls">Standard letter-spacing (-0.01em)</div>
25
- ```
26
-
27
- More typography utility classes are documented on the [typography page](/components/typography).
28
-
29
- ---
30
-
31
- ## Visibility & display
32
-
33
- ```html
34
- <div class="u-hidden">Visually hidden, but still accessible to screenreaders</div>
35
- ```
36
-
37
- ```html
38
- <div class="u-display-none">Entirely hidden</div>
39
- ```
40
-
41
- ```html
42
- <div class="u-display-block">Block-level layout</div>
43
- ```
44
-
45
- ```html
46
- <div class="u-display-inline-block">Inline-block-level layout</div>
47
- ```
48
-
49
- ```html
50
- <div class="u-revealed">The opposite of u-hidden, useful for e.g. accordions</div>
51
- ```
52
-
53
- ```html
54
- <div class="u-disabled">
55
- <label class="c-label" for="text_input">
56
- Disabled input, without using the [disabled] attribute</label>
57
- <input type="text" class="c-input">
58
- </div>
59
- ```
60
-
61
- ---
62
-
63
- ## Layout
64
-
65
- ```html
66
- <div class="u-float-right">Floated right</div>
67
- ```
68
-
69
- ```html
70
- <div class="u-clear-both">Cleared from floats</div>
71
- ```
72
-
73
- ```html
74
- <div class="u-relative">Relative positioning</div>
75
- ```
76
-
77
- ```html
78
- <div class="u-sticky">This will "stick" to the top of the screen while scrolling</div>
79
- ```
80
-
81
- ```html
82
- <div class="u-sticky--gutter">To create a small gap above a sticky element</div>
83
- ```
84
-
85
- ```html
86
- <div class="u-split">
87
- <p>Split: aligned left</p>
88
- <a class="u-link">Aligned right</a>
89
- </div>
90
- The two child items will be aligned in a horizontal row
91
- ```
92
- <div class="u-split u-pad-s u-border">
93
- <p>Split: aligned left</p>
94
- <a class="u-link">Aligned right</a>
95
- </div>
96
-
97
- ---
98
-
99
- ## Padding and margins
100
-
101
- #### Syntax:
102
- `u`-`(pad or margin)`-`(size)`
103
-
104
- `u`-`(pad or margin)`-`(direction, optional)`-`(size)`-`(flex size, optional)`
105
-
106
- ```html
107
- <div class="u-pad-s">Small padding on all sides</div>
108
- ```
109
-
110
- ```html
111
- <div class="u-margin-x-xs">Extra small margin on left and right</div>
112
- ```
113
-
114
- ```html
115
- <div class="u-margin-left-m">Medium margin on left side only</div>
116
- ```
117
-
118
- ```html
119
- <div class="u-pad-y-l-xl">Flexible (large to XL) padding on top and bottom</div>
120
- Grows from large padding on small screens, to xl padding on large screens
121
- ```
122
-
123
- Sizes | Directions
124
- ------|-----------
125
- 3xs | top
126
- 2xs | bottom
127
- xs | left
128
- s | right
129
- m | y
130
- l | x
131
- xl |
132
- 2xl |
133
- 3xl |
134
- 4xl |
135
-
136
- N.B. Not all permutations are available in the existing CSS, as that would amount to over 4800 extra lines of code. Currently we've only implemented a handful - but we can add more as needed.
137
-
138
- More padding and margin utility classes are documented on the [space page](/components/space).
139
-
140
- ---
141
-
142
- ## Miscellaneous
143
-
144
- ```html
145
- <div class="u-link-inside">Links inside will have underline styling</div>
146
- ```
147
-
148
- ```html
149
- <div class="u-border">Element will have a subtle border</div>
150
- ```
151
-
152
- <br>
153
-
154
- #### Cutoff
155
-
156
- `u-cutoff`-`(optional direction; can be bottom-left, top-left, or top-right)`-`(size, optional)`
157
-
158
- N.B. The default diagonal size is based on `var(--gutter)`.
159
-
160
- ```html
161
- <div class="u-cutoff">Cutoff effect on the bottom-right corner</div>
162
-
163
- <div class="u-cutoff--top-left">Top left cutoff</div>
164
-
165
- <div class="u-cutoff--xl">XL size cutoff</div>
166
- ```
167
-
168
- <div class="u-bg-blue-step-2 u-pad-xl u-cutoff">Cutoff effect on the bottom-right corner</div>
169
-
170
- <div class="u-bg-blue-step-2 u-pad-xl u-cutoff--top-left">Top left cutoff</div>
171
-
172
- <div class="u-bg-blue-step-2 u-pad-xl u-cutoff--xl">XL size cutoff</div>
173
-
174
- <br>
175
-
176
- #### Scroll shadows
177
-
178
- 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).
179
-
180
- ```html
181
- <nav class="c-tabs__controls u-scroll-shadows--h">
182
- ```
@@ -1,24 +0,0 @@
1
- ---
2
- pagination:
3
- data: components.components
4
- size: 1
5
- alias: component
6
- permalink: "components/full/{{ component.slug }}/"
7
- eleventyComputed:
8
- title: "{{ component.title }}"
9
- ---
10
-
11
- {% extends "layout.njk" %}
12
-
13
- {% from "components/component/component.njk" import c %}
14
-
15
- {% block head %}
16
- <link rel="stylesheet" href="/build/scss/library.css" />
17
- {% endblock %}
18
-
19
- {% block inner %}
20
- {% set comp %}
21
- {{ c(component.component, component.context) }}
22
- {% endset %}
23
- {% include "components/component/preview-" + component.preview + ".njk" %}
24
- {% endblock %}
@@ -1,103 +0,0 @@
1
- ---
2
- pagination:
3
- data: components.components
4
- size: 1
5
- alias: component
6
- permalink: "components/{{ component.slug }}/"
7
- sidebar: components
8
- eleventyComputed:
9
- title: "{{ component.title }}"
10
- ---
11
-
12
- {% extends "library.njk" %}
13
-
14
- {% from "components/component/component.njk" import c, code, docs, props, context %}
15
- {% from "components/twi/macro.njk" import twi %}
16
- {% from "components/prose/macro.njk" import prose %}
17
-
18
- {% block content %}
19
- <div class="c-library-stretch u-wrap mp c-tabs c-tabs--flex c-tabs--anchor c-tabs--persist u-pad-y-m-l">
20
- <header class="u-wrap u-flow--s-l u-margin-bottom-s">
21
- <div class="u-split">
22
- <h1 class="c-h c-h--step-4">{{ component.title }}</h1>
23
- <div>
24
- {% if component.version %}<span class="c-library-version">Version {{ component.version }}</span>{% endif %}
25
- {% if component.status %}<span class="u-margin-left-xs c-library-status c-library-status--{{ component.status | slug }}">{{ component.status }}</span>{% endif %}
26
- </div>
27
- </div>
28
-
29
- {% if component.description %}<p>{{ component.description }}</p>{% endif %}
30
-
31
- <nav class="c-tabs__controls">
32
- <ul class="c-tabs__controls-list">
33
- <li><a class="c-tabs__control c-tabs__control--active" href="#component-example">Example</a></li>
34
- <li><a class="c-tabs__control" href="#component-code">Code</a></li>
35
- <li><a class="c-tabs__control" href="#component-context">Context</a></li>
36
- {% if component.siblings | length > 1 %}<li><a class="c-tabs__control" href="#component-variants">Variants</a></li>{% endif %}
37
- {% if component.docs or component.props %}<li><a class="c-tabs__control" href="#component-docs">Documentation</a></li>{% endif %}
38
- {% if component.figma %}<li>
39
- {{ twi({ icon: 'log-out', align: 'right', label: 'Figma', link: component.figma, classes: 'c-tabs__control', attrs: 'target="_blank"' }) }}
40
- </li>{% endif %}
41
- <li>
42
- {{ twi({ icon: 'log-out', align: 'right', label: 'BitBucket', link: "https://bitbucket.org/mp-website/mp-design-system/src/master/src/_includes/components/" + (component.component.folder or component.component.name), classes: 'c-tabs__control', attrs: 'target="_blank"' }) }}
43
- </li>
44
- </ul>
45
- </nav>
46
- </header>
47
-
48
- <div class="c-library-stretch c-tabs__content">
49
- <div class="c-tab c-tab--active c-library-stretch" id="component-example">
50
- <div class="c-library__frame c-library-stretch">
51
- <div class="c-library__frame-links">
52
- <button type="button" class="c-library__frame-background">Toggle background</button>
53
- <a href="/components/full/{{ component.slug }}" target="_blank">Open fullscreen</a>
54
- </div>
55
- <div class="c-library__frame-wrap" id="iframe-wrap">
56
- <iframe src="/components/full/{{ component.slug }}" sandbox="allow-same-origin allow-scripts allow-forms allow-modals" style="" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" scrolling="yes"></iframe>
57
- </div>
58
- </div>
59
- </div>
60
-
61
- <div class="c-tab" id="component-code">
62
- <div class="u-wrap--content">
63
- {{ code(component.component, component.context) }}
64
- </div>
65
- </div>
66
-
67
- <div class="c-tab" id="component-context">
68
- <div class="u-wrap--content">
69
- {{ context(component.context) }}
70
- </div>
71
- </div>
72
-
73
- <div class="c-tab" id="component-docs">
74
- <div class="u-flow--l">
75
- {% if component.docs %}
76
- {{ prose({
77
- content: docs(component.component)
78
- }) }}
79
- {% endif %}
80
-
81
- {% if component.props | length %}
82
- <div class="u-flow--l">
83
- {% for table in component.props %}
84
- <div class="u-flow--2xs">
85
- <h3 class="c-h c-h--step-2">{{ table.title | safe if table.title else 'Props' }}</h3>
86
- {{ props(table.table) }}
87
- </div>
88
- {% endfor %}
89
- </div>
90
- {% endif %}
91
- </div>
92
- </div>
93
-
94
- <div class="c-tab u-wrap mp o-prose" id="component-variants">
95
- <ul>
96
- {% for sibling in component.siblings %}
97
- <li><a href="/components/{{ sibling.slug }}">{{ sibling.title }}</a></li>
98
- {% endfor %}
99
- </ul>
100
- </div>
101
- </div>
102
- </div>
103
- {% endblock %}
@@ -1,15 +0,0 @@
1
- ---
2
- title: Please write responsibly
3
- layout: content-page
4
- sidebar: content
5
- tags: content
6
- date: 2020-03-02
7
- ---
8
-
9
- We hope you now have a clear idea of how we write at Malvern Panalytical.
10
-
11
- We’ve tried to give a broad range of examples – but it’s never possible to capture everything, and there will occasionally be exceptions to every rule.
12
-
13
- So, it’s up to you to use your good judgment and use the spirit of our tone of voice – that we focus on what really matters, that we’re clear, confident and credible – as your guide.
14
-
15
- **Now it’s over to you.**
@@ -1,13 +0,0 @@
1
- ---
2
- title: Sitting down to write
3
- layout: content-page
4
- sidebar: content
5
- tags: content
6
- date: 2020-03-01
7
- ---
8
- 1. **Make a plan.** Think about the points you want to make. Do some of them naturally group together into themes? What’s the most important thing? Are they all necessary? What’s the best order for them to go in?
9
- 2. **Picture a real person.** Think of an intelligent friend or family member who doesn’t work in science. By making it clear enough for them, you’ll make it clear for everyone.
10
- 3. **Write with your ears.** Writing doesn’t have to happen on paper or keyboard. Try recording yourself speaking off-the-cuff first, then transcribe it, noticing what words and phrases you use. Read your final version out loud to yourself or someone else and listen to what it sounds like.
11
- 4. **Do the ‘at a glance’ test.** Even before you read your piece, does it look inviting or off-putting? Is it broken up into short, simple sections with lots of white space? Or does it look dense and like it’s going to be hard work?
12
- 5. **Cut your first draft by 25%.** Setting yourself a target forces you to be more ruthless at cutting unnecessary words.
13
- 6. **Keep a list.** When you hear a useful expression or explanation of a subject you write about a lot, make a note of it. Pretty soon you’ll have a collection of useful ‘thought starters’ and you’ll never have to start with a blank page ever again.