@worksafevictoria/wcl7.5 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +13 -0
- package/.env +4 -0
- package/.eslintrc.cjs +10 -0
- package/.eslintrc.js +25 -0
- package/.husky/commit-msg +4 -0
- package/.prettierrc +5 -0
- package/.prettierrc.json +8 -0
- package/.storybook/main.js +18 -0
- package/.storybook/preview.js +34 -0
- package/LICENSE +21 -0
- package/README.md +159 -0
- package/babel.config.js +8 -0
- package/bin/clean.sh +52 -0
- package/bin/deploy.sh +25 -0
- package/ci/build/Build_Validation.md +35 -0
- package/ci/build/build_validation.yml +47 -0
- package/ci/release/Release_Beta.md +39 -0
- package/ci/release/Release_Master.md +29 -0
- package/ci/release/beta.yml +69 -0
- package/ci/release/master.yml +39 -0
- package/commitlint.config.js +1 -0
- package/index.html +13 -0
- package/jest.config.js +21 -0
- package/lib/detect-browser.js +33 -0
- package/lib/utility.js +59 -0
- package/lib/utility.test.js +15 -0
- package/package.json +93 -0
- package/public/favicon.ico +0 -0
- package/src/assets/base.css +86 -0
- package/src/assets/fonts/VIC-Bold.eot +0 -0
- package/src/assets/fonts/VIC-Bold.ttf +0 -0
- package/src/assets/fonts/VIC-Bold.woff +0 -0
- package/src/assets/fonts/VIC-Bold.woff2 +0 -0
- package/src/assets/fonts/VIC-BoldItalic.eot +0 -0
- package/src/assets/fonts/VIC-BoldItalic.ttf +0 -0
- package/src/assets/fonts/VIC-BoldItalic.woff +0 -0
- package/src/assets/fonts/VIC-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/VIC-ExtraLight.eot +0 -0
- package/src/assets/fonts/VIC-ExtraLight.ttf +0 -0
- package/src/assets/fonts/VIC-ExtraLight.woff +0 -0
- package/src/assets/fonts/VIC-ExtraLight.woff2 +0 -0
- package/src/assets/fonts/VIC-ExtraLightItalic.eot +0 -0
- package/src/assets/fonts/VIC-ExtraLightItalic.ttf +0 -0
- package/src/assets/fonts/VIC-ExtraLightItalic.woff +0 -0
- package/src/assets/fonts/VIC-ExtraLightItalic.woff2 +0 -0
- package/src/assets/fonts/VIC-Italic.eot +0 -0
- package/src/assets/fonts/VIC-Italic.ttf +0 -0
- package/src/assets/fonts/VIC-Italic.woff +0 -0
- package/src/assets/fonts/VIC-Italic.woff2 +0 -0
- package/src/assets/fonts/VIC-Light.eot +0 -0
- package/src/assets/fonts/VIC-Light.ttf +0 -0
- package/src/assets/fonts/VIC-Light.woff +0 -0
- package/src/assets/fonts/VIC-Light.woff2 +0 -0
- package/src/assets/fonts/VIC-LightItalic.eot +0 -0
- package/src/assets/fonts/VIC-LightItalic.ttf +0 -0
- package/src/assets/fonts/VIC-LightItalic.woff +0 -0
- package/src/assets/fonts/VIC-LightItalic.woff2 +0 -0
- package/src/assets/fonts/VIC-Medium.eot +0 -0
- package/src/assets/fonts/VIC-Medium.ttf +0 -0
- package/src/assets/fonts/VIC-Medium.woff +0 -0
- package/src/assets/fonts/VIC-Medium.woff2 +0 -0
- package/src/assets/fonts/VIC-MediumItalic.eot +0 -0
- package/src/assets/fonts/VIC-MediumItalic.ttf +0 -0
- package/src/assets/fonts/VIC-MediumItalic.woff +0 -0
- package/src/assets/fonts/VIC-MediumItalic.woff2 +0 -0
- package/src/assets/fonts/VIC-Regular.eot +0 -0
- package/src/assets/fonts/VIC-Regular.ttf +0 -0
- package/src/assets/fonts/VIC-Regular.woff +0 -0
- package/src/assets/fonts/VIC-Regular.woff2 +0 -0
- package/src/assets/fonts/VIC-SemiBold.eot +0 -0
- package/src/assets/fonts/VIC-SemiBold.ttf +0 -0
- package/src/assets/fonts/VIC-SemiBold.woff +0 -0
- package/src/assets/fonts/VIC-SemiBold.woff2 +0 -0
- package/src/assets/fonts/VIC-SemiBoldItalic.eot +0 -0
- package/src/assets/fonts/VIC-SemiBoldItalic.ttf +0 -0
- package/src/assets/fonts/VIC-SemiBoldItalic.woff +0 -0
- package/src/assets/fonts/VIC-SemiBoldItalic.woff2 +0 -0
- package/src/assets/icons/AppFooter/australian-aboriginal-flag.svg +7 -0
- package/src/assets/icons/AppFooter/facebook-ws-footer.svg +58 -0
- package/src/assets/icons/AppFooter/facebook-ww-footer.svg +59 -0
- package/src/assets/icons/AppFooter/instagram-ww-footer.svg +70 -0
- package/src/assets/icons/AppFooter/linkedin-ws-footer.svg +59 -0
- package/src/assets/icons/AppFooter/linkedin-ww-footer.svg +60 -0
- package/src/assets/icons/AppFooter/logo-workwell-reversed.svg +45 -0
- package/src/assets/icons/AppFooter/pride-flag.svg +12 -0
- package/src/assets/icons/AppFooter/torres-strait-islanders-flag.svg +9 -0
- package/src/assets/icons/AppFooter/twitter-ws-footer.svg +58 -0
- package/src/assets/icons/AppFooter/twitter-ww-footer.svg +59 -0
- package/src/assets/icons/AppFooter/worksafe-footer-logo.svg +9 -0
- package/src/assets/icons/AppFooter/youtube-ws-footer.svg +55 -0
- package/src/assets/icons/AppFooter/youtube-ww-footer.svg +56 -0
- package/src/assets/icons/AppHeader/chev-down-16.svg +17 -0
- package/src/assets/icons/AppHeader/chev-left-24px.svg +13 -0
- package/src/assets/icons/AppHeader/chev-right-16px.svg +25 -0
- package/src/assets/icons/AppHeader/chev-right-24px.svg +13 -0
- package/src/assets/icons/AppHeader/close-32px.svg +15 -0
- package/src/assets/icons/AppHeader/menu-32px.svg +20 -0
- package/src/assets/icons/AppHeader/search-32px.svg +19 -0
- package/src/assets/icons/Email-circle-black.svg +4 -0
- package/src/assets/icons/Info-circle-fill.svg +10 -0
- package/src/assets/icons/Phone-circle-black.svg +4 -0
- package/src/assets/icons/SocialShare/bookmark-white.svg +3 -0
- package/src/assets/icons/SocialShare/bookmark-ww-footer.svg +57 -0
- package/src/assets/icons/SocialShare/bookmark.svg +56 -0
- package/src/assets/icons/SocialShare/email-white.svg +3 -0
- package/src/assets/icons/SocialShare/facebook-white.svg +3 -0
- package/src/assets/icons/SocialShare/facebook-ws-footer.svg +58 -0
- package/src/assets/icons/SocialShare/facebook-ww-footer.svg +59 -0
- package/src/assets/icons/SocialShare/facebook.svg +1 -0
- package/src/assets/icons/SocialShare/office-file-pdf.svg +1 -0
- package/src/assets/icons/SocialShare/print.svg +3 -0
- package/src/assets/icons/SocialShare/twitter-white.svg +3 -0
- package/src/assets/icons/SocialShare/twitter-ws-footer.svg +58 -0
- package/src/assets/icons/SocialShare/twitter-ww-footer.svg +59 -0
- package/src/assets/icons/SocialShare/twitter.svg +1 -0
- package/src/assets/icons/Strip/AlertDismiss.svg +4 -0
- package/src/assets/icons/Strip/Arrow right.svg +4 -0
- package/src/assets/icons/Strip/Chevron right.svg +3 -0
- package/src/assets/icons/Strip/Dismiss.svg +4 -0
- package/src/assets/icons/Strip/Exclamation triangle fill.svg +8 -0
- package/src/assets/icons/Strip/Info circle fill.svg +15 -0
- package/src/assets/icons/Strip/Information.svg +15 -0
- package/src/assets/icons/Strip/Warning.svg +8 -0
- package/src/assets/icons/arrow-left.svg +9 -0
- package/src/assets/icons/arrow-right.svg +9 -0
- package/src/assets/icons/bookmark.svg +56 -0
- package/src/assets/icons/brand-VicStateGov-logo-reversed.svg +72 -0
- package/src/assets/icons/bullet-empty.svg +3 -0
- package/src/assets/icons/bullet.svg +3 -0
- package/src/assets/icons/caret-down.svg +1 -0
- package/src/assets/icons/caret-left.svg +9 -0
- package/src/assets/icons/caret-right.svg +9 -0
- package/src/assets/icons/caret-up.svg +1 -0
- package/src/assets/icons/chev-down-white.svg +3 -0
- package/src/assets/icons/chev-down.svg +3 -0
- package/src/assets/icons/chev-left.svg +3 -0
- package/src/assets/icons/chev-right.svg +3 -0
- package/src/assets/icons/chev-up.svg +3 -0
- package/src/assets/icons/clock.svg +3 -0
- package/src/assets/icons/close.svg +1 -0
- package/src/assets/icons/cross.svg +3 -0
- package/src/assets/icons/document.svg +1 -0
- package/src/assets/icons/earth.svg +1 -0
- package/src/assets/icons/email.svg +6 -0
- package/src/assets/icons/external-link-16px.svg +18 -0
- package/src/assets/icons/external-link.svg +4 -0
- package/src/assets/icons/icon-close.svg +15 -0
- package/src/assets/icons/instagram.svg +3 -0
- package/src/assets/icons/key.svg +3 -0
- package/src/assets/icons/location.svg +10 -0
- package/src/assets/icons/phone.svg +3 -0
- package/src/assets/icons/refresh.svg +3 -0
- package/src/assets/icons/right-arrow.svg +3 -0
- package/src/assets/icons/search.svg +5 -0
- package/src/assets/icons/tick.svg +3 -0
- package/src/assets/icons/video-play.svg +4 -0
- package/src/assets/images/hero-header-chevron.svg +9 -0
- package/src/assets/images/hero-header-mask.png +0 -0
- package/src/assets/images/hero-header-mask.svg +3 -0
- package/src/assets/logo.svg +1 -0
- package/src/assets/main.css +35 -0
- package/src/assets/styles/button.scss +206 -0
- package/src/assets/styles/focus.scss +4 -0
- package/src/assets/styles/generated-icons.scss +374 -0
- package/src/assets/styles/modal.scss +12 -0
- package/src/assets/styles/rtl.scss +8 -0
- package/src/assets/styles/storybook.scss +9 -0
- package/src/assets/styles/stylesheet.scss +7 -0
- package/src/assets/styles/webfonts.css +155 -0
- package/src/components/Common/CardGrid/cardgrid.stories.js +269 -0
- package/src/components/Common/CardGrid/index.vue +321 -0
- package/src/components/Common/CardGridItem/card-grid-item-caret.vue +164 -0
- package/src/components/Common/CardGridItem/card-grid-item-icon.vue +163 -0
- package/src/components/Common/CardGridItem/index.vue +848 -0
- package/src/components/Common/FilterButton/index.vue +93 -0
- package/src/components/Containers/Column/index.stories.js +35 -0
- package/src/components/Containers/Column/index.vue +14 -0
- package/src/components/Containers/Container/index.stories.js +13 -0
- package/src/components/Containers/Container/index.vue +15 -0
- package/src/components/Containers/HomepageHeader/index.stories.js +78 -0
- package/src/components/Containers/HomepageHeader/index.vue +186 -0
- package/src/components/Containers/Row/index.stories.js +12 -0
- package/src/components/Containers/Row/index.vue +14 -0
- package/src/components/Containers/SectionGroup/index.stories.js +148 -0
- package/src/components/Containers/SectionGroup/index.vue +310 -0
- package/src/components/Containers/Subheader/index.stories.js +74 -0
- package/src/components/Containers/Subheader/index.vue +149 -0
- package/src/components/Global/AlertStrip/index.stories.js +13 -0
- package/src/components/Global/AlertStrip/index.vue +145 -0
- package/src/components/Global/AlertStrip/styles.scss +78 -0
- package/src/components/Global/AppFooter/FooterSocialShare/index.vue +105 -0
- package/src/components/Global/AppFooter/FooterSocialShare/styles.scss +41 -0
- package/src/components/Global/AppFooter/index.stories.js +24 -0
- package/src/components/Global/AppFooter/index.vue +632 -0
- package/src/components/Global/AppFooter/storiesConst.js +110 -0
- package/src/components/Global/AppFooter/styles.scss +393 -0
- package/src/components/Global/AppHeader/ModalSearch/index.vue +66 -0
- package/src/components/Global/AppHeader/ModalSearch/styles.scss +43 -0
- package/src/components/Global/AppHeader/includes.scss +68 -0
- package/src/components/Global/AppHeader/index.stories.js +82 -0
- package/src/components/Global/AppHeader/index.vue +878 -0
- package/src/components/Global/AppHeader/mobile.scss +240 -0
- package/src/components/Global/AppHeader/styles.scss +371 -0
- package/src/components/Global/BackToTop/index.stories.js +18 -0
- package/src/components/Global/BackToTop/index.vue +67 -0
- package/src/components/Global/BackToTop/styles.scss +46 -0
- package/src/components/Global/ContrastMode/index.stories.js +39 -0
- package/src/components/Global/ContrastMode/index.vue +308 -0
- package/src/components/Global/Cookies/Constants.js +72 -0
- package/src/components/Global/Cookies/index.storieshide.js +45 -0
- package/src/components/Global/Cookies/index.vue +453 -0
- package/src/components/Global/Cookies/styles.scss +259 -0
- package/src/components/Global/DirectoryFilters/SingleTaxonomy/index.vue +196 -0
- package/src/components/Global/DirectoryFilters/index.vue +176 -0
- package/src/components/Global/GlobalNotice/index.vue +266 -0
- package/src/components/Global/HeroHeader/index.stories.js +93 -0
- package/src/components/Global/HeroHeader/index.vue +343 -0
- package/src/components/Global/HeroHeader/styles.scss +480 -0
- package/src/components/Global/ProgressBar/index.stories.js +51 -0
- package/src/components/Global/ProgressBar/index.vue +58 -0
- package/src/components/Global/ProgressBar/styles.scss +116 -0
- package/src/components/Global/SocialShare/index.stories.js +18 -0
- package/src/components/Global/SocialShare/index.vue +318 -0
- package/src/components/Global/Strip/index.stories.js +70 -0
- package/src/components/Global/Strip/index.vue +357 -0
- package/src/components/HelloWorld.vue +44 -0
- package/src/components/Paragraphs/Accordion/AccordionItem/index.vue +232 -0
- package/src/components/Paragraphs/Accordion/StepperItem/index.vue +274 -0
- package/src/components/Paragraphs/Accordion/index.stories.js +84 -0
- package/src/components/Paragraphs/Accordion/index.vue +202 -0
- package/src/components/Paragraphs/Breakout/index.stories.js +39 -0
- package/src/components/Paragraphs/Breakout/index.vue +115 -0
- package/src/components/Paragraphs/BrowseContent/index.stories.js +220 -0
- package/src/components/Paragraphs/BrowseContent/index.vue +298 -0
- package/src/components/Paragraphs/BrowseContent/switcher.vue +63 -0
- package/src/components/Paragraphs/Calculator/CardContainer/index.vue +278 -0
- package/src/components/Paragraphs/Calculator/CardContainer/styles.scss +152 -0
- package/src/components/Paragraphs/Calculator/Constants.js +246 -0
- package/src/components/Paragraphs/Calculator/RiskLevel/index.vue +124 -0
- package/src/components/Paragraphs/Calculator/RiskLevel/styles.scss +73 -0
- package/src/components/Paragraphs/Calculator/index.stories.js +27 -0
- package/src/components/Paragraphs/Calculator/index.vue +284 -0
- package/src/components/Paragraphs/Calculator/styles.scss +49 -0
- package/src/components/Paragraphs/Directory/Records/CJ/index.vue +59 -0
- package/src/components/Paragraphs/Directory/Records/ISP/distance.js +46 -0
- package/src/components/Paragraphs/Directory/Records/ISP/index.vue +88 -0
- package/src/components/Paragraphs/Directory/Records/PRS/index.vue +59 -0
- package/src/components/Paragraphs/Directory/Records/PRS/recordContent.vue +91 -0
- package/src/components/Paragraphs/Directory/Records/PRS/recordDetails.vue +49 -0
- package/src/components/Paragraphs/Directory/Records/index.vue +203 -0
- package/src/components/Paragraphs/Directory/Records/styles.scss +129 -0
- package/src/components/Paragraphs/Directory/constants.js +79 -0
- package/src/components/Paragraphs/Directory/index.vue +334 -0
- package/src/components/Paragraphs/ListGroup/Constants.js +72 -0
- package/src/components/Paragraphs/ListGroup/Link/list-link.stories.js +71 -0
- package/src/components/Paragraphs/ListGroup/index.vue +333 -0
- package/src/components/Paragraphs/ListGroup/list-group.stories.js +64 -0
- package/src/components/Paragraphs/ListGroup/navigation-card.stories.js +66 -0
- package/src/components/Paragraphs/MarketingBanner/index.stories.js +65 -0
- package/src/components/Paragraphs/MarketingBanner/index.vue +118 -0
- package/src/components/Paragraphs/MarketingBanner/styles.scss +87 -0
- package/src/components/Paragraphs/ProofPoints/index.stories.js +173 -0
- package/src/components/Paragraphs/ProofPoints/index.vue +64 -0
- package/src/components/Paragraphs/RelatedInformation/index.stories.js +32 -0
- package/src/components/Paragraphs/RelatedInformation/index.vue +62 -0
- package/src/components/Paragraphs/RelatedInformation/styles.scss +50 -0
- package/src/components/Paragraphs/RichText/index.stories.js +393 -0
- package/src/components/Paragraphs/RichText/index.vue +113 -0
- package/src/components/Paragraphs/RichText/scss/base.scss +355 -0
- package/src/components/Paragraphs/RichText/scss/definition-list.scss +35 -0
- package/src/components/Paragraphs/RichText/scss/styled-list.scss +152 -0
- package/src/components/Paragraphs/RichText/scss/table.scss +85 -0
- package/src/components/Paragraphs/ScrollSpy/index.stories.js +184 -0
- package/src/components/Paragraphs/ScrollSpy/index.vue +147 -0
- package/src/components/Paragraphs/SelectableCards/Control/index.stories.js +29 -0
- package/src/components/Paragraphs/SelectableCards/cardbody.vue +25 -0
- package/src/components/Paragraphs/SelectableCards/cardtop.vue +113 -0
- package/src/components/Paragraphs/SelectableCards/index.stories.js +27 -0
- package/src/components/Paragraphs/SelectableCards/index.vue +116 -0
- package/src/components/Paragraphs/Statistics/index.stories.js +106 -0
- package/src/components/Paragraphs/Statistics/index.vue +95 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/cake-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/commute-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/fire_extinguisher-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/free_breakfast-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/portrait-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/storefront-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/tag_faces-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/index.stories.js +36 -0
- package/src/components/Paragraphs/TabbedCards/index.vue +393 -0
- package/src/components/Paragraphs/Tabs/index.stories.js +60 -0
- package/src/components/Paragraphs/Tabs/index.vue +127 -0
- package/src/components/Paragraphs/Tabs/styles.scss +150 -0
- package/src/components/Paragraphs/TabulatedData/Constants.js +158 -0
- package/src/components/Paragraphs/TabulatedData/index.stories.js +39 -0
- package/src/components/Paragraphs/TabulatedData/index.vue +145 -0
- package/src/components/Paragraphs/TaskFinder/index.stories.js +45 -0
- package/src/components/Paragraphs/TaskFinder/index.vue +192 -0
- package/src/components/Paragraphs/TaskFinder/pdf/index.vue +109 -0
- package/src/components/Paragraphs/TaskFinder/task-finder-column.vue +146 -0
- package/src/components/Paragraphs/TextMedia/MediaTypes/Image/index.vue +24 -0
- package/src/components/Paragraphs/TextMedia/MediaTypes/Video/index.vue +29 -0
- package/src/components/Paragraphs/TextMedia/index.stories.js +94 -0
- package/src/components/Paragraphs/TextMedia/index.vue +150 -0
- package/src/components/Paragraphs/VideoGrid/index.stories.js +167 -0
- package/src/components/Paragraphs/VideoGrid/index.vue +124 -0
- package/src/components/Paragraphs/VideoPlayer/index.stories.js +95 -0
- package/src/components/Paragraphs/VideoPlayer/index.vue +110 -0
- package/src/components/Paragraphs/Webform/index.stories.js +70 -0
- package/src/components/Paragraphs/Webform/index.vue +103 -0
- package/src/components/SubComponents/Breadcrumb/constants.js +15 -0
- package/src/components/SubComponents/Breadcrumb/index.stories.js +22 -0
- package/src/components/SubComponents/Breadcrumb/index.vue +91 -0
- package/src/components/SubComponents/CardGroup/cardbody.vue +109 -0
- package/src/components/SubComponents/CardGroup/cardtop.vue +106 -0
- package/src/components/SubComponents/CardGroup/index.stories.js +145 -0
- package/src/components/SubComponents/CardGroup/index.vue +297 -0
- package/src/components/SubComponents/CtaButton/index.stories.js +357 -0
- package/src/components/SubComponents/CtaButton/index.vue +256 -0
- package/src/components/SubComponents/FormAddressPostcode/index.stories.js +43 -0
- package/src/components/SubComponents/FormAddressPostcode/index.vue +314 -0
- package/src/components/SubComponents/FormInstance/index.stories.js +8 -0
- package/src/components/SubComponents/FormInstance/index.vue +12 -0
- package/src/components/SubComponents/GoogleSearch/index.stories.js +8 -0
- package/src/components/SubComponents/GoogleSearch/index.vue +405 -0
- package/src/components/SubComponents/Icon/README.md +40 -0
- package/src/components/SubComponents/Icon/example.js +41 -0
- package/src/components/SubComponents/Icon/index.stories.js +84 -0
- package/src/components/SubComponents/Icon/index.vue +127 -0
- package/src/components/SubComponents/Icon/styles.scss +38 -0
- package/src/components/SubComponents/Loading/index.stories.js +9 -0
- package/src/components/SubComponents/Loading/index.vue +15 -0
- package/src/components/SubComponents/MediaPlayer/index.stories.js +58 -0
- package/src/components/SubComponents/MediaPlayer/index.vue +69 -0
- package/src/components/SubComponents/Pagination/index.stories.js +119 -0
- package/src/components/SubComponents/Pagination/index.vue +184 -0
- package/src/components/SubComponents/Pagination/pagination.js +58 -0
- package/src/components/SubComponents/ResourceGroup/List/index.stories.js +268 -0
- package/src/components/SubComponents/ResourceGroup/cardbody.vue +221 -0
- package/src/components/SubComponents/ResourceGroup/cardfooter.vue +61 -0
- package/src/components/SubComponents/ResourceGroup/cardtop.vue +94 -0
- package/src/components/SubComponents/ResourceGroup/index.stories.js +268 -0
- package/src/components/SubComponents/ResourceGroup/index.vue +575 -0
- package/src/components/SubComponents/ResourceGroup/styles.scss +317 -0
- package/src/components/SubComponents/ResourceGroup/switcher.vue +63 -0
- package/src/components/SubComponents/Search/SearchListing/index.vue +217 -0
- package/src/components/SubComponents/Search/index.stories.js +43 -0
- package/src/components/SubComponents/Search/index.vue +238 -0
- package/src/components/SubComponents/SingleImage/index.stories.js +60 -0
- package/src/components/SubComponents/SingleImage/index.vue +98 -0
- package/src/components/SubComponents/VideoThumbnail/index.stories.js +41 -0
- package/src/components/SubComponents/VideoThumbnail/index.vue +239 -0
- package/src/components/TheWelcome.vue +88 -0
- package/src/components/WelcomeItem.vue +87 -0
- package/src/components/icons/IconCommunity.vue +7 -0
- package/src/components/icons/IconDocumentation.vue +7 -0
- package/src/components/icons/IconEcosystem.vue +7 -0
- package/src/components/icons/IconSupport.vue +7 -0
- package/src/components/icons/IconTooling.vue +19 -0
- package/src/includes/scss/all.scss +2 -0
- package/src/includes/scss/mixins/all.scss +6 -0
- package/src/includes/scss/mixins/src/focus.scss +38 -0
- package/src/includes/scss/mixins/src/fp.scss +31 -0
- package/src/includes/scss/mixins/src/grid.scss +125 -0
- package/src/includes/scss/mixins/src/mq.scss +30 -0
- package/src/includes/scss/mixins/src/rtl.scss +8 -0
- package/src/includes/scss/mixins/src/units.scss +110 -0
- package/src/includes/scss/vars/all.scss +2 -0
- package/src/includes/scss/vars/src/breakpoints.scss +20 -0
- package/src/includes/scss/vars/src/colors.module.scss +53 -0
- package/src/includes/scss/vars/src/colors.scss +53 -0
- package/src/index.js +116 -0
- package/src/main.js +18 -0
- package/src/mock/accordion.js +104 -0
- package/src/mock/app-header.js +683 -0
- package/src/mock/control-selectable-cards.js +58 -0
- package/src/mock/jest.svgtransformer.js +7 -0
- package/src/mock/list-group.js +46 -0
- package/src/mock/proof-points.js +55 -0
- package/src/mock/related-info.js +44 -0
- package/src/mock/selectable-cards.js +48 -0
- package/src/mock/statistics.js +63 -0
- package/src/mock/styleMock.js +1 -0
- package/src/mock/tabbed-cards.js +197 -0
- package/src/mock/task-finder.js +68 -0
- package/src/mock/video-grid.js +409 -0
- package/src/mock/video-media.js +51 -0
- package/src/public/places/api/v1/geocode/json +69 -0
- package/src/public/places/api/v1/place/autocomplete/json +226 -0
- package/stylelint.config.js +63 -0
- package/vite.config.js +19 -0
- package/vitest.config.js +14 -0
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<container id="mainCookieContainer" class="hide">
|
|
3
|
+
<row class="cookie-container">
|
|
4
|
+
<column class="cookie-container__col">
|
|
5
|
+
<h3 id="cookie_header" class="cookie-header hidden-on-xs">
|
|
6
|
+
{{ cookieContent.header }}
|
|
7
|
+
</h3>
|
|
8
|
+
<div id="cookie_header_xs" class="cookie-header-xs display-on-xs">
|
|
9
|
+
{{ cookieContent.header }}
|
|
10
|
+
</div>
|
|
11
|
+
<div class="cookie-content">
|
|
12
|
+
<div v-if="screenWidth > 350">
|
|
13
|
+
{{ cookieContent.content.default }}
|
|
14
|
+
</div>
|
|
15
|
+
<div v-else-if="screenWidth <= 350">
|
|
16
|
+
{{ cookieContent.content.small }}
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</column>
|
|
20
|
+
<column class="cookie-container__col hidden-on-xs">
|
|
21
|
+
<div class="cookie-buttons mt-md-3">
|
|
22
|
+
<button
|
|
23
|
+
id="moreBtn"
|
|
24
|
+
v-b-modal.cookieModal
|
|
25
|
+
role="button"
|
|
26
|
+
class="cookieBtn moreOptions"
|
|
27
|
+
aria-label="More cookie options"
|
|
28
|
+
>
|
|
29
|
+
More options
|
|
30
|
+
</button>
|
|
31
|
+
<button
|
|
32
|
+
id="accept_all"
|
|
33
|
+
role="button"
|
|
34
|
+
class="cookieBtn yellow hasIcon"
|
|
35
|
+
style="order:1;"
|
|
36
|
+
aria-label="Accept all cookies"
|
|
37
|
+
@click="
|
|
38
|
+
clickedCookie('accept')
|
|
39
|
+
fireGTM()
|
|
40
|
+
"
|
|
41
|
+
>
|
|
42
|
+
Accept all
|
|
43
|
+
</button>
|
|
44
|
+
<button
|
|
45
|
+
id="reject_all"
|
|
46
|
+
role="button"
|
|
47
|
+
class="cookieBtn black hasIcon"
|
|
48
|
+
style="order:2;"
|
|
49
|
+
aria-label="Reject all cookies"
|
|
50
|
+
@click="
|
|
51
|
+
clickedCookie('reject')
|
|
52
|
+
fireGTM()
|
|
53
|
+
checkCookie()
|
|
54
|
+
"
|
|
55
|
+
>
|
|
56
|
+
Reject all
|
|
57
|
+
</button>
|
|
58
|
+
</div>
|
|
59
|
+
</column>
|
|
60
|
+
<row class="cookie-links col mt-3 display-on-xs">
|
|
61
|
+
<div>
|
|
62
|
+
<a id="moreLink" href="#" @click="$bvModal.show('cookieModal')"
|
|
63
|
+
>More options</a
|
|
64
|
+
>
|
|
65
|
+
<a
|
|
66
|
+
id="acceptAllLink"
|
|
67
|
+
href="#"
|
|
68
|
+
@click="
|
|
69
|
+
clickedCookie('accept')
|
|
70
|
+
fireGTM()
|
|
71
|
+
"
|
|
72
|
+
>Accept all</a
|
|
73
|
+
>
|
|
74
|
+
<a
|
|
75
|
+
id="rejectAllLink"
|
|
76
|
+
href="#"
|
|
77
|
+
@click="
|
|
78
|
+
clickedCookie('reject')
|
|
79
|
+
fireGTM()
|
|
80
|
+
checkCookie()
|
|
81
|
+
"
|
|
82
|
+
>Reject all</a
|
|
83
|
+
>
|
|
84
|
+
</div>
|
|
85
|
+
</row>
|
|
86
|
+
</row>
|
|
87
|
+
|
|
88
|
+
<b-modal
|
|
89
|
+
id="cookieModal"
|
|
90
|
+
refs="cookieModal"
|
|
91
|
+
:visible="visible"
|
|
92
|
+
role="dialog"
|
|
93
|
+
scrollable
|
|
94
|
+
@hidden="reset"
|
|
95
|
+
>
|
|
96
|
+
<div slot="modal-title" class="modal-heading">
|
|
97
|
+
{{ cookieContent.modal.heading }}
|
|
98
|
+
</div>
|
|
99
|
+
<div class="modal-content">
|
|
100
|
+
<fieldset>
|
|
101
|
+
<row>
|
|
102
|
+
<column>
|
|
103
|
+
<h5>{{ cookieContent.modal.functional.heading }}</h5>
|
|
104
|
+
</column>
|
|
105
|
+
<column>
|
|
106
|
+
<label for="modal1CB" class="option"
|
|
107
|
+
>Necessary<span class="sr-only">functional label</span>
|
|
108
|
+
<input
|
|
109
|
+
id="modal1CB"
|
|
110
|
+
type="checkbox"
|
|
111
|
+
value="functional"
|
|
112
|
+
checked
|
|
113
|
+
disabled
|
|
114
|
+
/></label>
|
|
115
|
+
</column>
|
|
116
|
+
</row>
|
|
117
|
+
<row>
|
|
118
|
+
<column class="modal-description">{{
|
|
119
|
+
cookieContent.modal.functional.description
|
|
120
|
+
}}</column>
|
|
121
|
+
</row>
|
|
122
|
+
<hr />
|
|
123
|
+
<row>
|
|
124
|
+
<column>
|
|
125
|
+
<h5>{{ cookieContent.modal.analytics.heading }}</h5>
|
|
126
|
+
</column>
|
|
127
|
+
<column>
|
|
128
|
+
<label for="modal2CB" class="option"
|
|
129
|
+
><span class="sr-only">analytics checkbox</span>
|
|
130
|
+
<input
|
|
131
|
+
id="modal2CB"
|
|
132
|
+
type="checkbox"
|
|
133
|
+
name="modal2CB"
|
|
134
|
+
value="analytics"
|
|
135
|
+
/></label>
|
|
136
|
+
</column>
|
|
137
|
+
</row>
|
|
138
|
+
<row>
|
|
139
|
+
<column class="modal-description">{{
|
|
140
|
+
cookieContent.modal.analytics.description
|
|
141
|
+
}}</column>
|
|
142
|
+
</row>
|
|
143
|
+
<hr />
|
|
144
|
+
<row>
|
|
145
|
+
<column>
|
|
146
|
+
<h5>{{ cookieContent.modal.marketing.heading }}</h5>
|
|
147
|
+
</column>
|
|
148
|
+
<column text-align="right">
|
|
149
|
+
<label for="modal3CB" class="option"
|
|
150
|
+
><span class="sr-only">marketing checkbox</span>
|
|
151
|
+
<input
|
|
152
|
+
id="modal3CB"
|
|
153
|
+
type="checkbox"
|
|
154
|
+
name="modal3CB"
|
|
155
|
+
value="marketing"
|
|
156
|
+
/></label>
|
|
157
|
+
</column>
|
|
158
|
+
</row>
|
|
159
|
+
<row>
|
|
160
|
+
<column class="modal-description">{{
|
|
161
|
+
cookieContent.modal.marketing.description
|
|
162
|
+
}}</column>
|
|
163
|
+
</row>
|
|
164
|
+
</fieldset>
|
|
165
|
+
</div>
|
|
166
|
+
<div slot="modal-footer">
|
|
167
|
+
<button
|
|
168
|
+
id="modal_save"
|
|
169
|
+
type="button"
|
|
170
|
+
role="button"
|
|
171
|
+
class="cookieBtn yellow hasIcon"
|
|
172
|
+
style="order:1;"
|
|
173
|
+
aria-label="Save cookie settings"
|
|
174
|
+
@click="
|
|
175
|
+
clickedCookie('save')
|
|
176
|
+
fireGTM()
|
|
177
|
+
checkCookie()
|
|
178
|
+
$bvModal.hide('cookieModal')
|
|
179
|
+
"
|
|
180
|
+
>
|
|
181
|
+
Save
|
|
182
|
+
</button>
|
|
183
|
+
<button
|
|
184
|
+
id="modal_accept"
|
|
185
|
+
type="button"
|
|
186
|
+
role="button"
|
|
187
|
+
class="cookieBtn black hasIcon"
|
|
188
|
+
style="order:2;"
|
|
189
|
+
data-bs-dismiss="cookieModal"
|
|
190
|
+
aria-label="Accept all cookies"
|
|
191
|
+
@click="
|
|
192
|
+
clickedCookie('accept')
|
|
193
|
+
fireGTM()
|
|
194
|
+
$bvModal.hide('cookieModal')
|
|
195
|
+
"
|
|
196
|
+
>
|
|
197
|
+
Accept all
|
|
198
|
+
</button>
|
|
199
|
+
</div>
|
|
200
|
+
</b-modal>
|
|
201
|
+
</container>
|
|
202
|
+
</template>
|
|
203
|
+
|
|
204
|
+
<script>
|
|
205
|
+
import { Container, Row, Column } from '../../../index.vue'
|
|
206
|
+
import { analyticsCookies, marketingCookies } from './Constants'
|
|
207
|
+
|
|
208
|
+
export default {
|
|
209
|
+
name: 'Cookies',
|
|
210
|
+
components: {
|
|
211
|
+
Container,
|
|
212
|
+
Row,
|
|
213
|
+
Column
|
|
214
|
+
},
|
|
215
|
+
props: {
|
|
216
|
+
cookieHeader: {
|
|
217
|
+
type: String,
|
|
218
|
+
default: 'Accept and Reject Cookies'
|
|
219
|
+
},
|
|
220
|
+
cookieContent: {
|
|
221
|
+
type: Object,
|
|
222
|
+
default: () => {}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
data() {
|
|
226
|
+
return {
|
|
227
|
+
modalTitle: this.modalHeading,
|
|
228
|
+
analyticsCookies,
|
|
229
|
+
marketingCookies,
|
|
230
|
+
screenWidth: 0
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
computed: {
|
|
234
|
+
visible() {
|
|
235
|
+
return this.item === null
|
|
236
|
+
},
|
|
237
|
+
showCookie() {
|
|
238
|
+
//Check first if cookies have been turned on in the environment variable
|
|
239
|
+
if (process.env.SHOW_COOKIE === 'true') {
|
|
240
|
+
return 'true'
|
|
241
|
+
} else {
|
|
242
|
+
return 'false'
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
mounted() {
|
|
247
|
+
// required, as unable to check localStorage until window loaded
|
|
248
|
+
window.addEventListener('load', this.checkCookie())
|
|
249
|
+
// detect screen size to display smaller content
|
|
250
|
+
this.screenWidth = window.innerWidth
|
|
251
|
+
this.$nextTick(() => {
|
|
252
|
+
window.addEventListener('resize', this.onScreenResize())
|
|
253
|
+
})
|
|
254
|
+
this.onScreenResize()
|
|
255
|
+
},
|
|
256
|
+
unmounted() {
|
|
257
|
+
window.removeEventListener('load', this.checkCookie())
|
|
258
|
+
},
|
|
259
|
+
methods: {
|
|
260
|
+
onScreenResize() {
|
|
261
|
+
window.addEventListener('resize', () => {
|
|
262
|
+
this.updateScreenWidth()
|
|
263
|
+
})
|
|
264
|
+
},
|
|
265
|
+
updateScreenWidth() {
|
|
266
|
+
this.screenWidth = window.innerWidth
|
|
267
|
+
},
|
|
268
|
+
reset() {
|
|
269
|
+
this.$emit('input', null)
|
|
270
|
+
},
|
|
271
|
+
//function to set cookies based on response in overlay or modal
|
|
272
|
+
clickedCookie: (clickResponse) => {
|
|
273
|
+
const analyticsCookieName = 'analyticsCookies'
|
|
274
|
+
const marketingCookieName = 'marketingCookies'
|
|
275
|
+
var cookieElement = document.getElementById('mainCookieContainer')
|
|
276
|
+
if (clickResponse === 'accept') {
|
|
277
|
+
localStorage.setItem('cookieBannerDisplayed', 'false')
|
|
278
|
+
localStorage.setItem(analyticsCookieName, 'granted')
|
|
279
|
+
localStorage.setItem(marketingCookieName, 'granted')
|
|
280
|
+
cookieElement.classList.add('hide')
|
|
281
|
+
cookieElement.classList.remove('show')
|
|
282
|
+
} else if (clickResponse === 'save') {
|
|
283
|
+
const acb = document.getElementById('modal2CB')
|
|
284
|
+
const mcb = document.getElementById('modal3CB')
|
|
285
|
+
localStorage.setItem('cookieBannerDisplayed', 'false')
|
|
286
|
+
if (acb.checked) {
|
|
287
|
+
localStorage.setItem(analyticsCookieName, 'granted')
|
|
288
|
+
} else {
|
|
289
|
+
localStorage.setItem(analyticsCookieName, 'denied')
|
|
290
|
+
}
|
|
291
|
+
if (mcb.checked) {
|
|
292
|
+
localStorage.setItem(marketingCookieName, 'granted')
|
|
293
|
+
} else {
|
|
294
|
+
localStorage.setItem(marketingCookieName, 'denied')
|
|
295
|
+
}
|
|
296
|
+
cookieElement.classList.add('hide')
|
|
297
|
+
cookieElement.classList.remove('show')
|
|
298
|
+
} else {
|
|
299
|
+
localStorage.setItem('cookieBannerDisplayed', 'false')
|
|
300
|
+
localStorage.setItem(analyticsCookieName, 'denied')
|
|
301
|
+
localStorage.setItem(marketingCookieName, 'denied')
|
|
302
|
+
cookieElement.classList.add('hide')
|
|
303
|
+
cookieElement.classList.remove('show')
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
// function to update consent in GTM
|
|
307
|
+
fireGTM() {
|
|
308
|
+
if (this.$gtm) {
|
|
309
|
+
// gather attrs
|
|
310
|
+
let aConsent = localStorage.getItem('analyticsCookies')
|
|
311
|
+
let mConsent = localStorage.getItem('marketingCookies')
|
|
312
|
+
let attrs1 = {
|
|
313
|
+
ad_storage: mConsent
|
|
314
|
+
}
|
|
315
|
+
// fire the event - marketing
|
|
316
|
+
this.$gtm.push({
|
|
317
|
+
event: 'gtm_consent_update',
|
|
318
|
+
...attrs1
|
|
319
|
+
})
|
|
320
|
+
let attrs2 = {
|
|
321
|
+
analytics_storage: aConsent
|
|
322
|
+
}
|
|
323
|
+
// fire the event - analytics
|
|
324
|
+
this.$gtm.push({
|
|
325
|
+
event: 'gtm_consent_update',
|
|
326
|
+
...attrs2
|
|
327
|
+
})
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
//function to remove from local storage based on partial match - called from checkCookie
|
|
331
|
+
removeLocalStorage: function(cookieName) {
|
|
332
|
+
var removeArr = []
|
|
333
|
+
for (var i = 0; i < localStorage.length; i++) {
|
|
334
|
+
var x = localStorage.key(i)
|
|
335
|
+
if (x.startsWith(cookieName)) {
|
|
336
|
+
removeArr.push(x)
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
removeArr.forEach((y) => {
|
|
340
|
+
localStorage.removeItem(y)
|
|
341
|
+
})
|
|
342
|
+
},
|
|
343
|
+
// function to remove cookies according to response from overlay or modal
|
|
344
|
+
checkCookie: function() {
|
|
345
|
+
var cookieElement = document.getElementById('mainCookieContainer')
|
|
346
|
+
if (
|
|
347
|
+
this.showCookie === 'true' &&
|
|
348
|
+
!localStorage.getItem('cookieBannerDisplayed')
|
|
349
|
+
) {
|
|
350
|
+
cookieElement.classList.remove('hide')
|
|
351
|
+
cookieElement.classList.add('show')
|
|
352
|
+
} else {
|
|
353
|
+
// need to remove cookies in rejected categories, but first hide cookie overlay
|
|
354
|
+
cookieElement.classList.add('hide')
|
|
355
|
+
cookieElement.classList.remove('show')
|
|
356
|
+
|
|
357
|
+
// get list of categorised cookies
|
|
358
|
+
const analyticsArr = analyticsCookies
|
|
359
|
+
const marketingArr = marketingCookies
|
|
360
|
+
|
|
361
|
+
// get list of cookies to process
|
|
362
|
+
var pairs = document.cookie.split(';')
|
|
363
|
+
var cookieArr = []
|
|
364
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
365
|
+
var pair = pairs[i].split('=')
|
|
366
|
+
var nameVar = [pair[0].trim()]
|
|
367
|
+
cookieArr.push(nameVar[0])
|
|
368
|
+
}
|
|
369
|
+
// identify which categories to process, initialising variables to false
|
|
370
|
+
// will only be set to true if user has rejected any cookies
|
|
371
|
+
var checkAnalytics = false
|
|
372
|
+
var checkMarketing = false
|
|
373
|
+
|
|
374
|
+
// get value of consent cookies to determine if cookies have to be removed
|
|
375
|
+
var analyticsValue = localStorage.getItem('analyticsCookies')
|
|
376
|
+
if (analyticsValue !== null && analyticsValue === 'denied') {
|
|
377
|
+
checkAnalytics = true
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
var marketingValue = localStorage.getItem('marketingCookies')
|
|
381
|
+
if (marketingValue !== null && marketingValue === 'denied') {
|
|
382
|
+
checkMarketing = true
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
// Remove analytics cookies stored as cookies or localStorage
|
|
386
|
+
if (checkAnalytics) {
|
|
387
|
+
analyticsArr.forEach((cookieName) => {
|
|
388
|
+
if (cookieName.name.slice(-1) === '*') {
|
|
389
|
+
var tmpVar = cookieName.name.slice(0, -1)
|
|
390
|
+
this.removeLocalStorage(tmpVar)
|
|
391
|
+
var tmpArr = cookieArr.filter((x) => x.match(cookieName.name))
|
|
392
|
+
tmpArr.forEach((tmpName) => {
|
|
393
|
+
document.cookie =
|
|
394
|
+
tmpName +
|
|
395
|
+
'=;expires=' +
|
|
396
|
+
new Date(0).toUTCString() +
|
|
397
|
+
';domain=' +
|
|
398
|
+
cookieName.domain +
|
|
399
|
+
';path=' +
|
|
400
|
+
cookieName.path
|
|
401
|
+
})
|
|
402
|
+
} else {
|
|
403
|
+
localStorage.removeItem(cookieName.name)
|
|
404
|
+
document.cookie =
|
|
405
|
+
cookieName.name +
|
|
406
|
+
'=;expires=' +
|
|
407
|
+
new Date(0).toUTCString() +
|
|
408
|
+
';domain=' +
|
|
409
|
+
cookieName.domain +
|
|
410
|
+
';path=' +
|
|
411
|
+
cookieName.path
|
|
412
|
+
}
|
|
413
|
+
})
|
|
414
|
+
}
|
|
415
|
+
// Remove marketing cookies stored as cookies or localStorage
|
|
416
|
+
if (checkMarketing) {
|
|
417
|
+
marketingArr.forEach((cookieName) => {
|
|
418
|
+
if (cookieName.name.slice(-1) === '*') {
|
|
419
|
+
var tmpVar = cookieName.name.slice(0, -1)
|
|
420
|
+
this.removeLocalStorage(tmpVar)
|
|
421
|
+
var tmpArr = cookieArr.filter((x) => x.match(cookieName.name))
|
|
422
|
+
tmpArr.forEach((tmpName) => {
|
|
423
|
+
document.cookie =
|
|
424
|
+
tmpName +
|
|
425
|
+
'=;expires=' +
|
|
426
|
+
new Date(0).toUTCString() +
|
|
427
|
+
';domain=' +
|
|
428
|
+
cookieName.domain +
|
|
429
|
+
';path=' +
|
|
430
|
+
cookieName.path
|
|
431
|
+
})
|
|
432
|
+
} else {
|
|
433
|
+
localStorage.removeItem(cookieName.name)
|
|
434
|
+
document.cookie =
|
|
435
|
+
cookieName.name +
|
|
436
|
+
'=;expires=' +
|
|
437
|
+
new Date(0).toUTCString() +
|
|
438
|
+
';domain=' +
|
|
439
|
+
cookieName.domain +
|
|
440
|
+
';path=' +
|
|
441
|
+
cookieName.path
|
|
442
|
+
}
|
|
443
|
+
})
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
</script>
|
|
450
|
+
|
|
451
|
+
<style lang="scss" scoped>
|
|
452
|
+
@import './styles';
|
|
453
|
+
</style>
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
@import '../../../assets/styles/generated-icons.scss';
|
|
2
|
+
@import '../../../includes/scss/all';
|
|
3
|
+
|
|
4
|
+
h3.cookie-header {
|
|
5
|
+
font-weight: 700;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.cookie-header-xs {
|
|
9
|
+
font-size: 16px;
|
|
10
|
+
font-weight: 600;
|
|
11
|
+
line-height: 24px;
|
|
12
|
+
margin-bottom: 12px;
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.hide {
|
|
17
|
+
visibility: hidden;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.show {
|
|
21
|
+
visibility: visible;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.cookie-container {
|
|
25
|
+
position: fixed;
|
|
26
|
+
bottom: 0;
|
|
27
|
+
left: 0px;
|
|
28
|
+
right: 0px;
|
|
29
|
+
width: 100%;
|
|
30
|
+
max-width: none;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
border-top: 2px solid $gray;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-self: stretch;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
align-items: center;
|
|
37
|
+
background: $white;
|
|
38
|
+
padding: 24px 45px 24px 45px;
|
|
39
|
+
@media screen and (max-width: 575px) {
|
|
40
|
+
padding: 24px 15px 24px 15px;
|
|
41
|
+
}
|
|
42
|
+
color: $black;
|
|
43
|
+
transition: 400ms;
|
|
44
|
+
margin: 0;
|
|
45
|
+
z-index: 5;
|
|
46
|
+
|
|
47
|
+
&__col {
|
|
48
|
+
@media screen and (max-width: 575px) {
|
|
49
|
+
padding: 0;
|
|
50
|
+
}
|
|
51
|
+
&:first-of-type {
|
|
52
|
+
flex: 0 0 55%;
|
|
53
|
+
max-width: 55%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:last-of-type {
|
|
57
|
+
flex: 0 0 45%;
|
|
58
|
+
max-width: 45%;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media screen and (max-width: 1150px) {
|
|
62
|
+
&:first-of-type {
|
|
63
|
+
flex: 0 0 100%;
|
|
64
|
+
max-width: 100%;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:last-of-type {
|
|
68
|
+
flex: 0 0 100%;
|
|
69
|
+
max-width: 100%;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
.cookie-buttons {
|
|
73
|
+
justify-content: flex-end;
|
|
74
|
+
margin: 0;
|
|
75
|
+
display: flex;
|
|
76
|
+
button {
|
|
77
|
+
&:first-of-type {
|
|
78
|
+
margin-left: 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@include mq('mm') {
|
|
84
|
+
.cookie-buttons {
|
|
85
|
+
margin-top: 16px;
|
|
86
|
+
justify-content: flex-start;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
.cookie-links {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
a {
|
|
94
|
+
font-size: 16px;
|
|
95
|
+
font-style: normal;
|
|
96
|
+
font-weight: 600;
|
|
97
|
+
color: $black;
|
|
98
|
+
text-decoration-line: underline;
|
|
99
|
+
padding-left: 16px;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
&:first-of-type {
|
|
102
|
+
@media screen and (max-width: 575px) {
|
|
103
|
+
padding-left: 0px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
@media screen and (max-width: 350px) {
|
|
107
|
+
width: 100%;
|
|
108
|
+
display: block;
|
|
109
|
+
padding-left: 0px;
|
|
110
|
+
margin-bottom: 16px;
|
|
111
|
+
&:last-of-type {
|
|
112
|
+
margin-bottom: 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
&:deep(.hidden-on-xs) {
|
|
117
|
+
@include mq('xs') {
|
|
118
|
+
display: none;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:deep(.display-on-xs) {
|
|
123
|
+
@include mq('xs') {
|
|
124
|
+
display: flex;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.cookie-container.cookie-content {
|
|
130
|
+
top: 48px;
|
|
131
|
+
width: 100%;
|
|
132
|
+
height: 48px;
|
|
133
|
+
font-weight: 400;
|
|
134
|
+
font-size: 16px;
|
|
135
|
+
line-height: 24px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.cookieBtn {
|
|
139
|
+
position: relative;
|
|
140
|
+
text-decoration: none;
|
|
141
|
+
font-style: normal;
|
|
142
|
+
font-weight: 700;
|
|
143
|
+
font-size: 16px;
|
|
144
|
+
line-height: 20px;
|
|
145
|
+
letter-spacing: 0px;
|
|
146
|
+
display: inline-flex;
|
|
147
|
+
caret-color: transparent;
|
|
148
|
+
border: none;
|
|
149
|
+
border-radius: 8px;
|
|
150
|
+
padding-top: 16px;
|
|
151
|
+
padding-bottom: 16px;
|
|
152
|
+
padding-left: 16px;
|
|
153
|
+
padding-right: 16px;
|
|
154
|
+
margin-bottom: 16px;
|
|
155
|
+
margin-left: 16px;
|
|
156
|
+
|
|
157
|
+
&.moreOptions {
|
|
158
|
+
background-color: $white;
|
|
159
|
+
color: $black;
|
|
160
|
+
padding-left: 8px;
|
|
161
|
+
padding-right: 8px;
|
|
162
|
+
width: 120px;
|
|
163
|
+
}
|
|
164
|
+
&.yellow {
|
|
165
|
+
background-color: $yellow;
|
|
166
|
+
color: $black;
|
|
167
|
+
width: 151px;
|
|
168
|
+
&:after {
|
|
169
|
+
content: arrow-right();
|
|
170
|
+
margin-left: 16px;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
&.black {
|
|
174
|
+
background-color: $black;
|
|
175
|
+
color: white;
|
|
176
|
+
width: 145px;
|
|
177
|
+
&:after {
|
|
178
|
+
content: arrow-right();
|
|
179
|
+
margin-left: 16px;
|
|
180
|
+
filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(302deg)
|
|
181
|
+
brightness(103%) contrast(103%);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
&.hasIcon {
|
|
185
|
+
span {
|
|
186
|
+
margin-left: 16px;
|
|
187
|
+
top: -1px;
|
|
188
|
+
position: relative;
|
|
189
|
+
img {
|
|
190
|
+
width: 16px;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
&.isWiderYellow {
|
|
195
|
+
background-color: $yellow;
|
|
196
|
+
color: $black;
|
|
197
|
+
width: 180px;
|
|
198
|
+
|
|
199
|
+
&:after {
|
|
200
|
+
content: arrow-right();
|
|
201
|
+
margin-left: 16px;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.modal-content {
|
|
207
|
+
border: none !important;
|
|
208
|
+
fieldset {
|
|
209
|
+
.option {
|
|
210
|
+
margin-bottom: 24px;
|
|
211
|
+
display: flex;
|
|
212
|
+
margin-right: 0px;
|
|
213
|
+
padding-left: 24px;
|
|
214
|
+
float: right;
|
|
215
|
+
|
|
216
|
+
@media screen and (max-width: 600px) {
|
|
217
|
+
flex-basis: 100%;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
input[type='checkbox'] {
|
|
221
|
+
height: 24px;
|
|
222
|
+
border: 1px solid $gray;
|
|
223
|
+
width: 24px;
|
|
224
|
+
margin-left: 16px;
|
|
225
|
+
margin-right: 16px;
|
|
226
|
+
border-radius: 4px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
label {
|
|
230
|
+
font-size: 16px;
|
|
231
|
+
font-weight: 400;
|
|
232
|
+
vertical-align: middle;
|
|
233
|
+
position: relative;
|
|
234
|
+
margin-left: 24px;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.modal-description {
|
|
239
|
+
margin-right: 100px;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.modal-content h5 {
|
|
245
|
+
font-weight: 700;
|
|
246
|
+
font-size: 20px;
|
|
247
|
+
line-height: 24px;
|
|
248
|
+
font-style: normal;
|
|
249
|
+
color: $black;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.modal-heading {
|
|
253
|
+
font-size: 26px;
|
|
254
|
+
font-weight: 700;
|
|
255
|
+
line-height: 32px;
|
|
256
|
+
letter-spacing: 0px;
|
|
257
|
+
margin-bottom: 0px;
|
|
258
|
+
margin-top: 0px;
|
|
259
|
+
}
|