@dta-au/civictheme-twig 1.13.1
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/assets/backgrounds/civictheme_background_1.png +0 -0
- package/assets/backgrounds/civictheme_background_2.png +0 -0
- package/assets/backgrounds/civictheme_background_3.png +0 -0
- package/assets/backgrounds/civictheme_background_4.png +0 -0
- package/assets/backgrounds/civictheme_background_5.png +0 -0
- package/assets/backgrounds/civictheme_background_6.png +0 -0
- package/assets/backgrounds/civictheme_background_7.png +0 -0
- package/assets/fonts/.gitkeep +0 -0
- package/assets/icons/account.svg +3 -0
- package/assets/icons/approve.svg +3 -0
- package/assets/icons/bars.svg +3 -0
- package/assets/icons/bullet.svg +3 -0
- package/assets/icons/calendar-1.svg +3 -0
- package/assets/icons/calendar-2.svg +3 -0
- package/assets/icons/call.svg +3 -0
- package/assets/icons/cancel.svg +3 -0
- package/assets/icons/checked.svg +4 -0
- package/assets/icons/close-outline.svg +3 -0
- package/assets/icons/close.svg +3 -0
- package/assets/icons/document.svg +4 -0
- package/assets/icons/down-arrow-1.svg +3 -0
- package/assets/icons/down-arrow-2.svg +3 -0
- package/assets/icons/download-file.svg +3 -0
- package/assets/icons/download.svg +3 -0
- package/assets/icons/exclamation-mark-1.svg +3 -0
- package/assets/icons/exclamation-mark-2.svg +3 -0
- package/assets/icons/exclamation-mark-3.svg +3 -0
- package/assets/icons/eye.svg +3 -0
- package/assets/icons/facebook.svg +3 -0
- package/assets/icons/help.svg +3 -0
- package/assets/icons/image.svg +5 -0
- package/assets/icons/information-mark.svg +3 -0
- package/assets/icons/instagram.svg +3 -0
- package/assets/icons/layer.svg +4 -0
- package/assets/icons/layers.svg +4 -0
- package/assets/icons/left-arrow-outline.svg +3 -0
- package/assets/icons/left-arrow.svg +3 -0
- package/assets/icons/linkedin.svg +3 -0
- package/assets/icons/lock-file.svg +4 -0
- package/assets/icons/lock-gallery.svg +4 -0
- package/assets/icons/magnifier.svg +3 -0
- package/assets/icons/map.svg +3 -0
- package/assets/icons/megaphone.svg +3 -0
- package/assets/icons/message.svg +3 -0
- package/assets/icons/mobile.svg +4 -0
- package/assets/icons/mortarboard.svg +3 -0
- package/assets/icons/newspaper.svg +3 -0
- package/assets/icons/open-source.svg +3 -0
- package/assets/icons/pdf-file.svg +4 -0
- package/assets/icons/progress.svg +3 -0
- package/assets/icons/right-arrow-1.svg +3 -0
- package/assets/icons/right-arrow-2.svg +3 -0
- package/assets/icons/select-box.svg +4 -0
- package/assets/icons/share.svg +3 -0
- package/assets/icons/square.svg +3 -0
- package/assets/icons/to-do.svg +3 -0
- package/assets/icons/twitter.svg +3 -0
- package/assets/icons/up-arrow.svg +3 -0
- package/assets/icons/upper-arrow.svg +3 -0
- package/assets/icons/upper-right-arrow.svg +3 -0
- package/assets/icons/users.svg +4 -0
- package/assets/icons/watch.svg +3 -0
- package/assets/icons/water-drop.svg +4 -0
- package/assets/icons/web.svg +4 -0
- package/assets/icons/word-file.svg +4 -0
- package/assets/icons/x.svg +3 -0
- package/assets/icons/youtube.svg +3 -0
- package/assets/logos/logo_custom_light_desktop_civictheme.svg +32 -0
- package/assets/logos/logo_custom_light_mobile_civictheme.svg +32 -0
- package/assets/logos/logo_primary_dark_desktop.png +0 -0
- package/assets/logos/logo_primary_dark_mobile.png +0 -0
- package/assets/logos/logo_primary_light_desktop.png +0 -0
- package/assets/logos/logo_primary_light_mobile.png +0 -0
- package/assets/logos/logo_secondary_dark_desktop.png +0 -0
- package/assets/logos/logo_secondary_dark_mobile.png +0 -0
- package/assets/logos/logo_secondary_light_desktop.png +0 -0
- package/assets/logos/logo_secondary_light_mobile.png +0 -0
- package/components/00-base/_variables.base.scss +482 -0
- package/components/00-base/_variables.components.scss +1315 -0
- package/components/00-base/about-civictheme/about-civictheme.stories.js +37 -0
- package/components/00-base/about-civictheme/about-civictheme.stories.scss +37 -0
- package/components/00-base/about-civictheme/about-civictheme.stories.twig +219 -0
- package/components/00-base/background/background.scss +12 -0
- package/components/00-base/background/background.stories.js +33 -0
- package/components/00-base/background/background.stories.scss +16 -0
- package/components/00-base/background/background.stories.twig +6 -0
- package/components/00-base/background/background.utils.js +23 -0
- package/components/00-base/collapsible/collapsible.js +452 -0
- package/components/00-base/collapsible/collapsible.scss +80 -0
- package/components/00-base/collapsible/collapsible.stories.js +17 -0
- package/components/00-base/collapsible/collapsible.stories.scss +38 -0
- package/components/00-base/collapsible/collapsible.stories.twig +497 -0
- package/components/00-base/collapsible/collapsible.test.js +186 -0
- package/components/00-base/colors/colors.stories.js +142 -0
- package/components/00-base/colors/colors.stories.scss +78 -0
- package/components/00-base/colors/colors.stories.twig +42 -0
- package/components/00-base/datetime/__snapshots__/datetime.test.js.snap +114 -0
- package/components/00-base/datetime/datetime.stories.js +47 -0
- package/components/00-base/datetime/datetime.test.js +75 -0
- package/components/00-base/datetime/datetime.twig +24 -0
- package/components/00-base/debug/_index.scss +24 -0
- package/components/00-base/elevation/elevation.stories.js +14 -0
- package/components/00-base/elevation/elevation.stories.scss +21 -0
- package/components/00-base/elevation/elevation.stories.twig +8 -0
- package/components/00-base/flex/_index.scss +37 -0
- package/components/00-base/flyout/flyout.js +207 -0
- package/components/00-base/flyout/flyout.scss +47 -0
- package/components/00-base/flyout/flyout.stories.js +34 -0
- package/components/00-base/flyout/flyout.stories.scss +38 -0
- package/components/00-base/flyout/flyout.stories.twig +101 -0
- package/components/00-base/fonts/_index.scss +15 -0
- package/components/00-base/fonts/fonts.stories.js +40 -0
- package/components/00-base/fonts/fonts.stories.scss +28 -0
- package/components/00-base/fonts/fonts.stories.twig +15 -0
- package/components/00-base/grid/__snapshots__/grid.test.js.snap +2113 -0
- package/components/00-base/grid/grid.scss +164 -0
- package/components/00-base/grid/grid.stories.js +570 -0
- package/components/00-base/grid/grid.stories.scss +184 -0
- package/components/00-base/grid/grid.test.js +386 -0
- package/components/00-base/grid/grid.twig +96 -0
- package/components/00-base/icon/__snapshots__/icon.test.js.snap +76 -0
- package/components/00-base/icon/icon.scss +21 -0
- package/components/00-base/icon/icon.stories.js +46 -0
- package/components/00-base/icon/icon.test.js +53 -0
- package/components/00-base/icon/icon.twig +35 -0
- package/components/00-base/icon/icon.utils.js +35 -0
- package/components/00-base/item-list/__snapshots__/item-list.test.js.snap +255 -0
- package/components/00-base/item-list/item-list.scss +66 -0
- package/components/00-base/item-list/item-list.stories.js +49 -0
- package/components/00-base/item-list/item-list.test.js +96 -0
- package/components/00-base/item-list/item-list.twig +35 -0
- package/components/00-base/layout/__snapshots__/layout.test.js.snap +520 -0
- package/components/00-base/layout/layout.js +97 -0
- package/components/00-base/layout/layout.scss +329 -0
- package/components/00-base/layout/layout.stories.data.js +22 -0
- package/components/00-base/layout/layout.stories.js +120 -0
- package/components/00-base/layout/layout.stories.scss +55 -0
- package/components/00-base/layout/layout.test.js +166 -0
- package/components/00-base/layout/layout.twig +115 -0
- package/components/00-base/menu/__snapshots__/menu.test.js.snap +1028 -0
- package/components/00-base/menu/menu.stories.js +107 -0
- package/components/00-base/menu/menu.stories.scss +11 -0
- package/components/00-base/menu/menu.test.js +231 -0
- package/components/00-base/menu/menu.twig +133 -0
- package/components/00-base/mixins/_background.scss +11 -0
- package/components/00-base/mixins/_breakpoint.scss +75 -0
- package/components/00-base/mixins/_button.scss +312 -0
- package/components/00-base/mixins/_color.scss +137 -0
- package/components/00-base/mixins/_component.scss +39 -0
- package/components/00-base/mixins/_content-link.scss +58 -0
- package/components/00-base/mixins/_content.scss +369 -0
- package/components/00-base/mixins/_cssgrid.scss +106 -0
- package/components/00-base/mixins/_debug.scss +29 -0
- package/components/00-base/mixins/_deprecations.scss +21 -0
- package/components/00-base/mixins/_disabled.scss +11 -0
- package/components/00-base/mixins/_elevation.scss +37 -0
- package/components/00-base/mixins/_font.scss +140 -0
- package/components/00-base/mixins/_form.scss +30 -0
- package/components/00-base/mixins/_generator.scss +35 -0
- package/components/00-base/mixins/_grid.scss +223 -0
- package/components/00-base/mixins/_highlight.scss +84 -0
- package/components/00-base/mixins/_icon.scss +118 -0
- package/components/00-base/mixins/_image.scss +149 -0
- package/components/00-base/mixins/_index.scss +25 -0
- package/components/00-base/mixins/_link.scss +163 -0
- package/components/00-base/mixins/_map.scss +90 -0
- package/components/00-base/mixins/_message.scss +11 -0
- package/components/00-base/mixins/_outline.scss +32 -0
- package/components/00-base/mixins/_particle.scss +40 -0
- package/components/00-base/mixins/_print.scss +26 -0
- package/components/00-base/mixins/_rem.scss +20 -0
- package/components/00-base/mixins/_reset.scss +85 -0
- package/components/00-base/mixins/_spacing.scss +57 -0
- package/components/00-base/mixins/_string.scss +76 -0
- package/components/00-base/mixins/_table.scss +254 -0
- package/components/00-base/mixins/_typography.scss +193 -0
- package/components/00-base/mixins/_visibility.scss +27 -0
- package/components/00-base/platform/platform.js +27 -0
- package/components/00-base/responsive/responsive.js +186 -0
- package/components/00-base/responsive/responsive.stories.js +17 -0
- package/components/00-base/responsive/responsive.stories.twig +121 -0
- package/components/00-base/scrollspy/scrollspy.js +36 -0
- package/components/00-base/scrollspy/scrollspy.scss +11 -0
- package/components/00-base/scrollspy/scrollspy.stories.js +18 -0
- package/components/00-base/scrollspy/scrollspy.stories.scss +51 -0
- package/components/00-base/scrollspy/scrollspy.stories.twig +9 -0
- package/components/00-base/skip-to-target/skip-to-target.js +27 -0
- package/components/00-base/spacing/spacing.scss +29 -0
- package/components/00-base/spacing/spacing.stories.js +16 -0
- package/components/00-base/spacing/spacing.stories.scss +51 -0
- package/components/00-base/spacing/spacing.stories.twig +64 -0
- package/components/00-base/storybook/storybook.container.utils.stories.scss +105 -0
- package/components/00-base/storybook/storybook.docs.utils.js +37 -0
- package/components/00-base/storybook/storybook.docs.utils.stories.scss +70 -0
- package/components/00-base/storybook/storybook.generators.utils.js +19 -0
- package/components/00-base/storybook/storybook.layout.utils.stories.scss +90 -0
- package/components/00-base/storybook/storybook.placeholder.utils.stories.scss +75 -0
- package/components/00-base/storybook/storybook.stories.scss +8 -0
- package/components/00-base/text-icon/text-icon.scss +9 -0
- package/components/00-base/text-icon/text-icon.stories.js +57 -0
- package/components/00-base/text-icon/text-icon.twig +81 -0
- package/components/00-base/typography/typography.scss +81 -0
- package/components/00-base/typography/typography.stories.js +17 -0
- package/components/00-base/typography/typography.stories.twig +228 -0
- package/components/00-base/variables.scss +41 -0
- package/components/00-base/visibility/_index.scss +42 -0
- package/components/00-base/welcome/welcome.stories.js +37 -0
- package/components/00-base/welcome/welcome.stories.scss +30 -0
- package/components/00-base/welcome/welcome.stories.twig +41 -0
- package/components/01-atoms/button/__snapshots__/button.test.js.snap +205 -0
- package/components/01-atoms/button/button.js +127 -0
- package/components/01-atoms/button/button.scss +82 -0
- package/components/01-atoms/button/button.stories.js +86 -0
- package/components/01-atoms/button/button.test.js +103 -0
- package/components/01-atoms/button/button.twig +82 -0
- package/components/01-atoms/checkbox/__snapshots__/checkbox.test.js.snap +65 -0
- package/components/01-atoms/checkbox/checkbox.scss +176 -0
- package/components/01-atoms/checkbox/checkbox.stories.js +63 -0
- package/components/01-atoms/checkbox/checkbox.test.js +67 -0
- package/components/01-atoms/checkbox/checkbox.twig +47 -0
- package/components/01-atoms/chip/__snapshots__/chip.test.js.snap +90 -0
- package/components/01-atoms/chip/chip.event.stories.js +25 -0
- package/components/01-atoms/chip/chip.js +104 -0
- package/components/01-atoms/chip/chip.scss +144 -0
- package/components/01-atoms/chip/chip.stories.js +74 -0
- package/components/01-atoms/chip/chip.test.js +53 -0
- package/components/01-atoms/chip/chip.twig +73 -0
- package/components/01-atoms/content-link/__snapshots__/content-link.test.js.snap +91 -0
- package/components/01-atoms/content-link/content-link.scss +16 -0
- package/components/01-atoms/content-link/content-link.stories.js +50 -0
- package/components/01-atoms/content-link/content-link.test.js +50 -0
- package/components/01-atoms/content-link/content-link.twig +40 -0
- package/components/01-atoms/field-description/__snapshots__/field-description.test.js.snap +49 -0
- package/components/01-atoms/field-description/field-description.scss +24 -0
- package/components/01-atoms/field-description/field-description.stories.js +41 -0
- package/components/01-atoms/field-description/field-description.test.js +51 -0
- package/components/01-atoms/field-description/field-description.twig +24 -0
- package/components/01-atoms/field-message/__snapshots__/field-message.test.js.snap +142 -0
- package/components/01-atoms/field-message/field-message.scss +108 -0
- package/components/01-atoms/field-message/field-message.stories.js +41 -0
- package/components/01-atoms/field-message/field-message.test.js +64 -0
- package/components/01-atoms/field-message/field-message.twig +37 -0
- package/components/01-atoms/fieldset/__snapshots__/fieldset.test.js.snap +358 -0
- package/components/01-atoms/fieldset/fieldset.scss +44 -0
- package/components/01-atoms/fieldset/fieldset.stories.js +79 -0
- package/components/01-atoms/fieldset/fieldset.test.js +102 -0
- package/components/01-atoms/fieldset/fieldset.twig +91 -0
- package/components/01-atoms/heading/__snapshots__/heading.test.js.snap +43 -0
- package/components/01-atoms/heading/heading.scss +13 -0
- package/components/01-atoms/heading/heading.stories.js +41 -0
- package/components/01-atoms/heading/heading.test.js +42 -0
- package/components/01-atoms/heading/heading.twig +24 -0
- package/components/01-atoms/iframe/__snapshots__/iframe.test.js.snap +34 -0
- package/components/01-atoms/iframe/iframe.scss +29 -0
- package/components/01-atoms/iframe/iframe.stories.js +53 -0
- package/components/01-atoms/iframe/iframe.test.js +37 -0
- package/components/01-atoms/iframe/iframe.twig +29 -0
- package/components/01-atoms/image/__snapshots__/image.test.js.snap +45 -0
- package/components/01-atoms/image/image.stories.js +48 -0
- package/components/01-atoms/image/image.test.js +45 -0
- package/components/01-atoms/image/image.twig +31 -0
- package/components/01-atoms/input/__snapshots__/input.test.js.snap +64 -0
- package/components/01-atoms/input/input.scss +112 -0
- package/components/01-atoms/input/input.stories.js +81 -0
- package/components/01-atoms/input/input.test.js +71 -0
- package/components/01-atoms/input/input.twig +38 -0
- package/components/01-atoms/label/__snapshots__/label.test.js.snap +69 -0
- package/components/01-atoms/label/label.scss +34 -0
- package/components/01-atoms/label/label.stories.js +65 -0
- package/components/01-atoms/label/label.test.js +76 -0
- package/components/01-atoms/label/label.twig +35 -0
- package/components/01-atoms/link/__snapshots__/link.test.js.snap +138 -0
- package/components/01-atoms/link/link.scss +53 -0
- package/components/01-atoms/link/link.stories.js +82 -0
- package/components/01-atoms/link/link.test.js +84 -0
- package/components/01-atoms/link/link.twig +62 -0
- package/components/01-atoms/paragraph/__snapshots__/paragraph.test.js.snap +36 -0
- package/components/01-atoms/paragraph/paragraph.scss +31 -0
- package/components/01-atoms/paragraph/paragraph.stories.js +45 -0
- package/components/01-atoms/paragraph/paragraph.test.js +40 -0
- package/components/01-atoms/paragraph/paragraph.twig +25 -0
- package/components/01-atoms/popover/__snapshots__/popover.test.js.snap +129 -0
- package/components/01-atoms/popover/popover.scss +44 -0
- package/components/01-atoms/popover/popover.stories.js +52 -0
- package/components/01-atoms/popover/popover.test.js +57 -0
- package/components/01-atoms/popover/popover.twig +69 -0
- package/components/01-atoms/radio/__snapshots__/radio.test.js.snap +83 -0
- package/components/01-atoms/radio/radio.scss +176 -0
- package/components/01-atoms/radio/radio.stories.js +64 -0
- package/components/01-atoms/radio/radio.test.js +76 -0
- package/components/01-atoms/radio/radio.twig +47 -0
- package/components/01-atoms/select/__snapshots__/select.test.js.snap +165 -0
- package/components/01-atoms/select/select.scss +105 -0
- package/components/01-atoms/select/select.stories.js +81 -0
- package/components/01-atoms/select/select.test.js +117 -0
- package/components/01-atoms/select/select.twig +63 -0
- package/components/01-atoms/table/__snapshots__/table.test.js.snap +206 -0
- package/components/01-atoms/table/table.js +79 -0
- package/components/01-atoms/table/table.scss +18 -0
- package/components/01-atoms/table/table.stories.js +129 -0
- package/components/01-atoms/table/table.test.js +60 -0
- package/components/01-atoms/table/table.twig +104 -0
- package/components/01-atoms/tag/__snapshots__/tag.test.js.snap +97 -0
- package/components/01-atoms/tag/tag.scss +63 -0
- package/components/01-atoms/tag/tag.stories.js +55 -0
- package/components/01-atoms/tag/tag.test.js +49 -0
- package/components/01-atoms/tag/tag.twig +74 -0
- package/components/01-atoms/textarea/__snapshots__/textarea.test.js.snap +64 -0
- package/components/01-atoms/textarea/textarea.scss +72 -0
- package/components/01-atoms/textarea/textarea.stories.js +64 -0
- package/components/01-atoms/textarea/textarea.test.js +68 -0
- package/components/01-atoms/textarea/textarea.twig +37 -0
- package/components/01-atoms/textfield/__snapshots__/textfield.test.js.snap +63 -0
- package/components/01-atoms/textfield/textfield.scss +70 -0
- package/components/01-atoms/textfield/textfield.stories.js +60 -0
- package/components/01-atoms/textfield/textfield.test.js +64 -0
- package/components/01-atoms/textfield/textfield.twig +37 -0
- package/components/01-atoms/video/__snapshots__/video.test.js.snap +75 -0
- package/components/01-atoms/video/video.stories.js +69 -0
- package/components/01-atoms/video/video.test.js +57 -0
- package/components/01-atoms/video/video.twig +59 -0
- package/components/02-molecules/accordion/__snapshots__/accordion.test.js.snap +651 -0
- package/components/02-molecules/accordion/accordion.scss +109 -0
- package/components/02-molecules/accordion/accordion.stories.js +73 -0
- package/components/02-molecules/accordion/accordion.test.js +84 -0
- package/components/02-molecules/accordion/accordion.twig +86 -0
- package/components/02-molecules/attachment/__snapshots__/attachment.test.js.snap +694 -0
- package/components/02-molecules/attachment/attachment.scss +54 -0
- package/components/02-molecules/attachment/attachment.stories.js +125 -0
- package/components/02-molecules/attachment/attachment.test.js +84 -0
- package/components/02-molecules/attachment/attachment.twig +139 -0
- package/components/02-molecules/back-to-top/__snapshots__/back-to-top.test.js.snap +172 -0
- package/components/02-molecules/back-to-top/back-to-top.scss +39 -0
- package/components/02-molecules/back-to-top/back-to-top.stories.js +26 -0
- package/components/02-molecules/back-to-top/back-to-top.stories.scss +20 -0
- package/components/02-molecules/back-to-top/back-to-top.stories.twig +6 -0
- package/components/02-molecules/back-to-top/back-to-top.test.js +31 -0
- package/components/02-molecules/back-to-top/back-to-top.twig +32 -0
- package/components/02-molecules/basic-content/__snapshots__/basic-content.test.js.snap +110 -0
- package/components/02-molecules/basic-content/basic-content.scss +39 -0
- package/components/02-molecules/basic-content/basic-content.stories.data.js +157 -0
- package/components/02-molecules/basic-content/basic-content.stories.js +56 -0
- package/components/02-molecules/basic-content/basic-content.test.js +59 -0
- package/components/02-molecules/basic-content/basic-content.twig +42 -0
- package/components/02-molecules/breadcrumb/__snapshots__/breadcrumb.test.js.snap +553 -0
- package/components/02-molecules/breadcrumb/breadcrumb.scss +23 -0
- package/components/02-molecules/breadcrumb/breadcrumb.stories.js +53 -0
- package/components/02-molecules/breadcrumb/breadcrumb.test.js +82 -0
- package/components/02-molecules/breadcrumb/breadcrumb.twig +85 -0
- package/components/02-molecules/callout/__snapshots__/callout.test.js.snap +384 -0
- package/components/02-molecules/callout/callout.scss +35 -0
- package/components/02-molecules/callout/callout.stories.js +70 -0
- package/components/02-molecules/callout/callout.test.js +73 -0
- package/components/02-molecules/callout/callout.twig +108 -0
- package/components/02-molecules/event-card/__snapshots__/event-card.test.js.snap +382 -0
- package/components/02-molecules/event-card/event-card.scss +153 -0
- package/components/02-molecules/event-card/event-card.stories.data.js +31 -0
- package/components/02-molecules/event-card/event-card.stories.js +68 -0
- package/components/02-molecules/event-card/event-card.test.js +74 -0
- package/components/02-molecules/event-card/event-card.twig +195 -0
- package/components/02-molecules/fast-fact-card/__snapshots__/fast-fact-card.test.js.snap +186 -0
- package/components/02-molecules/fast-fact-card/fast-fact-card.scss +104 -0
- package/components/02-molecules/fast-fact-card/fast-fact-card.stories.data.js +18 -0
- package/components/02-molecules/fast-fact-card/fast-fact-card.stories.js +44 -0
- package/components/02-molecules/fast-fact-card/fast-fact-card.test.js +90 -0
- package/components/02-molecules/fast-fact-card/fast-fact-card.twig +74 -0
- package/components/02-molecules/field/__snapshots__/field.test.js.snap +1526 -0
- package/components/02-molecules/field/field.scss +92 -0
- package/components/02-molecules/field/field.stories.data.js +52 -0
- package/components/02-molecules/field/field.stories.js +117 -0
- package/components/02-molecules/field/field.test.js +530 -0
- package/components/02-molecules/field/field.twig +206 -0
- package/components/02-molecules/figure/__snapshots__/figure.test.js.snap +104 -0
- package/components/02-molecules/figure/figure.scss +27 -0
- package/components/02-molecules/figure/figure.stories.js +52 -0
- package/components/02-molecules/figure/figure.test.js +60 -0
- package/components/02-molecules/figure/figure.twig +43 -0
- package/components/02-molecules/group-filter/__snapshots__/group-filter.test.js.snap +1466 -0
- package/components/02-molecules/group-filter/group-filter.js +33 -0
- package/components/02-molecules/group-filter/group-filter.scss +111 -0
- package/components/02-molecules/group-filter/group-filter.stories.data.js +83 -0
- package/components/02-molecules/group-filter/group-filter.stories.js +81 -0
- package/components/02-molecules/group-filter/group-filter.test.js +104 -0
- package/components/02-molecules/group-filter/group-filter.twig +192 -0
- package/components/02-molecules/inline-filter/inline-filter.scss +58 -0
- package/components/02-molecules/inline-filter/inline-filter.stories.data.js +24 -0
- package/components/02-molecules/inline-filter/inline-filter.stories.js +52 -0
- package/components/02-molecules/inline-filter/inline-filter.twig +48 -0
- package/components/02-molecules/logo/__snapshots__/logo.test.js.snap +191 -0
- package/components/02-molecules/logo/logo.scss +60 -0
- package/components/02-molecules/logo/logo.stories.data.js +34 -0
- package/components/02-molecules/logo/logo.stories.js +56 -0
- package/components/02-molecules/logo/logo.test.js +111 -0
- package/components/02-molecules/logo/logo.twig +71 -0
- package/components/02-molecules/logo/logo.utils.js +57 -0
- package/components/02-molecules/map/__snapshots__/map.test.js.snap +310 -0
- package/components/02-molecules/map/map.scss +35 -0
- package/components/02-molecules/map/map.stories.js +65 -0
- package/components/02-molecules/map/map.test.js +78 -0
- package/components/02-molecules/map/map.twig +86 -0
- package/components/02-molecules/navigation-card/__snapshots__/navigation-card.test.js.snap +507 -0
- package/components/02-molecules/navigation-card/navigation-card.scss +164 -0
- package/components/02-molecules/navigation-card/navigation-card.stories.data.js +26 -0
- package/components/02-molecules/navigation-card/navigation-card.stories.js +64 -0
- package/components/02-molecules/navigation-card/navigation-card.test.js +146 -0
- package/components/02-molecules/navigation-card/navigation-card.twig +165 -0
- package/components/02-molecules/next-step/__snapshots__/next-step.test.js.snap +331 -0
- package/components/02-molecules/next-step/next-step.scss +46 -0
- package/components/02-molecules/next-step/next-step.stories.js +61 -0
- package/components/02-molecules/next-step/next-step.test.js +74 -0
- package/components/02-molecules/next-step/next-step.twig +104 -0
- package/components/02-molecules/pagination/__snapshots__/pagination.test.js.snap +863 -0
- package/components/02-molecules/pagination/pagination.scss +103 -0
- package/components/02-molecules/pagination/pagination.stories.data.js +55 -0
- package/components/02-molecules/pagination/pagination.stories.js +56 -0
- package/components/02-molecules/pagination/pagination.test.js +121 -0
- package/components/02-molecules/pagination/pagination.twig +177 -0
- package/components/02-molecules/promo-card/__snapshots__/promo-card.test.js.snap +407 -0
- package/components/02-molecules/promo-card/promo-card.scss +149 -0
- package/components/02-molecules/promo-card/promo-card.stories.data.js +32 -0
- package/components/02-molecules/promo-card/promo-card.stories.js +62 -0
- package/components/02-molecules/promo-card/promo-card.test.js +98 -0
- package/components/02-molecules/promo-card/promo-card.twig +198 -0
- package/components/02-molecules/publication-card/__snapshots__/publication-card.test.js.snap +342 -0
- package/components/02-molecules/publication-card/publication-card.scss +148 -0
- package/components/02-molecules/publication-card/publication-card.stories.js +83 -0
- package/components/02-molecules/publication-card/publication-card.test.js +113 -0
- package/components/02-molecules/publication-card/publication-card.twig +162 -0
- package/components/02-molecules/search/__snapshots__/search.test.js.snap +161 -0
- package/components/02-molecules/search/search.scss +74 -0
- package/components/02-molecules/search/search.stories.js +40 -0
- package/components/02-molecules/search/search.test.js +58 -0
- package/components/02-molecules/search/search.twig +33 -0
- package/components/02-molecules/service-card/__snapshots__/service-card.test.js.snap +324 -0
- package/components/02-molecules/service-card/service-card.scss +42 -0
- package/components/02-molecules/service-card/service-card.stories.js +65 -0
- package/components/02-molecules/service-card/service-card.test.js +91 -0
- package/components/02-molecules/service-card/service-card.twig +89 -0
- package/components/02-molecules/single-filter/__snapshots__/single-filter.test.js.snap +694 -0
- package/components/02-molecules/single-filter/single-filter.js +33 -0
- package/components/02-molecules/single-filter/single-filter.scss +70 -0
- package/components/02-molecules/single-filter/single-filter.stories.data.js +35 -0
- package/components/02-molecules/single-filter/single-filter.stories.js +53 -0
- package/components/02-molecules/single-filter/single-filter.test.js +102 -0
- package/components/02-molecules/single-filter/single-filter.twig +139 -0
- package/components/02-molecules/snippet/__snapshots__/snippet.test.js.snap +367 -0
- package/components/02-molecules/snippet/snippet.scss +60 -0
- package/components/02-molecules/snippet/snippet.stories.data.js +20 -0
- package/components/02-molecules/snippet/snippet.stories.js +50 -0
- package/components/02-molecules/snippet/snippet.test.js +108 -0
- package/components/02-molecules/snippet/snippet.twig +109 -0
- package/components/02-molecules/social-links/__snapshots__/social-links.test.js.snap +311 -0
- package/components/02-molecules/social-links/social-links.scss +23 -0
- package/components/02-molecules/social-links/social-links.stories.js +77 -0
- package/components/02-molecules/social-links/social-links.test.js +82 -0
- package/components/02-molecules/social-links/social-links.twig +58 -0
- package/components/02-molecules/subject-card/__snapshots__/subject-card.test.js.snap +219 -0
- package/components/02-molecules/subject-card/subject-card.scss +112 -0
- package/components/02-molecules/subject-card/subject-card.stories.js +58 -0
- package/components/02-molecules/subject-card/subject-card.test.js +102 -0
- package/components/02-molecules/subject-card/subject-card.twig +81 -0
- package/components/02-molecules/table-of-contents/table-of-contents.js +152 -0
- package/components/02-molecules/table-of-contents/table-of-contents.scss +115 -0
- package/components/02-molecules/table-of-contents/table-of-contents.stories.js +88 -0
- package/components/02-molecules/table-of-contents/table-of-contents.twig +63 -0
- package/components/02-molecules/tabs/__snapshots__/tabs.test.js.snap +346 -0
- package/components/02-molecules/tabs/tabs.js +75 -0
- package/components/02-molecules/tabs/tabs.scss +66 -0
- package/components/02-molecules/tabs/tabs.stories.js +80 -0
- package/components/02-molecules/tabs/tabs.test.js +75 -0
- package/components/02-molecules/tabs/tabs.twig +81 -0
- package/components/02-molecules/tag-list/__snapshots__/tag-list.test.js.snap +255 -0
- package/components/02-molecules/tag-list/tag-list.stories.js +53 -0
- package/components/02-molecules/tag-list/tag-list.test.js +64 -0
- package/components/02-molecules/tag-list/tag-list.twig +68 -0
- package/components/02-molecules/tooltip/__snapshots__/tooltip.test.js.snap +321 -0
- package/components/02-molecules/tooltip/tooltip.js +143 -0
- package/components/02-molecules/tooltip/tooltip.scss +165 -0
- package/components/02-molecules/tooltip/tooltip.stories.js +59 -0
- package/components/02-molecules/tooltip/tooltip.test.js +59 -0
- package/components/02-molecules/tooltip/tooltip.twig +48 -0
- package/components/02-molecules/video-player/__snapshots__/video-player.test.js.snap +244 -0
- package/components/02-molecules/video-player/video-player.scss +75 -0
- package/components/02-molecules/video-player/video-player.stories.js +180 -0
- package/components/02-molecules/video-player/video-player.test.js +81 -0
- package/components/02-molecules/video-player/video-player.twig +130 -0
- package/components/03-organisms/alert/__snapshots__/alert.test.js.snap +356 -0
- package/components/03-organisms/alert/alert.js +268 -0
- package/components/03-organisms/alert/alert.scss +90 -0
- package/components/03-organisms/alert/alert.stories.js +104 -0
- package/components/03-organisms/alert/alert.test.js +59 -0
- package/components/03-organisms/alert/alert.twig +76 -0
- package/components/03-organisms/banner/__snapshots__/banner.test.js.snap +621 -0
- package/components/03-organisms/banner/banner.scss +118 -0
- package/components/03-organisms/banner/banner.stories.data.js +88 -0
- package/components/03-organisms/banner/banner.stories.js +87 -0
- package/components/03-organisms/banner/banner.test.js +94 -0
- package/components/03-organisms/banner/banner.twig +218 -0
- package/components/03-organisms/campaign/__snapshots__/campaign.test.js.snap +489 -0
- package/components/03-organisms/campaign/campaign.scss +64 -0
- package/components/03-organisms/campaign/campaign.stories.js +92 -0
- package/components/03-organisms/campaign/campaign.test.js +81 -0
- package/components/03-organisms/campaign/campaign.twig +152 -0
- package/components/03-organisms/footer/__snapshots__/footer.test.js.snap +354 -0
- package/components/03-organisms/footer/footer.scss +114 -0
- package/components/03-organisms/footer/footer.stories.data.js +42 -0
- package/components/03-organisms/footer/footer.stories.js +75 -0
- package/components/03-organisms/footer/footer.test.js +85 -0
- package/components/03-organisms/footer/footer.twig +157 -0
- package/components/03-organisms/header/__snapshots__/header.test.js.snap +411 -0
- package/components/03-organisms/header/header.scss +59 -0
- package/components/03-organisms/header/header.stories.data.js +132 -0
- package/components/03-organisms/header/header.stories.js +78 -0
- package/components/03-organisms/header/header.test.js +72 -0
- package/components/03-organisms/header/header.twig +141 -0
- package/components/03-organisms/list/__snapshots__/list.test.js.snap +454 -0
- package/components/03-organisms/list/list.scss +83 -0
- package/components/03-organisms/list/list.stories.data.js +98 -0
- package/components/03-organisms/list/list.stories.js +223 -0
- package/components/03-organisms/list/list.test.js +93 -0
- package/components/03-organisms/list/list.twig +263 -0
- package/components/03-organisms/message/__snapshots__/message.test.js.snap +517 -0
- package/components/03-organisms/message/message.scss +69 -0
- package/components/03-organisms/message/message.stories.js +58 -0
- package/components/03-organisms/message/message.test.js +158 -0
- package/components/03-organisms/message/message.twig +69 -0
- package/components/03-organisms/mobile-navigation/__snapshots__/mobile-navigation.test.js.snap +928 -0
- package/components/03-organisms/mobile-navigation/mobile-navigation-close.twig +31 -0
- package/components/03-organisms/mobile-navigation/mobile-navigation-menu.twig +138 -0
- package/components/03-organisms/mobile-navigation/mobile-navigation-trigger.twig +28 -0
- package/components/03-organisms/mobile-navigation/mobile-navigation.scss +236 -0
- package/components/03-organisms/mobile-navigation/mobile-navigation.stories.js +123 -0
- package/components/03-organisms/mobile-navigation/mobile-navigation.stories.scss +21 -0
- package/components/03-organisms/mobile-navigation/mobile-navigation.test.js +143 -0
- package/components/03-organisms/mobile-navigation/mobile-navigation.twig +86 -0
- package/components/03-organisms/navigation/__snapshots__/navigation.test.js.snap +561 -0
- package/components/03-organisms/navigation/navigation.scss +433 -0
- package/components/03-organisms/navigation/navigation.stories.data.js +60 -0
- package/components/03-organisms/navigation/navigation.stories.js +58 -0
- package/components/03-organisms/navigation/navigation.test.js +122 -0
- package/components/03-organisms/navigation/navigation.twig +106 -0
- package/components/03-organisms/promo/__snapshots__/promo.test.js.snap +415 -0
- package/components/03-organisms/promo/promo.scss +65 -0
- package/components/03-organisms/promo/promo.stories.js +70 -0
- package/components/03-organisms/promo/promo.test.js +125 -0
- package/components/03-organisms/promo/promo.twig +113 -0
- package/components/03-organisms/side-navigation/__snapshots__/side-navigation.test.js.snap +393 -0
- package/components/03-organisms/side-navigation/side-navigation.scss +215 -0
- package/components/03-organisms/side-navigation/side-navigation.stories.data.js +54 -0
- package/components/03-organisms/side-navigation/side-navigation.stories.js +39 -0
- package/components/03-organisms/side-navigation/side-navigation.test.js +87 -0
- package/components/03-organisms/side-navigation/side-navigation.twig +54 -0
- package/components/03-organisms/skip-link/__snapshots__/skip-link.test.js.snap +94 -0
- package/components/03-organisms/skip-link/skip-link.scss +28 -0
- package/components/03-organisms/skip-link/skip-link.stories.js +42 -0
- package/components/03-organisms/skip-link/skip-link.test.js +48 -0
- package/components/03-organisms/skip-link/skip-link.twig +31 -0
- package/components/03-organisms/slider/__snapshots__/slide.test.js.snap +265 -0
- package/components/03-organisms/slider/__snapshots__/slider.test.js.snap +638 -0
- package/components/03-organisms/slider/slide.test.js +55 -0
- package/components/03-organisms/slider/slide.twig +168 -0
- package/components/03-organisms/slider/slider.js +159 -0
- package/components/03-organisms/slider/slider.scss +158 -0
- package/components/03-organisms/slider/slider.stories.js +90 -0
- package/components/03-organisms/slider/slider.test.js +84 -0
- package/components/03-organisms/slider/slider.twig +116 -0
- package/components/03-organisms/webform/__snapshots__/webform.test.js.snap +145 -0
- package/components/03-organisms/webform/webform.js +36 -0
- package/components/03-organisms/webform/webform.scss +17 -0
- package/components/03-organisms/webform/webform.stories.js +45 -0
- package/components/03-organisms/webform/webform.test.js +63 -0
- package/components/03-organisms/webform/webform.twig +33 -0
- package/components/04-templates/event/.gitkeep +0 -0
- package/components/04-templates/page/__snapshots__/page.test.js.snap +1503 -0
- package/components/04-templates/page/page.scss +11 -0
- package/components/04-templates/page/page.stories.data.js +166 -0
- package/components/04-templates/page/page.stories.js +163 -0
- package/components/04-templates/page/page.test.js +170 -0
- package/components/04-templates/page/page.twig +138 -0
- package/components/style.css_variables.scss +129 -0
- package/components/style.scss +13 -0
- package/components/style.stories.scss +15 -0
- package/components/variables.base.scss +33 -0
- package/components/variables.components.scss +6 -0
- package/dist/assets/backgrounds/civictheme_background_1.png +0 -0
- package/dist/assets/backgrounds/civictheme_background_2.png +0 -0
- package/dist/assets/backgrounds/civictheme_background_3.png +0 -0
- package/dist/assets/backgrounds/civictheme_background_4.png +0 -0
- package/dist/assets/backgrounds/civictheme_background_5.png +0 -0
- package/dist/assets/backgrounds/civictheme_background_6.png +0 -0
- package/dist/assets/backgrounds/civictheme_background_7.png +0 -0
- package/dist/assets/icons/account.svg +3 -0
- package/dist/assets/icons/approve.svg +3 -0
- package/dist/assets/icons/bars.svg +3 -0
- package/dist/assets/icons/bullet.svg +3 -0
- package/dist/assets/icons/calendar-1.svg +3 -0
- package/dist/assets/icons/calendar-2.svg +3 -0
- package/dist/assets/icons/call.svg +3 -0
- package/dist/assets/icons/cancel.svg +3 -0
- package/dist/assets/icons/checked.svg +4 -0
- package/dist/assets/icons/close-outline.svg +3 -0
- package/dist/assets/icons/close.svg +3 -0
- package/dist/assets/icons/document.svg +4 -0
- package/dist/assets/icons/down-arrow-1.svg +3 -0
- package/dist/assets/icons/down-arrow-2.svg +3 -0
- package/dist/assets/icons/download-file.svg +3 -0
- package/dist/assets/icons/download.svg +3 -0
- package/dist/assets/icons/exclamation-mark-1.svg +3 -0
- package/dist/assets/icons/exclamation-mark-2.svg +3 -0
- package/dist/assets/icons/exclamation-mark-3.svg +3 -0
- package/dist/assets/icons/eye.svg +3 -0
- package/dist/assets/icons/facebook.svg +3 -0
- package/dist/assets/icons/help.svg +3 -0
- package/dist/assets/icons/image.svg +5 -0
- package/dist/assets/icons/information-mark.svg +3 -0
- package/dist/assets/icons/instagram.svg +3 -0
- package/dist/assets/icons/layer.svg +4 -0
- package/dist/assets/icons/layers.svg +4 -0
- package/dist/assets/icons/left-arrow-outline.svg +3 -0
- package/dist/assets/icons/left-arrow.svg +3 -0
- package/dist/assets/icons/linkedin.svg +3 -0
- package/dist/assets/icons/lock-file.svg +4 -0
- package/dist/assets/icons/lock-gallery.svg +4 -0
- package/dist/assets/icons/magnifier.svg +3 -0
- package/dist/assets/icons/map.svg +3 -0
- package/dist/assets/icons/megaphone.svg +3 -0
- package/dist/assets/icons/message.svg +3 -0
- package/dist/assets/icons/mobile.svg +4 -0
- package/dist/assets/icons/mortarboard.svg +3 -0
- package/dist/assets/icons/newspaper.svg +3 -0
- package/dist/assets/icons/open-source.svg +3 -0
- package/dist/assets/icons/pdf-file.svg +4 -0
- package/dist/assets/icons/progress.svg +3 -0
- package/dist/assets/icons/right-arrow-1.svg +3 -0
- package/dist/assets/icons/right-arrow-2.svg +3 -0
- package/dist/assets/icons/select-box.svg +4 -0
- package/dist/assets/icons/share.svg +3 -0
- package/dist/assets/icons/square.svg +3 -0
- package/dist/assets/icons/to-do.svg +3 -0
- package/dist/assets/icons/twitter.svg +3 -0
- package/dist/assets/icons/up-arrow.svg +3 -0
- package/dist/assets/icons/upper-arrow.svg +3 -0
- package/dist/assets/icons/upper-right-arrow.svg +3 -0
- package/dist/assets/icons/users.svg +4 -0
- package/dist/assets/icons/watch.svg +3 -0
- package/dist/assets/icons/water-drop.svg +4 -0
- package/dist/assets/icons/web.svg +4 -0
- package/dist/assets/icons/word-file.svg +4 -0
- package/dist/assets/icons/x.svg +3 -0
- package/dist/assets/icons/youtube.svg +3 -0
- package/dist/assets/logos/logo_custom_light_desktop_civictheme.svg +32 -0
- package/dist/assets/logos/logo_custom_light_mobile_civictheme.svg +32 -0
- package/dist/assets/logos/logo_primary_dark_desktop.png +0 -0
- package/dist/assets/logos/logo_primary_dark_mobile.png +0 -0
- package/dist/assets/logos/logo_primary_light_desktop.png +0 -0
- package/dist/assets/logos/logo_primary_light_mobile.png +0 -0
- package/dist/assets/logos/logo_secondary_dark_desktop.png +0 -0
- package/dist/assets/logos/logo_secondary_dark_mobile.png +0 -0
- package/dist/assets/logos/logo_secondary_light_desktop.png +0 -0
- package/dist/assets/logos/logo_secondary_light_mobile.png +0 -0
- package/dist/civictheme.css +12303 -0
- package/dist/civictheme.stories.css +2807 -0
- package/dist/civictheme.storybook.css +12303 -0
- package/dist/civictheme.storybook.js +4122 -0
- package/dist/civictheme.variables.css +1148 -0
- package/dist/constants.json +1562 -0
- package/package.json +80 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Form mixins.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
//
|
|
6
|
+
// Hide native form control.
|
|
7
|
+
//
|
|
8
|
+
@mixin ct-form-control-no-appearance() {
|
|
9
|
+
appearance: none;
|
|
10
|
+
|
|
11
|
+
// Not removed via appearance.
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//
|
|
16
|
+
// Disabled form control.
|
|
17
|
+
//
|
|
18
|
+
@mixin ct-form-control-disabled($opacity: 40%) {
|
|
19
|
+
&[disabled] {
|
|
20
|
+
opacity: $opacity;
|
|
21
|
+
pointer-events: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
//
|
|
26
|
+
// Set inset border for a control.
|
|
27
|
+
//
|
|
28
|
+
@mixin ct-form-control-border-inset($color, $width: ct-particle(0.125)) {
|
|
29
|
+
box-shadow: inset 0 0 0 $width $color;
|
|
30
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Generator mixins.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
//
|
|
6
|
+
// Generate classes variations from provided map with optional prefix.
|
|
7
|
+
//
|
|
8
|
+
@mixin ct-generate-class-variations-from-map($map, $prefix: false, $use-value: false) {
|
|
9
|
+
$index: 0;
|
|
10
|
+
|
|
11
|
+
@each $key, $value in $map {
|
|
12
|
+
// Handle lists.
|
|
13
|
+
@if type-of($map) == 'list' or $value == null {
|
|
14
|
+
$value: $key;
|
|
15
|
+
$key: $index + 1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
$classname: $key;
|
|
19
|
+
$suffix: $key;
|
|
20
|
+
|
|
21
|
+
@if $use-value != false {
|
|
22
|
+
$suffix: $value;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@if $prefix != false {
|
|
26
|
+
$classname: #{$prefix}--#{$suffix};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.#{$classname} {
|
|
30
|
+
@content($key, $value, $index);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
$index: $index + 1;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Grid mixins.
|
|
3
|
+
//
|
|
4
|
+
// Grid system taken from: http://sassflexboxgrid.com/
|
|
5
|
+
// Modified for use with CivicTheme.
|
|
6
|
+
// - added gutters support
|
|
7
|
+
// - added offset (outside gutters) support
|
|
8
|
+
// - added grid overlay support
|
|
9
|
+
// - added utility grid classes
|
|
10
|
+
//
|
|
11
|
+
|
|
12
|
+
@use 'sass:math';
|
|
13
|
+
@use 'sass:map';
|
|
14
|
+
|
|
15
|
+
//
|
|
16
|
+
// Container class should wrap every row.
|
|
17
|
+
//
|
|
18
|
+
@mixin ct-container($contained: true) {
|
|
19
|
+
& {
|
|
20
|
+
margin: 0 auto;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@if $contained {
|
|
24
|
+
// Support super-narrow screens as well.
|
|
25
|
+
$_width: map.get($ct-grid-offsets, xs) * 2;
|
|
26
|
+
|
|
27
|
+
// Use vw instead of % so it calculates on viewport and not parent container.
|
|
28
|
+
& {
|
|
29
|
+
max-width: calc(100vw - #{$_width});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Set width for container at each breakpoint accounting for offsets at this
|
|
33
|
+
// breakpoint.
|
|
34
|
+
@each $bp, $value in $ct-breakpoints {
|
|
35
|
+
@include ct-breakpoint($bp) {
|
|
36
|
+
$bp-width: map.get($ct-breakpoints, $bp);
|
|
37
|
+
|
|
38
|
+
@if $bp-width > 0 {
|
|
39
|
+
max-width: max($bp-width - (map.get($ct-grid-offsets, $bp) * 2), 0);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
@else {
|
|
45
|
+
& {
|
|
46
|
+
width: 100%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Reset negative row margins which are used to offset column margins.
|
|
50
|
+
> .row {
|
|
51
|
+
@each $bp, $value in $ct-breakpoints {
|
|
52
|
+
@include ct-breakpoint($bp) {
|
|
53
|
+
margin-left: auto;
|
|
54
|
+
margin-right: auto;
|
|
55
|
+
|
|
56
|
+
> .col,
|
|
57
|
+
> [class*='col-'] {
|
|
58
|
+
&:first-child {
|
|
59
|
+
padding-left: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:last-child {
|
|
63
|
+
padding-right: 0;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@mixin ct-row($gutters: $ct-grid-gutters) {
|
|
73
|
+
margin-left: auto;
|
|
74
|
+
margin-right: auto;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex: 0 1 auto;
|
|
77
|
+
flex-direction: row;
|
|
78
|
+
flex-wrap: wrap;
|
|
79
|
+
padding-inline-start: 0;
|
|
80
|
+
list-style: none;
|
|
81
|
+
|
|
82
|
+
@include _ct-print-all-gutters($rule-prefix: margin);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@mixin ct-flex-align-right() {
|
|
86
|
+
margin-left: auto;
|
|
87
|
+
flex-shrink: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
//
|
|
91
|
+
// Print all vertical and horizontal gutters at their breakpoints.
|
|
92
|
+
//
|
|
93
|
+
// Do not use directly.
|
|
94
|
+
//
|
|
95
|
+
@mixin _ct-print-all-gutters($gutters: $ct-grid-gutters, $rule-prefix: padding) {
|
|
96
|
+
$_scale: 1;
|
|
97
|
+
|
|
98
|
+
@if $rule-prefix == margin {
|
|
99
|
+
$_scale: -1;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@if $gutters {
|
|
103
|
+
@each $bp, $gutter in $gutters {
|
|
104
|
+
@if $bp == $ct-grid-lowest-breakpoint {
|
|
105
|
+
#{$rule-prefix}-left: math.div($gutter, 2) * $_scale;
|
|
106
|
+
#{$rule-prefix}-right: math.div($gutter, 2) * $_scale;
|
|
107
|
+
}
|
|
108
|
+
@else {
|
|
109
|
+
@include ct-breakpoint($bp) {
|
|
110
|
+
#{$rule-prefix}-left: math.div($gutter, 2) * $_scale;
|
|
111
|
+
#{$rule-prefix}-right: math.div($gutter, 2) * $_scale;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
//
|
|
119
|
+
// Condition to run inside of the col mixin.
|
|
120
|
+
//
|
|
121
|
+
// Do not use directly.
|
|
122
|
+
//
|
|
123
|
+
@mixin _ct-col-condition($col-number) {
|
|
124
|
+
@if type-of($col-number) == number {
|
|
125
|
+
@if $col-number > $ct-grid-columns or $col-number == 0 {
|
|
126
|
+
@warn 'Column number must be greater than 0 and less than or equal to total number of columns in the grid (#{$ct-grid-columns})';
|
|
127
|
+
}
|
|
128
|
+
@else {
|
|
129
|
+
flex-basis: math.div(100%, $ct-grid-columns) * $col-number;
|
|
130
|
+
max-width: math.div(100%, $ct-grid-columns) * $col-number;
|
|
131
|
+
|
|
132
|
+
@include _ct-print-all-gutters();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// If no col number is passed then arg is set to "auto" by default
|
|
137
|
+
// "auto" mode fills the horizontal space with evenly sized containers
|
|
138
|
+
@else if $col-number == 'auto' {
|
|
139
|
+
flex-grow: 1;
|
|
140
|
+
flex-basis: 0;
|
|
141
|
+
max-width: 100%;
|
|
142
|
+
|
|
143
|
+
@include _ct-print-all-gutters();
|
|
144
|
+
}
|
|
145
|
+
@else {
|
|
146
|
+
@warn "Column number argument must either be the string 'auto' or a number greater than 0 and less than or equal to total number of columns in the grid (#{$ct-grid-columns})";
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
//
|
|
151
|
+
// Condition to run inside of the col mixin.
|
|
152
|
+
//
|
|
153
|
+
// Do not use directly.
|
|
154
|
+
//
|
|
155
|
+
@mixin _ct-grid-col($breakpoint: 'xs', $col-number: 'auto') {
|
|
156
|
+
// If no breakpoint is passed and a col number is just use the first arg as
|
|
157
|
+
// the col number and act like xs.
|
|
158
|
+
@if type-of($breakpoint) == number {
|
|
159
|
+
$col-number: $breakpoint;
|
|
160
|
+
|
|
161
|
+
@include _ct-col-condition($col-number);
|
|
162
|
+
}
|
|
163
|
+
@else if $breakpoint == $ct-grid-lowest-breakpoint {
|
|
164
|
+
@include _ct-col-condition($col-number);
|
|
165
|
+
}
|
|
166
|
+
@else {
|
|
167
|
+
@include ct-breakpoint($breakpoint) {
|
|
168
|
+
@include _ct-col-condition($col-number);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
//
|
|
174
|
+
// Mixin to run inside of for loop - creates col/breakpoint classes.
|
|
175
|
+
//
|
|
176
|
+
// Do not use directly.
|
|
177
|
+
//
|
|
178
|
+
@mixin _ct-col-factory($bp) {
|
|
179
|
+
.col-#{$bp} {
|
|
180
|
+
flex-grow: 1;
|
|
181
|
+
flex-basis: 0;
|
|
182
|
+
max-width: 100%;
|
|
183
|
+
|
|
184
|
+
@include _ct-print-all-gutters();
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@for $i from 1 through $ct-grid-columns {
|
|
188
|
+
.col-#{$bp}-#{$i} {
|
|
189
|
+
flex-basis: math.div(100%, $ct-grid-columns) * $i;
|
|
190
|
+
max-width: math.div(100%, $ct-grid-columns) * $i;
|
|
191
|
+
|
|
192
|
+
@include _ct-print-all-gutters();
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.col-#{$bp}-offset-#{$i} {
|
|
196
|
+
margin-left: math.div(100%, $ct-grid-columns) * $i;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.col-#{$bp}-offset-0 {
|
|
201
|
+
margin-left: 0;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
//
|
|
206
|
+
// Offset column.
|
|
207
|
+
//
|
|
208
|
+
@mixin ct-col-offset($column_num) {
|
|
209
|
+
margin-left: math.div(100%, $ct-grid-columns) * $column_num;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
//
|
|
213
|
+
// Make content equal heights by stretching all children to the same height.
|
|
214
|
+
//
|
|
215
|
+
@mixin ct-equal-heights() {
|
|
216
|
+
display: flex;
|
|
217
|
+
|
|
218
|
+
> * {
|
|
219
|
+
flex: 1 1 auto;
|
|
220
|
+
display: flex;
|
|
221
|
+
flex-direction: column;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Highlight mixins.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
//
|
|
6
|
+
// Add highlight stripe to an element.
|
|
7
|
+
//
|
|
8
|
+
@mixin ct-highlight-stripe-vertical($width, $border-radius: 0, $border-width: ct-particle(0.125), $position: 'left') {
|
|
9
|
+
$_stripe_size: $width;
|
|
10
|
+
|
|
11
|
+
@if $border-width != 0 {
|
|
12
|
+
$_stripe_size: calc(#{$width} + #{$border-width});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
& {
|
|
16
|
+
position: relative;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&::before {
|
|
20
|
+
content: '';
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: -$border-width;
|
|
23
|
+
bottom: -$border-width;
|
|
24
|
+
left: -$border-width;
|
|
25
|
+
width: $_stripe_size;
|
|
26
|
+
|
|
27
|
+
@if $position == 'left' {
|
|
28
|
+
border-top-left-radius: $border-radius;
|
|
29
|
+
border-bottom-left-radius: $border-radius;
|
|
30
|
+
}
|
|
31
|
+
@else {
|
|
32
|
+
border-top-right-radius: $border-radius;
|
|
33
|
+
border-bottom-right-radius: $border-radius;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@if $ct-animation-enabled {
|
|
37
|
+
transition: width 0.25s;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
//
|
|
43
|
+
// Add highlight stripe to an element.
|
|
44
|
+
//
|
|
45
|
+
@mixin ct-highlight-stripe-horizontal($height, $border-radius, $border-width: ct-particle(0.125), $position: 'top') {
|
|
46
|
+
$_stripe_size: $height;
|
|
47
|
+
|
|
48
|
+
@if $border-width != 0 {
|
|
49
|
+
$_stripe_size: calc(#{$height} + #{$border-width});
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
& {
|
|
53
|
+
position: relative;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&::before {
|
|
57
|
+
content: '';
|
|
58
|
+
position: absolute;
|
|
59
|
+
left: -$border-width;
|
|
60
|
+
right: -$border-width;
|
|
61
|
+
height: $_stripe_size;
|
|
62
|
+
|
|
63
|
+
@if $position == 'top' {
|
|
64
|
+
top: -$border-width;
|
|
65
|
+
border-top-left-radius: $border-radius;
|
|
66
|
+
border-top-right-radius: $border-radius;
|
|
67
|
+
}
|
|
68
|
+
@else {
|
|
69
|
+
bottom: -$border-width;
|
|
70
|
+
border-bottom-left-radius: $border-radius;
|
|
71
|
+
border-bottom-right-radius: $border-radius;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@if $ct-animation-enabled {
|
|
75
|
+
transition: height 0.25s;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@mixin ct-highlight-stripe-background-color($color) {
|
|
81
|
+
&::before {
|
|
82
|
+
background-color: $color;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Icon mixins.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
@use 'sass:map';
|
|
6
|
+
@use 'sass:math';
|
|
7
|
+
@use 'sass:list';
|
|
8
|
+
@use 'sass:string';
|
|
9
|
+
|
|
10
|
+
//
|
|
11
|
+
// Get icon size at breakpoint.
|
|
12
|
+
//
|
|
13
|
+
@function ct-icon-size-dimension($size, $breakpoint, $dimension) {
|
|
14
|
+
$all-icon-sizes: _ct-icon-sizes-all();
|
|
15
|
+
|
|
16
|
+
@if map.get($all-icon-sizes, $size) == null {
|
|
17
|
+
@error '"#{$size}" is not an available size.';
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
$size-at-breakpoints: map.get($all-icon-sizes, $size);
|
|
21
|
+
|
|
22
|
+
@if map.get($size-at-breakpoints, $breakpoint) == null {
|
|
23
|
+
@error '"#{$breakpoint}" is not an available breakpoint for size #{$size}.';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
$dimensions: map.get($size-at-breakpoints, $breakpoint);
|
|
27
|
+
|
|
28
|
+
@if list.length($dimensions) != 2 {
|
|
29
|
+
@error 'Dimenstions list must contain exactly 2 entries for icon size #{$size} at breakpoint #{$breakpoint}.';
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
$value: '';
|
|
33
|
+
|
|
34
|
+
@if $dimension == 'width' {
|
|
35
|
+
$value: list.nth($dimensions, 1);
|
|
36
|
+
}
|
|
37
|
+
@else if $dimension == 'height' {
|
|
38
|
+
$value: list.nth($dimensions, 2);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@if ct-string-is-quoted($value) {
|
|
42
|
+
$value: string.unquote($value);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@if $value {
|
|
46
|
+
// @todo Review and replace this to use rem() in source variables.
|
|
47
|
+
@return rem($value);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@error '"#{$dimension}" is not an available dimension for size #{$size} at breakpoint #{$breakpoint}.';
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
//
|
|
54
|
+
// Compile all icon sizes into a single map.
|
|
55
|
+
//
|
|
56
|
+
// Do not use directly.
|
|
57
|
+
// Use ct-icon-size-dimension() function instead.
|
|
58
|
+
//
|
|
59
|
+
// stylelint-disable-next-line scss/at-function-pattern
|
|
60
|
+
@function _ct-icon-sizes-all() {
|
|
61
|
+
@return map.merge($ct-icon-sizes-default, $ct-icon-sizes);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
//
|
|
65
|
+
// Include icon size for one-to-many breakpoints.
|
|
66
|
+
//
|
|
67
|
+
// Note that icons inherit font size by default. This mixin should be used
|
|
68
|
+
// only as an override for the default functionality.
|
|
69
|
+
//
|
|
70
|
+
// @include ct-icon-size('regular');
|
|
71
|
+
//
|
|
72
|
+
@mixin ct-icon-size($size: 'regular', $use-font-size: true) {
|
|
73
|
+
$all-icon-sizes: _ct-icon-sizes-all();
|
|
74
|
+
|
|
75
|
+
@if map.get($all-icon-sizes, $size) == null {
|
|
76
|
+
@error '"#{$size}" is not an available size.';
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
$size-at-breakpoints: map.get($all-icon-sizes, $size);
|
|
80
|
+
$breakpoints: map.keys($size-at-breakpoints);
|
|
81
|
+
|
|
82
|
+
@each $breakpoint in $breakpoints {
|
|
83
|
+
@include ct-breakpoint($breakpoint) {
|
|
84
|
+
@if $use-font-size {
|
|
85
|
+
font-size: ct-icon-size-dimension($size, $breakpoint, 'width');
|
|
86
|
+
}
|
|
87
|
+
@else {
|
|
88
|
+
width: ct-icon-size-dimension($size, $breakpoint, 'width');
|
|
89
|
+
height: ct-icon-size-dimension($size, $breakpoint, 'height');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
//
|
|
96
|
+
// Align icon with a top part of text (aka ascender line).
|
|
97
|
+
//
|
|
98
|
+
// @see https://www.monotype.com/resources/z-typographic-terms
|
|
99
|
+
//
|
|
100
|
+
@mixin ct-icon-align-with-text($text-name, $icon-size: 'regular') {
|
|
101
|
+
$text-name: 'text-regular';
|
|
102
|
+
$typography-rulesets: _ct-typography-get-ruleset-rule($text-name);
|
|
103
|
+
|
|
104
|
+
vertical-align: top;
|
|
105
|
+
line-height: 100%;
|
|
106
|
+
|
|
107
|
+
@each $breakpoint, $rules in $typography-rulesets {
|
|
108
|
+
$font-size: ct-typography-rule($text-name, 'font-size', $breakpoint);
|
|
109
|
+
$line-height: ct-typography-rule($text-name, 'line-height', $breakpoint);
|
|
110
|
+
$text-height: math.max($font-size, $line-height);
|
|
111
|
+
$icon-height: ct-icon-size-dimension($icon-size, $breakpoint, 'height');
|
|
112
|
+
$delta: $text-height - $icon-height;
|
|
113
|
+
|
|
114
|
+
@include ct-breakpoint($breakpoint) {
|
|
115
|
+
margin-top: math.div($delta, 2);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Image mixins.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
//
|
|
6
|
+
// Fit image into parent object.
|
|
7
|
+
//
|
|
8
|
+
@mixin ct-image-fit($self: false) {
|
|
9
|
+
@if $self {
|
|
10
|
+
height: 100%;
|
|
11
|
+
width: 100%;
|
|
12
|
+
object-fit: cover;
|
|
13
|
+
}
|
|
14
|
+
@else {
|
|
15
|
+
img {
|
|
16
|
+
height: 100%;
|
|
17
|
+
width: 100%;
|
|
18
|
+
object-fit: cover;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//
|
|
24
|
+
// Fit image into text size.
|
|
25
|
+
//
|
|
26
|
+
@mixin ct-image-fit-text-size($self: false) {
|
|
27
|
+
@if $self {
|
|
28
|
+
height: 1em;
|
|
29
|
+
width: 1em;
|
|
30
|
+
object-fit: cover;
|
|
31
|
+
}
|
|
32
|
+
@else {
|
|
33
|
+
img {
|
|
34
|
+
height: 1em;
|
|
35
|
+
width: 1em;
|
|
36
|
+
object-fit: cover;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//
|
|
42
|
+
// Fit image into a container.
|
|
43
|
+
//
|
|
44
|
+
@mixin ct-image-fit-container() {
|
|
45
|
+
@include ct-image-fit();
|
|
46
|
+
|
|
47
|
+
position: relative;
|
|
48
|
+
|
|
49
|
+
img {
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 0;
|
|
52
|
+
left: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
//
|
|
57
|
+
// Fit image into a square container.
|
|
58
|
+
//
|
|
59
|
+
@mixin ct-image-container-square() {
|
|
60
|
+
@include ct-image-fit();
|
|
61
|
+
|
|
62
|
+
position: relative;
|
|
63
|
+
width: 100%;
|
|
64
|
+
padding-top: 100%;
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
|
|
67
|
+
img {
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 0;
|
|
70
|
+
left: 0;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
//
|
|
75
|
+
// Drop shadow for image.
|
|
76
|
+
//
|
|
77
|
+
@mixin ct-image-shadow($color, $direction: down, $offset-x: ct-particle(2), $offset-y: ct-particle(2)) {
|
|
78
|
+
$_multiplier-x: 1;
|
|
79
|
+
$_multiplier-y: 1;
|
|
80
|
+
$allowed-directions: up, down, left, right, up-left, up-right, down-left, down-right;
|
|
81
|
+
|
|
82
|
+
@if not index($allowed-directions, $direction) {
|
|
83
|
+
@error "Invalid direction: #{$direction}. Allowed directions are: #{join($allowed-directions, ', ')}";
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@if $direction == 'up' {
|
|
87
|
+
$_multiplier-y: -1;
|
|
88
|
+
$_multiplier-x: 0;
|
|
89
|
+
}
|
|
90
|
+
@else if $direction == 'down' {
|
|
91
|
+
$_multiplier-y: 1;
|
|
92
|
+
$_multiplier-x: 0;
|
|
93
|
+
}
|
|
94
|
+
@else if $direction == 'left' {
|
|
95
|
+
$_multiplier-x: -1;
|
|
96
|
+
$_multiplier-y: 0;
|
|
97
|
+
}
|
|
98
|
+
@else if $direction == 'right' {
|
|
99
|
+
$_multiplier-x: 1;
|
|
100
|
+
$_multiplier-y: 0;
|
|
101
|
+
}
|
|
102
|
+
@else if $direction == 'up-left' {
|
|
103
|
+
$_multiplier-x: -1;
|
|
104
|
+
$_multiplier-y: -1;
|
|
105
|
+
}
|
|
106
|
+
@else if $direction == 'up-right' {
|
|
107
|
+
$_multiplier-x: 1;
|
|
108
|
+
$_multiplier-y: -1;
|
|
109
|
+
}
|
|
110
|
+
@else if $direction == 'down-left' {
|
|
111
|
+
$_multiplier-x: -1;
|
|
112
|
+
$_multiplier-y: 1;
|
|
113
|
+
}
|
|
114
|
+
@else if $direction == 'down-right' {
|
|
115
|
+
$_multiplier-x: 1;
|
|
116
|
+
$_multiplier-y: 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Avoid unnecessary calc functions.
|
|
120
|
+
$_shadow_length_x: $offset-x;
|
|
121
|
+
$_shadow_length_y: $offset-y;
|
|
122
|
+
|
|
123
|
+
@if $_multiplier-x != 1 {
|
|
124
|
+
@if type-of($offset-x) == 'string' {
|
|
125
|
+
$_shadow_length_x: calc(#{$_multiplier-x} * #{$offset-x});
|
|
126
|
+
}
|
|
127
|
+
@else {
|
|
128
|
+
$_shadow_length_x: $_multiplier-x * $offset-x;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@if $_multiplier-y != 1 {
|
|
133
|
+
@if type-of($offset-y) == 'string' {
|
|
134
|
+
$_shadow_length_y: calc(#{$_multiplier-y} * #{$offset-y});
|
|
135
|
+
}
|
|
136
|
+
@else {
|
|
137
|
+
$_shadow_length_y: $_multiplier-y * $offset-y;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
filter: drop-shadow($_shadow_length_x $_shadow_length_y 0 $color);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
//
|
|
145
|
+
// String to set SVG viewbox.
|
|
146
|
+
//
|
|
147
|
+
@function ct-svg-viewbox($svg, $value) {
|
|
148
|
+
@return ct-str-replace($svg, "viewBox=''", "viewBox='#{$value}'");
|
|
149
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@import 'particle';
|
|
2
|
+
@import 'debug';
|
|
3
|
+
@import 'background';
|
|
4
|
+
@import 'breakpoint';
|
|
5
|
+
@import 'color';
|
|
6
|
+
@import 'cssgrid';
|
|
7
|
+
@import 'component';
|
|
8
|
+
@import 'content';
|
|
9
|
+
@import 'disabled';
|
|
10
|
+
@import 'elevation';
|
|
11
|
+
@import 'font';
|
|
12
|
+
@import 'generator';
|
|
13
|
+
@import 'grid';
|
|
14
|
+
@import 'icon';
|
|
15
|
+
@import 'image';
|
|
16
|
+
@import 'link';
|
|
17
|
+
@import 'map';
|
|
18
|
+
@import 'outline';
|
|
19
|
+
@import 'print';
|
|
20
|
+
@import 'rem';
|
|
21
|
+
@import 'spacing';
|
|
22
|
+
@import 'string';
|
|
23
|
+
@import 'table';
|
|
24
|
+
@import 'typography';
|
|
25
|
+
@import 'visibility';
|