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,546 @@
|
|
1
|
+
@include govuk-exports("govuk/component/header") {
|
2
|
+
$govuk-header-background: govuk-colour("black");
|
3
|
+
$govuk-header-border-color: $govuk-brand-colour;
|
4
|
+
$govuk-header-border-width: govuk-spacing(2);
|
5
|
+
$govuk-header-text: govuk-colour("white");
|
6
|
+
$govuk-header-link-active: #1d8feb;
|
7
|
+
$govuk-header-nav-item-border-color: #2e3133;
|
8
|
+
$govuk-header-link-underline-thickness: 3px;
|
9
|
+
$govuk-header-vertical-spacing-value: 2;
|
10
|
+
// This crown height is only used to calculate top offset of mobile menu button
|
11
|
+
// as the crown svg height is the only thing that controls the height of the header
|
12
|
+
$govuk-header-crown-height: 30px;
|
13
|
+
$govuk-header-menu-button-height: 24px;
|
14
|
+
$govuk-header-menu-button-width: 80px;
|
15
|
+
|
16
|
+
$govuk-header-rebrand-background: $govuk-brand-colour;
|
17
|
+
$govuk-header-rebrand-logo-bottom-margin: 2px;
|
18
|
+
|
19
|
+
.govuk-header {
|
20
|
+
@include govuk-font($size: 16, $line-height: 1);
|
21
|
+
|
22
|
+
// Add a transparent bottom border for forced-colour modes
|
23
|
+
@include _govuk-rebrand(
|
24
|
+
"border-bottom",
|
25
|
+
$from: govuk-spacing(2) solid govuk-colour("white"),
|
26
|
+
$to: 1px solid transparent
|
27
|
+
);
|
28
|
+
@include _govuk-rebrand("background", $from: $govuk-header-background, $to: $govuk-header-rebrand-background);
|
29
|
+
|
30
|
+
color: $govuk-header-text;
|
31
|
+
}
|
32
|
+
|
33
|
+
.govuk-header--with-js-navigation {
|
34
|
+
@include govuk-media-query($until: desktop) {
|
35
|
+
.govuk-header__logo {
|
36
|
+
// Protect the absolute positioned menu button from overlapping with the
|
37
|
+
// logo with right padding using the button's width
|
38
|
+
padding-right: $govuk-header-menu-button-width;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
.govuk-header__container--full-width {
|
44
|
+
padding: 0 govuk-spacing(3);
|
45
|
+
border-color: $govuk-header-border-color;
|
46
|
+
|
47
|
+
.govuk-header__menu-button {
|
48
|
+
right: govuk-spacing(3);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.govuk-header__container {
|
53
|
+
@include govuk-clearfix;
|
54
|
+
position: relative;
|
55
|
+
margin-bottom: -$govuk-header-border-width;
|
56
|
+
padding-top: govuk-spacing($govuk-header-vertical-spacing-value);
|
57
|
+
border-bottom: $govuk-header-border-width solid $govuk-header-border-color;
|
58
|
+
|
59
|
+
@include _govuk-rebrand {
|
60
|
+
// Remove the space allocated to the blue bar
|
61
|
+
margin-bottom: 0;
|
62
|
+
|
63
|
+
// Remove padding as the child elements are now responsible for spacing
|
64
|
+
padding-top: 0;
|
65
|
+
|
66
|
+
// Remove the blue bar
|
67
|
+
border-bottom: none;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
// TODO: Remove this when _govuk-rebrand becomes the default
|
72
|
+
.govuk-header--full-width-border {
|
73
|
+
border-bottom-color: $govuk-header-border-color;
|
74
|
+
|
75
|
+
.govuk-header__container {
|
76
|
+
border-bottom-color: transparent;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
.govuk-header__logotype {
|
81
|
+
display: inline-block;
|
82
|
+
position: relative;
|
83
|
+
top: -3px;
|
84
|
+
|
85
|
+
// Add a gap after the logo in case it's followed by a product name. This
|
86
|
+
// gets removed later if the logotype is a :last-child.
|
87
|
+
margin-right: govuk-spacing(1);
|
88
|
+
fill: currentcolor;
|
89
|
+
vertical-align: top;
|
90
|
+
|
91
|
+
// Prevent readability backplate from obscuring underline in Windows High
|
92
|
+
// Contrast Mode
|
93
|
+
@media (forced-colors: active) {
|
94
|
+
forced-color-adjust: none;
|
95
|
+
color: linktext;
|
96
|
+
}
|
97
|
+
|
98
|
+
// Remove the gap after the logo if there's no product name to keep hover
|
99
|
+
// and focus states neat
|
100
|
+
&:last-child {
|
101
|
+
margin-right: 0;
|
102
|
+
}
|
103
|
+
|
104
|
+
@include _govuk-rebrand {
|
105
|
+
margin-right: govuk-px-to-rem(7px); // 1 'dot'
|
106
|
+
margin-bottom: $govuk-header-rebrand-logo-bottom-margin;
|
107
|
+
|
108
|
+
// Remove right-margin if there's no product name
|
109
|
+
&:last-child {
|
110
|
+
margin-right: 0;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
// Colour in the Dot
|
116
|
+
.govuk-logo-dot {
|
117
|
+
fill: #00ffe0;
|
118
|
+
|
119
|
+
// Override Dot colour when printing
|
120
|
+
@include govuk-media-query($media-type: print) {
|
121
|
+
fill: currentcolor;
|
122
|
+
}
|
123
|
+
|
124
|
+
// Override Dot colour on forced colours mode
|
125
|
+
@media (forced-colors: active) {
|
126
|
+
fill: currentcolor;
|
127
|
+
}
|
128
|
+
|
129
|
+
// Override Dot colour on focus
|
130
|
+
:focus & {
|
131
|
+
fill: currentcolor;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
.govuk-header__product-name {
|
136
|
+
$product-name-offset: if($govuk-new-typography-scale, 7px, 10px);
|
137
|
+
$product-name-offset-tablet: 5px;
|
138
|
+
|
139
|
+
@include govuk-font-size($size: 24, $line-height: 1);
|
140
|
+
@include govuk-typography-weight-regular;
|
141
|
+
display: inline-table;
|
142
|
+
|
143
|
+
// Maintain space below logo when wrapped
|
144
|
+
margin-top: $product-name-offset;
|
145
|
+
|
146
|
+
// Firefox places the GOV.UK logo one pixel higher, due to how it rounds
|
147
|
+
// subpixels, so nudge the product name in FF to still be aligned.
|
148
|
+
@-moz-document url-prefix() {
|
149
|
+
margin-top: $product-name-offset - 0.5px;
|
150
|
+
}
|
151
|
+
|
152
|
+
// Align vertically with logo when not wrapped
|
153
|
+
vertical-align: top;
|
154
|
+
|
155
|
+
@include govuk-media-query($from: tablet) {
|
156
|
+
margin-top: $product-name-offset-tablet;
|
157
|
+
@-moz-document url-prefix() {
|
158
|
+
margin-top: $product-name-offset-tablet - 0.5px;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
@include _govuk-rebrand {
|
163
|
+
// Remove top margin
|
164
|
+
margin-top: 0;
|
165
|
+
|
166
|
+
// Remove 1px from the bottom to account for the font-size being 1px
|
167
|
+
// larger than the logo height.
|
168
|
+
margin-bottom: govuk-px-to-rem(-1px);
|
169
|
+
|
170
|
+
// Magic number font-size that visually aligns with GOV.UK logo.
|
171
|
+
// Also stops reducing the product name size on narrow screens
|
172
|
+
font-size: govuk-px-to-rem(31px);
|
173
|
+
|
174
|
+
// Reduce letter spacing
|
175
|
+
letter-spacing: -0.015em;
|
176
|
+
|
177
|
+
// Prevent forced colour modes from applying a background colour behind
|
178
|
+
// the product name, which cuts off the underline that appears on hover.
|
179
|
+
forced-color-adjust: none;
|
180
|
+
|
181
|
+
@media screen and (forced-colors: active) {
|
182
|
+
color: LinkText;
|
183
|
+
background: transparent;
|
184
|
+
}
|
185
|
+
|
186
|
+
// Remove top margin on the breakpoints too
|
187
|
+
@include govuk-media-query($from: tablet) {
|
188
|
+
margin-top: 0;
|
189
|
+
}
|
190
|
+
|
191
|
+
@include govuk-media-query($from: desktop) {
|
192
|
+
margin-top: 0;
|
193
|
+
}
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
.govuk-header__link {
|
198
|
+
// Avoid using the `govuk-link-common` mixin because the links in the header
|
199
|
+
// get a special treatment, because:
|
200
|
+
//
|
201
|
+
// - underlines are only visible on hover
|
202
|
+
// - all links get a 3px underline regardless of text size, as there are
|
203
|
+
// multiple grouped elements close to one another and having slightly
|
204
|
+
// different underline widths looks unbalanced
|
205
|
+
@include govuk-link-style-inverse;
|
206
|
+
|
207
|
+
text-decoration: none;
|
208
|
+
|
209
|
+
&:hover {
|
210
|
+
text-decoration: underline;
|
211
|
+
text-decoration-thickness: $govuk-header-link-underline-thickness;
|
212
|
+
|
213
|
+
@if $govuk-link-underline-offset {
|
214
|
+
text-underline-offset: $govuk-link-underline-offset;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
|
218
|
+
&:focus {
|
219
|
+
@include govuk-focused-text;
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
.govuk-header__link--homepage {
|
224
|
+
// Font size needs to be set on the link so that the box sizing is correct
|
225
|
+
// in Firefox
|
226
|
+
display: inline-block;
|
227
|
+
margin-right: govuk-spacing(2);
|
228
|
+
font-size: 30px; // We don't have a mixin that produces 30px font size
|
229
|
+
|
230
|
+
@include govuk-media-query($from: desktop) {
|
231
|
+
display: inline;
|
232
|
+
}
|
233
|
+
|
234
|
+
&:link,
|
235
|
+
&:visited {
|
236
|
+
text-decoration: none;
|
237
|
+
}
|
238
|
+
|
239
|
+
&:hover,
|
240
|
+
&:active {
|
241
|
+
// Negate the added border
|
242
|
+
margin-bottom: $govuk-header-link-underline-thickness * -1;
|
243
|
+
border-bottom: $govuk-header-link-underline-thickness solid;
|
244
|
+
}
|
245
|
+
|
246
|
+
// Remove any borders that show when focused and hovered.
|
247
|
+
&:focus {
|
248
|
+
margin-bottom: 0;
|
249
|
+
border-bottom: 0;
|
250
|
+
}
|
251
|
+
|
252
|
+
@include _govuk-rebrand {
|
253
|
+
display: inline;
|
254
|
+
|
255
|
+
// Remove word-spacing from within the logo so we can ignore
|
256
|
+
// whitespace characters in the HTML
|
257
|
+
word-spacing: govuk-px-to-rem(-6px);
|
258
|
+
|
259
|
+
// Reset word-spacing for child elements
|
260
|
+
> * {
|
261
|
+
word-spacing: 0;
|
262
|
+
}
|
263
|
+
|
264
|
+
&:not(:focus) {
|
265
|
+
background-color: $govuk-header-rebrand-background;
|
266
|
+
}
|
267
|
+
}
|
268
|
+
}
|
269
|
+
|
270
|
+
.govuk-header__service-name {
|
271
|
+
display: inline-block;
|
272
|
+
margin-bottom: govuk-spacing(2);
|
273
|
+
@include govuk-font-size($size: 24);
|
274
|
+
@include govuk-typography-weight-bold;
|
275
|
+
|
276
|
+
@include _govuk-rebrand {
|
277
|
+
// Apply margins to internal elements to emulate padding
|
278
|
+
margin-bottom: govuk-spacing(3);
|
279
|
+
|
280
|
+
@include govuk-media-query($from: desktop) {
|
281
|
+
// Magic number to align service name baseline with the GOV.UK logo
|
282
|
+
$service-name-offset: 4px;
|
283
|
+
|
284
|
+
margin: (govuk-spacing(3) + $service-name-offset) 0 (govuk-spacing(3) - $service-name-offset);
|
285
|
+
}
|
286
|
+
}
|
287
|
+
}
|
288
|
+
|
289
|
+
.govuk-header__logo,
|
290
|
+
.govuk-header__content {
|
291
|
+
box-sizing: border-box;
|
292
|
+
}
|
293
|
+
|
294
|
+
.govuk-header__logo {
|
295
|
+
@include govuk-responsive-margin($govuk-header-vertical-spacing-value, "bottom");
|
296
|
+
|
297
|
+
@include govuk-media-query($from: desktop) {
|
298
|
+
width: 33.33%;
|
299
|
+
padding-right: $govuk-gutter-half;
|
300
|
+
float: left;
|
301
|
+
vertical-align: top;
|
302
|
+
|
303
|
+
// Reset float when logo is the last child, without a navigation
|
304
|
+
&:last-child {
|
305
|
+
width: auto;
|
306
|
+
padding-right: 0;
|
307
|
+
float: none;
|
308
|
+
}
|
309
|
+
}
|
310
|
+
|
311
|
+
@include _govuk-rebrand {
|
312
|
+
// Apply margins to internal elements to emulate padding
|
313
|
+
margin-bottom: 0;
|
314
|
+
|
315
|
+
// Magic numbers, set padding to vertically centre align the logo
|
316
|
+
padding-top: 16px;
|
317
|
+
padding-bottom: 14px - $govuk-header-rebrand-logo-bottom-margin;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
|
321
|
+
.govuk-header__content {
|
322
|
+
@include govuk-media-query($from: desktop) {
|
323
|
+
width: 66.66%;
|
324
|
+
padding-left: $govuk-gutter-half;
|
325
|
+
float: left;
|
326
|
+
}
|
327
|
+
}
|
328
|
+
|
329
|
+
.govuk-header__menu-button {
|
330
|
+
@include govuk-font($size: 16);
|
331
|
+
max-width: $govuk-header-menu-button-width;
|
332
|
+
min-height: $govuk-header-menu-button-height;
|
333
|
+
margin-bottom: govuk-spacing(1);
|
334
|
+
padding: 0;
|
335
|
+
border: 0;
|
336
|
+
color: govuk-colour("white");
|
337
|
+
background: none;
|
338
|
+
word-break: break-all;
|
339
|
+
cursor: pointer;
|
340
|
+
|
341
|
+
&:hover {
|
342
|
+
-webkit-text-decoration: solid underline $govuk-header-link-underline-thickness;
|
343
|
+
text-decoration: solid underline $govuk-header-link-underline-thickness;
|
344
|
+
|
345
|
+
@if $govuk-link-underline-offset {
|
346
|
+
text-underline-offset: $govuk-link-underline-offset;
|
347
|
+
}
|
348
|
+
}
|
349
|
+
|
350
|
+
&:focus {
|
351
|
+
@include govuk-focused-text;
|
352
|
+
}
|
353
|
+
|
354
|
+
&::after {
|
355
|
+
@include govuk-shape-arrow($direction: down, $base: 10px, $display: inline-block);
|
356
|
+
content: "";
|
357
|
+
margin-left: govuk-spacing(1);
|
358
|
+
}
|
359
|
+
|
360
|
+
&[aria-expanded="true"]::after {
|
361
|
+
@include govuk-shape-arrow($direction: up, $base: 10px, $display: inline-block);
|
362
|
+
}
|
363
|
+
|
364
|
+
@include govuk-media-query($from: mobile) {
|
365
|
+
position: absolute;
|
366
|
+
// calculate top offset by:
|
367
|
+
// - getting the vertical spacing for the top and the bottom of the header
|
368
|
+
// - adding that to the crown height
|
369
|
+
// - dividing it by 2 so you have the vertical centre of the header
|
370
|
+
// - subtracting half the height of the menu button
|
371
|
+
top: (((govuk-spacing($govuk-header-vertical-spacing-value) * 2) + $govuk-header-crown-height) / 2) -
|
372
|
+
($govuk-header-menu-button-height / 2);
|
373
|
+
right: 0;
|
374
|
+
margin: 0;
|
375
|
+
}
|
376
|
+
|
377
|
+
@include govuk-media-query($from: tablet) {
|
378
|
+
top: govuk-spacing(3);
|
379
|
+
}
|
380
|
+
|
381
|
+
.govuk-frontend-supported & {
|
382
|
+
display: block;
|
383
|
+
}
|
384
|
+
|
385
|
+
&[hidden],
|
386
|
+
.govuk-frontend-supported &[hidden] {
|
387
|
+
display: none;
|
388
|
+
}
|
389
|
+
}
|
390
|
+
|
391
|
+
.govuk-header__navigation {
|
392
|
+
@include govuk-media-query($until: mobile) {
|
393
|
+
@include _govuk-rebrand {
|
394
|
+
padding-bottom: govuk-spacing(3);
|
395
|
+
}
|
396
|
+
}
|
397
|
+
|
398
|
+
@include govuk-media-query($from: desktop) {
|
399
|
+
margin-bottom: govuk-spacing(2);
|
400
|
+
|
401
|
+
@include _govuk-rebrand {
|
402
|
+
// Magic number so that the bottom of the nav links aligns with the
|
403
|
+
// baseline of the GOV.UK logo
|
404
|
+
$navigation-offset: 7px;
|
405
|
+
|
406
|
+
// Apply margins to internal elements to emulate padding
|
407
|
+
margin-bottom: 0;
|
408
|
+
padding: (govuk-spacing(3) + $navigation-offset) 0 (govuk-spacing(3) - $navigation-offset);
|
409
|
+
}
|
410
|
+
}
|
411
|
+
}
|
412
|
+
|
413
|
+
.govuk-header__service-name + .govuk-header__navigation {
|
414
|
+
@include _govuk-rebrand {
|
415
|
+
@include govuk-media-query($from: desktop) {
|
416
|
+
// If there's both a service name and navigation,
|
417
|
+
// remove the extra padding between them on desktop
|
418
|
+
padding-top: 0;
|
419
|
+
|
420
|
+
// Restore the full bottom padding as the navigation isn't standalone
|
421
|
+
padding-bottom: govuk-spacing(3);
|
422
|
+
}
|
423
|
+
}
|
424
|
+
}
|
425
|
+
|
426
|
+
.govuk-header__navigation-list {
|
427
|
+
// Reset user-agent default list styles
|
428
|
+
margin: 0;
|
429
|
+
padding: 0;
|
430
|
+
list-style: none;
|
431
|
+
|
432
|
+
&[hidden] {
|
433
|
+
display: none;
|
434
|
+
}
|
435
|
+
|
436
|
+
@include _govuk-rebrand {
|
437
|
+
@include govuk-media-query($from: mobile, $until: desktop) {
|
438
|
+
padding-bottom: govuk-spacing(3);
|
439
|
+
}
|
440
|
+
}
|
441
|
+
}
|
442
|
+
|
443
|
+
.govuk-header__navigation--end {
|
444
|
+
@include govuk-media-query($from: desktop) {
|
445
|
+
margin: 0;
|
446
|
+
padding: govuk-spacing(1) 0;
|
447
|
+
text-align: right;
|
448
|
+
}
|
449
|
+
}
|
450
|
+
|
451
|
+
.govuk-header__navigation-item {
|
452
|
+
padding: govuk-spacing(2) 0;
|
453
|
+
border-bottom: 1px solid $govuk-header-nav-item-border-color;
|
454
|
+
|
455
|
+
@include govuk-media-query($from: desktop) {
|
456
|
+
display: inline-block;
|
457
|
+
margin-right: govuk-spacing(3);
|
458
|
+
padding: govuk-spacing(1) 0;
|
459
|
+
border: 0;
|
460
|
+
}
|
461
|
+
|
462
|
+
a {
|
463
|
+
@include govuk-font-size($size: 16);
|
464
|
+
@include govuk-typography-weight-bold;
|
465
|
+
white-space: nowrap;
|
466
|
+
}
|
467
|
+
|
468
|
+
@include _govuk-rebrand {
|
469
|
+
// Increase top padding of nav items...
|
470
|
+
padding-top: govuk-spacing(3);
|
471
|
+
|
472
|
+
// ...except on desktop
|
473
|
+
@include govuk-media-query($from: desktop) {
|
474
|
+
padding-top: govuk-spacing(1);
|
475
|
+
}
|
476
|
+
|
477
|
+
// Change the dividing line colour between mobile nav items
|
478
|
+
border-bottom-color: govuk-colour("white");
|
479
|
+
|
480
|
+
// Reduce default weight of links so that we can use bold for active ones
|
481
|
+
a {
|
482
|
+
@include govuk-typography-weight-regular;
|
483
|
+
}
|
484
|
+
}
|
485
|
+
}
|
486
|
+
|
487
|
+
.govuk-header__navigation-item--active {
|
488
|
+
a {
|
489
|
+
@include _govuk-rebrand {
|
490
|
+
// Change active links to use bold text instead of changing colour
|
491
|
+
@include govuk-typography-weight-bold;
|
492
|
+
}
|
493
|
+
|
494
|
+
&:link,
|
495
|
+
&:hover,
|
496
|
+
&:visited {
|
497
|
+
color: $govuk-header-link-active;
|
498
|
+
|
499
|
+
@include _govuk-rebrand {
|
500
|
+
color: inherit;
|
501
|
+
}
|
502
|
+
}
|
503
|
+
|
504
|
+
// When printing, use the normal blue as this contrasts better with the
|
505
|
+
// white printing header
|
506
|
+
@include govuk-media-query($media-type: print) {
|
507
|
+
color: $govuk-brand-colour;
|
508
|
+
}
|
509
|
+
|
510
|
+
// When focussed, the text colour needs to be darker to ensure that colour
|
511
|
+
// contrast is still acceptable
|
512
|
+
&:focus {
|
513
|
+
color: $govuk-focus-text-colour;
|
514
|
+
|
515
|
+
@include _govuk-rebrand {
|
516
|
+
color: $govuk-focus-text-colour;
|
517
|
+
}
|
518
|
+
}
|
519
|
+
}
|
520
|
+
}
|
521
|
+
|
522
|
+
.govuk-header__navigation-item:last-child {
|
523
|
+
margin-right: 0;
|
524
|
+
border-bottom: 0;
|
525
|
+
}
|
526
|
+
|
527
|
+
@include govuk-media-query($media-type: print) {
|
528
|
+
.govuk-header {
|
529
|
+
border-bottom-width: 0;
|
530
|
+
color: govuk-colour("black");
|
531
|
+
background: transparent;
|
532
|
+
}
|
533
|
+
|
534
|
+
.govuk-header__link {
|
535
|
+
&:link,
|
536
|
+
&:visited {
|
537
|
+
color: govuk-colour("black");
|
538
|
+
}
|
539
|
+
|
540
|
+
// Do not append link href to GOV.UK link when printing (e.g. '(/)')
|
541
|
+
&::after {
|
542
|
+
display: none;
|
543
|
+
}
|
544
|
+
}
|
545
|
+
}
|
546
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
@include govuk-exports("govuk/component/hint") {
|
2
|
+
.govuk-hint {
|
3
|
+
@include govuk-font($size: 19);
|
4
|
+
|
5
|
+
margin-bottom: govuk-spacing(3);
|
6
|
+
|
7
|
+
color: $govuk-secondary-text-colour;
|
8
|
+
}
|
9
|
+
|
10
|
+
// Reduces margin-bottom of hint when used after the default label (no class)
|
11
|
+
// or govuk-label--s for better vertical alignment.
|
12
|
+
|
13
|
+
// This adjustment will not work when the label is inside the <h1>, however it
|
14
|
+
// is unlikely that the default or govuk-label--s class would be used in this
|
15
|
+
// case.
|
16
|
+
|
17
|
+
// This adjustment will not work in browsers that do not support :not().
|
18
|
+
// Users with these browsers will see the default size margin (5px larger).
|
19
|
+
|
20
|
+
.govuk-label:not(.govuk-label--m):not(.govuk-label--l):not(.govuk-label--xl) + .govuk-hint {
|
21
|
+
margin-bottom: govuk-spacing(2);
|
22
|
+
}
|
23
|
+
|
24
|
+
// Reduces margin-bottom of hint when used after the default legend (no class)
|
25
|
+
// or govuk-fieldset__legend--s for better vertical alignment.
|
26
|
+
|
27
|
+
// This adjustment will not work when the legend is outside the <h1>, however
|
28
|
+
// it is unlikely that the default or govuk-fieldset__legend--s class would be
|
29
|
+
// used in this case.
|
30
|
+
|
31
|
+
// This adjustment will not work in browsers that do not support :not().
|
32
|
+
// Users with these browsers will see the default size margin (5px larger).
|
33
|
+
|
34
|
+
// prettier-ignore
|
35
|
+
.govuk-fieldset__legend:not(.govuk-fieldset__legend--m):not(.govuk-fieldset__legend--l):not(.govuk-fieldset__legend--xl) + .govuk-hint {
|
36
|
+
margin-bottom: govuk-spacing(2);
|
37
|
+
}
|
38
|
+
|
39
|
+
// Reduces visual spacing of legend when there is a hint
|
40
|
+
.govuk-fieldset__legend + .govuk-hint {
|
41
|
+
margin-top: govuk-spacing(-1);
|
42
|
+
}
|
43
|
+
}
|