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
data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/skip-link/_index.scss
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
@include govuk-exports("govuk/component/skip-link") {
|
2
|
+
.govuk-skip-link {
|
3
|
+
@include govuk-visually-hidden-focusable;
|
4
|
+
@include govuk-typography-common;
|
5
|
+
@include govuk-link-decoration;
|
6
|
+
@include govuk-link-style-text;
|
7
|
+
@include govuk-font-size($size: 16);
|
8
|
+
|
9
|
+
display: block;
|
10
|
+
padding: govuk-spacing(2) govuk-spacing(3);
|
11
|
+
|
12
|
+
// Respect 'display cutout' safe area (avoids notches and rounded corners)
|
13
|
+
@supports (padding: unquote("max(calc(0px))")) {
|
14
|
+
$padding-safe-area-right: calc(#{govuk-spacing(3)} + env(safe-area-inset-right));
|
15
|
+
$padding-safe-area-left: calc(#{govuk-spacing(3)} + env(safe-area-inset-left));
|
16
|
+
|
17
|
+
// Use max() to pick largest padding, default or with safe area
|
18
|
+
// Escaped due to Sass max() vs. CSS native max()
|
19
|
+
padding-right: unquote("max(#{govuk-spacing(3)}, #{$padding-safe-area-right})");
|
20
|
+
padding-left: unquote("max(#{govuk-spacing(3)}, #{$padding-safe-area-left})");
|
21
|
+
}
|
22
|
+
|
23
|
+
&:focus {
|
24
|
+
outline: $govuk-focus-width solid $govuk-focus-colour;
|
25
|
+
outline-offset: 0;
|
26
|
+
background-color: $govuk-focus-colour;
|
27
|
+
|
28
|
+
// Undo unwanted changes when global styles are enabled
|
29
|
+
@if $govuk-global-styles {
|
30
|
+
@include govuk-link-decoration;
|
31
|
+
box-shadow: none;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.govuk-skip-link-focused-element {
|
37
|
+
&:focus {
|
38
|
+
// Remove the native visible focus indicator when the element is
|
39
|
+
// programmatically focused.
|
40
|
+
//
|
41
|
+
// We set the focus on the linked element (this is usually the <main>
|
42
|
+
// element) when the skip link is activated to improve screen reader
|
43
|
+
// announcements. However, we remove the visible focus indicator from the
|
44
|
+
// linked element because the user cannot interact with it.
|
45
|
+
//
|
46
|
+
// A related discussion: https://github.com/w3c/wcag/issues/1001
|
47
|
+
outline: none;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
data/app/assets/stylesheets/design_system/govuk-frontend-5.11.1/components/summary-list/_index.scss
ADDED
@@ -0,0 +1,267 @@
|
|
1
|
+
@include govuk-exports("govuk/component/summary-list") {
|
2
|
+
.govuk-summary-list {
|
3
|
+
@include govuk-font($size: 19);
|
4
|
+
@include govuk-text-colour;
|
5
|
+
@include govuk-media-query($from: tablet) {
|
6
|
+
display: table;
|
7
|
+
width: 100%;
|
8
|
+
table-layout: fixed; // Required to allow us to wrap words that overflow.
|
9
|
+
border-collapse: collapse;
|
10
|
+
}
|
11
|
+
margin: 0; // Reset default user agent styles
|
12
|
+
@include govuk-responsive-margin(6, "bottom");
|
13
|
+
}
|
14
|
+
|
15
|
+
.govuk-summary-list__row {
|
16
|
+
border-bottom: 1px solid $govuk-border-colour;
|
17
|
+
|
18
|
+
@include govuk-media-query($until: tablet) {
|
19
|
+
margin-bottom: govuk-spacing(3);
|
20
|
+
}
|
21
|
+
@include govuk-media-query($from: tablet) {
|
22
|
+
display: table-row;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
// Remove right padding from the last column in the row
|
27
|
+
.govuk-summary-list__row:not(.govuk-summary-list__row--no-actions) > :last-child {
|
28
|
+
padding-right: 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
// Provide an empty 'cell' for rows that don't have actions – otherwise the
|
32
|
+
// bottom border is not drawn for that part of the row in some browsers.
|
33
|
+
.govuk-summary-list__row--no-actions {
|
34
|
+
@include govuk-media-query($from: tablet) {
|
35
|
+
&::after {
|
36
|
+
content: "";
|
37
|
+
display: table-cell;
|
38
|
+
width: 20%;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
.govuk-summary-list__key,
|
44
|
+
.govuk-summary-list__value,
|
45
|
+
.govuk-summary-list__actions {
|
46
|
+
margin: 0; // Reset default user agent styles
|
47
|
+
|
48
|
+
@include govuk-media-query($from: tablet) {
|
49
|
+
display: table-cell;
|
50
|
+
padding-top: govuk-spacing(2);
|
51
|
+
padding-right: govuk-spacing(4);
|
52
|
+
padding-bottom: govuk-spacing(2);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
.govuk-summary-list__actions {
|
57
|
+
margin-bottom: govuk-spacing(3);
|
58
|
+
@include govuk-media-query($from: tablet) {
|
59
|
+
width: 20%;
|
60
|
+
text-align: right;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
.govuk-summary-list__key,
|
65
|
+
.govuk-summary-list__value {
|
66
|
+
// Automatic wrapping for unbreakable text (e.g. URLs)
|
67
|
+
word-wrap: break-word; // Fallback for older browsers only
|
68
|
+
overflow-wrap: break-word;
|
69
|
+
}
|
70
|
+
|
71
|
+
.govuk-summary-list__key {
|
72
|
+
margin-bottom: govuk-spacing(1);
|
73
|
+
@include govuk-typography-weight-bold;
|
74
|
+
@include govuk-media-query($from: tablet) {
|
75
|
+
width: 30%;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
.govuk-summary-list__value {
|
80
|
+
@include govuk-media-query($until: tablet) {
|
81
|
+
margin-bottom: govuk-spacing(3);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
.govuk-summary-list__value > p {
|
86
|
+
margin-bottom: govuk-spacing(2);
|
87
|
+
}
|
88
|
+
|
89
|
+
.govuk-summary-list__value > :last-child {
|
90
|
+
margin-bottom: 0;
|
91
|
+
}
|
92
|
+
|
93
|
+
.govuk-summary-list__actions-list {
|
94
|
+
width: 100%;
|
95
|
+
margin: 0; // Reset default user agent styles
|
96
|
+
padding: 0; // Reset default user agent styles
|
97
|
+
}
|
98
|
+
|
99
|
+
.govuk-summary-list__actions-list-item,
|
100
|
+
.govuk-summary-card__action {
|
101
|
+
display: inline-block;
|
102
|
+
}
|
103
|
+
|
104
|
+
@include govuk-media-query($until: tablet) {
|
105
|
+
.govuk-summary-list__actions-list-item,
|
106
|
+
.govuk-summary-card__action {
|
107
|
+
margin-right: govuk-spacing(2);
|
108
|
+
padding-right: govuk-spacing(2);
|
109
|
+
border-right: 1px solid $govuk-border-colour;
|
110
|
+
}
|
111
|
+
|
112
|
+
.govuk-summary-list__actions-list-item:last-child,
|
113
|
+
.govuk-summary-card__action:last-child {
|
114
|
+
margin-right: 0;
|
115
|
+
padding-right: 0;
|
116
|
+
border: 0;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
@include govuk-media-query($from: tablet) {
|
121
|
+
.govuk-summary-list__actions-list-item,
|
122
|
+
.govuk-summary-card__action {
|
123
|
+
margin-left: govuk-spacing(2);
|
124
|
+
padding-left: govuk-spacing(2);
|
125
|
+
}
|
126
|
+
|
127
|
+
.govuk-summary-list__actions-list-item:not(:first-child),
|
128
|
+
.govuk-summary-card__action:not(:first-child) {
|
129
|
+
border-left: 1px solid $govuk-border-colour;
|
130
|
+
}
|
131
|
+
|
132
|
+
.govuk-summary-list__actions-list-item:first-child,
|
133
|
+
.govuk-summary-card__action:first-child {
|
134
|
+
margin-left: 0;
|
135
|
+
padding-left: 0;
|
136
|
+
border: 0;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
// Large groups of action links may wrap onto multiple lines. Because the link
|
141
|
+
// focus styles are applied outside of the link's bounding box, there are
|
142
|
+
// situations where the focus style on a link can be overlapped by subsequent
|
143
|
+
// links. We don't want this, so let's create a new stacking context on focus
|
144
|
+
// so the link always appears to be 'on top'.
|
145
|
+
.govuk-summary-list__actions-list-item .govuk-link:focus {
|
146
|
+
isolation: isolate;
|
147
|
+
}
|
148
|
+
|
149
|
+
// No border on entire summary list
|
150
|
+
.govuk-summary-list--no-border {
|
151
|
+
.govuk-summary-list__row {
|
152
|
+
border: 0;
|
153
|
+
}
|
154
|
+
|
155
|
+
// Increase padding by 1px to compensate for 'missing' border
|
156
|
+
@include govuk-media-query($from: tablet) {
|
157
|
+
.govuk-summary-list__key,
|
158
|
+
.govuk-summary-list__value,
|
159
|
+
.govuk-summary-list__actions {
|
160
|
+
padding-bottom: govuk-spacing(2) + 1px;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
// No border on specific rows
|
166
|
+
.govuk-summary-list__row--no-border {
|
167
|
+
border: 0;
|
168
|
+
|
169
|
+
// Increase padding by 1px to compensate for 'missing' border
|
170
|
+
@include govuk-media-query($from: tablet) {
|
171
|
+
.govuk-summary-list__key,
|
172
|
+
.govuk-summary-list__value,
|
173
|
+
.govuk-summary-list__actions {
|
174
|
+
padding-bottom: govuk-spacing(2) + 1px;
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
179
|
+
// Additional block for the summary card
|
180
|
+
.govuk-summary-card {
|
181
|
+
@include govuk-responsive-margin(6, "bottom");
|
182
|
+
border: 1px solid $govuk-border-colour;
|
183
|
+
}
|
184
|
+
|
185
|
+
.govuk-summary-card__title-wrapper {
|
186
|
+
padding: govuk-spacing(3);
|
187
|
+
|
188
|
+
// Ensures the card header appears separate to the summary list in forced
|
189
|
+
// colours mode
|
190
|
+
border-bottom: 1px solid transparent;
|
191
|
+
background-color: govuk-colour("light-grey");
|
192
|
+
|
193
|
+
@include govuk-media-query($from: "tablet") {
|
194
|
+
display: flex;
|
195
|
+
justify-content: space-between;
|
196
|
+
flex-wrap: nowrap;
|
197
|
+
padding: govuk-spacing(3) govuk-spacing(4);
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
.govuk-summary-card__title {
|
202
|
+
@include govuk-font($size: 19, $weight: bold);
|
203
|
+
@include govuk-text-colour;
|
204
|
+
margin: govuk-spacing(1) govuk-spacing(4) govuk-spacing(2) 0;
|
205
|
+
|
206
|
+
@include govuk-media-query($from: "tablet") {
|
207
|
+
margin-bottom: govuk-spacing(1);
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
.govuk-summary-card__actions {
|
212
|
+
@include govuk-font-size($size: 19);
|
213
|
+
@include govuk-typography-weight-bold;
|
214
|
+
display: flex;
|
215
|
+
flex-wrap: wrap;
|
216
|
+
row-gap: 10px;
|
217
|
+
margin: govuk-spacing(1) 0;
|
218
|
+
padding: 0;
|
219
|
+
list-style: none;
|
220
|
+
|
221
|
+
@include govuk-media-query($from: "tablet") {
|
222
|
+
justify-content: right;
|
223
|
+
text-align: right;
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
.govuk-summary-card__action {
|
228
|
+
display: inline;
|
229
|
+
|
230
|
+
// We use the following media query to target IE11 and 10 only to add margin
|
231
|
+
// between actions.
|
232
|
+
//
|
233
|
+
// We do this because we're using row-gap to create space between actions on
|
234
|
+
// more evergreen browsers which IE doesn't support. @supports currently isn't
|
235
|
+
// a viable solution, see https://github.com/w3c/csswg-drafts/issues/3559.
|
236
|
+
//
|
237
|
+
// Solution taken from https://stackoverflow.com/questions/11173106/apply-style-only-on-ie#answer-36448860
|
238
|
+
// which also includes an explanation of why this works
|
239
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
240
|
+
margin-bottom: govuk-spacing(1);
|
241
|
+
}
|
242
|
+
}
|
243
|
+
|
244
|
+
.govuk-summary-card__action:last-child {
|
245
|
+
// See above comment for why this is here
|
246
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
247
|
+
margin-bottom: 0;
|
248
|
+
}
|
249
|
+
}
|
250
|
+
|
251
|
+
.govuk-summary-card__content {
|
252
|
+
padding: govuk-spacing(3) govuk-spacing(3) 0;
|
253
|
+
|
254
|
+
@include govuk-media-query($from: "tablet") {
|
255
|
+
padding: govuk-spacing(3) govuk-spacing(4);
|
256
|
+
}
|
257
|
+
|
258
|
+
.govuk-summary-list {
|
259
|
+
margin-bottom: 0;
|
260
|
+
}
|
261
|
+
|
262
|
+
.govuk-summary-list__row:last-of-type {
|
263
|
+
margin-bottom: 0;
|
264
|
+
border-bottom: none;
|
265
|
+
}
|
266
|
+
}
|
267
|
+
}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
@include govuk-exports("govuk/component/table") {
|
2
|
+
.govuk-table {
|
3
|
+
@include govuk-font($size: 19);
|
4
|
+
@include govuk-text-colour;
|
5
|
+
width: 100%;
|
6
|
+
@include govuk-responsive-margin(6, "bottom");
|
7
|
+
|
8
|
+
border-spacing: 0;
|
9
|
+
border-collapse: collapse;
|
10
|
+
}
|
11
|
+
|
12
|
+
@if $govuk-new-typography-scale {
|
13
|
+
// Modifier for tables with a lot of data. Tables with lots of data benefit
|
14
|
+
// from a smaller font size on small screens.
|
15
|
+
.govuk-table--small-text-until-tablet {
|
16
|
+
@include govuk-media-query($until: tablet) {
|
17
|
+
@include govuk-font-size($size: 16);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
.govuk-table__header {
|
23
|
+
@include govuk-typography-weight-bold;
|
24
|
+
}
|
25
|
+
|
26
|
+
.govuk-table__header,
|
27
|
+
.govuk-table__cell {
|
28
|
+
padding: govuk-spacing(2) govuk-spacing(4) govuk-spacing(2) 0;
|
29
|
+
border-bottom: 1px solid $govuk-border-colour;
|
30
|
+
text-align: left;
|
31
|
+
vertical-align: top;
|
32
|
+
}
|
33
|
+
|
34
|
+
.govuk-table__cell--numeric {
|
35
|
+
@include govuk-font-tabular-numbers;
|
36
|
+
}
|
37
|
+
|
38
|
+
.govuk-table__header--numeric,
|
39
|
+
.govuk-table__cell--numeric {
|
40
|
+
text-align: right;
|
41
|
+
}
|
42
|
+
|
43
|
+
.govuk-table__header:last-child,
|
44
|
+
.govuk-table__cell:last-child {
|
45
|
+
padding-right: 0;
|
46
|
+
}
|
47
|
+
|
48
|
+
.govuk-table__caption {
|
49
|
+
@include govuk-typography-weight-bold;
|
50
|
+
|
51
|
+
display: table-caption;
|
52
|
+
text-align: left;
|
53
|
+
}
|
54
|
+
|
55
|
+
// Modifiers that make captions look more like their equivalent headings
|
56
|
+
.govuk-table__caption--xl,
|
57
|
+
.govuk-table__caption--l,
|
58
|
+
.govuk-table__caption--m {
|
59
|
+
margin-bottom: govuk-spacing(3);
|
60
|
+
}
|
61
|
+
|
62
|
+
.govuk-table__caption--xl {
|
63
|
+
@include govuk-font-size($size: 48);
|
64
|
+
}
|
65
|
+
|
66
|
+
.govuk-table__caption--l {
|
67
|
+
@include govuk-font-size($size: 36);
|
68
|
+
}
|
69
|
+
|
70
|
+
.govuk-table__caption--m {
|
71
|
+
@include govuk-font-size($size: 24);
|
72
|
+
}
|
73
|
+
}
|
@@ -0,0 +1,132 @@
|
|
1
|
+
@include govuk-exports("govuk/component/tabs") {
|
2
|
+
.govuk-tabs {
|
3
|
+
@include govuk-responsive-margin(1, "top");
|
4
|
+
@include govuk-responsive-margin(6, "bottom");
|
5
|
+
@include govuk-font($size: 19);
|
6
|
+
}
|
7
|
+
|
8
|
+
.govuk-tabs__title {
|
9
|
+
// Set the size and weight again because this element is a heading and the
|
10
|
+
// user agent font size overrides the inherited font size
|
11
|
+
@include govuk-font-size($size: 19);
|
12
|
+
@include govuk-typography-weight-regular;
|
13
|
+
@include govuk-text-colour;
|
14
|
+
margin-bottom: govuk-spacing(2);
|
15
|
+
}
|
16
|
+
|
17
|
+
.govuk-tabs__list {
|
18
|
+
margin: 0;
|
19
|
+
padding: 0;
|
20
|
+
list-style: none;
|
21
|
+
@include govuk-responsive-margin(6, "bottom");
|
22
|
+
}
|
23
|
+
|
24
|
+
.govuk-tabs__list-item {
|
25
|
+
margin-left: govuk-spacing(5);
|
26
|
+
|
27
|
+
&::before {
|
28
|
+
@include govuk-text-colour;
|
29
|
+
content: "\2014 "; // "— "
|
30
|
+
margin-left: govuk-spacing(-5);
|
31
|
+
padding-right: govuk-spacing(1);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.govuk-tabs__tab {
|
36
|
+
@include govuk-link-common;
|
37
|
+
@include govuk-link-style-default;
|
38
|
+
|
39
|
+
display: inline-block;
|
40
|
+
margin-bottom: govuk-spacing(2);
|
41
|
+
}
|
42
|
+
|
43
|
+
.govuk-tabs__panel {
|
44
|
+
@include govuk-responsive-margin(8, "bottom");
|
45
|
+
}
|
46
|
+
|
47
|
+
// GOV.UK Frontend JavaScript enabled
|
48
|
+
.govuk-frontend-supported {
|
49
|
+
@include govuk-media-query($from: tablet) {
|
50
|
+
.govuk-tabs__list {
|
51
|
+
@include govuk-clearfix;
|
52
|
+
margin-bottom: 0;
|
53
|
+
border-bottom: 1px solid $govuk-border-colour;
|
54
|
+
}
|
55
|
+
|
56
|
+
.govuk-tabs__title {
|
57
|
+
display: none;
|
58
|
+
}
|
59
|
+
|
60
|
+
.govuk-tabs__list-item {
|
61
|
+
position: relative;
|
62
|
+
|
63
|
+
margin-right: govuk-spacing(1);
|
64
|
+
margin-bottom: 0;
|
65
|
+
margin-left: 0;
|
66
|
+
padding: govuk-spacing(2) govuk-spacing(4);
|
67
|
+
|
68
|
+
float: left;
|
69
|
+
background-color: govuk-colour("light-grey");
|
70
|
+
text-align: center;
|
71
|
+
|
72
|
+
&::before {
|
73
|
+
content: none;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
.govuk-tabs__list-item--selected {
|
78
|
+
$border-width: 1px;
|
79
|
+
|
80
|
+
position: relative;
|
81
|
+
|
82
|
+
margin-top: govuk-spacing(-1);
|
83
|
+
|
84
|
+
// Compensation for border (otherwise we get a shift)
|
85
|
+
margin-bottom: -$border-width;
|
86
|
+
padding-top: govuk-spacing(3) - $border-width;
|
87
|
+
padding-right: govuk-spacing(4) - $border-width;
|
88
|
+
padding-bottom: govuk-spacing(3) + $border-width;
|
89
|
+
padding-left: govuk-spacing(4) - $border-width;
|
90
|
+
|
91
|
+
border: $border-width solid $govuk-border-colour;
|
92
|
+
border-bottom: 0;
|
93
|
+
|
94
|
+
background-color: $govuk-body-background-colour;
|
95
|
+
|
96
|
+
.govuk-tabs__tab {
|
97
|
+
text-decoration: none;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
.govuk-tabs__tab {
|
102
|
+
@include govuk-link-style-text;
|
103
|
+
|
104
|
+
margin-bottom: 0;
|
105
|
+
|
106
|
+
&::after {
|
107
|
+
content: "";
|
108
|
+
position: absolute;
|
109
|
+
top: 0;
|
110
|
+
right: 0;
|
111
|
+
bottom: 0;
|
112
|
+
left: 0;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
.govuk-tabs__panel {
|
117
|
+
@include govuk-responsive-margin(0, "bottom");
|
118
|
+
padding: govuk-spacing(6) govuk-spacing(4);
|
119
|
+
border: 1px solid $govuk-border-colour;
|
120
|
+
border-top: 0;
|
121
|
+
|
122
|
+
& > :last-child {
|
123
|
+
margin-bottom: 0;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
.govuk-tabs__panel--hidden {
|
128
|
+
display: none;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
@include govuk-exports("govuk/component/tag") {
|
2
|
+
$govuk-tag-max-width: if(map-has-key($govuk-breakpoints, "mobile"), map-get($govuk-breakpoints, "mobile") / 2, 160px);
|
3
|
+
|
4
|
+
.govuk-tag {
|
5
|
+
@include govuk-font($size: 19);
|
6
|
+
|
7
|
+
display: inline-block;
|
8
|
+
|
9
|
+
// set a max-width along with overflow-wrap: break-word below for instances
|
10
|
+
// where a tag has a single long word and could overflow its boundaries.
|
11
|
+
// The max-width is necessary as break-word requires a bounding box to base
|
12
|
+
// where to break off of.
|
13
|
+
max-width: $govuk-tag-max-width;
|
14
|
+
|
15
|
+
// These negative margins make sure that the tag component doesn’t increase
|
16
|
+
// the size of its container. Otherwise, for example, a table row containing
|
17
|
+
// a tag will be taller than one containing plain text.
|
18
|
+
//
|
19
|
+
// The negative margin added to the top and bottom matches the extra padding
|
20
|
+
// added.
|
21
|
+
margin-top: -2px;
|
22
|
+
margin-bottom: -3px;
|
23
|
+
|
24
|
+
padding-top: 2px;
|
25
|
+
padding-right: 8px;
|
26
|
+
padding-bottom: 3px;
|
27
|
+
padding-left: 8px;
|
28
|
+
color: govuk-shade(govuk-colour("blue"), 60%);
|
29
|
+
background-color: govuk-tint(govuk-colour("blue"), 70%);
|
30
|
+
text-decoration: none;
|
31
|
+
overflow-wrap: break-word;
|
32
|
+
|
33
|
+
// When forced colour mode is active, for example to provide high contrast,
|
34
|
+
// the background colour of the tag is the same as the rest of the page. To
|
35
|
+
// ensure that the tag is perceived as separate from any surround text, it
|
36
|
+
// is made bold.
|
37
|
+
//
|
38
|
+
// Transparent outlines are no longer added, as they make the Tag look
|
39
|
+
// indistinguishable from a button – but the tag is not interactive in the
|
40
|
+
// same way.
|
41
|
+
@media screen and (forced-colors: active) {
|
42
|
+
font-weight: bold;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.govuk-tag--grey {
|
47
|
+
color: govuk-shade(govuk-colour("dark-grey"), 50%);
|
48
|
+
background-color: govuk-tint(govuk-colour("dark-grey"), 85%);
|
49
|
+
}
|
50
|
+
|
51
|
+
.govuk-tag--purple {
|
52
|
+
color: govuk-shade(govuk-colour("bright-purple"), 50%);
|
53
|
+
background-color: govuk-tint(govuk-colour("bright-purple"), 85%);
|
54
|
+
}
|
55
|
+
|
56
|
+
.govuk-tag--turquoise {
|
57
|
+
color: govuk-shade(govuk-colour("turquoise"), 60%);
|
58
|
+
background-color: govuk-tint(govuk-colour("turquoise"), 80%);
|
59
|
+
}
|
60
|
+
|
61
|
+
.govuk-tag--blue {
|
62
|
+
color: govuk-shade(govuk-colour("blue"), 60%);
|
63
|
+
background-color: govuk-tint(govuk-colour("blue"), 70%);
|
64
|
+
}
|
65
|
+
|
66
|
+
.govuk-tag--light-blue {
|
67
|
+
color: govuk-shade(govuk-colour("blue"), 60%);
|
68
|
+
background-color: govuk-tint(govuk-colour("blue"), 90%);
|
69
|
+
}
|
70
|
+
|
71
|
+
.govuk-tag--yellow {
|
72
|
+
color: govuk-shade(govuk-colour("yellow"), 65%);
|
73
|
+
background-color: govuk-tint(govuk-colour("yellow"), 75%);
|
74
|
+
}
|
75
|
+
|
76
|
+
.govuk-tag--orange {
|
77
|
+
color: govuk-shade(govuk-colour("orange"), 55%);
|
78
|
+
background-color: govuk-tint(govuk-colour("orange"), 70%);
|
79
|
+
}
|
80
|
+
|
81
|
+
.govuk-tag--red {
|
82
|
+
color: govuk-shade(govuk-colour("red"), 80%);
|
83
|
+
background-color: govuk-tint(govuk-colour("red"), 75%);
|
84
|
+
}
|
85
|
+
|
86
|
+
.govuk-tag--pink {
|
87
|
+
color: govuk-shade(govuk-colour("pink"), 50%);
|
88
|
+
background-color: govuk-tint(govuk-colour("pink"), 85%);
|
89
|
+
}
|
90
|
+
|
91
|
+
.govuk-tag--green {
|
92
|
+
color: govuk-shade(govuk-colour("green"), 20%);
|
93
|
+
background-color: govuk-tint(govuk-colour("green"), 80%);
|
94
|
+
}
|
95
|
+
}
|