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.
- package/README.md +35 -29
- package/dist/build/js/app.js +1 -22
- package/dist/build/scss/library.css +1 -1
- package/dist/build/scss/main.css +1 -1
- package/package.json +35 -46
- package/src/_data/components.js +0 -104
- package/src/_data/config.js +0 -14
- package/src/_data/helpers.js +0 -6
- package/src/_headers +0 -9
- package/src/_includes/components/accordion/accordion.config.js +0 -28
- package/src/_includes/components/accordion/accordion.md +0 -15
- package/src/_includes/components/accordion/accordion.njk +0 -10
- package/src/_includes/components/accordion/accordion.scss +0 -54
- package/src/_includes/components/accordion/macro.njk +0 -5
- package/src/_includes/components/alert/alert.config.js +0 -65
- package/src/_includes/components/alert/alert.njk +0 -27
- package/src/_includes/components/alert/alert.scss +0 -80
- package/src/_includes/components/alert/macro.njk +0 -5
- package/src/_includes/components/back-to-top/back-to-top.config.js +0 -10
- package/src/_includes/components/back-to-top/back-to-top.njk +0 -7
- package/src/_includes/components/back-to-top/back-to-top.scss +0 -22
- package/src/_includes/components/back-to-top/macro.njk +0 -5
- package/src/_includes/components/breadcrumb/breadcrumb.config.js +0 -20
- package/src/_includes/components/breadcrumb/breadcrumb.njk +0 -19
- package/src/_includes/components/breadcrumb/breadcrumb.scss +0 -69
- package/src/_includes/components/breadcrumb/macro.njk +0 -5
- package/src/_includes/components/button/button.config.js +0 -89
- package/src/_includes/components/button/button.njk +0 -38
- package/src/_includes/components/button/button.scss +0 -178
- package/src/_includes/components/button/macro.njk +0 -5
- package/src/_includes/components/campaign/campaign.config.js +0 -68
- package/src/_includes/components/campaign/campaign.njk +0 -26
- package/src/_includes/components/campaign/campaign.scss +0 -108
- package/src/_includes/components/campaign/macro.njk +0 -5
- package/src/_includes/components/card/card.config.js +0 -1058
- package/src/_includes/components/card/card.njk +0 -206
- package/src/_includes/components/card/card.scss +0 -508
- package/src/_includes/components/card/existing-customer-card.config.js +0 -51
- package/src/_includes/components/card/existing-customer-card.njk +0 -40
- package/src/_includes/components/card/existing-customer-card.scss +0 -100
- package/src/_includes/components/card/industry-card.config.js +0 -51
- package/src/_includes/components/card/industry-card.njk +0 -34
- package/src/_includes/components/card/industry-card.scss +0 -85
- package/src/_includes/components/card/macro.njk +0 -29
- package/src/_includes/components/card/measurement-type-card.config.js +0 -35
- package/src/_includes/components/card/measurement-type-card.njk +0 -35
- package/src/_includes/components/card/measurement-type-card.scss +0 -56
- package/src/_includes/components/card/product-card.config.js +0 -91
- package/src/_includes/components/card/product-card.njk +0 -58
- package/src/_includes/components/card/product-card.scss +0 -88
- package/src/_includes/components/card/search-result-card.config.js +0 -29
- package/src/_includes/components/card/search-result-card.njk +0 -33
- package/src/_includes/components/card/search-result-card.scss +0 -48
- package/src/_includes/components/card/technology-card.config.js +0 -35
- package/src/_includes/components/card/technology-card.njk +0 -35
- package/src/_includes/components/card/technology-card.scss +0 -56
- package/src/_includes/components/card-new/card-new.config.js +0 -95
- package/src/_includes/components/card-new/card-new.md +0 -0
- package/src/_includes/components/card-new/card-new.njk +0 -169
- package/src/_includes/components/card-new/card-new.scss +0 -156
- package/src/_includes/components/card-new/macro.njk +0 -5
- package/src/_includes/components/comparison-table/comparison-table.config.js +0 -92
- package/src/_includes/components/comparison-table/comparison-table.njk +0 -76
- package/src/_includes/components/comparison-table/comparison-table.scss +0 -187
- package/src/_includes/components/comparison-table/macro.njk +0 -5
- package/src/_includes/components/component/categories.js +0 -5
- package/src/_includes/components/component/component.njk +0 -71
- package/src/_includes/components/component/preview-card-example.njk +0 -347
- package/src/_includes/components/component/preview-cards-three-alt.njk +0 -3
- package/src/_includes/components/component/preview-cards-three.njk +0 -3
- package/src/_includes/components/component/preview-cards-two.njk +0 -3
- package/src/_includes/components/component/preview-content-width.njk +0 -5
- package/src/_includes/components/component/preview-default.njk +0 -3
- package/src/_includes/components/component/preview-fixed-width.njk +0 -5
- package/src/_includes/components/component/preview-form.njk +0 -3
- package/src/_includes/components/component/preview-icons.njk +0 -3
- package/src/_includes/components/component/preview-sidebar.njk +0 -5
- package/src/_includes/components/embed/embed.njk +0 -11
- package/src/_includes/components/embed/embed.scss +0 -17
- package/src/_includes/components/embed/macro.njk +0 -9
- package/src/_includes/components/embed/youtube.config.js +0 -19
- package/src/_includes/components/embed/youtube.njk +0 -5
- package/src/_includes/components/event-card/event-card.config.js +0 -108
- package/src/_includes/components/event-card/event-card.njk +0 -1
- package/src/_includes/components/event-card/event-card.scss +0 -49
- package/src/_includes/components/event-card/macro.njk +0 -5
- package/src/_includes/components/eyebrow/eyebrow.config.js +0 -84
- package/src/_includes/components/eyebrow/eyebrow.njk +0 -24
- package/src/_includes/components/eyebrow/eyebrow.scss +0 -71
- package/src/_includes/components/eyebrow/macro.njk +0 -5
- package/src/_includes/components/facet/facet.config.js +0 -110
- package/src/_includes/components/facet/facet.njk +0 -25
- package/src/_includes/components/facet/facet.scss +0 -49
- package/src/_includes/components/facet/macro.njk +0 -5
- package/src/_includes/components/featured-article-card/featured-article-card.config.js +0 -32
- package/src/_includes/components/featured-article-card/featured-article-card.njk +0 -24
- package/src/_includes/components/featured-article-card/featured-article-card.scss +0 -34
- package/src/_includes/components/featured-article-card/macro.njk +0 -5
- package/src/_includes/components/features-table/features-table.config.js +0 -137
- package/src/_includes/components/features-table/features-table.njk +0 -364
- package/src/_includes/components/features-table/features-table.scss +0 -96
- package/src/_includes/components/features-table/macro.njk +0 -5
- package/src/_includes/components/filter-search/filter-search.config.js +0 -16
- package/src/_includes/components/filter-search/filter-search.njk +0 -11
- package/src/_includes/components/filter-search/filter-search.scss +0 -33
- package/src/_includes/components/filter-search/macro.njk +0 -5
- package/src/_includes/components/footer/footer.config.js +0 -7
- package/src/_includes/components/footer/footer.njk +0 -81
- package/src/_includes/components/footer/footer.scss +0 -127
- package/src/_includes/components/footer/macro.njk +0 -5
- package/src/_includes/components/gallery/gallery.config.js +0 -55
- package/src/_includes/components/gallery/gallery.md +0 -1
- package/src/_includes/components/gallery/gallery.njk +0 -51
- package/src/_includes/components/gallery/gallery.scss +0 -54
- package/src/_includes/components/gallery/macro.njk +0 -5
- package/src/_includes/components/header/header.config.js +0 -38
- package/src/_includes/components/header/header.md +0 -4
- package/src/_includes/components/header/header.njk +0 -111
- package/src/_includes/components/header/header.scss +0 -273
- package/src/_includes/components/header/macro.njk +0 -5
- package/src/_includes/components/hero/hero.config.js +0 -144
- package/src/_includes/components/hero/hero.njk +0 -109
- package/src/_includes/components/hero/hero.scss +0 -356
- package/src/_includes/components/hero/macro.njk +0 -5
- package/src/_includes/components/hotspot-image/hotspot-image.config.js +0 -55
- package/src/_includes/components/hotspot-image/hotspot-image.njk +0 -41
- package/src/_includes/components/hotspot-image/hotspot-image.scss +0 -103
- package/src/_includes/components/hotspot-image/macro.njk +0 -5
- package/src/_includes/components/icon/icon.config.js +0 -18
- package/src/_includes/components/icon/icon.md +0 -1
- package/src/_includes/components/icon/icon.njk +0 -13
- package/src/_includes/components/icon/icon.scss +0 -6
- package/src/_includes/components/icon/macro.njk +0 -5
- package/src/_includes/components/input/checkbox.config.js +0 -41
- package/src/_includes/components/input/checkbox.njk +0 -2
- package/src/_includes/components/input/input.config.js +0 -67
- package/src/_includes/components/input/input.njk +0 -15
- package/src/_includes/components/input/input.scss +0 -136
- package/src/_includes/components/input/macro.njk +0 -25
- package/src/_includes/components/input/radio.config.js +0 -41
- package/src/_includes/components/input/radio.njk +0 -2
- package/src/_includes/components/input/radio.scss +0 -143
- package/src/_includes/components/input/select.config.js +0 -70
- package/src/_includes/components/input/select.njk +0 -13
- package/src/_includes/components/input/textarea.config.js +0 -51
- package/src/_includes/components/input/textarea.njk +0 -4
- package/src/_includes/components/input/toggle.config.js +0 -41
- package/src/_includes/components/input/toggle.njk +0 -5
- package/src/_includes/components/input/toggle.scss +0 -75
- package/src/_includes/components/internal-nav/internal-nav.config.js +0 -41
- package/src/_includes/components/internal-nav/internal-nav.njk +0 -24
- package/src/_includes/components/internal-nav/internal-nav.scss +0 -74
- package/src/_includes/components/internal-nav/macro.njk +0 -5
- package/src/_includes/components/meta-box/macro.njk +0 -5
- package/src/_includes/components/meta-box/meta-box.config.js +0 -74
- package/src/_includes/components/meta-box/meta-box.njk +0 -36
- package/src/_includes/components/meta-box/meta-box.scss +0 -10
- package/src/_includes/components/off-canvas/macro.njk +0 -5
- package/src/_includes/components/off-canvas/off-canvas.config.js +0 -28
- package/src/_includes/components/off-canvas/off-canvas.njk +0 -28
- package/src/_includes/components/off-canvas/off-canvas.scss +0 -102
- package/src/_includes/components/option-list/macro.njk +0 -5
- package/src/_includes/components/option-list/option-list.config.js +0 -51
- package/src/_includes/components/option-list/option-list.njk +0 -10
- package/src/_includes/components/option-list/option-list.scss +0 -39
- package/src/_includes/components/post-meta/macro.njk +0 -5
- package/src/_includes/components/post-meta/post-meta.config.js +0 -44
- package/src/_includes/components/post-meta/post-meta.njk +0 -16
- package/src/_includes/components/post-meta/post-meta.scss +0 -7
- package/src/_includes/components/product-card/macro.njk +0 -5
- package/src/_includes/components/product-card/product-card.config.js +0 -84
- package/src/_includes/components/product-card/product-card.njk +0 -1
- package/src/_includes/components/product-card/product-card.scss +0 -36
- package/src/_includes/components/product-signpost/macro.njk +0 -3
- package/src/_includes/components/product-signpost/product-signpost.config.js +0 -43
- package/src/_includes/components/product-signpost/product-signpost.njk +0 -16
- package/src/_includes/components/product-signpost/product-signpost.scss +0 -61
- package/src/_includes/components/prose/macro.njk +0 -11
- package/src/_includes/components/prose/prose.config.js +0 -65
- package/src/_includes/components/prose/prose.md +0 -1
- package/src/_includes/components/prose/prose.njk +0 -17
- package/src/_includes/components/quote/macro.njk +0 -5
- package/src/_includes/components/quote/quote.config.js +0 -19
- package/src/_includes/components/quote/quote.njk +0 -9
- package/src/_includes/components/quote/quote.scss +0 -51
- package/src/_includes/components/resource-card/macro.njk +0 -5
- package/src/_includes/components/resource-card/resource-card.config.js +0 -59
- package/src/_includes/components/resource-card/resource-card.njk +0 -1
- package/src/_includes/components/resource-card/resource-card.scss +0 -0
- package/src/_includes/components/scroll-spy/macro.njk +0 -5
- package/src/_includes/components/scroll-spy/scroll-spy.config.js +0 -24
- package/src/_includes/components/scroll-spy/scroll-spy.md +0 -3
- package/src/_includes/components/scroll-spy/scroll-spy.njk +0 -5
- package/src/_includes/components/scroll-spy/scroll-spy.scss +0 -54
- package/src/_includes/components/series/macro.njk +0 -5
- package/src/_includes/components/series/series.config.js +0 -35
- package/src/_includes/components/series/series.njk +0 -15
- package/src/_includes/components/series/series.scss +0 -20
- package/src/_includes/components/signpost/macro.njk +0 -5
- package/src/_includes/components/signpost/signpost.config.js +0 -36
- package/src/_includes/components/signpost/signpost.njk +0 -21
- package/src/_includes/components/signpost/signpost.scss +0 -66
- package/src/_includes/components/slat/slat.config.js +0 -59
- package/src/_includes/components/slat/slat.njk +0 -15
- package/src/_includes/components/slat/slat.scss +0 -53
- package/src/_includes/components/table/macro.njk +0 -11
- package/src/_includes/components/table/table.config.js +0 -68
- package/src/_includes/components/table/table.md +0 -16
- package/src/_includes/components/table/table.njk +0 -28
- package/src/_includes/components/table/table.scss +0 -157
- package/src/_includes/components/tabs/macro.njk +0 -9
- package/src/_includes/components/tabs/tabs-radio.config.js +0 -32
- package/src/_includes/components/tabs/tabs-radio.njk +0 -9
- package/src/_includes/components/tabs/tabs.config.js +0 -57
- package/src/_includes/components/tabs/tabs.njk +0 -17
- package/src/_includes/components/tabs/tabs.scss +0 -105
- package/src/_includes/components/twi/macro.njk +0 -5
- package/src/_includes/components/twi/twi.config.js +0 -46
- package/src/_includes/components/twi/twi.md +0 -1
- package/src/_includes/components/twi/twi.njk +0 -30
- package/src/_includes/components/twi/twi.scss +0 -44
- package/src/_includes/components/usp/macro.njk +0 -5
- package/src/_includes/components/usp/usp.config.js +0 -55
- package/src/_includes/components/usp/usp.md +0 -101
- package/src/_includes/components/usp/usp.njk +0 -42
- package/src/_includes/components/usp/usp.scss +0 -60
- package/src/_includes/content-page.njk +0 -53
- package/src/_includes/includes/color-swatches.njk +0 -260
- package/src/_includes/includes/related-events.njk +0 -60
- package/src/_includes/includes/resources.njk +0 -78
- package/src/_includes/includes/system-footer.njk +0 -30
- package/src/_includes/includes/system-header.njk +0 -30
- package/src/_includes/includes/system-scripts.njk +0 -88
- package/src/_includes/layout.njk +0 -69
- package/src/_includes/library-navigation/brand-nav.njk +0 -67
- package/src/_includes/library-navigation/components-nav.njk +0 -88
- package/src/_includes/library-navigation/content-nav.njk +0 -53
- package/src/_includes/library-navigation/system-nav.njk +0 -9
- package/src/_includes/library.njk +0 -5
- package/src/_includes/navigation/blog.njk +0 -16
- package/src/_includes/navigation/corporate.njk +0 -25
- package/src/_includes/navigation/store.njk +0 -29
- package/src/_includes/page.njk +0 -14
- package/src/_includes/patterns-page.njk +0 -41
- package/src/_includes/system-home-page.njk +0 -28
- package/src/_includes/system-page.njk +0 -27
- package/src/_includes/system.njk +0 -39
- package/src/_redirects +0 -13
- package/src/assets/fonts/Inter-Bold.woff +0 -0
- package/src/assets/fonts/Inter-Bold.woff2 +0 -0
- package/src/assets/fonts/Inter-Regular.woff +0 -0
- package/src/assets/fonts/Inter-Regular.woff2 +0 -0
- package/src/assets/fonts/Inter-SemiBold.woff +0 -0
- package/src/assets/fonts/Inter-SemiBold.woff2 +0 -0
- package/src/assets/js/app.js +0 -40
- package/src/assets/js/imports/accordion.js +0 -17
- package/src/assets/js/imports/carousel.js +0 -22
- package/src/assets/js/imports/clear-form.js +0 -27
- package/src/assets/js/imports/comparison.js +0 -64
- package/src/assets/js/imports/facet.js +0 -23
- package/src/assets/js/imports/gallery.js +0 -87
- package/src/assets/js/imports/hero-pattern.js +0 -94
- package/src/assets/js/imports/hero-video.js +0 -53
- package/src/assets/js/imports/hotspot-image.js +0 -91
- package/src/assets/js/imports/internal-nav.js +0 -41
- package/src/assets/js/imports/off-canvas.js +0 -219
- package/src/assets/js/imports/responsive-table.js +0 -30
- package/src/assets/js/imports/scroll-spy.js +0 -46
- package/src/assets/js/imports/scrollbar-width.js +0 -15
- package/src/assets/js/imports/tabs.js +0 -58
- package/src/assets/js/imports/utilities.js +0 -31
- package/src/assets/scss/components/form.scss +0 -306
- package/src/assets/scss/components/headings.scss +0 -68
- package/src/assets/scss/components/index.scss +0 -52
- package/src/assets/scss/components/lightbox.scss +0 -64
- package/src/assets/scss/components/product-finder.scss +0 -75
- package/src/assets/scss/elements/index.scss +0 -2
- package/src/assets/scss/elements/reset.scss +0 -139
- package/src/assets/scss/elements/typography.scss +0 -25
- package/src/assets/scss/foundations/animation.scss +0 -4
- package/src/assets/scss/foundations/colour.scss +0 -85
- package/src/assets/scss/foundations/index.scss +0 -4
- package/src/assets/scss/foundations/space.scss +0 -57
- package/src/assets/scss/foundations/typography.scss +0 -159
- package/src/assets/scss/library.scss +0 -672
- package/src/assets/scss/main.scss +0 -6
- package/src/assets/scss/objects/button-wrap.scss +0 -18
- package/src/assets/scss/objects/clickable-parent.scss +0 -3
- package/src/assets/scss/objects/grid.scss +0 -329
- package/src/assets/scss/objects/index.scss +0 -4
- package/src/assets/scss/objects/prose.scss +0 -169
- package/src/assets/scss/objects/syntax-highlighting.scss +0 -211
- package/src/assets/scss/tools/breakout.scss +0 -17
- package/src/assets/scss/tools/cutoff.scss +0 -50
- package/src/assets/scss/tools/index.scss +0 -172
- package/src/assets/scss/utilities/colour.scss +0 -10
- package/src/assets/scss/utilities/disabled.scss +0 -8
- package/src/assets/scss/utilities/display.scss +0 -156
- package/src/assets/scss/utilities/divider.scss +0 -6
- package/src/assets/scss/utilities/ellipsis.scss +0 -7
- package/src/assets/scss/utilities/flex.scss +0 -47
- package/src/assets/scss/utilities/flow.scss +0 -69
- package/src/assets/scss/utilities/gap.scss +0 -3
- package/src/assets/scss/utilities/hr.scss +0 -23
- package/src/assets/scss/utilities/index.scss +0 -18
- package/src/assets/scss/utilities/link.scss +0 -26
- package/src/assets/scss/utilities/scroll-shadows.scss +0 -69
- package/src/assets/scss/utilities/space.scss +0 -370
- package/src/assets/scss/utilities/typography.scss +0 -35
- package/src/assets/scss/utilities/wrap.scss +0 -24
- package/src/assets/svg/arc.svg +0 -1
- package/src/assets/svg/concentric.svg +0 -1
- package/src/assets/svg/crystal.svg +0 -1
- package/src/assets/svg/dots-pattern.svg +0 -1
- package/src/brand/colors.njk +0 -69
- package/src/brand/illustration.md +0 -50
- package/src/brand/images.md +0 -101
- package/src/brand/index.njk +0 -147
- package/src/brand/logo.md +0 -107
- package/src/brand/patterns.njk +0 -49
- package/src/brand/requirements.md +0 -98
- package/src/brand/resources.njk +0 -75
- package/src/brand/typography.md +0 -101
- package/src/components/colour.njk +0 -327
- package/src/components/creating-a-component.md +0 -163
- package/src/components/css.md +0 -65
- package/src/components/flow.njk +0 -131
- package/src/components/grid/generic.njk +0 -99
- package/src/components/grid/index.njk +0 -86
- package/src/components/grid/layout.njk +0 -56
- package/src/components/grid/wrap.njk +0 -20
- package/src/components/iconography.njk +0 -92
- package/src/components/index.njk +0 -65
- package/src/components/installation.md +0 -61
- package/src/components/publishing-the-system.md +0 -25
- package/src/components/space.njk +0 -191
- package/src/components/typography.njk +0 -135
- package/src/components/utilities.md +0 -182
- package/src/components-full-pages.njk +0 -24
- package/src/components-pages.njk +0 -103
- package/src/content/and-so/please-write-responsibly.md +0 -15
- package/src/content/and-so/sitting-down.md +0 -13
- package/src/content/big-ideas.md +0 -63
- package/src/content/boilerplate.md +0 -33
- package/src/content/elevator-pitch.md +0 -33
- package/src/content/index.njk +0 -126
- package/src/content/our-voice/1-big-picture.md +0 -37
- package/src/content/our-voice/2-whats-most-important.md +0 -38
- package/src/content/our-voice/3-write-like-we-speak.md +0 -50
- package/src/content/our-voice/4-write-to-be-skimmed.md +0 -50
- package/src/content/our-voice/5-active-sentences.md +0 -73
- package/src/content/our-voice/6-add-energy.md +0 -34
- package/src/content/our-voice/7-small-surprises.md +0 -44
- package/src/content/our-voice/seven-steps.md +0 -21
- package/src/content/our-voice/which-techniques-when.md +0 -39
- package/src/content/real-life-examples/01-who-we-are-boilerplate.md +0 -39
- package/src/content/real-life-examples/02-event-announcement.md +0 -38
- package/src/content/real-life-examples/03-customer-support-letter.md +0 -58
- package/src/content/real-life-examples/04-delay-in-shipment-letter.md +0 -62
- package/src/content/real-life-examples/05-overview-events-training.md +0 -41
- package/src/content/real-life-examples/06-digital-product-description.md +0 -40
- package/src/content/real-life-examples/07-recruitment.md +0 -42
- package/src/content/real-life-examples/08-industry-sector-1.md +0 -43
- package/src/content/real-life-examples/09-industry-sector-2.md +0 -47
- package/src/content/real-life-examples/10-website-information.md +0 -50
- package/src/content/real-life-examples/11-internal-update.md +0 -37
- package/src/content/real-life-examples/12-value-proposition.md +0 -44
- package/src/index.njk +0 -152
- package/src/patterns/form.njk +0 -349
- package/src/patterns/grid-of-cards.njk +0 -66
- package/src/patterns/index.njk +0 -19
- package/src/patterns/mp-form.njk +0 -111
- package/src/patterns/usps.njk +0 -149
- package/src/prototype/blog-post.njk +0 -123
- package/src/prototype/blog.njk +0 -168
- package/src/prototype/card-test.njk +0 -147
- package/src/prototype/creating-a-page.njk +0 -74
- package/src/prototype/events-hub.njk +0 -520
- package/src/prototype/form-altcha.njk +0 -705
- package/src/prototype/form-cloudflare.njk +0 -688
- package/src/prototype/form-hcaptcha.njk +0 -693
- package/src/prototype/home.njk +0 -24
- package/src/prototype/index.njk +0 -893
- package/src/prototype/oma.njk +0 -167
- package/src/prototype/product.njk +0 -480
- package/src/prototype/products.njk +0 -163
- package/src/prototype/range.njk +0 -263
- package/src/prototype/request-a-quote.njk +0 -147
- package/src/prototype/sections.njk +0 -295
- package/src/prototype/spline.njk +0 -16
- package/src/prototype/thanks.njk +0 -31
- package/src/prototype/webinar.njk +0 -118
- package/src/prototype/webinars-3-2-1.njk +0 -397
- package/src/prototype/webinars.njk +0 -405
- package/src/quickstart.md +0 -41
- package/src/robots.txt +0 -5
- package/src/static/adobe/MP Franklin colour swatches.ai +0 -914
- package/src/static/img/aeris.jpg +0 -0
- package/src/static/img/article-1.jpg +0 -0
- package/src/static/img/article-2.jpg +0 -0
- package/src/static/img/blog-image-1.jpg +0 -0
- package/src/static/img/blog-page-image-1.jpg +0 -0
- package/src/static/img/blog-page-image-2.jpg +0 -0
- package/src/static/img/blog-page-image-3.jpg +0 -0
- package/src/static/img/blog-page-image-4.jpg +0 -0
- package/src/static/img/blog-page-image-5.jpg +0 -0
- package/src/static/img/blog-page-image-6.jpg +0 -0
- package/src/static/img/campaign.jpg +0 -0
- package/src/static/img/case-study-1.jpg +0 -0
- package/src/static/img/case-study-2.jpg +0 -0
- package/src/static/img/case-study-3.jpg +0 -0
- package/src/static/img/empyrean.jpg +0 -0
- package/src/static/img/epsilon.jpg +0 -0
- package/src/static/img/favicon-32x32.png +0 -0
- package/src/static/img/favicon.svg +0 -1
- package/src/static/img/featured-blog-post.jpg +0 -0
- package/src/static/img/featured-event-1.jpg +0 -0
- package/src/static/img/featured-event-2.jpg +0 -0
- package/src/static/img/featured-event-3.jpg +0 -0
- package/src/static/img/flow-2.png +0 -0
- package/src/static/img/flow-diagram.png +0 -0
- package/src/static/img/flow.png +0 -0
- package/src/static/img/grid-captivate-1.jpg +0 -0
- package/src/static/img/homepage_1_back.webp +0 -0
- package/src/static/img/homepage_1_back_alt.webp +0 -0
- package/src/static/img/homepage_1_front_full.webp +0 -0
- package/src/static/img/homepage_2_back.webp +0 -0
- package/src/static/img/homepage_2_back_alt.webp +0 -0
- package/src/static/img/homepage_2_front_full.webp +0 -0
- package/src/static/img/itcss.svg +0 -8
- package/src/static/img/leneo.jpg +0 -0
- package/src/static/img/mastersizer.jpg +0 -0
- package/src/static/img/microcal.jpg +0 -0
- package/src/static/img/morphologi.jpg +0 -0
- package/src/static/img/omnisec.jpg +0 -0
- package/src/static/img/open-graph-image.jpg +0 -0
- package/src/static/img/product-accessory-1.jpg +0 -0
- package/src/static/img/product-accessory-2.jpg +0 -0
- package/src/static/img/product-image.jpg +0 -0
- package/src/static/img/products-1.jpg +0 -0
- package/src/static/img/products-2.jpg +0 -0
- package/src/static/img/products-3.jpg +0 -0
- package/src/static/img/products-4.jpg +0 -0
- package/src/static/img/products-5.jpg +0 -0
- package/src/static/img/products-6.jpg +0 -0
- package/src/static/img/qualityspec.jpg +0 -0
- package/src/static/img/range-product-1.jpg +0 -0
- package/src/static/img/range-product-2.jpg +0 -0
- package/src/static/img/range.jpg +0 -0
- package/src/static/img/salt.png +0 -0
- package/src/static/img/sector-1.jpg +0 -0
- package/src/static/img/sector-2.jpg +0 -0
- package/src/static/img/sector-3.jpg +0 -0
- package/src/static/img/sector-4.jpg +0 -0
- package/src/static/img/sector-5.jpg +0 -0
- package/src/static/img/slide-1.jpg +0 -0
- package/src/static/img/slide-2.jpg +0 -0
- package/src/static/img/slide-3.jpg +0 -0
- package/src/static/img/slide-4.webp +0 -0
- package/src/static/img/slide-5.webp +0 -0
- package/src/static/img/slide-6.webp +0 -0
- package/src/static/img/slide-7.webp +0 -0
- package/src/static/img/zetasizer.jpg +0 -0
- package/src/static/pdf/PN12558_Physical_branding_v23.pdf +0 -0
- package/src/static/pdf/Power of One - Malvern Panalytical rebranding guidance.pdf +0 -0
- package/src/static/svg/crop-diagram-1.svg +0 -1
- package/src/static/svg/crop-diagram-2.svg +0 -1
- package/src/static/svg/icon-globe-alt--white.svg +0 -4
- package/src/static/svg/icon-globe-alt.svg +0 -4
- package/src/static/svg/icon-live-webinars--white.svg +0 -6
- package/src/static/svg/icon-live-webinars.svg +0 -6
- package/src/static/svg/icon-recorded-webinars--white.svg +0 -4
- package/src/static/svg/icon-recorded-webinars.svg +0 -4
- package/src/static/svg/icon-user-training--white.svg +0 -5
- package/src/static/svg/icon-user-training.svg +0 -5
- package/src/static/svg/imaging-matrix.svg +0 -56
- package/src/static/svg/large-envelope.svg +0 -1
- package/src/static/svg/large-globe.svg +0 -1
- package/src/static/svg/large-student.svg +0 -1
- package/src/static/svg/logo-black.svg +0 -1
- package/src/static/svg/logo-color-white-text.svg +0 -1
- package/src/static/svg/logo-simple.svg +0 -1
- package/src/static/svg/logo-small.svg +0 -1
- package/src/static/svg/logo-spacing-horizontal.svg +0 -1
- package/src/static/svg/logo-spacing-vertical.svg +0 -1
- package/src/static/svg/logo-stacked.svg +0 -1
- package/src/static/svg/logo-white.svg +0 -1
- package/src/static/svg/logo-x.svg +0 -1
- package/src/static/svg/logo.svg +0 -1
- package/src/static/svg/sprite.svg +0 -48
- package/src/static/svg/typography-spacing.svg +0 -2345
- package/src/static/zip/MP_logo.zip +0 -0
- package/src/static/zip/SVG_patterns.zip +0 -0
@@ -1,356 +0,0 @@
|
|
1
|
-
:root {
|
2
|
-
--body-width: min(100vw, calc(78.75rem + var(--gutter) + var(--gutter) ) );
|
3
|
-
--gutter-width: calc( (100vw - var(--body-width)) / 2 );
|
4
|
-
--text-width: min(100vw, 51.75rem);
|
5
|
-
--hero-gap: calc( var(--body-width) - var(--text-width));
|
6
|
-
--stop: calc( ( var(--hero-gap) + var(--gutter-width) ) *.8 );
|
7
|
-
}
|
8
|
-
|
9
|
-
.c-hero {
|
10
|
-
background-color: color('blue', 'step-2');
|
11
|
-
background: linear-gradient(to top right, color('petrol', 'step-3'), color('blue', 'step-2'));
|
12
|
-
color: color('petrol');
|
13
|
-
position: relative;
|
14
|
-
overflow: hidden;
|
15
|
-
isolation: isolate;
|
16
|
-
|
17
|
-
&.mp .u-link {
|
18
|
-
color: color('utility-blue');
|
19
|
-
}
|
20
|
-
|
21
|
-
.u-wrap {
|
22
|
-
@include padding-top('m-xl');
|
23
|
-
@include padding-bottom('xl-3xl');
|
24
|
-
position: relative;
|
25
|
-
z-index: 2;
|
26
|
-
|
27
|
-
&:before {
|
28
|
-
content: '';
|
29
|
-
box-shadow: 1px 1px color('white');
|
30
|
-
@include space('height', 'gutter');
|
31
|
-
width: 100vw;
|
32
|
-
background: color('white');
|
33
|
-
position: absolute;
|
34
|
-
bottom: 0;
|
35
|
-
@include space('right', 'gutter');
|
36
|
-
z-index: 2;
|
37
|
-
|
38
|
-
}
|
39
|
-
|
40
|
-
&:after {
|
41
|
-
content: '';
|
42
|
-
box-shadow: -1px 0 color('white');
|
43
|
-
position: absolute;
|
44
|
-
width: 0;
|
45
|
-
height: 0;
|
46
|
-
border-style: solid;
|
47
|
-
@include space('border-width', 'gutter', 0, 0, 'gutter');
|
48
|
-
border-color: transparent transparent transparent color('white');
|
49
|
-
bottom: 0;
|
50
|
-
right: 0;
|
51
|
-
}
|
52
|
-
|
53
|
-
@at-root {
|
54
|
-
.c-hero--extend .u-wrap {
|
55
|
-
&:before {
|
56
|
-
right: 0;
|
57
|
-
}
|
58
|
-
&:after {
|
59
|
-
right: calc(-1 * var(--gutter));
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
|
65
|
-
&__content {
|
66
|
-
position: relative;
|
67
|
-
z-index: 5;
|
68
|
-
max-width: 828px;
|
69
|
-
|
70
|
-
.c-hero--padded & {
|
71
|
-
@include padding('m-l', 0)
|
72
|
-
}
|
73
|
-
|
74
|
-
& > * + * {
|
75
|
-
@include margin-top('m');
|
76
|
-
}
|
77
|
-
|
78
|
-
.c-h {
|
79
|
-
color: inherit;
|
80
|
-
margin: inherit;
|
81
|
-
}
|
82
|
-
|
83
|
-
p {
|
84
|
-
line-height: lh('prose');
|
85
|
-
}
|
86
|
-
|
87
|
-
.c-hero__button-wrap {
|
88
|
-
display: flex;
|
89
|
-
flex-wrap: wrap;
|
90
|
-
gap: var(--space-s);
|
91
|
-
|
92
|
-
&> .c-button {
|
93
|
-
margin: 0 !important;
|
94
|
-
}
|
95
|
-
}
|
96
|
-
}
|
97
|
-
|
98
|
-
&--image {
|
99
|
-
background: color('grey', 'step--1');
|
100
|
-
color: color('white');
|
101
|
-
|
102
|
-
&.mp .u-link {
|
103
|
-
color: color('utility-blue', 'step-1');
|
104
|
-
}
|
105
|
-
}
|
106
|
-
|
107
|
-
&__image-bg {
|
108
|
-
position: absolute;
|
109
|
-
top: 0;
|
110
|
-
right: 0;
|
111
|
-
bottom: 0;
|
112
|
-
left: 0;
|
113
|
-
background-position: 50% 50%;
|
114
|
-
background-size: cover;
|
115
|
-
background-repeat: no-repeat;
|
116
|
-
|
117
|
-
&:after {
|
118
|
-
position: absolute;
|
119
|
-
content: '';
|
120
|
-
top: 0;
|
121
|
-
left: 0;
|
122
|
-
width: 100%;
|
123
|
-
height: 100%;
|
124
|
-
background: radial-gradient(ellipse farthest-side at bottom right, rgba(color('grey'), 60%), rgba(color('grey', 'step--1'), 90%));
|
125
|
-
}
|
126
|
-
|
127
|
-
@media (min-width: 55em) {
|
128
|
-
left: 33.33%;
|
129
|
-
|
130
|
-
&:after {
|
131
|
-
background: radial-gradient(circle farthest-side at top right, rgba(color('grey', 'step--1'), 30%), color('grey', 'step--1'));
|
132
|
-
}
|
133
|
-
}
|
134
|
-
|
135
|
-
@media (min-width:70em) {
|
136
|
-
&:after {
|
137
|
-
background: linear-gradient(270deg, rgba(color('grey','step--1'),0%) var(--gutter-width), rgba(color('grey','step--1'),62%) var(--stop), color('grey','step--1'));
|
138
|
-
}
|
139
|
-
}
|
140
|
-
}
|
141
|
-
|
142
|
-
&--homepage {
|
143
|
-
background: linear-gradient(79.62deg, color('petrol', 'step--1') 0%, color('petrol') 100%);
|
144
|
-
|
145
|
-
@media (min-width: 38em) {
|
146
|
-
background: linear-gradient(84.46deg, color('petrol', 'step--1') 7.52%, color('petrol') 44.84%, rgba(35, 80, 87, 0.8) 51.02%, rgba(52, 82, 87, 0.62) 54.99%, rgba(78, 86, 87, 0.2209) 59.54%, rgba(87, 87, 87, 0) 65.59%);
|
147
|
-
}
|
148
|
-
|
149
|
-
&::after {
|
150
|
-
position: absolute;
|
151
|
-
content: '';
|
152
|
-
top: 0;
|
153
|
-
left: 0;
|
154
|
-
background: rgba(black, 0.33);
|
155
|
-
width: 100%;
|
156
|
-
height: 100%;
|
157
|
-
|
158
|
-
@media (min-width: 38em) {
|
159
|
-
background: radial-gradient(circle farthest-side at top right, rgba(46, 50, 51, 0) 0%, rgba(46, 50, 51, 0) 15.16%, rgba(46, 50, 51, 0.2) 27.66%, rgba(41, 54, 56, 0.55) 39.61%, rgba(35, 66, 71, 0.8) 49.78%, #005461 59.87%, #003039 100%);
|
160
|
-
}
|
161
|
-
}
|
162
|
-
|
163
|
-
.u-wrap {
|
164
|
-
@include padding-bottom('l-3xl');
|
165
|
-
|
166
|
-
// &:before,
|
167
|
-
// &:after {
|
168
|
-
// display: none;
|
169
|
-
// }
|
170
|
-
}
|
171
|
-
|
172
|
-
.c-hero {
|
173
|
-
&__content {
|
174
|
-
@media (min-width: 38em) {
|
175
|
-
width: calc((41.666% - (2 * var(--gutter) / 5)) - 0.1px);
|
176
|
-
}
|
177
|
-
|
178
|
-
.c-h {
|
179
|
-
color: color('white');
|
180
|
-
}
|
181
|
-
|
182
|
-
p {
|
183
|
-
color: color('petrol', 'step-2');
|
184
|
-
}
|
185
|
-
|
186
|
-
.u-link {
|
187
|
-
color: color('blue', 'step-1');
|
188
|
-
}
|
189
|
-
}
|
190
|
-
|
191
|
-
&__image-bg {
|
192
|
-
display: none;
|
193
|
-
|
194
|
-
@media (min-width: 38em) {
|
195
|
-
max-width: 65%;
|
196
|
-
left: 35%;
|
197
|
-
display: block;
|
198
|
-
z-index: -1;
|
199
|
-
transition: opacity 3s ease;
|
200
|
-
background-position: 60% 40%;
|
201
|
-
|
202
|
-
&:after {
|
203
|
-
display: none;
|
204
|
-
}
|
205
|
-
|
206
|
-
&+ [class^='c-hero__image-'] {
|
207
|
-
opacity: 0;
|
208
|
-
}
|
209
|
-
}
|
210
|
-
}
|
211
|
-
|
212
|
-
&__image-fg {
|
213
|
-
@extend .c-hero__image-bg;
|
214
|
-
z-index: 1;
|
215
|
-
}
|
216
|
-
}
|
217
|
-
}
|
218
|
-
|
219
|
-
&--homepage-video {
|
220
|
-
position: relative;
|
221
|
-
|
222
|
-
&::after {
|
223
|
-
position: absolute;
|
224
|
-
content: '';
|
225
|
-
top: 0;
|
226
|
-
left: 0;
|
227
|
-
background: rgba(black, 0.33);
|
228
|
-
width: 100%;
|
229
|
-
height: 100%;
|
230
|
-
|
231
|
-
@media (min-width: 38em) {
|
232
|
-
background: radial-gradient(circle farthest-side at top right, rgba(46, 50, 51, 0) 0%, rgba(46, 50, 51, 0) 15.16%, rgba(46, 50, 51, 0.2) 27.66%, rgba(41, 54, 56, 0.55) 39.61%, rgba(35, 66, 71, 0.8) 49.78%, #005461 59.87%, #003039 100%);
|
233
|
-
}
|
234
|
-
}
|
235
|
-
|
236
|
-
.u-wrap {
|
237
|
-
&::before,
|
238
|
-
&::after {
|
239
|
-
display: none;
|
240
|
-
|
241
|
-
@media (min-width: 38em) {
|
242
|
-
display: inline;
|
243
|
-
}
|
244
|
-
}
|
245
|
-
}
|
246
|
-
|
247
|
-
.c-hero {
|
248
|
-
&__video-bg {
|
249
|
-
width: 100%;
|
250
|
-
height: auto;
|
251
|
-
margin-bottom: -6px;
|
252
|
-
background-size: cover;
|
253
|
-
|
254
|
-
@media (min-width: 38em) {
|
255
|
-
position: absolute;
|
256
|
-
top: 50%;
|
257
|
-
right: 0;
|
258
|
-
left: 40%;
|
259
|
-
max-width: 60%;
|
260
|
-
height: 100%;
|
261
|
-
transform: translateY(-50%);
|
262
|
-
}
|
263
|
-
|
264
|
-
video {
|
265
|
-
width: 100%;
|
266
|
-
height: 100%;
|
267
|
-
object-fit: cover;
|
268
|
-
}
|
269
|
-
}
|
270
|
-
|
271
|
-
&__video-button-wrap {
|
272
|
-
position: absolute;
|
273
|
-
z-index: 2;
|
274
|
-
right: 0;
|
275
|
-
bottom: calc(56.25% / 2 - 25px);
|
276
|
-
left: 0;
|
277
|
-
margin: 0 auto;
|
278
|
-
display: flex;
|
279
|
-
justify-content: center;
|
280
|
-
|
281
|
-
@media (min-width: 38em) {
|
282
|
-
position: absolute;
|
283
|
-
top: 45%;
|
284
|
-
right: 20%;
|
285
|
-
bottom: unset;
|
286
|
-
left: unset;
|
287
|
-
}
|
288
|
-
|
289
|
-
.c-button {
|
290
|
-
position: relative;
|
291
|
-
|
292
|
-
&::before {
|
293
|
-
content: '';
|
294
|
-
position: absolute;
|
295
|
-
background: rgba(black, 0.2);
|
296
|
-
height: 100%;
|
297
|
-
width: 100%;
|
298
|
-
top: 0;
|
299
|
-
left: 0;
|
300
|
-
border-radius: inherit;
|
301
|
-
}
|
302
|
-
}
|
303
|
-
}
|
304
|
-
}
|
305
|
-
}
|
306
|
-
|
307
|
-
&--homepage-light {
|
308
|
-
@extend .c-hero--homepage;
|
309
|
-
background: linear-gradient(79.62deg, color('petrol', 'step-3') 0%, color('blue', 'step-2') 100%), color('petrol', 'step-3');
|
310
|
-
|
311
|
-
@media (min-width: 38em) {
|
312
|
-
background: linear-gradient(86.37deg, color('petrol', 'step-3') 7.52%, color('petrol', 'step-3') 44.84%, rgba(color('petrol', 'step-3'), 0.8) 51.02%, rgba(color('petrol', 'step-3'), 0.6) 52.38%, rgba(color('petrol', 'step-3'), 0) 65.41%), color('petrol', 'step-3');
|
313
|
-
}
|
314
|
-
|
315
|
-
.c-hero {
|
316
|
-
&__content {
|
317
|
-
.c-h {
|
318
|
-
color: color('grey', 'step--1');
|
319
|
-
}
|
320
|
-
|
321
|
-
p {
|
322
|
-
color: color('grey');
|
323
|
-
}
|
324
|
-
|
325
|
-
.u-link {
|
326
|
-
color: color('blue');
|
327
|
-
}
|
328
|
-
}
|
329
|
-
}
|
330
|
-
}
|
331
|
-
|
332
|
-
&__canvas {
|
333
|
-
position: absolute;
|
334
|
-
z-index: -1;
|
335
|
-
height: 100%;
|
336
|
-
width: 100%;
|
337
|
-
left: 0;
|
338
|
-
top: 0;
|
339
|
-
|
340
|
-
@media (min-width: 38em) {
|
341
|
-
z-index: 1;
|
342
|
-
}
|
343
|
-
}
|
344
|
-
|
345
|
-
&:has(+ .u-margin-top-negative-2xl) {
|
346
|
-
.u-wrap {
|
347
|
-
@include space('padding-bottom', '4xl')
|
348
|
-
}
|
349
|
-
}
|
350
|
-
|
351
|
-
&__search {
|
352
|
-
:first-child {
|
353
|
-
flex-grow: 1;
|
354
|
-
}
|
355
|
-
}
|
356
|
-
}
|
@@ -1,55 +0,0 @@
|
|
1
|
-
module.exports = {
|
2
|
-
title: 'Hotspot image',
|
3
|
-
component: {
|
4
|
-
name: 'hotspot-image',
|
5
|
-
},
|
6
|
-
context: {
|
7
|
-
image: {
|
8
|
-
src: 'https://dam.malvernpanalytical.com/3f407d1c-a153-4806-ab9e-b1bf00d41bc5/2524009%20MALV%20Infographic%20Analycial%20process_WITHOUT_TEXT_ModAW_Original%20file.jpg',
|
9
|
-
alt: 'Description of the image',
|
10
|
-
},
|
11
|
-
heading: {
|
12
|
-
position: 'top: 2.75%; left: 2.75%;',
|
13
|
-
content: 'All the elements of an integrated analytical workflow',
|
14
|
-
},
|
15
|
-
hotspots: [
|
16
|
-
{
|
17
|
-
position: 'top: 46%; left: 29%;',
|
18
|
-
button: {
|
19
|
-
label: 'Preparing your sample',
|
20
|
-
},
|
21
|
-
tooltip: {
|
22
|
-
content:
|
23
|
-
'<ul class="o-grid o-grid--of-two"><li class="u-bg-white u-pad-2xs">Sample preparation methods & advice</li><li class="u-bg-white u-pad-2xs">Labware and accessories</li><li class="u-bg-white u-pad-2xs">Instruments for flux dosing and fusion</li><li class="u-bg-white u-pad-2xs">Methods and advice</li></ul>',
|
24
|
-
},
|
25
|
-
},
|
26
|
-
{
|
27
|
-
position: 'top: 28.75%; left: 70%;',
|
28
|
-
button: {
|
29
|
-
label: 'Analysis with XRF',
|
30
|
-
},
|
31
|
-
tooltip: {
|
32
|
-
content:
|
33
|
-
'<ul class="o-grid o-grid--of-two"><span class="u-margin-0"></span><li class="o-grid o-grid--of-two u-align-items-start u-margin-0" style="flex-basis: 100%;"><span class="u-bg-white u-pad-2xs">XRF application methods</span><ul class="u-flow--2xs"><li class="u-bg-petrol u-petrol-step-3 u-pad-2xs">Templates in i.e., Wroxi</li><li class="u-bg-petrol u-petrol-step-3 u-pad-2xs">Application Support</li></ul></li><span class="u-margin-0"></span><li class="o-grid o-grid--of-two u-align-items-start u-margin-0" style="flex-basis: 100%;"><span class="u-bg-white u-pad-2xs">Certified reference materials</span><ul><li class="u-bg-petrol u-petrol-step-3 u-pad-2xs">Off-the-shelf and customized</li></ul></li><li class="u-bg-white u-pad-2xs">Expertise support</li><li class="u-bg-white u-pad-2xs">Pre-calibration</li><li class="u-bg-white u-pad-2xs">XRF instruments and maintenance</li></ul>',
|
34
|
-
},
|
35
|
-
},
|
36
|
-
{
|
37
|
-
position: 'top: 67.75%; left: 76%;',
|
38
|
-
button: {
|
39
|
-
label: 'Reporting results',
|
40
|
-
},
|
41
|
-
tooltip: {
|
42
|
-
content:
|
43
|
-
'<ul class="o-grid o-grid--of-two"><li class="u-bg-white u-pad-2xs">Seamless connection to LIMS</li><li class="u-bg-white u-pad-2xs">Training Instrument operation training</li><li class="u-bg-white u-pad-2xs">Data interpretation</li><li class="u-bg-white u-pad-2xs">XRF Application training</li><li class="u-bg-white u-pad-2xs">Sample preparation training</li></ul>',
|
44
|
-
},
|
45
|
-
},
|
46
|
-
{
|
47
|
-
position: 'top: 85%; left: 48.5%;',
|
48
|
-
button: {
|
49
|
-
label: 'Training',
|
50
|
-
},
|
51
|
-
},
|
52
|
-
],
|
53
|
-
},
|
54
|
-
variants: [],
|
55
|
-
};
|
@@ -1,41 +0,0 @@
|
|
1
|
-
{% set classNames = "mp c-hotspot-image" %}
|
2
|
-
|
3
|
-
<div class="{{ classNames }}" role="img" aria-label="Interactive image with hotspots">
|
4
|
-
{% if params.image %}
|
5
|
-
<img src="{{ params.image.src }}" alt="{{ params.image.alt }}" role="presentation">
|
6
|
-
{% endif %}
|
7
|
-
|
8
|
-
{% if params.heading %}
|
9
|
-
<p class="{{ classNames }}__heading" style="{{ params.heading.position }}" aria-labelledby="image-heading">
|
10
|
-
{{ params.heading.content }}
|
11
|
-
</p>
|
12
|
-
{% endif %}
|
13
|
-
|
14
|
-
{% if params.hotspots | length %}
|
15
|
-
{% for hotspot in params.hotspots %}
|
16
|
-
<div class="{{ classNames }}__hotspot" style="{{ hotspot.position }}" aria-live="polite">
|
17
|
-
{% if hotspot.button and hotspot.tooltip %}
|
18
|
-
<button class="{{ classNames }}__button"
|
19
|
-
role="button"
|
20
|
-
aria-expanded="false"
|
21
|
-
aria-controls="tooltip-{{ loop.index }}"
|
22
|
-
aria-label="{{ hotspot.button.label }}">
|
23
|
-
{{ hotspot.button.label }}
|
24
|
-
</button>
|
25
|
-
<div id="tooltip-{{ loop.index }}"
|
26
|
-
class="c-hotspot-image__tooltip"
|
27
|
-
role="tooltip"
|
28
|
-
aria-hidden="true">
|
29
|
-
{{ hotspot.tooltip.content | safe }}
|
30
|
-
</div>
|
31
|
-
{% elseif hotspot.button %}
|
32
|
-
<span class="{{ classNames }}__button c-hotspot-image__button--no-tooltip"
|
33
|
-
role="button"
|
34
|
-
aria-label="{{ hotspot.button.label }}">
|
35
|
-
{{ hotspot.button.label }}
|
36
|
-
</span>
|
37
|
-
{% endif %}
|
38
|
-
</div>
|
39
|
-
{% endfor %}
|
40
|
-
{% endif %}
|
41
|
-
</div>
|
@@ -1,103 +0,0 @@
|
|
1
|
-
.c-hotspot-image {
|
2
|
-
position: relative;
|
3
|
-
counter-reset: hotspot-counter;
|
4
|
-
|
5
|
-
&__heading,
|
6
|
-
&__hotspot {
|
7
|
-
position: absolute;
|
8
|
-
}
|
9
|
-
|
10
|
-
&__heading {
|
11
|
-
background: color('petrol', 'step--1');
|
12
|
-
color: color('petrol', 'step-3');
|
13
|
-
@include padding('s', 'm');
|
14
|
-
border-radius: 1em;
|
15
|
-
font-size: var(--step-1);
|
16
|
-
}
|
17
|
-
|
18
|
-
&__hotspot {
|
19
|
-
isolation: isolate;
|
20
|
-
|
21
|
-
&:has([aria-expanded='true']) {
|
22
|
-
z-index: 1;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
&__button {
|
27
|
-
position: relative;
|
28
|
-
background: color('petrol');
|
29
|
-
color: color('petrol', 'step-3');
|
30
|
-
@include padding('2xs');
|
31
|
-
display: flex;
|
32
|
-
gap: var(--space-2xs);
|
33
|
-
align-items: center;
|
34
|
-
border: none;
|
35
|
-
border-radius: 1em;
|
36
|
-
font-size: var(--step--1);
|
37
|
-
|
38
|
-
&:not(&--no-tooltip) {
|
39
|
-
cursor: pointer;
|
40
|
-
transition: 300ms background-color;
|
41
|
-
|
42
|
-
&:where(:hover, :focus) {
|
43
|
-
background: color('petrol', 'step--1');
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
&::before,
|
48
|
-
&::after {
|
49
|
-
--number-size: calc(var(--step-1) * 1.5);
|
50
|
-
height: var(--number-size);
|
51
|
-
width: var(--number-size);
|
52
|
-
display: flex;
|
53
|
-
justify-content: center;
|
54
|
-
align-items: center;
|
55
|
-
border-radius: 2em;
|
56
|
-
font-size: var(--step-1);
|
57
|
-
font-weight: 600;
|
58
|
-
}
|
59
|
-
|
60
|
-
&::before {
|
61
|
-
counter-increment: hotspot-counter;
|
62
|
-
content: counter(hotspot-counter);
|
63
|
-
background: color('red');
|
64
|
-
color: color('white');
|
65
|
-
}
|
66
|
-
|
67
|
-
&::after {
|
68
|
-
content: '+';
|
69
|
-
background: color('petrol', 'step--1');
|
70
|
-
color: color('white');
|
71
|
-
@include padding('3xs');
|
72
|
-
}
|
73
|
-
|
74
|
-
&--no-tooltip::after {
|
75
|
-
display: none;
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
|
-
&__tooltip {
|
80
|
-
--gutter: var(--space-2xs);
|
81
|
-
display: none;
|
82
|
-
position: absolute;
|
83
|
-
background: color('petrol', 'step-1');
|
84
|
-
margin-top: -1em;
|
85
|
-
padding-top: calc(var(--space-2xs) + 1em);
|
86
|
-
@include padding-right('2xs');
|
87
|
-
@include padding-bottom('2xs');
|
88
|
-
@include padding-left('2xs');
|
89
|
-
border-bottom-right-radius: 1em;
|
90
|
-
border-bottom-left-radius: 1em;
|
91
|
-
z-index: -1;
|
92
|
-
font-size: var(--step--2);
|
93
|
-
|
94
|
-
.u-bg-white,
|
95
|
-
.u-bg-petrol {
|
96
|
-
border-radius: calc(1em / 2);
|
97
|
-
}
|
98
|
-
|
99
|
-
&--open {
|
100
|
-
display: block;
|
101
|
-
}
|
102
|
-
}
|
103
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
Read about the design decisions for iconography [here](/components/iconography).
|
@@ -1,13 +0,0 @@
|
|
1
|
-
{%- set classNames = "mp 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 }}">
|
12
|
-
<use xlink:href="/static/svg/sprite.svg#{{ params.id }}"></use>
|
13
|
-
</svg>
|
@@ -1,41 +0,0 @@
|
|
1
|
-
const categories = require('../component/categories');
|
2
|
-
|
3
|
-
module.exports = {
|
4
|
-
title: 'Checkbox',
|
5
|
-
category: categories.form,
|
6
|
-
component: {
|
7
|
-
name: 'checkbox',
|
8
|
-
folder: 'input'
|
9
|
-
},
|
10
|
-
figma: 'https://www.figma.com/file/rUQ6aPQAfBX55o3hH0Lqb3/Design-exploration?node-id=213%3A579',
|
11
|
-
preview: 'form',
|
12
|
-
context: {
|
13
|
-
label: 'Label',
|
14
|
-
name: 'name',
|
15
|
-
id: 'id'
|
16
|
-
},
|
17
|
-
variants: [
|
18
|
-
{
|
19
|
-
title: 'Checked',
|
20
|
-
context: {
|
21
|
-
checked: true
|
22
|
-
}
|
23
|
-
},
|
24
|
-
{
|
25
|
-
title: 'Disabled',
|
26
|
-
context: {
|
27
|
-
disabled: true
|
28
|
-
}
|
29
|
-
}
|
30
|
-
],
|
31
|
-
props: [
|
32
|
-
{
|
33
|
-
table: [
|
34
|
-
['label', 'string'],
|
35
|
-
['id', 'string', 'ID attribute'],
|
36
|
-
['name', 'string', 'Name attribute (falls back to ID)'],
|
37
|
-
['checked', 'bool', 'Is this input checked?']
|
38
|
-
]
|
39
|
-
}
|
40
|
-
]
|
41
|
-
}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
<input type="checkbox" class="c-checkbox" name="{{ params.name or params.id }}" id="{{ params.id }}" value="{{ params.value }}" {{ 'checked' if params.checked }} {{ 'required' if params.required }} {{ 'disabled' if params.disabled }} />
|
2
|
-
<label for="{{ params.id }}">{{ params.label }}</label>
|