design_system 0.7.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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +91 -0
- data/Rakefile +47 -0
- data/app/assets/config/design_system_manifest.js +0 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/_base.scss +3 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/all.scss +7 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/_all.scss +8 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/_index.scss +38 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/accordion/_accordion.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/accordion/_index.scss +368 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/back-link/_back-link.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/back-link/_index.scss +81 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/breadcrumbs/_breadcrumbs.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/breadcrumbs/_index.scss +132 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/button/_button.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/button/_index.scss +260 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/character-count/_character-count.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/character-count/_index.scss +42 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/checkboxes/_checkboxes.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/checkboxes/_index.scss +309 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/cookie-banner/_cookie-banner.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/cookie-banner/_index.scss +57 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/date-input/_date-input.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/date-input/_index.scss +26 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/details/_details.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/details/_index.scss +137 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/error-message/_error-message.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/error-message/_index.scss +12 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/error-summary/_error-summary.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/error-summary/_index.scss +54 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/exit-this-page/_exit-this-page.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/exit-this-page/_index.scss +90 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/fieldset/_fieldset.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/fieldset/_index.scss +67 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/file-upload/_file-upload.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/file-upload/_index.scss +216 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/footer/_footer.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/footer/_index.scss +192 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/header/_header.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/header/_index.scss +546 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/hint/_hint.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/hint/_index.scss +43 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/input/_index.scss +166 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/input/_input.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/inset-text/_index.scss +24 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/inset-text/_inset-text.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/label/_index.scss +44 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/label/_label.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/notification-banner/_index.scss +91 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/notification-banner/_notification-banner.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/pagination/_index.scss +226 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/pagination/_pagination.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/panel/_index.scss +56 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/panel/_panel.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/password-input/_index.scss +55 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/password-input/_password-input.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/phase-banner/_index.scss +34 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/phase-banner/_phase-banner.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/radios/_index.scss +326 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/radios/_radios.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/select/_index.scss +57 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/select/_select.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/service-navigation/_index.scss +252 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/service-navigation/_service-navigation.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/skip-link/_index.scss +50 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/skip-link/_skip-link.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/summary-list/_index.scss +267 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/summary-list/_summary-list.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/table/_index.scss +73 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/table/_table.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/tabs/_index.scss +132 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/tabs/_tabs.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/tag/_index.scss +95 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/tag/_tag.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/task-list/_index.scss +77 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/task-list/_task-list.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/textarea/_index.scss +48 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/textarea/_textarea.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/warning-text/_index.scss +64 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/warning-text/_warning-text.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/core/_all.scss +8 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/core/_global-styles.scss +18 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/core/_govuk-frontend-properties.scss +13 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/core/_index.scss +6 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/core/_links.scss +40 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/core/_lists.scss +65 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/core/_section-break.scss +49 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/core/_typography.scss +187 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/helpers/_all.scss +8 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/helpers/_clearfix.scss +15 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/helpers/_colour.scss +165 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/helpers/_device-pixels.scss +36 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/helpers/_focused.scss +57 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/helpers/_font-faces.scss +39 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/helpers/_grid.scss +61 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/helpers/_index.scss +12 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/helpers/_links.scss +389 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/helpers/_media-queries.scss +80 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/helpers/_shape-arrow.scss +80 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/helpers/_spacing.scss +171 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/helpers/_typography.scss +286 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/helpers/_visually-hidden.scss +86 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/index.scss +9 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/objects/_all.scss +8 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/objects/_button-group.scss +78 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/objects/_form-group.scss +23 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/objects/_grid.scss +24 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/objects/_index.scss +6 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/objects/_main-wrapper.scss +53 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/objects/_template.scss +55 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/objects/_width-container.scss +75 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/overrides/_all.scss +7 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/overrides/_display.scss +24 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/overrides/_index.scss +5 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/overrides/_spacing.scss +84 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/overrides/_text-align.scss +14 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/overrides/_typography.scss +40 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/overrides/_width.scss +46 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_all.scss +8 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_assets.scss +82 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_colours-applied.scss +193 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_colours-organisations.scss +380 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_colours-palette.scss +35 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_global-styles.scss +13 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_index.scss +34 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_links.scss +47 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_measurements.scss +105 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_media-queries.scss +23 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_spacing.scss +76 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_typography-font.scss +50 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_typography-responsive.scss +315 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_warnings.scss +76 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/tools/_all.scss +8 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/tools/_exports.scss +33 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/tools/_font-url.scss +26 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/tools/_image-url.scss +26 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/tools/_index.scss +6 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/tools/_px-to-em.scss +20 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/tools/_px-to-rem.scss +20 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/tools/_rebrand.scss +63 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/utilities/_all.scss +8 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/utilities/_clearfix.scss +5 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/utilities/_index.scss +2 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/utilities/_visually-hidden.scss +9 -0
- data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/vendor/_sass-mq.scss +347 -0
- data/app/assets/stylesheets/design_system/govuk.scss +7 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/_index.scss +38 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/action-link/_action-link.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/action-link/_index.scss +73 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/back-link/_back-link.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/back-link/_index.scss +66 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/breadcrumb/_breadcrumb.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/breadcrumb/_index.scss +138 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/button/_button.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/button/_index.scss +257 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/card/_card.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/card/_index.scss +321 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/character-count/_character-count.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/character-count/_index.scss +19 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/checkboxes/_checkboxes.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/checkboxes/_index.scss +155 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/contents-list/_contents-list.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/contents-list/_index.scss +40 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/date-input/_date-input.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/date-input/_index.scss +29 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/details/_details.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/details/_index.scss +211 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/do-dont-list/_do-dont-list.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/do-dont-list/_index.scss +23 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-message/_error-message.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-message/_index.scss +17 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-summary/_error-summary.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-summary/_index.scss +72 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/fieldset/_fieldset.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/fieldset/_index.scss +65 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/footer/_footer.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/footer/_index.scss +87 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-base.scss +495 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-organisation.scss +126 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-service.scss +60 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-transactional.scss +61 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-white.scss +117 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_index.scss +5 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hero/_hero.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hero/_index.scss +187 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hint/_hint.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hint/_index.scss +51 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/images/_images.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/images/_index.scss +48 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/input/_index.scss +149 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/input/_input.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/inset-text/_index.scss +28 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/inset-text/_inset-text.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/label/_index.scss +53 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/label/_label.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/pagination/_index.scss +95 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/pagination/_pagination.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/panel/_index.scss +57 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/panel/_panel.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/radios/_index.scss +180 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/radios/_radios.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/select/_index.scss +44 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/select/_select.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/skip-link/_index.scss +34 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/skip-link/_skip-link.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/summary-list/_index.scss +183 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/summary-list/_summary-list.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tables/_index.scss +181 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tables/_tables.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tabs/_index.scss +120 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tabs/_tabs.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tag/_index.scss +92 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tag/_tag.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/task-list/_index.scss +101 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/task-list/_task-list.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/textarea/_index.scss +30 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/textarea/_textarea.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/warning-callout/_index.scss +19 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/warning-callout/_warning-callout.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/_index.scss +11 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/all.scss +8 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/elements/_forms.scss +16 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/elements/_index.scss +8 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/elements/_links.scss +42 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/elements/_page.scss +43 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/elements/_table.scss +62 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/generic/_box-sizing.scss +26 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/generic/_font-face.scss +47 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/generic/_index.scss +6 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_form-group.scss +25 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_grid.scss +23 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_index.scss +8 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_main-wrapper.scss +96 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_width-container.scss +63 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_all.scss +8 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_breakpoints.scss +18 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_colours.scss +188 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_globals.scss +82 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_index.scss +10 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_spacing.scss +79 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_typography.scss +176 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_warnings.scss +82 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/styles/_icons.scss +105 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/styles/_index.scss +4 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/styles/_lists.scss +115 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/styles/_section-break.scss +71 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/styles/_typography.scss +297 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_all.scss +8 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_exports.scss +47 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_focused.scss +86 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_functions.scss +45 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_grid.scss +138 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_ifff.scss +19 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_index.scss +15 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_links.scss +184 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_mixins.scss +520 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_sass-mq.scss +79 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_shape-arrow.scss +91 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_spacing.scss +192 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_typography.scss +259 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_clearfix.scss +15 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_display.scss +15 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_float.scss +15 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_grid-widths.scss +97 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_index.scss +16 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_link-nowrap.scss +19 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_list-border.scss +20 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_reading-width.scss +16 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_spacing.scss +88 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_text-align.scss +19 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_typography.scss +72 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_visually-hidden.scss +20 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_widths.scss +62 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/vendor/sass-mq.scss +316 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/nhsuk.scss +1 -0
- data/app/assets/stylesheets/design_system/nhsuk.scss +5 -0
- data/app/controllers/concerns/design_system/branded.rb +21 -0
- data/app/helpers/css_helper.rb +13 -0
- data/app/helpers/design_system_helper.rb +113 -0
- data/app/javascript/design_system/controllers/hello_world_controller.js +7 -0
- data/app/javascript/design_system/controllers/show_password_controller.js +40 -0
- data/app/javascript/design_system/index.js +11 -0
- data/app/views/govuk/_navigation.html.erb +14 -0
- data/app/views/layouts/_alert_and_notice.html.erb +7 -0
- data/app/views/layouts/govuk/application.html.erb +196 -0
- data/app/views/layouts/govuk/full_page.html.erb +2 -0
- data/app/views/layouts/govuk/left_panel.html.erb +2 -0
- data/app/views/layouts/nhsuk/application.html.erb +132 -0
- data/app/views/layouts/nhsuk/full_page.html.erb +2 -0
- data/app/views/layouts/nhsuk/left_panel.html.erb +2 -0
- data/app/views/nhsuk/_navigation.html.erb +25 -0
- data/config/importmap.rb +4 -0
- data/config/initializers/govuk_form_builder_overrides.rb +128 -0
- data/config/routes.rb +3 -0
- data/lib/design_system/all.rb +3 -0
- data/lib/design_system/components/summary_list.rb +53 -0
- data/lib/design_system/components/tab.rb +20 -0
- data/lib/design_system/components/table.rb +68 -0
- data/lib/design_system/engine.rb +30 -0
- data/lib/design_system/generic/builders/base.rb +18 -0
- data/lib/design_system/generic/builders/button.rb +35 -0
- data/lib/design_system/generic/builders/callout.rb +28 -0
- data/lib/design_system/generic/builders/concerns/brand_derivable.rb +14 -0
- data/lib/design_system/generic/builders/elements/breadcrumbs.rb +45 -0
- data/lib/design_system/generic/builders/elements/form.rb +23 -0
- data/lib/design_system/generic/builders/elements/headings.rb +31 -0
- data/lib/design_system/generic/builders/fixed_elements.rb +38 -0
- data/lib/design_system/generic/builders/heading.rb +38 -0
- data/lib/design_system/generic/builders/link.rb +37 -0
- data/lib/design_system/generic/builders/notification.rb +43 -0
- data/lib/design_system/generic/builders/pagination_renderer.rb +85 -0
- data/lib/design_system/generic/builders/panel.rb +18 -0
- data/lib/design_system/generic/builders/summary_list.rb +84 -0
- data/lib/design_system/generic/builders/tab.rb +17 -0
- data/lib/design_system/generic/builders/table.rb +76 -0
- data/lib/design_system/generic/form_builder.rb +54 -0
- data/lib/design_system/generic.rb +15 -0
- data/lib/design_system/govuk/builders/button.rb +57 -0
- data/lib/design_system/govuk/builders/callout.rb +26 -0
- data/lib/design_system/govuk/builders/elements/breadcrumbs.rb +33 -0
- data/lib/design_system/govuk/builders/elements/headings.rb +18 -0
- data/lib/design_system/govuk/builders/fixed_elements.rb +17 -0
- data/lib/design_system/govuk/builders/heading.rb +11 -0
- data/lib/design_system/govuk/builders/link.rb +23 -0
- data/lib/design_system/govuk/builders/notification.rb +11 -0
- data/lib/design_system/govuk/builders/pagination_renderer.rb +80 -0
- data/lib/design_system/govuk/builders/panel.rb +18 -0
- data/lib/design_system/govuk/builders/summary_list.rb +44 -0
- data/lib/design_system/govuk/builders/tab.rb +56 -0
- data/lib/design_system/govuk/builders/table.rb +79 -0
- data/lib/design_system/govuk/form_builder.rb +430 -0
- data/lib/design_system/govuk.rb +19 -0
- data/lib/design_system/nhsuk/builders/button.rb +11 -0
- data/lib/design_system/nhsuk/builders/callout.rb +11 -0
- data/lib/design_system/nhsuk/builders/elements/breadcrumbs.rb +47 -0
- data/lib/design_system/nhsuk/builders/fixed_elements.rb +15 -0
- data/lib/design_system/nhsuk/builders/heading.rb +11 -0
- data/lib/design_system/nhsuk/builders/link.rb +21 -0
- data/lib/design_system/nhsuk/builders/notification.rb +17 -0
- data/lib/design_system/nhsuk/builders/pagination_renderer.rb +16 -0
- data/lib/design_system/nhsuk/builders/panel.rb +11 -0
- data/lib/design_system/nhsuk/builders/summary_list.rb +34 -0
- data/lib/design_system/nhsuk/builders/tab.rb +11 -0
- data/lib/design_system/nhsuk/builders/table.rb +68 -0
- data/lib/design_system/nhsuk/form_builder.rb +83 -0
- data/lib/design_system/nhsuk.rb +18 -0
- data/lib/design_system/registry.rb +40 -0
- data/lib/design_system/version.rb +3 -0
- data/lib/design_system.rb +7 -0
- data/lib/tasks/design_system_tasks.rake +4 -0
- data/lib/tasks/govuk.rake +122 -0
- data/lib/tasks/nhsuk.rake +108 -0
- data/public/design_system/static/design_system-0.7.0/design_system.js +1309 -0
- data/public/design_system/static/govuk-frontend-5.11.1/fonts/bold-affa96571d-v2.woff +0 -0
- data/public/design_system/static/govuk-frontend-5.11.1/fonts/bold-b542beb274-v2.woff2 +0 -0
- data/public/design_system/static/govuk-frontend-5.11.1/fonts/light-94a07e06a1-v2.woff2 +0 -0
- data/public/design_system/static/govuk-frontend-5.11.1/fonts/light-f591b13f7d-v2.woff +0 -0
- data/public/design_system/static/govuk-frontend-5.11.1/govuk-frontend.min.js +1 -0
- data/public/design_system/static/govuk-frontend-5.11.1/govuk-frontend.min.js.map +1 -0
- data/public/design_system/static/govuk-frontend-5.11.1/images/favicon.ico +0 -0
- data/public/design_system/static/govuk-frontend-5.11.1/images/favicon.svg +1 -0
- data/public/design_system/static/govuk-frontend-5.11.1/images/govuk-crest.svg +1 -0
- data/public/design_system/static/govuk-frontend-5.11.1/images/govuk-icon-180.png +0 -0
- data/public/design_system/static/govuk-frontend-5.11.1/images/govuk-icon-192.png +0 -0
- data/public/design_system/static/govuk-frontend-5.11.1/images/govuk-icon-512.png +0 -0
- data/public/design_system/static/govuk-frontend-5.11.1/images/govuk-icon-mask.svg +1 -0
- data/public/design_system/static/govuk-frontend-5.11.1/images/govuk-opengraph-image.png +0 -0
- data/public/design_system/static/govuk-frontend-5.11.1/manifest.json +39 -0
- data/public/design_system/static/govuk-frontend-5.11.1/rebrand/images/favicon.ico +0 -0
- data/public/design_system/static/govuk-frontend-5.11.1/rebrand/images/favicon.svg +1 -0
- data/public/design_system/static/govuk-frontend-5.11.1/rebrand/images/govuk-crest.svg +1 -0
- data/public/design_system/static/govuk-frontend-5.11.1/rebrand/images/govuk-icon-180.png +0 -0
- data/public/design_system/static/govuk-frontend-5.11.1/rebrand/images/govuk-icon-192.png +0 -0
- data/public/design_system/static/govuk-frontend-5.11.1/rebrand/images/govuk-icon-512.png +0 -0
- data/public/design_system/static/govuk-frontend-5.11.1/rebrand/images/govuk-icon-mask.svg +1 -0
- data/public/design_system/static/govuk-frontend-5.11.1/rebrand/images/govuk-opengraph-image.png +0 -0
- data/public/design_system/static/govuk-frontend-5.11.1/rebrand/manifest.json +39 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/apple-touch-icon-180x180.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/apple-touch-icon.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon-192x192.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon.ico +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon.svg +3 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/largetile-310x310.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/mediumtile-144x144.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/mediumtile-150x150.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/smalltile-70x70.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/widetile-310x150.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-arrow-left.svg +3 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-arrow-right-circle.svg +4 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-arrow-right.svg +3 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-chevron-left.svg +3 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-chevron-right.svg +3 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-close.svg +3 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-cross.svg +4 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-emdash-small.svg +3 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-emdash.svg +3 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-minus.svg +4 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-plus.svg +4 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-search.svg +3 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-tick.svg +3 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/logos/logo-nhs.svg +5 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/logos/nhs-logo.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/logos/open-graph.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/nhsuk.js +4 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/nhsuk.min.js +1 -0
- data/public/design_system/static/stimulus-3.2.2/stimulus-loading.js +87 -0
- data/public/design_system/static/tailwind-4.1.6/index.js +8 -0
- metadata +517 -0
@@ -0,0 +1,53 @@
|
|
1
|
+
@import "../base";
|
2
|
+
|
3
|
+
////
|
4
|
+
/// @group objects/layout
|
5
|
+
////
|
6
|
+
|
7
|
+
// Example usage with Breadcrumbs, phase banners, back links:
|
8
|
+
// <div class="govuk-width-container">
|
9
|
+
// <!-- Breadcrumbs, phase banners, back links are placed in here. -->
|
10
|
+
// <div class="govuk-main-wrapper">
|
11
|
+
// <!-- Wrapper for the main content of your page which applies padding
|
12
|
+
// to the top / bottom -->
|
13
|
+
// </div>
|
14
|
+
// </div>
|
15
|
+
//
|
16
|
+
// Example usage without Breadcrumbs, phase banners, back links:
|
17
|
+
// <div class="govuk-width-container">
|
18
|
+
// <div class="govuk-main-wrapper govuk-main-wrapper--l">
|
19
|
+
// <!-- Wrapper for the main content of your page which applies padding
|
20
|
+
// to the top / bottom -->
|
21
|
+
// </div>
|
22
|
+
// </div>
|
23
|
+
|
24
|
+
@include govuk-exports("govuk/objects/main-wrapper") {
|
25
|
+
.govuk-main-wrapper {
|
26
|
+
// In IE11 the `main` element can be used, but is not recognized –
|
27
|
+
// meaning it's not defined in IE's default style sheet,
|
28
|
+
// so it uses CSS initial value, which is inline.
|
29
|
+
display: block;
|
30
|
+
padding-top: govuk-spacing(4);
|
31
|
+
padding-bottom: govuk-spacing(4);
|
32
|
+
|
33
|
+
@include govuk-media-query($from: tablet) {
|
34
|
+
// This spacing is manually adjusted to replicate the margin of
|
35
|
+
// govuk-heading-xl (50px) minus the spacing of back link and
|
36
|
+
// breadcrumbs (10px)
|
37
|
+
padding-top: govuk-spacing(7);
|
38
|
+
padding-bottom: govuk-spacing(7);
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
// Using the `.govuk-main-wrapper--auto-spacing` modifier should apply the
|
43
|
+
// correct spacing depending on whether there are any elements
|
44
|
+
// (such the back link, breadcrumbs or phase banner components) before the
|
45
|
+
// `.govuk-main-wrapper` in the `govuk-width-container`.
|
46
|
+
//
|
47
|
+
// If you need to control the spacing manually, use the
|
48
|
+
// `govuk-main-wrapper--l` modifier instead.
|
49
|
+
.govuk-main-wrapper--auto-spacing:first-child,
|
50
|
+
.govuk-main-wrapper--l {
|
51
|
+
@include govuk-responsive-padding(8, "top");
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
@import "../base";
|
2
|
+
|
3
|
+
@include govuk-exports("govuk/objects/template") {
|
4
|
+
// Applied to the <html> element
|
5
|
+
.govuk-template {
|
6
|
+
// Set the overall page background colour to the same colour as used by the
|
7
|
+
// footer to give the illusion of a long footer.
|
8
|
+
@include _govuk-rebrand(
|
9
|
+
background-color,
|
10
|
+
$from: $govuk-template-background-colour,
|
11
|
+
$to: $_govuk-rebrand-template-background-colour
|
12
|
+
);
|
13
|
+
|
14
|
+
// Prevent automatic text sizing, as we already cater for small devices and
|
15
|
+
// would like the browser to stay on 100% text zoom by default.
|
16
|
+
-webkit-text-size-adjust: 100%;
|
17
|
+
-moz-text-size-adjust: 100%;
|
18
|
+
text-size-adjust: 100%;
|
19
|
+
|
20
|
+
// Add scroll padding to the top of govuk-template but remove it if the
|
21
|
+
// exit this page component is present.
|
22
|
+
//
|
23
|
+
// This is a solution to exit this page potentially failing WCAG SC 2.4.12:
|
24
|
+
// Focus Not Obscured (https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum.html)
|
25
|
+
// due to it's sticky positioning.
|
26
|
+
//
|
27
|
+
// This will apply scroll-padding-top in any browsers that don't support :has
|
28
|
+
// (https://caniuse.com/css-has). This is part of the reason we do this in
|
29
|
+
// a "wrong way round" way as we hypothesise that the risks of having
|
30
|
+
// scroll-padding unnecessarily is better than risking not having scroll-padding
|
31
|
+
// and needing it to account for exit this page.
|
32
|
+
@supports ((position: -webkit-sticky) or (position: sticky)) {
|
33
|
+
scroll-padding-top: govuk-spacing(9);
|
34
|
+
|
35
|
+
&:not(:has(.govuk-exit-this-page)) {
|
36
|
+
scroll-padding-top: 0;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
// Force the scrollbar to always display in IE, to prevent horizontal page
|
41
|
+
// jumps as content height changes (e.g. autocomplete results open).
|
42
|
+
@include govuk-media-query($media-type: screen) {
|
43
|
+
overflow-y: scroll;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
// Applied to the <body> element
|
48
|
+
.govuk-template__body {
|
49
|
+
// The default margins set by user-agents are not required since we have our
|
50
|
+
// own containers.
|
51
|
+
margin: 0;
|
52
|
+
// Set the overall body of the page back to the typical background colour.
|
53
|
+
background-color: $govuk-body-background-colour;
|
54
|
+
}
|
55
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
@import "../base";
|
2
|
+
|
3
|
+
////
|
4
|
+
/// @group objects/layout
|
5
|
+
////
|
6
|
+
|
7
|
+
/// Width container mixin
|
8
|
+
///
|
9
|
+
/// Used to create page width and custom width container classes.
|
10
|
+
///
|
11
|
+
/// @param {String} $width [$govuk-page-width] - Width in pixels
|
12
|
+
///
|
13
|
+
/// @example scss - Creating a 1200px wide container class
|
14
|
+
/// .app-width-container--wide {
|
15
|
+
/// @include govuk-width-container(1200px);
|
16
|
+
/// }
|
17
|
+
///
|
18
|
+
/// @access public
|
19
|
+
|
20
|
+
@mixin govuk-width-container($width: $govuk-page-width) {
|
21
|
+
// By default, limit the width of the container to the page width
|
22
|
+
max-width: $width;
|
23
|
+
|
24
|
+
// On mobile, add half width gutters
|
25
|
+
margin-right: $govuk-gutter-half;
|
26
|
+
margin-left: $govuk-gutter-half;
|
27
|
+
|
28
|
+
// Respect 'display cutout' safe area (avoids notches and rounded corners)
|
29
|
+
@supports (margin: unquote("max(calc(0px))")) {
|
30
|
+
$gutter-safe-area-right: calc(#{$govuk-gutter-half} + env(safe-area-inset-right));
|
31
|
+
$gutter-safe-area-left: calc(#{$govuk-gutter-half} + env(safe-area-inset-left));
|
32
|
+
|
33
|
+
// Use max() to pick largest margin, default or with safe area
|
34
|
+
// Escaped due to Sass max() vs. CSS native max()
|
35
|
+
margin-right: unquote("max(#{$govuk-gutter-half}, #{$gutter-safe-area-right})");
|
36
|
+
margin-left: unquote("max(#{$govuk-gutter-half}, #{$gutter-safe-area-left})");
|
37
|
+
}
|
38
|
+
|
39
|
+
// On tablet, add full width gutters
|
40
|
+
@include govuk-media-query($from: tablet) {
|
41
|
+
margin-right: $govuk-gutter;
|
42
|
+
margin-left: $govuk-gutter;
|
43
|
+
|
44
|
+
// Respect 'display cutout' safe area (avoids notches and rounded corners)
|
45
|
+
@supports (margin: unquote("max(calc(0px))")) {
|
46
|
+
$gutter-safe-area-right: calc(#{$govuk-gutter-half} + env(safe-area-inset-right));
|
47
|
+
$gutter-safe-area-left: calc(#{$govuk-gutter-half} + env(safe-area-inset-left));
|
48
|
+
|
49
|
+
// Use max() to pick largest margin, default or with safe area
|
50
|
+
// Escaped due to Sass max() vs. CSS native max()
|
51
|
+
margin-right: unquote("max(#{$govuk-gutter}, #{$gutter-safe-area-right})");
|
52
|
+
margin-left: unquote("max(#{$govuk-gutter}, #{$gutter-safe-area-left})");
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
// As soon as the viewport is greater than the width of the page plus the
|
57
|
+
// gutters, just centre the content instead of adding gutters.
|
58
|
+
@include govuk-media-query($and: "(min-width: #{($width + $govuk-gutter * 2)})") {
|
59
|
+
margin-right: auto;
|
60
|
+
margin-left: auto;
|
61
|
+
|
62
|
+
// Since a safe area may have previously been set above,
|
63
|
+
// we need to duplicate this margin that centers the page.
|
64
|
+
@supports (margin: unquote("max(calc(0px))")) {
|
65
|
+
margin-right: auto;
|
66
|
+
margin-left: auto;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
@include govuk-exports("govuk/objects/width-container") {
|
72
|
+
.govuk-width-container {
|
73
|
+
@include govuk-width-container;
|
74
|
+
}
|
75
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// stylelint-disable declaration-no-important
|
2
|
+
@include govuk-exports("govuk/overrides/display") {
|
3
|
+
.govuk-\!-display-inline {
|
4
|
+
display: inline !important;
|
5
|
+
}
|
6
|
+
|
7
|
+
.govuk-\!-display-inline-block {
|
8
|
+
display: inline-block !important;
|
9
|
+
}
|
10
|
+
|
11
|
+
.govuk-\!-display-block {
|
12
|
+
display: block !important;
|
13
|
+
}
|
14
|
+
|
15
|
+
.govuk-\!-display-none {
|
16
|
+
display: none !important;
|
17
|
+
}
|
18
|
+
|
19
|
+
@include govuk-media-query($media-type: print) {
|
20
|
+
.govuk-\!-display-none-print {
|
21
|
+
display: none !important;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
////
|
2
|
+
/// @group overrides
|
3
|
+
////
|
4
|
+
|
5
|
+
// stylelint-disable declaration-no-important
|
6
|
+
|
7
|
+
/// Directions for spacing
|
8
|
+
///
|
9
|
+
/// @type Map
|
10
|
+
/// @access private
|
11
|
+
|
12
|
+
$_spacing-directions: ("top", "right", "bottom", "left") !default;
|
13
|
+
|
14
|
+
/// Generate responsive spacing override classes
|
15
|
+
///
|
16
|
+
/// Generate spacing override classes for the given property (e.g. margin)
|
17
|
+
/// for each point in the responsive spacing scale.
|
18
|
+
///
|
19
|
+
/// @param {String} $property - Property to add spacing to (e.g. 'margin')
|
20
|
+
///
|
21
|
+
/// @example css
|
22
|
+
/// .govuk-\!-margin-4 {
|
23
|
+
/// margin: 15px !important;
|
24
|
+
/// }
|
25
|
+
///
|
26
|
+
/// @media (min-width: 40.0625em) {
|
27
|
+
/// .govuk-\!-margin-4 {
|
28
|
+
/// margin: 20px !important;
|
29
|
+
/// }
|
30
|
+
/// }
|
31
|
+
///
|
32
|
+
/// @access private
|
33
|
+
|
34
|
+
@mixin _govuk-generate-responsive-spacing-overrides($property) {
|
35
|
+
// For each point in the spacing scale (defined in settings), create an
|
36
|
+
// override that affects all directions...
|
37
|
+
@each $scale-point, $scale-map in $govuk-spacing-responsive-scale {
|
38
|
+
.govuk-\!-#{$property}-#{$scale-point} {
|
39
|
+
@include _govuk-responsive-spacing($scale-point, $property, "all", true);
|
40
|
+
}
|
41
|
+
|
42
|
+
// ... and then an override for each individual direction
|
43
|
+
@each $direction in $_spacing-directions {
|
44
|
+
.govuk-\!-#{$property}-#{$direction}-#{$scale-point} {
|
45
|
+
@include _govuk-responsive-spacing($scale-point, $property, $direction, true);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
/// Generate static spacing override classes
|
52
|
+
///
|
53
|
+
/// Generate spacing override classes for the given property (e.g. margin)
|
54
|
+
/// for each point in the non-responsive spacing scale.
|
55
|
+
///
|
56
|
+
/// @param {String} $property - Property to add spacing to (e.g. 'margin')
|
57
|
+
///
|
58
|
+
/// @example css
|
59
|
+
/// .govuk-\!-static-margin-4 {
|
60
|
+
/// margin: 20px !important;
|
61
|
+
/// }
|
62
|
+
///
|
63
|
+
/// @access private
|
64
|
+
@mixin _govuk-generate-static-spacing-overrides($property) {
|
65
|
+
@each $spacing-point in map-keys($govuk-spacing-points) {
|
66
|
+
.govuk-\!-static-#{$property}-#{$spacing-point} {
|
67
|
+
#{$property}: govuk-spacing($spacing-point) !important;
|
68
|
+
}
|
69
|
+
|
70
|
+
@each $direction in $_spacing-directions {
|
71
|
+
.govuk-\!-static-#{$property}-#{$direction}-#{$spacing-point} {
|
72
|
+
#{$property}-#{$direction}: govuk-spacing($spacing-point) !important;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
@include govuk-exports("govuk/overrides/spacing") {
|
79
|
+
@include _govuk-generate-responsive-spacing-overrides("margin");
|
80
|
+
@include _govuk-generate-responsive-spacing-overrides("padding");
|
81
|
+
|
82
|
+
@include _govuk-generate-static-spacing-overrides("margin");
|
83
|
+
@include _govuk-generate-static-spacing-overrides("padding");
|
84
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
// stylelint-disable declaration-no-important
|
2
|
+
@include govuk-exports("govuk/overrides/text-align") {
|
3
|
+
.govuk-\!-text-align-left {
|
4
|
+
text-align: left !important;
|
5
|
+
}
|
6
|
+
|
7
|
+
.govuk-\!-text-align-centre {
|
8
|
+
text-align: center !important;
|
9
|
+
}
|
10
|
+
|
11
|
+
.govuk-\!-text-align-right {
|
12
|
+
text-align: right !important;
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
@include govuk-exports("govuk/overrides/typography") {
|
2
|
+
// Font size and line height
|
3
|
+
|
4
|
+
// Generate typography override classes for each responsive font map in the
|
5
|
+
// typography scale eg .govuk-\!-font-size-80
|
6
|
+
//
|
7
|
+
// govuk-!-font-size-14 is deprecated
|
8
|
+
@each $size, $font-map in $govuk-typography-scale {
|
9
|
+
.govuk-\!-font-size-#{$size} {
|
10
|
+
$font-map: map-get($govuk-typography-scale, $size);
|
11
|
+
|
12
|
+
// Add underscore to deprecated typography scale keys
|
13
|
+
@if map-has-key($font-map, "deprecation") {
|
14
|
+
$size: _#{$size};
|
15
|
+
}
|
16
|
+
|
17
|
+
@include govuk-font-size($size, $important: true);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
// Weights
|
22
|
+
|
23
|
+
.govuk-\!-font-weight-regular {
|
24
|
+
@include govuk-typography-weight-regular($important: true);
|
25
|
+
}
|
26
|
+
|
27
|
+
.govuk-\!-font-weight-bold {
|
28
|
+
@include govuk-typography-weight-bold($important: true);
|
29
|
+
}
|
30
|
+
|
31
|
+
// Typography helpers
|
32
|
+
|
33
|
+
.govuk-\!-font-tabular-numbers {
|
34
|
+
@include govuk-font-tabular-numbers($important: true);
|
35
|
+
}
|
36
|
+
|
37
|
+
.govuk-\!-text-break-word {
|
38
|
+
@include govuk-text-break-word($important: true);
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
// stylelint-disable declaration-no-important
|
2
|
+
@include govuk-exports("govuk/overrides/width") {
|
3
|
+
.govuk-\!-width-full {
|
4
|
+
width: 100% !important;
|
5
|
+
}
|
6
|
+
|
7
|
+
.govuk-\!-width-three-quarters {
|
8
|
+
width: 100% !important;
|
9
|
+
|
10
|
+
@include govuk-media-query($from: tablet) {
|
11
|
+
width: 75% !important;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.govuk-\!-width-two-thirds {
|
16
|
+
width: 100% !important;
|
17
|
+
|
18
|
+
@include govuk-media-query($from: tablet) {
|
19
|
+
width: 66.66% !important;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.govuk-\!-width-one-half {
|
24
|
+
width: 100% !important;
|
25
|
+
|
26
|
+
@include govuk-media-query($from: tablet) {
|
27
|
+
width: 50% !important;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.govuk-\!-width-one-third {
|
32
|
+
width: 100% !important;
|
33
|
+
|
34
|
+
@include govuk-media-query($from: tablet) {
|
35
|
+
width: 33.33% !important;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.govuk-\!-width-one-quarter {
|
40
|
+
width: 100% !important;
|
41
|
+
|
42
|
+
@include govuk-media-query($from: tablet) {
|
43
|
+
width: 25% !important;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/assets
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Path to the assets directory, with trailing slash.
|
6
|
+
///
|
7
|
+
/// This is the directory where the images and fonts subdirectories live. You
|
8
|
+
/// will need to make this directory available via your application – see the
|
9
|
+
/// README for details.
|
10
|
+
///
|
11
|
+
/// @type String
|
12
|
+
/// @access public
|
13
|
+
|
14
|
+
$govuk-assets-path: "/assets/" !default;
|
15
|
+
|
16
|
+
/// Path to the images folder, with trailing slash.
|
17
|
+
///
|
18
|
+
/// @type String
|
19
|
+
/// @access public
|
20
|
+
|
21
|
+
$govuk-images-path: "#{$govuk-assets-path}images/" !default;
|
22
|
+
|
23
|
+
/// Path to the fonts folder, with trailing slash.
|
24
|
+
///
|
25
|
+
/// @type String
|
26
|
+
/// @access public
|
27
|
+
|
28
|
+
$govuk-fonts-path: "#{$govuk-assets-path}fonts/" !default;
|
29
|
+
|
30
|
+
/// Custom image URL function
|
31
|
+
///
|
32
|
+
/// If the built-in image URL helper does not meet your needs, you can specify
|
33
|
+
/// the name of a custom handler – either built in or by writing your own
|
34
|
+
/// function.
|
35
|
+
///
|
36
|
+
/// If you are writing your own handler, ensure that it returns a string wrapped
|
37
|
+
/// with `url()`
|
38
|
+
///
|
39
|
+
/// @type String
|
40
|
+
///
|
41
|
+
/// @example scss - Rails asset handling
|
42
|
+
/// $govuk-image-url-function: 'image-url';
|
43
|
+
///
|
44
|
+
/// @example scss - Custom asset handling
|
45
|
+
///
|
46
|
+
/// @function my-url-handler($filename) {
|
47
|
+
/// // Some custom URL handling
|
48
|
+
/// @return url('example.jpg');
|
49
|
+
/// }
|
50
|
+
///
|
51
|
+
/// $govuk-image-url-function: 'my-url-handler';
|
52
|
+
///
|
53
|
+
/// @access public
|
54
|
+
|
55
|
+
$govuk-image-url-function: false !default;
|
56
|
+
|
57
|
+
/// Custom font URL function
|
58
|
+
///
|
59
|
+
/// If the built-in font URL helper does not meet your needs, you can specify
|
60
|
+
/// the name of a custom handler – either built in or by writing your own
|
61
|
+
/// function.
|
62
|
+
///
|
63
|
+
/// If you are writing your own handler, ensure that it returns a string wrapped
|
64
|
+
/// with `url()`
|
65
|
+
///
|
66
|
+
/// @type String
|
67
|
+
///
|
68
|
+
/// @example scss - Rails asset handling
|
69
|
+
/// $govuk-font-url-function: 'font-url';
|
70
|
+
///
|
71
|
+
/// @example scss - Custom asset handling
|
72
|
+
///
|
73
|
+
/// @function my-url-handler($filename) {
|
74
|
+
/// // Some custom URL handling
|
75
|
+
/// @return url('example.woff');
|
76
|
+
/// }
|
77
|
+
///
|
78
|
+
/// $govuk-font-url-function: 'my-url-handler';
|
79
|
+
///
|
80
|
+
/// @access public
|
81
|
+
|
82
|
+
$govuk-font-url-function: false !default;
|