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,90 @@
|
|
1
|
+
@import "../button/index";
|
2
|
+
|
3
|
+
@include govuk-exports("govuk/component/exit-this-page") {
|
4
|
+
$indicator-size: 0.75em;
|
5
|
+
|
6
|
+
.govuk-exit-this-page {
|
7
|
+
@include govuk-responsive-margin(8, "bottom");
|
8
|
+
position: -webkit-sticky;
|
9
|
+
position: sticky;
|
10
|
+
z-index: 1000;
|
11
|
+
top: 0;
|
12
|
+
left: 0;
|
13
|
+
width: 100%;
|
14
|
+
|
15
|
+
@include govuk-media-query($from: tablet) {
|
16
|
+
display: inline-block;
|
17
|
+
right: 0;
|
18
|
+
left: auto;
|
19
|
+
width: auto;
|
20
|
+
float: right;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
.govuk-exit-this-page__button {
|
25
|
+
margin-bottom: 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
.govuk-exit-this-page__indicator {
|
29
|
+
@include govuk-responsive-padding(2);
|
30
|
+
display: none;
|
31
|
+
padding-bottom: 0;
|
32
|
+
color: inherit;
|
33
|
+
line-height: 0; // removes extra negative space below the indicators
|
34
|
+
text-align: center;
|
35
|
+
pointer-events: none;
|
36
|
+
}
|
37
|
+
|
38
|
+
.govuk-exit-this-page__indicator--visible {
|
39
|
+
display: block;
|
40
|
+
}
|
41
|
+
|
42
|
+
.govuk-exit-this-page__indicator-light {
|
43
|
+
box-sizing: border-box;
|
44
|
+
display: inline-block;
|
45
|
+
width: $indicator-size;
|
46
|
+
height: $indicator-size;
|
47
|
+
margin: 0 0.125em;
|
48
|
+
border-width: 2px;
|
49
|
+
border-style: solid;
|
50
|
+
border-radius: 50%;
|
51
|
+
border-color: currentcolor;
|
52
|
+
}
|
53
|
+
|
54
|
+
.govuk-exit-this-page__indicator-light--on {
|
55
|
+
border-width: $indicator-size / 2;
|
56
|
+
}
|
57
|
+
|
58
|
+
@media only print {
|
59
|
+
.govuk-exit-this-page {
|
60
|
+
display: none;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
.govuk-exit-this-page-overlay {
|
65
|
+
position: fixed;
|
66
|
+
z-index: 9999;
|
67
|
+
top: 0;
|
68
|
+
right: 0;
|
69
|
+
bottom: 0;
|
70
|
+
left: 0;
|
71
|
+
background-color: govuk-colour("white");
|
72
|
+
}
|
73
|
+
|
74
|
+
// This class is added to the body when the Exit This Page button is activated
|
75
|
+
// in addition to the overlay to both block the entire screen and hide everything
|
76
|
+
// underneath it.
|
77
|
+
//
|
78
|
+
// We do this to ensure that users don't risk interacting with the page underneath
|
79
|
+
// the overlay between activating the button and navigating to the next page.
|
80
|
+
.govuk-exit-this-page-hide-content {
|
81
|
+
// stylelint-disable declaration-no-important
|
82
|
+
* {
|
83
|
+
display: none !important;
|
84
|
+
}
|
85
|
+
|
86
|
+
.govuk-exit-this-page-overlay {
|
87
|
+
display: block !important;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/fieldset/_index.scss
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
@include govuk-exports("govuk/component/fieldset") {
|
2
|
+
.govuk-fieldset {
|
3
|
+
min-width: 0;
|
4
|
+
margin: 0;
|
5
|
+
padding: 0;
|
6
|
+
border: 0;
|
7
|
+
@include govuk-clearfix;
|
8
|
+
}
|
9
|
+
|
10
|
+
// Fix for Firefox < 53 (https://bugzil.la/504622)
|
11
|
+
// stylelint-disable selector-type-no-unknown -- Ignore 'x:-moz-any-link'
|
12
|
+
@supports not (caret-color: auto) {
|
13
|
+
.govuk-fieldset,
|
14
|
+
x:-moz-any-link {
|
15
|
+
display: table-cell;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
// stylelint-enable selector-type-no-unknown
|
19
|
+
|
20
|
+
.govuk-fieldset__legend {
|
21
|
+
@include govuk-font($size: 19);
|
22
|
+
@include govuk-text-colour;
|
23
|
+
|
24
|
+
// Fix legend text wrapping in Edge and IE
|
25
|
+
// 1. IE9-11 & Edge 12-13
|
26
|
+
// 2. IE8-11
|
27
|
+
box-sizing: border-box; // 1
|
28
|
+
display: table; // 2
|
29
|
+
max-width: 100%; // 1
|
30
|
+
margin-bottom: govuk-spacing(2);
|
31
|
+
padding: 0;
|
32
|
+
|
33
|
+
white-space: normal; // 1
|
34
|
+
}
|
35
|
+
|
36
|
+
// Modifiers that make legends look more like their equivalent headings
|
37
|
+
.govuk-fieldset__legend--xl,
|
38
|
+
.govuk-fieldset__legend--l,
|
39
|
+
.govuk-fieldset__legend--m {
|
40
|
+
@include govuk-typography-weight-bold;
|
41
|
+
margin-bottom: govuk-spacing(3);
|
42
|
+
}
|
43
|
+
|
44
|
+
.govuk-fieldset__legend--xl {
|
45
|
+
@include govuk-font-size($size: 48);
|
46
|
+
}
|
47
|
+
|
48
|
+
.govuk-fieldset__legend--l {
|
49
|
+
@include govuk-font-size($size: 36);
|
50
|
+
}
|
51
|
+
|
52
|
+
.govuk-fieldset__legend--m {
|
53
|
+
@include govuk-font-size($size: 24);
|
54
|
+
}
|
55
|
+
|
56
|
+
.govuk-fieldset__legend--s {
|
57
|
+
@include govuk-typography-weight-bold;
|
58
|
+
}
|
59
|
+
|
60
|
+
// When the legend contains an H1, we want the H1 to inherit all styles from
|
61
|
+
// the legend. Effectively treat the heading as if it is not there.
|
62
|
+
.govuk-fieldset__heading {
|
63
|
+
margin: 0;
|
64
|
+
font-size: inherit;
|
65
|
+
font-weight: inherit;
|
66
|
+
}
|
67
|
+
}
|
data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/file-upload/_index.scss
ADDED
@@ -0,0 +1,216 @@
|
|
1
|
+
@import "../error-message/index";
|
2
|
+
@import "../hint/index";
|
3
|
+
@import "../label/index";
|
4
|
+
|
5
|
+
@include govuk-exports("govuk/component/file-upload") {
|
6
|
+
$file-upload-border-width: 2px;
|
7
|
+
$component-padding: govuk-spacing(1);
|
8
|
+
$empty-button-background-colour: govuk-colour("white");
|
9
|
+
$empty-pseudo-button-background-colour: govuk-colour("light-grey");
|
10
|
+
$empty-status-background-colour: govuk-tint(govuk-colour("blue"), 70%);
|
11
|
+
|
12
|
+
.govuk-file-upload {
|
13
|
+
@include govuk-font($size: 19);
|
14
|
+
@include govuk-text-colour;
|
15
|
+
max-width: 100%;
|
16
|
+
margin-left: -$component-padding;
|
17
|
+
padding: $component-padding;
|
18
|
+
|
19
|
+
// The default file upload button in Safari does not support setting a
|
20
|
+
// custom font-size. Set `-webkit-appearance` to `button` to drop out of the
|
21
|
+
// native appearance so the font-size is set to 19px
|
22
|
+
// https://webkit.org/b/224746
|
23
|
+
&::-webkit-file-upload-button {
|
24
|
+
-webkit-appearance: button;
|
25
|
+
color: inherit;
|
26
|
+
font: inherit;
|
27
|
+
}
|
28
|
+
|
29
|
+
&:focus {
|
30
|
+
outline: $govuk-focus-width solid $govuk-focus-colour;
|
31
|
+
// Use `box-shadow` to add border instead of changing `border-width`
|
32
|
+
// (which changes element size) and since `outline` is already used for
|
33
|
+
// the yellow focus state.
|
34
|
+
box-shadow: inset 0 0 0 4px $govuk-input-border-colour;
|
35
|
+
}
|
36
|
+
|
37
|
+
// Set "focus-within" to fix https://bugzil.la/1430196 so that component
|
38
|
+
// receives focus in Firefox.
|
39
|
+
// This can't be set together with `:focus` as all versions of IE fail
|
40
|
+
// to recognise `focus-within` and don't set any styles from the block
|
41
|
+
// when it's a selector.
|
42
|
+
&:focus-within {
|
43
|
+
outline: $govuk-focus-width solid $govuk-focus-colour;
|
44
|
+
|
45
|
+
box-shadow: inset 0 0 0 4px $govuk-input-border-colour;
|
46
|
+
}
|
47
|
+
|
48
|
+
&:disabled {
|
49
|
+
opacity: 0.5;
|
50
|
+
cursor: not-allowed;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
.govuk-drop-zone {
|
55
|
+
display: block;
|
56
|
+
position: relative;
|
57
|
+
z-index: 0;
|
58
|
+
background-color: $govuk-body-background-colour;
|
59
|
+
}
|
60
|
+
|
61
|
+
// required because disabling pointer events
|
62
|
+
// on the button means that the cursor style
|
63
|
+
// be applied on the button itself
|
64
|
+
.govuk-drop-zone--disabled {
|
65
|
+
cursor: not-allowed;
|
66
|
+
}
|
67
|
+
|
68
|
+
.govuk-file-upload-button__pseudo-button {
|
69
|
+
width: auto;
|
70
|
+
margin-right: govuk-spacing(2);
|
71
|
+
margin-bottom: $govuk-border-width-form-element + 1;
|
72
|
+
flex-shrink: 0;
|
73
|
+
}
|
74
|
+
|
75
|
+
.govuk-file-upload-button__instruction {
|
76
|
+
margin-top: govuk-spacing(2) - ($govuk-border-width-form-element + 1);
|
77
|
+
margin-bottom: 0;
|
78
|
+
text-align: left;
|
79
|
+
}
|
80
|
+
|
81
|
+
.govuk-file-upload-button__status {
|
82
|
+
display: block;
|
83
|
+
margin-bottom: govuk-spacing(2);
|
84
|
+
padding: govuk-spacing(3) govuk-spacing(2);
|
85
|
+
background-color: govuk-colour("white");
|
86
|
+
text-align: left;
|
87
|
+
}
|
88
|
+
|
89
|
+
// bugs documented with button using flex
|
90
|
+
// https://github.com/philipwalton/flexbugs#flexbug-9
|
91
|
+
// so we need a container here
|
92
|
+
.govuk-file-upload-button__pseudo-button-container {
|
93
|
+
display: flex;
|
94
|
+
align-items: baseline;
|
95
|
+
flex-wrap: wrap;
|
96
|
+
}
|
97
|
+
|
98
|
+
.govuk-file-upload-button {
|
99
|
+
width: 100%;
|
100
|
+
// align the padding to be same as notification banner and error summary accounting for the thicker borders
|
101
|
+
padding: (govuk-spacing(3) + $govuk-border-width - $file-upload-border-width);
|
102
|
+
border: $file-upload-border-width govuk-colour("mid-grey") solid;
|
103
|
+
background-color: govuk-colour("light-grey");
|
104
|
+
cursor: pointer;
|
105
|
+
|
106
|
+
@include govuk-media-query($from: tablet) {
|
107
|
+
padding: (govuk-spacing(4) + $govuk-border-width - $file-upload-border-width);
|
108
|
+
}
|
109
|
+
|
110
|
+
.govuk-file-upload-button__pseudo-button {
|
111
|
+
background-color: govuk-colour("white");
|
112
|
+
}
|
113
|
+
|
114
|
+
&:hover {
|
115
|
+
background-color: govuk-tint(govuk-colour("mid-grey"), 20%);
|
116
|
+
|
117
|
+
.govuk-file-upload-button__pseudo-button {
|
118
|
+
background-color: govuk-shade(govuk-colour("light-grey"), 10%);
|
119
|
+
}
|
120
|
+
|
121
|
+
.govuk-file-upload-button__status {
|
122
|
+
background-color: govuk-tint(govuk-colour("blue"), 80%);
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
&:active,
|
127
|
+
&:focus {
|
128
|
+
border: $file-upload-border-width solid govuk-colour("black");
|
129
|
+
outline: $govuk-focus-width solid $govuk-focus-colour;
|
130
|
+
// Ensure outline appears outside of the element
|
131
|
+
outline-offset: 0;
|
132
|
+
background-color: govuk-tint(govuk-colour("mid-grey"), 20%);
|
133
|
+
// Double the border by adding its width again. Use `box-shadow` for this
|
134
|
+
// instead of changing `border-width` - this is for consistency with
|
135
|
+
// components such as textarea where we avoid changing `border-width` as
|
136
|
+
// it will change the element size. Also, `outline` cannot be utilised
|
137
|
+
// here as it is already used for the yellow focus state.
|
138
|
+
box-shadow: inset 0 0 0 $govuk-border-width-form-element;
|
139
|
+
|
140
|
+
.govuk-file-upload-button__pseudo-button {
|
141
|
+
background-color: $govuk-focus-colour;
|
142
|
+
box-shadow: 0 2px 0 govuk-colour("black");
|
143
|
+
}
|
144
|
+
|
145
|
+
&:hover .govuk-file-upload-button__pseudo-button {
|
146
|
+
border-color: $govuk-focus-colour;
|
147
|
+
outline: 3px solid transparent;
|
148
|
+
background-color: govuk-colour("light-grey");
|
149
|
+
box-shadow: inset 0 0 0 1px $govuk-focus-colour;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
|
154
|
+
.govuk-file-upload-button--empty {
|
155
|
+
border-style: dashed;
|
156
|
+
background-color: $empty-button-background-colour;
|
157
|
+
|
158
|
+
.govuk-file-upload-button__pseudo-button {
|
159
|
+
background-color: $empty-pseudo-button-background-colour;
|
160
|
+
}
|
161
|
+
|
162
|
+
.govuk-file-upload-button__status {
|
163
|
+
color: govuk-shade(govuk-colour("blue"), 60%);
|
164
|
+
background-color: $empty-status-background-colour;
|
165
|
+
}
|
166
|
+
|
167
|
+
&:hover,
|
168
|
+
&:focus,
|
169
|
+
&:active {
|
170
|
+
background-color: govuk-colour("light-grey");
|
171
|
+
|
172
|
+
.govuk-file-upload-button__status {
|
173
|
+
background-color: govuk-tint(govuk-colour("blue"), 80%);
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|
177
|
+
|
178
|
+
.govuk-file-upload-button--dragging {
|
179
|
+
border-style: solid;
|
180
|
+
border-color: govuk-colour("black");
|
181
|
+
|
182
|
+
// extra specificity to apply when
|
183
|
+
// empty
|
184
|
+
&.govuk-file-upload-button {
|
185
|
+
background-color: govuk-tint(govuk-colour("mid-grey"), 20%);
|
186
|
+
}
|
187
|
+
|
188
|
+
&.govuk-file-upload-button--empty {
|
189
|
+
background-color: govuk-colour("light-grey");
|
190
|
+
}
|
191
|
+
|
192
|
+
&.govuk-file-upload-button--empty:not(:disabled) .govuk-file-upload-button__status,
|
193
|
+
&.govuk-file-upload-button--empty .govuk-file-upload-button__pseudo-button {
|
194
|
+
background-color: govuk-colour("white");
|
195
|
+
}
|
196
|
+
|
197
|
+
.govuk-file-upload-button__pseudo-button {
|
198
|
+
background-color: govuk-shade(govuk-colour("light-grey"), 10%);
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
.govuk-file-upload-button:disabled {
|
203
|
+
pointer-events: none;
|
204
|
+
opacity: 0.5;
|
205
|
+
|
206
|
+
background-color: $empty-button-background-colour;
|
207
|
+
|
208
|
+
.govuk-file-upload-button__pseudo-button {
|
209
|
+
background-color: $empty-pseudo-button-background-colour;
|
210
|
+
}
|
211
|
+
|
212
|
+
.govuk-file-upload-button__status {
|
213
|
+
background-color: $empty-status-background-colour;
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}
|
@@ -0,0 +1,192 @@
|
|
1
|
+
@include govuk-exports("govuk/component/footer") {
|
2
|
+
$govuk-footer-background: $govuk-template-background-colour;
|
3
|
+
$govuk-footer-text: $govuk-text-colour;
|
4
|
+
$govuk-footer-content-border: $govuk-border-colour;
|
5
|
+
|
6
|
+
// Royal Arms image dimensions
|
7
|
+
$govuk-footer-crest-image-width: 125px;
|
8
|
+
$govuk-footer-crest-image-height: 102px;
|
9
|
+
|
10
|
+
.govuk-footer {
|
11
|
+
@include govuk-font($size: if($govuk-new-typography-scale, 19, 16));
|
12
|
+
@include govuk-responsive-padding(7, "top");
|
13
|
+
@include govuk-responsive-padding(5, "bottom");
|
14
|
+
|
15
|
+
border-top: 10px solid $govuk-brand-colour;
|
16
|
+
color: $govuk-footer-text;
|
17
|
+
@include _govuk-rebrand(
|
18
|
+
"background",
|
19
|
+
$from: $govuk-footer-background,
|
20
|
+
$to: $_govuk-rebrand-template-background-colour
|
21
|
+
);
|
22
|
+
}
|
23
|
+
|
24
|
+
.govuk-footer__crown {
|
25
|
+
margin-bottom: govuk-spacing(5);
|
26
|
+
}
|
27
|
+
|
28
|
+
.govuk-footer__link {
|
29
|
+
@include govuk-link-common;
|
30
|
+
@include govuk-link-style-text;
|
31
|
+
}
|
32
|
+
|
33
|
+
.govuk-footer__section-break {
|
34
|
+
margin: 0; // Reset `<hr>` default margins
|
35
|
+
@include govuk-responsive-margin(8, "bottom");
|
36
|
+
border: 0; // Reset `<hr>` default borders
|
37
|
+
border-bottom: 1px solid;
|
38
|
+
@include _govuk-rebrand(
|
39
|
+
"border-bottom-color",
|
40
|
+
$from: $govuk-footer-content-border,
|
41
|
+
$to: $_govuk-rebrand-border-colour-on-blue-tint-95
|
42
|
+
);
|
43
|
+
}
|
44
|
+
|
45
|
+
.govuk-footer__meta {
|
46
|
+
display: flex; // Support: Flexbox
|
47
|
+
margin-right: -$govuk-gutter-half;
|
48
|
+
margin-left: -$govuk-gutter-half;
|
49
|
+
flex-wrap: wrap; // Support: Flexbox
|
50
|
+
align-items: flex-end; // Support: Flexbox
|
51
|
+
justify-content: center; // Support: Flexbox
|
52
|
+
}
|
53
|
+
|
54
|
+
.govuk-footer__meta-item {
|
55
|
+
margin-right: $govuk-gutter-half;
|
56
|
+
margin-bottom: govuk-spacing(5);
|
57
|
+
margin-left: $govuk-gutter-half;
|
58
|
+
}
|
59
|
+
|
60
|
+
.govuk-footer__meta-item--grow {
|
61
|
+
flex: 1; // Support: Flexbox
|
62
|
+
@include govuk-media-query($until: tablet) {
|
63
|
+
flex-basis: 320px; // Support: Flexbox
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
.govuk-footer__licence-logo {
|
68
|
+
display: inline-block;
|
69
|
+
margin-right: govuk-spacing(2);
|
70
|
+
@include govuk-media-query($until: desktop) {
|
71
|
+
margin-bottom: govuk-spacing(3);
|
72
|
+
}
|
73
|
+
vertical-align: top;
|
74
|
+
// Work around SVGs not inheriting color from parent in forced color mode
|
75
|
+
// (https://github.com/w3c/csswg-drafts/issues/6310)
|
76
|
+
forced-color-adjust: auto;
|
77
|
+
}
|
78
|
+
|
79
|
+
.govuk-footer__licence-description {
|
80
|
+
// This makes the license description reflow under the logo when space gets too narrow
|
81
|
+
display: inline-block;
|
82
|
+
// This prevents the description from having orphans when space is narrow enough
|
83
|
+
// and makes the text reflow more nicely
|
84
|
+
text-wrap: balance;
|
85
|
+
}
|
86
|
+
|
87
|
+
.govuk-footer__copyright-logo::before {
|
88
|
+
content: "";
|
89
|
+
display: block;
|
90
|
+
width: 100%;
|
91
|
+
padding-top: ($govuk-footer-crest-image-height + govuk-spacing(2));
|
92
|
+
background-image: govuk-image-url("govuk-crest.svg");
|
93
|
+
background-repeat: no-repeat;
|
94
|
+
background-position: 50% 0%;
|
95
|
+
background-size: $govuk-footer-crest-image-width $govuk-footer-crest-image-height;
|
96
|
+
text-align: center;
|
97
|
+
white-space: nowrap;
|
98
|
+
|
99
|
+
// Where possible use the crest as a mask instead. This lets us use
|
100
|
+
// currentColor, increasing the contrast of the image and matching the
|
101
|
+
// user's prefered foreground colour in e.g. forced colors mode.
|
102
|
+
// We test for `mask-position` rather than `mask-image` because of a false
|
103
|
+
// positive in Edge 17.
|
104
|
+
@supports ((-webkit-mask-position: initial) or (mask-position: initial)) {
|
105
|
+
background: currentcolor;
|
106
|
+
-webkit-mask-image: govuk-image-url("govuk-crest.svg");
|
107
|
+
mask-image: govuk-image-url("govuk-crest.svg");
|
108
|
+
-webkit-mask-repeat: no-repeat;
|
109
|
+
mask-repeat: no-repeat;
|
110
|
+
-webkit-mask-position: 50% 0%;
|
111
|
+
mask-position: 50% 0%;
|
112
|
+
-webkit-mask-size: $govuk-footer-crest-image-width $govuk-footer-crest-image-height;
|
113
|
+
mask-size: $govuk-footer-crest-image-width $govuk-footer-crest-image-height;
|
114
|
+
|
115
|
+
// currentcolor doesn't seem to be computed correctly in forced colors
|
116
|
+
// mode so force the background color to match the system link color
|
117
|
+
// (matching the text in the link)
|
118
|
+
@media screen and (forced-colors: active) {
|
119
|
+
background: linktext;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
.govuk-footer__inline-list {
|
125
|
+
margin-top: 0;
|
126
|
+
margin-bottom: govuk-spacing(3);
|
127
|
+
padding: 0;
|
128
|
+
}
|
129
|
+
|
130
|
+
.govuk-footer__meta-custom {
|
131
|
+
margin-bottom: govuk-spacing(4);
|
132
|
+
}
|
133
|
+
|
134
|
+
.govuk-footer__inline-list-item {
|
135
|
+
display: inline-block;
|
136
|
+
margin-right: govuk-spacing(3);
|
137
|
+
margin-bottom: govuk-spacing(1);
|
138
|
+
}
|
139
|
+
|
140
|
+
.govuk-footer__heading {
|
141
|
+
margin-bottom: govuk-spacing(6);
|
142
|
+
padding-bottom: govuk-spacing(4);
|
143
|
+
|
144
|
+
@include govuk-media-query($until: tablet) {
|
145
|
+
padding-bottom: govuk-spacing(2);
|
146
|
+
}
|
147
|
+
|
148
|
+
border-bottom: 1px solid;
|
149
|
+
@include _govuk-rebrand(
|
150
|
+
"border-bottom-color",
|
151
|
+
$from: $govuk-footer-content-border,
|
152
|
+
$to: $_govuk-rebrand-border-colour-on-blue-tint-95
|
153
|
+
);
|
154
|
+
}
|
155
|
+
|
156
|
+
.govuk-footer__navigation {
|
157
|
+
@include govuk-clearfix;
|
158
|
+
margin-right: -$govuk-gutter-half;
|
159
|
+
margin-left: -$govuk-gutter-half;
|
160
|
+
}
|
161
|
+
|
162
|
+
.govuk-footer__section {
|
163
|
+
display: inline-block;
|
164
|
+
margin-bottom: $govuk-gutter;
|
165
|
+
vertical-align: top;
|
166
|
+
}
|
167
|
+
|
168
|
+
.govuk-footer__list {
|
169
|
+
margin: 0;
|
170
|
+
padding: 0;
|
171
|
+
list-style: none;
|
172
|
+
column-gap: $govuk-gutter; // Support: Columns
|
173
|
+
}
|
174
|
+
|
175
|
+
@include govuk-media-query($from: desktop) {
|
176
|
+
.govuk-footer__list--columns-2 {
|
177
|
+
column-count: 2; // Support: Columns
|
178
|
+
}
|
179
|
+
|
180
|
+
.govuk-footer__list--columns-3 {
|
181
|
+
column-count: 3; // Support: Columns
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
.govuk-footer__list-item {
|
186
|
+
@include govuk-responsive-margin(4, "bottom");
|
187
|
+
}
|
188
|
+
|
189
|
+
.govuk-footer__list-item:last-child {
|
190
|
+
margin-bottom: 0;
|
191
|
+
}
|
192
|
+
}
|