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,105 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/layout
|
3
|
+
////
|
4
|
+
|
5
|
+
// =========================================================
|
6
|
+
// Page layout
|
7
|
+
// =========================================================
|
8
|
+
|
9
|
+
/// Width of main container
|
10
|
+
///
|
11
|
+
/// @type Number
|
12
|
+
/// @access public
|
13
|
+
|
14
|
+
$govuk-page-width: 960px !default;
|
15
|
+
|
16
|
+
/// Map of grid column widths
|
17
|
+
///
|
18
|
+
/// @type Map
|
19
|
+
/// @access public
|
20
|
+
|
21
|
+
$govuk-grid-widths: (
|
22
|
+
one-quarter: (
|
23
|
+
100% / 4
|
24
|
+
),
|
25
|
+
one-third: (
|
26
|
+
100% / 3
|
27
|
+
),
|
28
|
+
one-half: (
|
29
|
+
100% / 2
|
30
|
+
),
|
31
|
+
two-thirds: (
|
32
|
+
200% / 3
|
33
|
+
),
|
34
|
+
three-quarters: (
|
35
|
+
300% / 4
|
36
|
+
),
|
37
|
+
full: 100%
|
38
|
+
) !default;
|
39
|
+
|
40
|
+
/// Width of gutter between grid columns
|
41
|
+
///
|
42
|
+
/// @type Number
|
43
|
+
/// @access public
|
44
|
+
|
45
|
+
$govuk-gutter: 30px !default;
|
46
|
+
|
47
|
+
/// Width of half the gutter between grid columns
|
48
|
+
///
|
49
|
+
/// @type Number
|
50
|
+
/// @access public
|
51
|
+
|
52
|
+
$govuk-gutter-half: $govuk-gutter / 2;
|
53
|
+
|
54
|
+
// =========================================================
|
55
|
+
// Borders
|
56
|
+
// =========================================================
|
57
|
+
|
58
|
+
/// Standard border width
|
59
|
+
///
|
60
|
+
/// @type Number
|
61
|
+
/// @access public
|
62
|
+
|
63
|
+
$govuk-border-width: 5px !default;
|
64
|
+
|
65
|
+
/// Wide border width
|
66
|
+
///
|
67
|
+
/// @type Number
|
68
|
+
/// @access public
|
69
|
+
|
70
|
+
$govuk-border-width-wide: 10px !default;
|
71
|
+
|
72
|
+
/// Narrow border width
|
73
|
+
///
|
74
|
+
/// @type Number
|
75
|
+
/// @access public
|
76
|
+
|
77
|
+
$govuk-border-width-narrow: 4px !default;
|
78
|
+
|
79
|
+
/// Form control border width
|
80
|
+
///
|
81
|
+
/// @type Number
|
82
|
+
/// @access public
|
83
|
+
|
84
|
+
$govuk-border-width-form-element: 2px !default;
|
85
|
+
|
86
|
+
/// Form group border width when in error state
|
87
|
+
///
|
88
|
+
/// @type Number
|
89
|
+
/// @access public
|
90
|
+
|
91
|
+
$govuk-border-width-form-group-error: $govuk-border-width !default;
|
92
|
+
|
93
|
+
/// Border width of focus outline
|
94
|
+
///
|
95
|
+
/// @type Number
|
96
|
+
/// @access public
|
97
|
+
|
98
|
+
$govuk-focus-width: 3px !default;
|
99
|
+
|
100
|
+
/// Hover width for form controls with a hover state
|
101
|
+
///
|
102
|
+
/// @type Number
|
103
|
+
/// @access public
|
104
|
+
|
105
|
+
$govuk-hover-width: 10px !default;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/layout
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Breakpoint definitions
|
6
|
+
///
|
7
|
+
/// @type Map
|
8
|
+
/// @access public
|
9
|
+
|
10
|
+
$govuk-breakpoints: (
|
11
|
+
mobile: 320px,
|
12
|
+
tablet: 641px,
|
13
|
+
desktop: 769px
|
14
|
+
) !default;
|
15
|
+
|
16
|
+
/// Show active breakpoint in top-right corner.
|
17
|
+
///
|
18
|
+
/// Only use this during local development.
|
19
|
+
///
|
20
|
+
/// @type Boolean
|
21
|
+
/// @access public
|
22
|
+
|
23
|
+
$govuk-show-breakpoints: false !default;
|
@@ -0,0 +1,76 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/spacing
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Single point spacing variables. Access using `govuk-spacing()`
|
6
|
+
/// (see `helpers/spacing`).
|
7
|
+
///
|
8
|
+
/// @type Map
|
9
|
+
/// @access private
|
10
|
+
|
11
|
+
$govuk-spacing-points: (
|
12
|
+
0: 0,
|
13
|
+
1: 5px,
|
14
|
+
2: 10px,
|
15
|
+
3: 15px,
|
16
|
+
4: 20px,
|
17
|
+
5: 25px,
|
18
|
+
6: 30px,
|
19
|
+
7: 40px,
|
20
|
+
8: 50px,
|
21
|
+
9: 60px
|
22
|
+
) !default;
|
23
|
+
|
24
|
+
/// Responsive spacing maps
|
25
|
+
///
|
26
|
+
/// These definitions are used to generate responsive spacing that adapts
|
27
|
+
/// according to the breakpoints (see 'helpers/spacing'). These maps should be
|
28
|
+
/// used wherever possible to standardise responsive spacing.
|
29
|
+
///
|
30
|
+
/// You can define different behaviour on tablet and desktop. The 'null'
|
31
|
+
/// breakpoint is for mobile.
|
32
|
+
///
|
33
|
+
/// Access responsive spacing with `govuk-responsive-margin` or
|
34
|
+
/// `govuk-responsive-padding` mixins (see `helpers/spacing`).
|
35
|
+
///
|
36
|
+
/// @type Map
|
37
|
+
/// @access private
|
38
|
+
|
39
|
+
$govuk-spacing-responsive-scale: (
|
40
|
+
0: (
|
41
|
+
null: 0
|
42
|
+
),
|
43
|
+
1: (
|
44
|
+
null: 5px
|
45
|
+
),
|
46
|
+
2: (
|
47
|
+
null: 10px
|
48
|
+
),
|
49
|
+
3: (
|
50
|
+
null: 15px
|
51
|
+
),
|
52
|
+
4: (
|
53
|
+
null: 15px,
|
54
|
+
tablet: 20px
|
55
|
+
),
|
56
|
+
5: (
|
57
|
+
null: 15px,
|
58
|
+
tablet: 25px
|
59
|
+
),
|
60
|
+
6: (
|
61
|
+
null: 20px,
|
62
|
+
tablet: 30px
|
63
|
+
),
|
64
|
+
7: (
|
65
|
+
null: 25px,
|
66
|
+
tablet: 40px
|
67
|
+
),
|
68
|
+
8: (
|
69
|
+
null: 30px,
|
70
|
+
tablet: 50px
|
71
|
+
),
|
72
|
+
9: (
|
73
|
+
null: 40px,
|
74
|
+
tablet: 60px
|
75
|
+
)
|
76
|
+
) !default;
|
data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_typography-font.scss
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/typography
|
3
|
+
////
|
4
|
+
|
5
|
+
// =========================================================
|
6
|
+
// Font families
|
7
|
+
// =========================================================
|
8
|
+
|
9
|
+
/// Font families to use for all typography on screen media
|
10
|
+
///
|
11
|
+
/// @type List
|
12
|
+
/// @access public
|
13
|
+
|
14
|
+
$govuk-font-family: "GDS Transport", arial, sans-serif !default;
|
15
|
+
|
16
|
+
/// Font families to use for print media
|
17
|
+
///
|
18
|
+
/// We recommend that you use system fonts when printing. This will avoid issues
|
19
|
+
/// with some printer drivers and operating systems.
|
20
|
+
///
|
21
|
+
/// @type List
|
22
|
+
/// @access public
|
23
|
+
|
24
|
+
$govuk-font-family-print: sans-serif !default;
|
25
|
+
|
26
|
+
/// Include the default @font-face declarations
|
27
|
+
///
|
28
|
+
/// Defaults to true if "GDS Transport" appears in the $govuk-font-family
|
29
|
+
/// setting.
|
30
|
+
///
|
31
|
+
/// @type Boolean
|
32
|
+
/// @access public
|
33
|
+
|
34
|
+
$govuk-include-default-font-face: if(index($govuk-font-family, "GDS Transport"), true, false) !default;
|
35
|
+
|
36
|
+
// =========================================================
|
37
|
+
// Font weights
|
38
|
+
// =========================================================
|
39
|
+
|
40
|
+
/// Font weight for regular typography
|
41
|
+
///
|
42
|
+
/// @type Number
|
43
|
+
/// @access public
|
44
|
+
$govuk-font-weight-regular: 400 !default;
|
45
|
+
|
46
|
+
/// Font weight for bold typography
|
47
|
+
///
|
48
|
+
/// @type Number
|
49
|
+
/// @access public
|
50
|
+
$govuk-font-weight-bold: 700 !default;
|
data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/settings/_typography-responsive.scss
ADDED
@@ -0,0 +1,315 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/typography
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Root font size
|
6
|
+
///
|
7
|
+
/// This is used to calculate rem sizes for the typography, and should match the
|
8
|
+
/// _effective_ font-size of your root (or html) element.
|
9
|
+
///
|
10
|
+
/// Ideally you should not be setting the font-size on the html or root element
|
11
|
+
/// in order to allow it to scale with user-preference, in which case this
|
12
|
+
/// should be set to 16px.
|
13
|
+
///
|
14
|
+
/// @type Number
|
15
|
+
/// @access public
|
16
|
+
|
17
|
+
$govuk-root-font-size: 16px !default;
|
18
|
+
|
19
|
+
/// Feature flag for new typography scale
|
20
|
+
///
|
21
|
+
/// When set to true, $govuk-typography-scale will use the new font map instead
|
22
|
+
/// of the current/old one as well as apply changes in components to account
|
23
|
+
/// for the updated scale.
|
24
|
+
///
|
25
|
+
/// Should be removed in 6.0.
|
26
|
+
///
|
27
|
+
/// @type Boolean
|
28
|
+
/// @access public
|
29
|
+
|
30
|
+
$govuk-new-typography-scale: false !default;
|
31
|
+
|
32
|
+
/// The font map for the old typography scale
|
33
|
+
///
|
34
|
+
/// @type Map
|
35
|
+
///
|
36
|
+
/// @prop {Number} $point.$breakpoint.font-size - Font size for `$point` at `$breakpoint`
|
37
|
+
/// @prop {Number} $point.$breakpoint.line-height - Line height for `$point` at `$breakpoint`
|
38
|
+
/// @prop {Number} $point.print.font-size - Font size for `$point` when printing
|
39
|
+
/// @prop {Number} $point.print.line-height - Line height for `$point` when printing
|
40
|
+
///
|
41
|
+
/// @access private
|
42
|
+
|
43
|
+
$_govuk-typography-scale-legacy: (
|
44
|
+
80: (
|
45
|
+
null: (
|
46
|
+
font-size: 53px,
|
47
|
+
line-height: 55px
|
48
|
+
),
|
49
|
+
tablet: (
|
50
|
+
font-size: 80px,
|
51
|
+
line-height: 80px
|
52
|
+
),
|
53
|
+
print: (
|
54
|
+
font-size: 53pt,
|
55
|
+
line-height: 1.1
|
56
|
+
)
|
57
|
+
),
|
58
|
+
48: (
|
59
|
+
null: (
|
60
|
+
font-size: 32px,
|
61
|
+
line-height: 35px
|
62
|
+
),
|
63
|
+
tablet: (
|
64
|
+
font-size: 48px,
|
65
|
+
line-height: 50px
|
66
|
+
),
|
67
|
+
print: (
|
68
|
+
font-size: 32pt,
|
69
|
+
line-height: 1.15
|
70
|
+
)
|
71
|
+
),
|
72
|
+
36: (
|
73
|
+
null: (
|
74
|
+
font-size: 24px,
|
75
|
+
line-height: 25px
|
76
|
+
),
|
77
|
+
tablet: (
|
78
|
+
font-size: 36px,
|
79
|
+
line-height: 40px
|
80
|
+
),
|
81
|
+
print: (
|
82
|
+
font-size: 24pt,
|
83
|
+
line-height: 1.05
|
84
|
+
)
|
85
|
+
),
|
86
|
+
27: (
|
87
|
+
null: (
|
88
|
+
font-size: 18px,
|
89
|
+
line-height: 20px
|
90
|
+
),
|
91
|
+
tablet: (
|
92
|
+
font-size: 27px,
|
93
|
+
line-height: 30px
|
94
|
+
),
|
95
|
+
print: (
|
96
|
+
font-size: 18pt,
|
97
|
+
line-height: 1.15
|
98
|
+
)
|
99
|
+
),
|
100
|
+
24: (
|
101
|
+
null: (
|
102
|
+
font-size: 18px,
|
103
|
+
line-height: 20px
|
104
|
+
),
|
105
|
+
tablet: (
|
106
|
+
font-size: 24px,
|
107
|
+
line-height: 30px
|
108
|
+
),
|
109
|
+
print: (
|
110
|
+
font-size: 18pt,
|
111
|
+
line-height: 1.15
|
112
|
+
)
|
113
|
+
),
|
114
|
+
19: (
|
115
|
+
null: (
|
116
|
+
font-size: 16px,
|
117
|
+
line-height: 20px
|
118
|
+
),
|
119
|
+
tablet: (
|
120
|
+
font-size: 19px,
|
121
|
+
line-height: 25px
|
122
|
+
),
|
123
|
+
print: (
|
124
|
+
font-size: 14pt,
|
125
|
+
line-height: 1.15
|
126
|
+
)
|
127
|
+
),
|
128
|
+
16: (
|
129
|
+
null: (
|
130
|
+
font-size: 14px,
|
131
|
+
line-height: 16px
|
132
|
+
),
|
133
|
+
tablet: (
|
134
|
+
font-size: 16px,
|
135
|
+
line-height: 20px
|
136
|
+
),
|
137
|
+
print: (
|
138
|
+
font-size: 14pt,
|
139
|
+
line-height: 1.2
|
140
|
+
)
|
141
|
+
),
|
142
|
+
14: (
|
143
|
+
null: (
|
144
|
+
font-size: 12px,
|
145
|
+
line-height: 15px
|
146
|
+
),
|
147
|
+
tablet: (
|
148
|
+
font-size: 14px,
|
149
|
+
line-height: 20px
|
150
|
+
),
|
151
|
+
print: (
|
152
|
+
font-size: 12pt,
|
153
|
+
line-height: 1.2
|
154
|
+
),
|
155
|
+
deprecation: (
|
156
|
+
key: "govuk-typography-scale-14",
|
157
|
+
message: "14 on the type scale is deprecated and will be removed as " +
|
158
|
+
"a possible option in the next major version."
|
159
|
+
)
|
160
|
+
)
|
161
|
+
);
|
162
|
+
|
163
|
+
/// The font map for the new typography scale
|
164
|
+
///
|
165
|
+
/// @type Map
|
166
|
+
///
|
167
|
+
/// @prop {Number} $point.$breakpoint.font-size - Font size for `$point` at `$breakpoint`
|
168
|
+
/// @prop {Number} $point.$breakpoint.line-height - Line height for `$point` at `$breakpoint`
|
169
|
+
/// @prop {Number} $point.print.font-size - Font size for `$point` when printing
|
170
|
+
/// @prop {Number} $point.print.line-height - Line height for `$point` when printing
|
171
|
+
///
|
172
|
+
/// @access private
|
173
|
+
|
174
|
+
$_govuk-typography-scale-modern: (
|
175
|
+
80: (
|
176
|
+
null: (
|
177
|
+
font-size: 53px,
|
178
|
+
line-height: 55px
|
179
|
+
),
|
180
|
+
tablet: (
|
181
|
+
font-size: 80px,
|
182
|
+
line-height: 80px
|
183
|
+
),
|
184
|
+
print: (
|
185
|
+
font-size: 53pt,
|
186
|
+
line-height: 1.1
|
187
|
+
)
|
188
|
+
),
|
189
|
+
48: (
|
190
|
+
null: (
|
191
|
+
font-size: 32px,
|
192
|
+
line-height: 35px
|
193
|
+
),
|
194
|
+
tablet: (
|
195
|
+
font-size: 48px,
|
196
|
+
line-height: 50px
|
197
|
+
),
|
198
|
+
print: (
|
199
|
+
font-size: 32pt,
|
200
|
+
line-height: 1.15
|
201
|
+
)
|
202
|
+
),
|
203
|
+
36: (
|
204
|
+
null: (
|
205
|
+
font-size: 27px,
|
206
|
+
line-height: 30px
|
207
|
+
),
|
208
|
+
tablet: (
|
209
|
+
font-size: 36px,
|
210
|
+
line-height: 40px
|
211
|
+
),
|
212
|
+
print: (
|
213
|
+
font-size: 24pt,
|
214
|
+
line-height: 1.05
|
215
|
+
)
|
216
|
+
),
|
217
|
+
27: (
|
218
|
+
// Made same as 24 on mobile (consider deprecating this size)
|
219
|
+
null: (
|
220
|
+
font-size: 21px,
|
221
|
+
line-height: 25px
|
222
|
+
),
|
223
|
+
tablet: (
|
224
|
+
font-size: 27px,
|
225
|
+
line-height: 30px
|
226
|
+
),
|
227
|
+
print: (
|
228
|
+
font-size: 18pt,
|
229
|
+
line-height: 1.15
|
230
|
+
)
|
231
|
+
),
|
232
|
+
24: (
|
233
|
+
// Bump up mobile size from 18/20 to 21/25
|
234
|
+
null: (
|
235
|
+
font-size: 21px,
|
236
|
+
line-height: 25px
|
237
|
+
),
|
238
|
+
tablet: (
|
239
|
+
font-size: 24px,
|
240
|
+
line-height: 30px
|
241
|
+
),
|
242
|
+
print: (
|
243
|
+
font-size: 18pt,
|
244
|
+
line-height: 1.15
|
245
|
+
)
|
246
|
+
),
|
247
|
+
19: (
|
248
|
+
// Stay at 19/25 at all sizes
|
249
|
+
null: (
|
250
|
+
font-size: 19px,
|
251
|
+
line-height: 25px
|
252
|
+
),
|
253
|
+
print: (
|
254
|
+
font-size: 14pt,
|
255
|
+
line-height: 1.15
|
256
|
+
)
|
257
|
+
),
|
258
|
+
16: (
|
259
|
+
// Stay at 16/20 at all sizes
|
260
|
+
null: (
|
261
|
+
font-size: 16px,
|
262
|
+
line-height: 20px
|
263
|
+
),
|
264
|
+
print: (
|
265
|
+
font-size: 14pt,
|
266
|
+
line-height: 1.2
|
267
|
+
)
|
268
|
+
),
|
269
|
+
14: (
|
270
|
+
// Stay at 14/20 at all sizes (consider deprecating this size)
|
271
|
+
null: (
|
272
|
+
font-size: 14px,
|
273
|
+
line-height: 20px
|
274
|
+
),
|
275
|
+
print: (
|
276
|
+
font-size: 12pt,
|
277
|
+
line-height: 1.2
|
278
|
+
),
|
279
|
+
deprecation: (
|
280
|
+
key: "govuk-typography-scale-14",
|
281
|
+
message: "14 on the type scale is deprecated and will be removed as " +
|
282
|
+
"a possible option in the next major version."
|
283
|
+
)
|
284
|
+
)
|
285
|
+
);
|
286
|
+
|
287
|
+
/// Responsive typography font map
|
288
|
+
///
|
289
|
+
/// This is used to generate responsive typography that adapts according to the
|
290
|
+
/// breakpoints.
|
291
|
+
///
|
292
|
+
/// Font size and font weight can be defined for each breakpoint. You can define
|
293
|
+
/// different behaviour on tablet and desktop. The 'null' breakpoint is for
|
294
|
+
/// mobile.
|
295
|
+
///
|
296
|
+
/// Line-heights will automatically be converted from pixel measurements into
|
297
|
+
/// relative values. For example, with a font-size of 16px and a line-height of
|
298
|
+
/// 24px, the line-height will be converted to 1.5 before output.
|
299
|
+
///
|
300
|
+
/// You can also specify a separate font size and line height for print media.
|
301
|
+
///
|
302
|
+
/// @type Map
|
303
|
+
///
|
304
|
+
/// @prop {Number} $point.$breakpoint.font-size - Font size for `$point` at `$breakpoint`
|
305
|
+
/// @prop {Number} $point.$breakpoint.line-height - Line height for `$point` at `$breakpoint`
|
306
|
+
/// @prop {Number} $point.print.font-size - Font size for `$point` when printing
|
307
|
+
/// @prop {Number} $point.print.line-height - Line height for `$point` when printing
|
308
|
+
///
|
309
|
+
/// @access public
|
310
|
+
|
311
|
+
$govuk-typography-scale: if(
|
312
|
+
$govuk-new-typography-scale,
|
313
|
+
$_govuk-typography-scale-modern,
|
314
|
+
$_govuk-typography-scale-legacy
|
315
|
+
) !default;
|
@@ -0,0 +1,76 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/warnings
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Suppressed warnings map
|
6
|
+
///
|
7
|
+
/// This map is used to determine which deprecation warnings to **not** show
|
8
|
+
/// to users when compiling sass. This is in place for codebases that do not
|
9
|
+
/// have the necessary capacity to upgrade and remove the deprecation,
|
10
|
+
/// particularly if the deprecation is significant. For example, the removal of
|
11
|
+
/// mixins and functions that were previously available to users of Frontend.
|
12
|
+
///
|
13
|
+
/// You can add to this map and define which warnings to suppress by appending to
|
14
|
+
/// it using the warning key, found in the warning message. For example:
|
15
|
+
///
|
16
|
+
/// @example scss:
|
17
|
+
/// // warning message:
|
18
|
+
/// // $foobar is no longer supported. To silence this warning, update
|
19
|
+
/// // $govuk-suppressed-warnings with key: "foobar"
|
20
|
+
/// $govuk-suppressed-warnings: (
|
21
|
+
/// foobar
|
22
|
+
/// );
|
23
|
+
///
|
24
|
+
/// @type List
|
25
|
+
/// @access public
|
26
|
+
|
27
|
+
$govuk-suppressed-warnings: () !default;
|
28
|
+
|
29
|
+
/// Warnings
|
30
|
+
///
|
31
|
+
/// Acts as a wrapper for the built in `@warn` sass function
|
32
|
+
///
|
33
|
+
/// We use this instead of using `@warn` for 3 reasons:
|
34
|
+
///
|
35
|
+
/// - To check if a warning is being suppressed through `$govuk-suppressed-warnings`,
|
36
|
+
/// in which case we don't call `@warn` and printing the warning to the user
|
37
|
+
/// - To format the passed warning `$message` with the warning key at the end
|
38
|
+
/// - To prevent duplicate warnings by adding the passed `$key` to
|
39
|
+
/// `$govuk-suppressed-warnings` after `@warn` is called to ensure it only runs
|
40
|
+
/// once per sass compilation (unless $silence-further-warnings is false)
|
41
|
+
///
|
42
|
+
/// @param {String} $key - The key to be checked against `$govuk-suppressed-warnings`
|
43
|
+
/// and then passed to it to prevent multiple of the same warning.
|
44
|
+
/// @param {String} $message - The message to use when calling `@warn`
|
45
|
+
/// @param {Boolean} $silence-further-warnings - Whether to silence future
|
46
|
+
/// warnings that use the same $key
|
47
|
+
/// @access private
|
48
|
+
|
49
|
+
@mixin _warning($key, $message, $silence-further-warnings: true) {
|
50
|
+
@if _should-warn($key) {
|
51
|
+
@warn _warning-text($key, $message);
|
52
|
+
|
53
|
+
@if $silence-further-warnings {
|
54
|
+
$govuk-suppressed-warnings: append($govuk-suppressed-warnings, $key) !global;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
/// Check whether a key is present in the suppressed warnings list.
|
60
|
+
///
|
61
|
+
/// @param {String} $key - The key to be checked against `$govuk-suppressed-warnings`.
|
62
|
+
/// @access private
|
63
|
+
|
64
|
+
@function _should-warn($key) {
|
65
|
+
@return index($govuk-suppressed-warnings, $key) == null;
|
66
|
+
}
|
67
|
+
|
68
|
+
/// Format a warning by appending information on how to suppress it.
|
69
|
+
///
|
70
|
+
/// @param {String} $key - The key needed to suppress the warning.
|
71
|
+
/// @param {String} $message - The warning text.
|
72
|
+
/// @access private
|
73
|
+
|
74
|
+
@function _warning-text($key, $message) {
|
75
|
+
@return $message + " To silence this warning, update $govuk-suppressed-warnings " + 'with key: "#{$key}"';
|
76
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
////
|
2
|
+
/// @group tools
|
3
|
+
////
|
4
|
+
|
5
|
+
/// List of modules which have already been exported
|
6
|
+
///
|
7
|
+
/// @type List
|
8
|
+
/// @access private
|
9
|
+
|
10
|
+
$_govuk-imported-modules: () !default;
|
11
|
+
|
12
|
+
/// Export module
|
13
|
+
///
|
14
|
+
/// Ensure that the modules of CSS that we define throughout Frontend are only
|
15
|
+
/// included in the generated CSS once, no matter how many times they are
|
16
|
+
/// imported across the individual components.
|
17
|
+
///
|
18
|
+
/// @param {String} $name - Name of module - must be unique within the codebase
|
19
|
+
/// @content The passed content will only be outputted if a module of the same
|
20
|
+
/// $name has not already been outputted
|
21
|
+
/// @access public
|
22
|
+
|
23
|
+
@mixin govuk-exports($name) {
|
24
|
+
// If the mixin is not in the list of modules already exported...
|
25
|
+
@if not index($_govuk-imported-modules, $name) {
|
26
|
+
// ... then add it to the list
|
27
|
+
$_govuk-imported-modules: append($_govuk-imported-modules, $name) !global;
|
28
|
+
// ... and output the CSS for that module
|
29
|
+
@content;
|
30
|
+
}
|
31
|
+
// The next time exports is called for the module of the same name, it will be
|
32
|
+
// found in the list and so nothing will be outputted.
|
33
|
+
}
|