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,166 @@
|
|
1
|
+
@import "../error-message/index";
|
2
|
+
@import "../hint/index";
|
3
|
+
@import "../label/index";
|
4
|
+
|
5
|
+
@include govuk-exports("govuk/component/input") {
|
6
|
+
.govuk-input {
|
7
|
+
@include govuk-font($size: 19);
|
8
|
+
|
9
|
+
box-sizing: border-box;
|
10
|
+
width: 100%;
|
11
|
+
height: govuk-px-to-rem(40px);
|
12
|
+
margin-top: 0;
|
13
|
+
padding: govuk-spacing(1);
|
14
|
+
// Setting any background-color makes text invisible when changing colours
|
15
|
+
// to dark backgrounds in Firefox (https://bugzil.la/1335476). As
|
16
|
+
// background-color and color need to always be set together, color should
|
17
|
+
// not be set either
|
18
|
+
border: $govuk-border-width-form-element solid $govuk-input-border-colour;
|
19
|
+
border-radius: 0;
|
20
|
+
|
21
|
+
// Disable inner shadow and remove rounded corners
|
22
|
+
-webkit-appearance: none;
|
23
|
+
appearance: none;
|
24
|
+
|
25
|
+
&:focus {
|
26
|
+
outline: $govuk-focus-width solid $govuk-focus-colour;
|
27
|
+
// Ensure outline appears outside of the element
|
28
|
+
outline-offset: 0;
|
29
|
+
// Double the border by adding its width again. Use `box-shadow` for this
|
30
|
+
// instead of changing `border-width` - this is for consistency with
|
31
|
+
// components such as textarea where we avoid changing `border-width` as
|
32
|
+
// it will change the element size. Also, `outline` cannot be utilised
|
33
|
+
// here as it is already used for the yellow focus state.
|
34
|
+
box-shadow: inset 0 0 0 $govuk-border-width-form-element;
|
35
|
+
}
|
36
|
+
|
37
|
+
&:disabled {
|
38
|
+
opacity: 0.5;
|
39
|
+
color: inherit;
|
40
|
+
background-color: transparent;
|
41
|
+
cursor: not-allowed;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.govuk-input::-webkit-outer-spin-button,
|
46
|
+
.govuk-input::-webkit-inner-spin-button {
|
47
|
+
margin: 0;
|
48
|
+
-webkit-appearance: none;
|
49
|
+
}
|
50
|
+
|
51
|
+
.govuk-input[type="number"] {
|
52
|
+
-moz-appearance: textfield;
|
53
|
+
}
|
54
|
+
|
55
|
+
.govuk-input--error {
|
56
|
+
border-color: $govuk-error-colour;
|
57
|
+
|
58
|
+
&:focus {
|
59
|
+
border-color: $govuk-input-border-colour;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
.govuk-input--extra-letter-spacing {
|
64
|
+
@include govuk-font-tabular-numbers;
|
65
|
+
letter-spacing: 0.05em;
|
66
|
+
}
|
67
|
+
|
68
|
+
// em measurements are based on the point size of the typeface
|
69
|
+
// Extra space is added on the right to allow for the Safari prefill icon
|
70
|
+
|
71
|
+
.govuk-input--width-30 {
|
72
|
+
max-width: 29.5em;
|
73
|
+
}
|
74
|
+
|
75
|
+
.govuk-input--width-20 {
|
76
|
+
max-width: 20.5em;
|
77
|
+
}
|
78
|
+
|
79
|
+
.govuk-input--width-10 {
|
80
|
+
max-width: 11.5em;
|
81
|
+
}
|
82
|
+
|
83
|
+
.govuk-input--width-5 {
|
84
|
+
max-width: 5.5em;
|
85
|
+
}
|
86
|
+
|
87
|
+
.govuk-input--width-4 {
|
88
|
+
max-width: 4.5em;
|
89
|
+
}
|
90
|
+
|
91
|
+
.govuk-input--width-3 {
|
92
|
+
max-width: 3.75em;
|
93
|
+
}
|
94
|
+
|
95
|
+
.govuk-input--width-2 {
|
96
|
+
max-width: 2.75em;
|
97
|
+
}
|
98
|
+
|
99
|
+
.govuk-input__wrapper {
|
100
|
+
display: flex;
|
101
|
+
|
102
|
+
.govuk-input {
|
103
|
+
flex: 0 1 auto;
|
104
|
+
}
|
105
|
+
|
106
|
+
.govuk-input:focus {
|
107
|
+
// Hack to stop focus style being overlapped by the suffix
|
108
|
+
z-index: 1;
|
109
|
+
}
|
110
|
+
|
111
|
+
// Split prefix/suffix onto separate lines on narrow screens
|
112
|
+
@include govuk-media-query($until: mobile) {
|
113
|
+
display: block;
|
114
|
+
|
115
|
+
.govuk-input {
|
116
|
+
// Set max-width to override potential width override class on the input
|
117
|
+
max-width: 100%;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
.govuk-input__prefix,
|
123
|
+
.govuk-input__suffix {
|
124
|
+
@include govuk-font($size: 19);
|
125
|
+
box-sizing: border-box;
|
126
|
+
// Use flexbox to align text within the prefix and suffix
|
127
|
+
display: flex;
|
128
|
+
align-items: center;
|
129
|
+
justify-content: center;
|
130
|
+
min-width: govuk-px-to-rem(40px);
|
131
|
+
height: govuk-px-to-rem(40px);
|
132
|
+
padding: govuk-spacing(1);
|
133
|
+
border: $govuk-border-width-form-element solid $govuk-input-border-colour;
|
134
|
+
background-color: govuk-colour("light-grey");
|
135
|
+
text-align: center;
|
136
|
+
white-space: nowrap;
|
137
|
+
// Emphasise non-editable status of prefixes and suffixes
|
138
|
+
cursor: default;
|
139
|
+
flex: 0 0 auto;
|
140
|
+
// Split prefix/suffix onto separate lines on narrow screens
|
141
|
+
@include govuk-media-query($until: mobile) {
|
142
|
+
display: block;
|
143
|
+
height: 100%;
|
144
|
+
white-space: normal;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
.govuk-input__prefix {
|
149
|
+
@include govuk-media-query($until: mobile) {
|
150
|
+
border-bottom: 0;
|
151
|
+
}
|
152
|
+
@include govuk-media-query($from: mobile) {
|
153
|
+
border-right: 0;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
// Split prefix/suffix onto separate lines on narrow screens
|
158
|
+
.govuk-input__suffix {
|
159
|
+
@include govuk-media-query($until: mobile) {
|
160
|
+
border-top: 0;
|
161
|
+
}
|
162
|
+
@include govuk-media-query($from: mobile) {
|
163
|
+
border-left: 0;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
}
|
data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/inset-text/_index.scss
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
@include govuk-exports("govuk/component/inset-text") {
|
2
|
+
.govuk-inset-text {
|
3
|
+
@include govuk-font($size: 19);
|
4
|
+
@include govuk-text-colour;
|
5
|
+
padding: govuk-spacing(3);
|
6
|
+
// Margin top intended to collapse
|
7
|
+
// This adds an additional 10px to the paragraph above
|
8
|
+
@include govuk-responsive-margin(6, "top");
|
9
|
+
@include govuk-responsive-margin(6, "bottom");
|
10
|
+
|
11
|
+
clear: both;
|
12
|
+
|
13
|
+
border-left: $govuk-border-width-wide solid $govuk-border-colour;
|
14
|
+
|
15
|
+
> :first-child {
|
16
|
+
margin-top: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
> :only-child,
|
20
|
+
> :last-child {
|
21
|
+
margin-bottom: 0;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
@include govuk-exports("govuk/component/label") {
|
2
|
+
.govuk-label {
|
3
|
+
@include govuk-font($size: 19);
|
4
|
+
@include govuk-text-colour;
|
5
|
+
|
6
|
+
display: block;
|
7
|
+
|
8
|
+
margin-bottom: govuk-spacing(1);
|
9
|
+
}
|
10
|
+
|
11
|
+
// Modifiers that make labels look more like their equivalent headings
|
12
|
+
.govuk-label--xl,
|
13
|
+
.govuk-label--l,
|
14
|
+
.govuk-label--m {
|
15
|
+
@include govuk-typography-weight-bold;
|
16
|
+
margin-bottom: govuk-spacing(3);
|
17
|
+
}
|
18
|
+
|
19
|
+
.govuk-label--xl {
|
20
|
+
@include govuk-font-size($size: 48);
|
21
|
+
}
|
22
|
+
|
23
|
+
.govuk-label--l {
|
24
|
+
@include govuk-font-size($size: 36);
|
25
|
+
}
|
26
|
+
|
27
|
+
.govuk-label--m {
|
28
|
+
@include govuk-font-size($size: 24);
|
29
|
+
}
|
30
|
+
|
31
|
+
.govuk-label--s {
|
32
|
+
@include govuk-typography-weight-bold;
|
33
|
+
}
|
34
|
+
|
35
|
+
// When the label is nested inside a heading, override the heading so that it
|
36
|
+
// does not have a margin. Effectively we want to be able to treat the heading
|
37
|
+
// as if it is not there.
|
38
|
+
//
|
39
|
+
// This breaks BEM conventions because it exists as a parent of the 'block',
|
40
|
+
// so we can't really consider an element.
|
41
|
+
.govuk-label-wrapper {
|
42
|
+
margin: 0;
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
@include govuk-exports("govuk/component/notification-banner") {
|
2
|
+
.govuk-notification-banner {
|
3
|
+
@include govuk-font($size: 19);
|
4
|
+
@include govuk-responsive-margin(8, "bottom");
|
5
|
+
|
6
|
+
border: $govuk-border-width solid $govuk-brand-colour;
|
7
|
+
|
8
|
+
background-color: $govuk-brand-colour;
|
9
|
+
|
10
|
+
&:focus {
|
11
|
+
outline: $govuk-focus-width solid $govuk-focus-colour;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.govuk-notification-banner__header {
|
16
|
+
padding: 2px govuk-spacing(3) govuk-spacing(1);
|
17
|
+
|
18
|
+
// Ensures the notification header appears separate to the notification body
|
19
|
+
// text in high contrast mode
|
20
|
+
border-bottom: 1px solid transparent;
|
21
|
+
|
22
|
+
@include govuk-media-query($from: tablet) {
|
23
|
+
padding: 2px govuk-spacing(4) govuk-spacing(1);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.govuk-notification-banner__title {
|
28
|
+
// Set the size again because this element is a heading and the user agent
|
29
|
+
// font size overrides the inherited font size
|
30
|
+
@include govuk-font-size($size: 19);
|
31
|
+
@include govuk-typography-weight-bold;
|
32
|
+
margin: 0;
|
33
|
+
padding: 0;
|
34
|
+
color: govuk-colour("white");
|
35
|
+
}
|
36
|
+
|
37
|
+
.govuk-notification-banner__content {
|
38
|
+
$padding-tablet: govuk-spacing(4);
|
39
|
+
@include govuk-text-colour;
|
40
|
+
padding: govuk-spacing(3);
|
41
|
+
|
42
|
+
background-color: $govuk-body-background-colour;
|
43
|
+
|
44
|
+
@include govuk-media-query($from: tablet) {
|
45
|
+
padding: $padding-tablet;
|
46
|
+
}
|
47
|
+
|
48
|
+
// Wrap content at the same place that a 2/3 grid column ends, to maintain
|
49
|
+
// shorter line-lengths when the notification banner is full width
|
50
|
+
> * {
|
51
|
+
// When elements have their own padding (like lists), include the padding
|
52
|
+
// in the max-width calculation
|
53
|
+
box-sizing: border-box;
|
54
|
+
|
55
|
+
// Calculate the internal width of a two-thirds column...
|
56
|
+
$two-col-width: ($govuk-page-width * 2 / 3) - ($govuk-gutter * 1 / 3);
|
57
|
+
|
58
|
+
// ...and then factor in the left border and padding
|
59
|
+
$banner-exterior: ($padding-tablet + $govuk-border-width);
|
60
|
+
max-width: $two-col-width - $banner-exterior;
|
61
|
+
}
|
62
|
+
|
63
|
+
> :last-child {
|
64
|
+
margin-bottom: 0;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
.govuk-notification-banner__heading {
|
69
|
+
@include govuk-font-size($size: 24);
|
70
|
+
@include govuk-typography-weight-bold;
|
71
|
+
|
72
|
+
margin: 0 0 govuk-spacing(3);
|
73
|
+
|
74
|
+
padding: 0;
|
75
|
+
}
|
76
|
+
|
77
|
+
.govuk-notification-banner__link {
|
78
|
+
@include govuk-link-common;
|
79
|
+
@include govuk-link-style-no-visited-state;
|
80
|
+
}
|
81
|
+
|
82
|
+
.govuk-notification-banner--success {
|
83
|
+
border-color: $govuk-success-colour;
|
84
|
+
|
85
|
+
background-color: $govuk-success-colour;
|
86
|
+
|
87
|
+
.govuk-notification-banner__link {
|
88
|
+
@include govuk-link-style-success;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/pagination/_index.scss
ADDED
@@ -0,0 +1,226 @@
|
|
1
|
+
@include govuk-exports("govuk/component/pagination") {
|
2
|
+
// Flexbox enhancement for small screen visual design
|
3
|
+
// Falls back to a float: left layout on non-flex browsers
|
4
|
+
.govuk-pagination {
|
5
|
+
@include govuk-responsive-margin(6, "bottom");
|
6
|
+
display: flex;
|
7
|
+
flex-direction: column;
|
8
|
+
align-items: center;
|
9
|
+
flex-wrap: wrap;
|
10
|
+
|
11
|
+
@include govuk-media-query($from: tablet) {
|
12
|
+
flex-direction: row;
|
13
|
+
align-items: flex-start;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.govuk-pagination__list {
|
18
|
+
margin: 0;
|
19
|
+
padding: 0;
|
20
|
+
list-style: none;
|
21
|
+
}
|
22
|
+
|
23
|
+
.govuk-pagination__item,
|
24
|
+
.govuk-pagination__next,
|
25
|
+
.govuk-pagination__prev {
|
26
|
+
@include govuk-font(19);
|
27
|
+
box-sizing: border-box;
|
28
|
+
position: relative;
|
29
|
+
min-width: 45px;
|
30
|
+
min-height: 45px;
|
31
|
+
padding: govuk-spacing(2) govuk-spacing(3);
|
32
|
+
float: left; // Float is ignored if flex is active for prev/next links
|
33
|
+
|
34
|
+
&:hover {
|
35
|
+
background-color: govuk-colour("light-grey");
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.govuk-pagination__item {
|
40
|
+
// Hide items on small screens except the prev/next items,
|
41
|
+
// non-link items and the first and last items
|
42
|
+
display: none;
|
43
|
+
|
44
|
+
// Center align pagination links in their parent list item so that they
|
45
|
+
// visually sit in the middle of their touch area
|
46
|
+
text-align: center;
|
47
|
+
|
48
|
+
@include govuk-media-query($from: tablet) {
|
49
|
+
display: block;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
.govuk-pagination__prev,
|
54
|
+
.govuk-pagination__next {
|
55
|
+
@include govuk-typography-weight-bold;
|
56
|
+
|
57
|
+
// Use flex to avoid extra space being introduced when whitespace exists
|
58
|
+
// between the arrow svg and the link text
|
59
|
+
.govuk-pagination__link {
|
60
|
+
display: flex;
|
61
|
+
align-items: center;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
.govuk-pagination__prev {
|
66
|
+
padding-left: 0;
|
67
|
+
}
|
68
|
+
|
69
|
+
.govuk-pagination__next {
|
70
|
+
padding-right: 0;
|
71
|
+
}
|
72
|
+
|
73
|
+
// Only show first, last and non-link items on mobile
|
74
|
+
.govuk-pagination__item--current,
|
75
|
+
.govuk-pagination__item--ellipses,
|
76
|
+
.govuk-pagination__item:first-child,
|
77
|
+
.govuk-pagination__item:last-child {
|
78
|
+
display: block;
|
79
|
+
}
|
80
|
+
|
81
|
+
.govuk-pagination__item--current {
|
82
|
+
@include govuk-typography-weight-bold;
|
83
|
+
outline: 1px solid transparent;
|
84
|
+
background-color: $govuk-link-colour;
|
85
|
+
|
86
|
+
&:hover {
|
87
|
+
background-color: $govuk-link-colour;
|
88
|
+
}
|
89
|
+
|
90
|
+
.govuk-pagination__link {
|
91
|
+
@include govuk-link-style-inverse;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
.govuk-pagination__item--ellipses {
|
96
|
+
@include govuk-typography-weight-bold;
|
97
|
+
color: $govuk-secondary-text-colour;
|
98
|
+
|
99
|
+
// Remove hover state for ellipsis items as they don't contain links
|
100
|
+
&:hover {
|
101
|
+
background-color: transparent;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
.govuk-pagination__link {
|
106
|
+
display: block;
|
107
|
+
min-width: govuk-spacing(3);
|
108
|
+
|
109
|
+
// Increase the touch area for the link to the parent element.
|
110
|
+
@media screen {
|
111
|
+
&::after {
|
112
|
+
content: "";
|
113
|
+
position: absolute;
|
114
|
+
top: 0;
|
115
|
+
right: 0;
|
116
|
+
bottom: 0;
|
117
|
+
left: 0;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
// Add link hover decoration to prev/next text if no label present on
|
122
|
+
// prev/next only mode, so that we have a hover state in all cases
|
123
|
+
&:hover,
|
124
|
+
&:active {
|
125
|
+
.govuk-pagination__link-title--decorated {
|
126
|
+
@include govuk-link-decoration;
|
127
|
+
}
|
128
|
+
|
129
|
+
.govuk-pagination__link-label,
|
130
|
+
.govuk-pagination__link-title--decorated {
|
131
|
+
@include govuk-link-hover-decoration;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
&:focus {
|
136
|
+
.govuk-pagination__icon {
|
137
|
+
color: $govuk-focus-text-colour;
|
138
|
+
}
|
139
|
+
|
140
|
+
.govuk-pagination__link-label {
|
141
|
+
text-decoration: none;
|
142
|
+
}
|
143
|
+
|
144
|
+
.govuk-pagination__link-title--decorated {
|
145
|
+
text-decoration: none;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
.govuk-pagination__link-label {
|
151
|
+
@include govuk-typography-weight-regular;
|
152
|
+
@include govuk-link-decoration;
|
153
|
+
display: inline-block;
|
154
|
+
}
|
155
|
+
|
156
|
+
.govuk-pagination__icon {
|
157
|
+
// Set size using rems to make the icon scale with text
|
158
|
+
width: govuk-px-to-rem(15px);
|
159
|
+
height: govuk-px-to-rem(13px);
|
160
|
+
color: $govuk-secondary-text-colour;
|
161
|
+
fill: currentcolor;
|
162
|
+
forced-color-adjust: auto;
|
163
|
+
}
|
164
|
+
|
165
|
+
.govuk-pagination__icon--prev {
|
166
|
+
margin-right: govuk-spacing(3);
|
167
|
+
}
|
168
|
+
|
169
|
+
.govuk-pagination__icon--next {
|
170
|
+
margin-left: govuk-spacing(3);
|
171
|
+
}
|
172
|
+
|
173
|
+
// Block mode - position previous and next links above and below numbers
|
174
|
+
.govuk-pagination--block {
|
175
|
+
display: block;
|
176
|
+
|
177
|
+
.govuk-pagination__next,
|
178
|
+
.govuk-pagination__prev {
|
179
|
+
padding-left: 0;
|
180
|
+
float: none;
|
181
|
+
|
182
|
+
.govuk-pagination__link {
|
183
|
+
display: inline-block;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
187
|
+
.govuk-pagination__next {
|
188
|
+
padding-right: govuk-spacing(3);
|
189
|
+
}
|
190
|
+
|
191
|
+
// Only apply a border between prev and next if both are present
|
192
|
+
.govuk-pagination__prev + .govuk-pagination__next {
|
193
|
+
border-top: 1px solid $govuk-border-colour;
|
194
|
+
}
|
195
|
+
|
196
|
+
// Set the after pseudo element to a block which makes the title visually
|
197
|
+
// display as block level whilst programmatically being inline. We do this
|
198
|
+
// to get around an NVDA quirk where adjacent block level elements are
|
199
|
+
// always read out separately
|
200
|
+
.govuk-pagination__link-title::after {
|
201
|
+
content: "";
|
202
|
+
display: block;
|
203
|
+
}
|
204
|
+
|
205
|
+
.govuk-pagination__link {
|
206
|
+
padding-left: govuk-spacing(6);
|
207
|
+
text-align: left;
|
208
|
+
|
209
|
+
&:not(:focus) {
|
210
|
+
text-decoration: none;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
.govuk-pagination__icon {
|
215
|
+
// This magic number is brought to you by the following equation:
|
216
|
+
// ((lineHeight − arrowHeight) ÷ 2) ÷ fontSize
|
217
|
+
// ((25 − 13) ÷ 2) ÷ 19 = 0.326em
|
218
|
+
//
|
219
|
+
// This could have been done programmatically but we don't have functions
|
220
|
+
// for grabbing the line-height of specific typography sizes just yet.
|
221
|
+
margin-top: 0.326em;
|
222
|
+
margin-left: govuk-spacing(6) * -1;
|
223
|
+
float: left;
|
224
|
+
}
|
225
|
+
}
|
226
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
@include govuk-exports("govuk/component/panel") {
|
2
|
+
.govuk-panel {
|
3
|
+
@include govuk-font($size: 36);
|
4
|
+
|
5
|
+
box-sizing: border-box;
|
6
|
+
|
7
|
+
margin-bottom: govuk-spacing(3);
|
8
|
+
padding: govuk-spacing(7) - $govuk-border-width;
|
9
|
+
|
10
|
+
border: $govuk-border-width solid transparent;
|
11
|
+
|
12
|
+
text-align: center;
|
13
|
+
|
14
|
+
@include govuk-media-query($until: tablet) {
|
15
|
+
padding: govuk-spacing(if($govuk-new-typography-scale, 4, 3)) - $govuk-border-width;
|
16
|
+
|
17
|
+
// This is an if-all-else-fails attempt to stop long words from
|
18
|
+
// overflowing the container on very narrow viewports by forcing them to
|
19
|
+
// break and wrap instead. This overflowing is more likely to happen when
|
20
|
+
// user increases text size on a mobile eg. using iOS Safari text resize
|
21
|
+
// controls.
|
22
|
+
//
|
23
|
+
// The overflowing is a particular problem with the panel component since
|
24
|
+
// it uses white text: when the text overflows the container, it is
|
25
|
+
// invisible on the white (page) background. When the text in our other
|
26
|
+
// components overflow, the user might have to scroll horizontally to view
|
27
|
+
// it but the the text remains legible.
|
28
|
+
overflow-wrap: break-word;
|
29
|
+
|
30
|
+
// Support IE (autoprefixer doesn't add this as it's not a prefix)
|
31
|
+
word-wrap: break-word;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.govuk-panel--confirmation {
|
36
|
+
color: govuk-colour("white");
|
37
|
+
background: govuk-colour("green");
|
38
|
+
|
39
|
+
@include govuk-media-query($media-type: print) {
|
40
|
+
border-color: currentcolor;
|
41
|
+
color: $govuk-print-text-colour;
|
42
|
+
background: none;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.govuk-panel__title {
|
47
|
+
@include govuk-font-size($size: 48);
|
48
|
+
@include govuk-typography-weight-bold;
|
49
|
+
margin-top: 0;
|
50
|
+
margin-bottom: govuk-spacing(6);
|
51
|
+
}
|
52
|
+
|
53
|
+
.govuk-panel__title:last-child {
|
54
|
+
margin-bottom: 0;
|
55
|
+
}
|
56
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
@import "../button/index";
|
2
|
+
@import "../input/index";
|
3
|
+
|
4
|
+
@include govuk-exports("govuk/component/password-input") {
|
5
|
+
.govuk-password-input__wrapper {
|
6
|
+
// This element inherits styles from .govuk-input__wrapper, including:
|
7
|
+
// - being display: block with contents in a stacked column below the mobile
|
8
|
+
// breakpoint
|
9
|
+
// - being display: flex above the mobile breakpoint
|
10
|
+
|
11
|
+
@include govuk-media-query($from: mobile) {
|
12
|
+
flex-direction: row;
|
13
|
+
|
14
|
+
// The default of `stretch` makes the toggle button appear taller than the
|
15
|
+
// input, due to using box-shadow, which we don't particularly want in
|
16
|
+
// this situation
|
17
|
+
align-items: flex-start;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.govuk-password-input__input {
|
22
|
+
// IE 11 and Microsoft Edge comes with its own password reveal function. We
|
23
|
+
// want to hide it, so that there aren't two controls presented to the user
|
24
|
+
// that do the same thing but aren't in sync with one another. This doesn't
|
25
|
+
// affect the function that allows Edge users to toggle password visibility
|
26
|
+
// by pressing Alt+F8, which cannot be programmatically disabled.
|
27
|
+
&::-ms-reveal {
|
28
|
+
display: none;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.govuk-password-input__toggle {
|
33
|
+
// Add top margin so the button doesn't obscure the input's focus style
|
34
|
+
margin-top: govuk-spacing(1);
|
35
|
+
|
36
|
+
// Remove default margin-bottom from button
|
37
|
+
margin-bottom: 0;
|
38
|
+
|
39
|
+
// Hide the button by default, JS removes this attribute
|
40
|
+
&[hidden] {
|
41
|
+
display: none;
|
42
|
+
}
|
43
|
+
|
44
|
+
@include govuk-media-query($from: mobile) {
|
45
|
+
// Buttons are normally 100% wide on mobile, but we don't want that here
|
46
|
+
width: auto;
|
47
|
+
flex-shrink: 0;
|
48
|
+
flex-basis: 5em;
|
49
|
+
|
50
|
+
// Move the spacing from top to the left
|
51
|
+
margin-top: 0;
|
52
|
+
margin-left: govuk-spacing(1);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|