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,181 @@
|
|
1
|
+
@use "../../core/settings" as *;
|
2
|
+
@use "../../core/tools" as *;
|
3
|
+
|
4
|
+
////
|
5
|
+
/// Table component
|
6
|
+
///
|
7
|
+
/// @group components
|
8
|
+
////
|
9
|
+
|
10
|
+
/// Table container is used to ensure the table does not break the container.
|
11
|
+
///
|
12
|
+
/// 1. Margin is removed so there isn't double spacing.
|
13
|
+
/// 2. XS size not added because it matches the table header, so it'd be bad for hierarchy
|
14
|
+
|
15
|
+
.nhsuk-table-container {
|
16
|
+
display: block;
|
17
|
+
-webkit-overflow-scrolling: touch;
|
18
|
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
19
|
+
overflow-x: auto;
|
20
|
+
width: 100%;
|
21
|
+
|
22
|
+
@include nhsuk-responsive-margin(7, "bottom");
|
23
|
+
|
24
|
+
.nhsuk-table,
|
25
|
+
.nhsuk-table-responsive {
|
26
|
+
margin: 0; // [1]
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.nhsuk-table,
|
31
|
+
.nhsuk-table-responsive {
|
32
|
+
width: 100%;
|
33
|
+
|
34
|
+
border-spacing: 0;
|
35
|
+
border-collapse: collapse;
|
36
|
+
|
37
|
+
@include nhsuk-font($size: 19);
|
38
|
+
@include nhsuk-responsive-margin(7, "bottom");
|
39
|
+
}
|
40
|
+
|
41
|
+
.nhsuk-table__caption--xl {
|
42
|
+
@include nhsuk-font-size(48);
|
43
|
+
}
|
44
|
+
|
45
|
+
.nhsuk-table__caption--l {
|
46
|
+
@include nhsuk-font-size(36);
|
47
|
+
}
|
48
|
+
|
49
|
+
.nhsuk-table__caption--m {
|
50
|
+
@include nhsuk-font-size(26);
|
51
|
+
}
|
52
|
+
|
53
|
+
.nhsuk-table__caption--s {
|
54
|
+
@include nhsuk-font-size(22);
|
55
|
+
}
|
56
|
+
|
57
|
+
// [2]
|
58
|
+
|
59
|
+
/// Table row hover
|
60
|
+
///
|
61
|
+
/// Table row hover is used to aid readability for users.
|
62
|
+
|
63
|
+
.nhsuk-table__row {
|
64
|
+
&:hover {
|
65
|
+
background-color: $color_nhsuk-grey-5;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
/// Table panel with tab heading
|
70
|
+
///
|
71
|
+
/// 1. Margin is removed so there isn't double spacing.
|
72
|
+
|
73
|
+
.nhsuk-table__panel-with-heading-tab {
|
74
|
+
@include nhsuk-panel-with-label($color_nhsuk-white, $nhsuk-text-color, $color_nhsuk-grey-4);
|
75
|
+
|
76
|
+
.nhsuk-table,
|
77
|
+
.nhsuk-table-container,
|
78
|
+
.nhsuk-table-responsive {
|
79
|
+
margin: 0; // [1]
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
.nhsuk-table__heading-tab {
|
84
|
+
@include nhsuk-heading-label($color_nhsuk-blue, $color_nhsuk-white);
|
85
|
+
}
|
86
|
+
|
87
|
+
/// Responsive table
|
88
|
+
///
|
89
|
+
/// 1. Hide the thead until desktop
|
90
|
+
/// 2. Removing default screen reader behaviour
|
91
|
+
/// 3. Assigning role of table-row on desktop to give default screen reader behaviour
|
92
|
+
/// 4. Using justify content to space out elements in the row on mobile
|
93
|
+
/// 5. Assigning a minimum width in case of black cell
|
94
|
+
/// 6. Aligning content to the right on mobile
|
95
|
+
/// 7. Aligning mobile header to left to split it from the data
|
96
|
+
/// 8. Hiding mobile specific header from desktop view
|
97
|
+
/// 9. Adding a display block value due to IE 11 not having full flex support
|
98
|
+
|
99
|
+
.nhsuk-table-responsive {
|
100
|
+
thead {
|
101
|
+
@include nhsuk-media-query($until: desktop) {
|
102
|
+
@include nhsuk-visually-hidden; // [1]
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
.nhsuk-table__body {
|
107
|
+
.nhsuk-table-responsive__heading {
|
108
|
+
@include nhsuk-typography-weight-bold;
|
109
|
+
padding-right: nhsuk-spacing(3);
|
110
|
+
text-align: left; // [8]
|
111
|
+
}
|
112
|
+
|
113
|
+
.nhsuk-table__row {
|
114
|
+
display: block; // [3]
|
115
|
+
margin-bottom: nhsuk-spacing(4);
|
116
|
+
|
117
|
+
&:last-child {
|
118
|
+
margin-bottom: 0;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
.nhsuk-table__row th,
|
123
|
+
.nhsuk-table__row td {
|
124
|
+
display: block; // For browsers that don't support flexbox
|
125
|
+
display: flex;
|
126
|
+
justify-content: space-between; // [5]
|
127
|
+
min-width: 1px; // [6]
|
128
|
+
}
|
129
|
+
|
130
|
+
@media all and (-ms-high-contrast: none) {
|
131
|
+
.nhsuk-table__row th,
|
132
|
+
.nhsuk-table__row td {
|
133
|
+
display: block; // [10]
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
@include nhsuk-media-query($until: desktop) {
|
138
|
+
.nhsuk-table__row th {
|
139
|
+
font-weight: $nhsuk-font-normal;
|
140
|
+
}
|
141
|
+
|
142
|
+
.nhsuk-table__row th,
|
143
|
+
.nhsuk-table__row td {
|
144
|
+
padding-right: 0;
|
145
|
+
text-align: right; // [7]
|
146
|
+
|
147
|
+
&:last-child {
|
148
|
+
border-bottom: 3px solid $color_nhsuk-grey-4;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
@include nhsuk-media-query($from: desktop) {
|
154
|
+
.nhsuk-table-responsive__heading {
|
155
|
+
display: none; // [9]
|
156
|
+
}
|
157
|
+
|
158
|
+
.nhsuk-table__row {
|
159
|
+
display: table-row; // [4]
|
160
|
+
}
|
161
|
+
|
162
|
+
.nhsuk-table__row th {
|
163
|
+
text-align: left;
|
164
|
+
}
|
165
|
+
|
166
|
+
.nhsuk-table__row th,
|
167
|
+
.nhsuk-table__row td {
|
168
|
+
display: table-cell;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
}
|
173
|
+
|
174
|
+
/// Numeric tables
|
175
|
+
///
|
176
|
+
/// Right aligns table cells for numeric tables.
|
177
|
+
|
178
|
+
.nhsuk-table__header--numeric,
|
179
|
+
.nhsuk-table__cell--numeric {
|
180
|
+
text-align: right;
|
181
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@forward ".";
|
@@ -0,0 +1,120 @@
|
|
1
|
+
@use "../../core/settings" as *;
|
2
|
+
@use "../../core/tools" as *;
|
3
|
+
|
4
|
+
.nhsuk-tabs {
|
5
|
+
@include nhsuk-responsive-margin(1, "top");
|
6
|
+
@include nhsuk-responsive-margin(6, "bottom");
|
7
|
+
}
|
8
|
+
|
9
|
+
.nhsuk-tabs__title {
|
10
|
+
color: $nhsuk-text-color;
|
11
|
+
margin-bottom: nhsuk-spacing(2);
|
12
|
+
@include nhsuk-font($size: 19);
|
13
|
+
}
|
14
|
+
|
15
|
+
.nhsuk-tabs__list {
|
16
|
+
list-style: none;
|
17
|
+
margin: 0;
|
18
|
+
padding: 0;
|
19
|
+
@include nhsuk-responsive-margin(6, "bottom");
|
20
|
+
}
|
21
|
+
|
22
|
+
.nhsuk-tabs__list-item {
|
23
|
+
margin-left: nhsuk-spacing(5);
|
24
|
+
@include nhsuk-font($size: 19);
|
25
|
+
|
26
|
+
&::before {
|
27
|
+
color: $nhsuk-text-color;
|
28
|
+
content: "\2014 "; // "— "
|
29
|
+
margin-left: -(nhsuk-spacing(5));
|
30
|
+
padding-right: nhsuk-spacing(1);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
.nhsuk-tabs__tab {
|
35
|
+
display: inline-block;
|
36
|
+
margin-bottom: nhsuk-spacing(2);
|
37
|
+
}
|
38
|
+
|
39
|
+
.nhsuk-tabs__panel {
|
40
|
+
@include nhsuk-responsive-margin(8, "bottom");
|
41
|
+
}
|
42
|
+
|
43
|
+
// JavaScript enabled
|
44
|
+
.js-enabled {
|
45
|
+
@include nhsuk-media-query($from: tablet) {
|
46
|
+
.nhsuk-tabs__list {
|
47
|
+
border-bottom: 1px solid $nhsuk-border-color;
|
48
|
+
margin-bottom: 0;
|
49
|
+
@include nhsuk-clearfix;
|
50
|
+
}
|
51
|
+
|
52
|
+
.nhsuk-tabs__title {
|
53
|
+
display: none;
|
54
|
+
}
|
55
|
+
|
56
|
+
.nhsuk-tabs__list-item {
|
57
|
+
background-color: $color_nhsuk-grey-4;
|
58
|
+
float: left;
|
59
|
+
margin-bottom: 0;
|
60
|
+
margin-left: 0;
|
61
|
+
margin-right: nhsuk-spacing(1);
|
62
|
+
padding: nhsuk-spacing(2) nhsuk-spacing(4);
|
63
|
+
position: relative;
|
64
|
+
text-align: center;
|
65
|
+
|
66
|
+
&::before {
|
67
|
+
content: none;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
.nhsuk-tabs__list-item--selected {
|
72
|
+
$border-width: 1px;
|
73
|
+
background-color: $color_nhsuk-white;
|
74
|
+
border: $border-width solid $nhsuk-border-color;
|
75
|
+
border-bottom: 0;
|
76
|
+
margin-bottom: -$border-width; // Compensation for border (otherwise we get a shift)
|
77
|
+
margin-top: -(nhsuk-spacing(1));
|
78
|
+
padding-bottom: (nhsuk-spacing(2) * 1.5) + $border-width;
|
79
|
+
padding-left: nhsuk-spacing(4) - $border-width;
|
80
|
+
padding-right: nhsuk-spacing(4) - $border-width;
|
81
|
+
padding-top: (nhsuk-spacing(2) * 1.5) - $border-width;
|
82
|
+
position: relative;
|
83
|
+
|
84
|
+
.nhsuk-tabs__tab {
|
85
|
+
text-decoration: none;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.nhsuk-tabs__tab {
|
90
|
+
margin-bottom: 0;
|
91
|
+
|
92
|
+
@include nhsuk-link-style-text;
|
93
|
+
|
94
|
+
&::after {
|
95
|
+
bottom: 0;
|
96
|
+
content: "";
|
97
|
+
left: 0;
|
98
|
+
position: absolute;
|
99
|
+
right: 0;
|
100
|
+
top: 0;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
.nhsuk-tabs__panel {
|
105
|
+
background-color: $color_nhsuk-white;
|
106
|
+
border: 1px solid $nhsuk-border-color;
|
107
|
+
border-top: 0;
|
108
|
+
padding: nhsuk-spacing(6) nhsuk-spacing(4);
|
109
|
+
@include nhsuk-responsive-margin(0, "bottom");
|
110
|
+
|
111
|
+
& > :last-child {
|
112
|
+
margin-bottom: 0;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
.nhsuk-tabs__panel--hidden {
|
117
|
+
display: none;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@forward ".";
|
@@ -0,0 +1,92 @@
|
|
1
|
+
@use "../../core/settings" as *;
|
2
|
+
@use "../../core/tools" as *;
|
3
|
+
|
4
|
+
////
|
5
|
+
/// Footer component
|
6
|
+
///
|
7
|
+
/// @group components
|
8
|
+
////
|
9
|
+
|
10
|
+
.nhsuk-tag {
|
11
|
+
background-color: nhsuk-shade($color_nhsuk-blue, 10%);
|
12
|
+
border: 1px solid nhsuk-shade($color_nhsuk-blue, 10%);
|
13
|
+
color: $color_nhsuk-white;
|
14
|
+
display: inline-block;
|
15
|
+
outline: 2px solid transparent;
|
16
|
+
outline-offset: -2px;
|
17
|
+
padding-bottom: nhsuk-spacing(1);
|
18
|
+
padding-left: nhsuk-spacing(2);
|
19
|
+
padding-right: nhsuk-spacing(2);
|
20
|
+
padding-top: nhsuk-spacing(1);
|
21
|
+
text-decoration: none;
|
22
|
+
|
23
|
+
@include nhsuk-font($size: 16, $weight: bold, $line-height: 1);
|
24
|
+
}
|
25
|
+
|
26
|
+
/// Colour variants
|
27
|
+
|
28
|
+
.nhsuk-tag--white {
|
29
|
+
background-color: $color_nhsuk-white;
|
30
|
+
border-color: $color_nhsuk-black;
|
31
|
+
color: $color_nhsuk-black;
|
32
|
+
}
|
33
|
+
|
34
|
+
.nhsuk-tag--grey {
|
35
|
+
background-color: nhsuk-tint($color_nhsuk-grey-1, 80%);
|
36
|
+
border-color: nhsuk-shade($color_nhsuk-grey-1, 30%);
|
37
|
+
color: nhsuk-shade($color_nhsuk-grey-1, 30%);
|
38
|
+
}
|
39
|
+
|
40
|
+
.nhsuk-tag--green {
|
41
|
+
background-color: nhsuk-tint($color_nhsuk-green, 80%);
|
42
|
+
border-color: nhsuk-shade($color_nhsuk-green, 40%);
|
43
|
+
color: nhsuk-shade($color_nhsuk-green, 40%);
|
44
|
+
}
|
45
|
+
|
46
|
+
.nhsuk-tag--aqua-green {
|
47
|
+
background-color: nhsuk-tint($color_nhsuk-aqua-green, 80%);
|
48
|
+
border-color: nhsuk-shade($color_nhsuk-aqua-green, 50%);
|
49
|
+
color: nhsuk-shade($color_nhsuk-aqua-green, 50%);
|
50
|
+
}
|
51
|
+
|
52
|
+
.nhsuk-tag--blue {
|
53
|
+
background-color: nhsuk-tint($color_nhsuk-blue, 80%);
|
54
|
+
border-color: nhsuk-shade($color_nhsuk-blue, 30%);
|
55
|
+
color: nhsuk-shade($color_nhsuk-blue, 30%);
|
56
|
+
}
|
57
|
+
|
58
|
+
.nhsuk-tag--purple {
|
59
|
+
background-color: nhsuk-tint($color_nhsuk-purple, 80%);
|
60
|
+
border-color: nhsuk-shade($color_nhsuk-purple, 30%);
|
61
|
+
color: nhsuk-shade($color_nhsuk-purple, 30%);
|
62
|
+
}
|
63
|
+
|
64
|
+
.nhsuk-tag--pink {
|
65
|
+
background-color: nhsuk-tint($color_nhsuk-pink, 80%);
|
66
|
+
border-color: nhsuk-shade($color_nhsuk-pink, 50%);
|
67
|
+
color: nhsuk-shade($color_nhsuk-pink, 50%);
|
68
|
+
}
|
69
|
+
|
70
|
+
.nhsuk-tag--red {
|
71
|
+
background-color: nhsuk-tint($color_nhsuk-red, 80%);
|
72
|
+
border-color: nhsuk-shade($color_nhsuk-red, 50%);
|
73
|
+
color: nhsuk-shade($color_nhsuk-red, 50%);
|
74
|
+
}
|
75
|
+
|
76
|
+
.nhsuk-tag--orange {
|
77
|
+
background-color: nhsuk-tint($color_nhsuk-warm-yellow, 50%);
|
78
|
+
border-color: nhsuk-shade($color_nhsuk-warm-yellow, 70%);
|
79
|
+
color: nhsuk-shade($color_nhsuk-warm-yellow, 70%);
|
80
|
+
}
|
81
|
+
|
82
|
+
.nhsuk-tag--yellow {
|
83
|
+
background-color: nhsuk-tint($color_nhsuk-yellow, 50%);
|
84
|
+
border-color: nhsuk-shade($color_nhsuk-yellow, 70%);
|
85
|
+
color: nhsuk-shade($color_nhsuk-yellow, 70%);
|
86
|
+
}
|
87
|
+
|
88
|
+
/// Remove tag border
|
89
|
+
|
90
|
+
.nhsuk-tag--no-border {
|
91
|
+
border: 0;
|
92
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@forward ".";
|
data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/task-list/_index.scss
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
@use "sass:color";
|
2
|
+
@use "../../core/settings" as *;
|
3
|
+
@use "../../core/tools" as *;
|
4
|
+
|
5
|
+
////
|
6
|
+
/// Task list component
|
7
|
+
///
|
8
|
+
/// @group components
|
9
|
+
/// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)
|
10
|
+
////
|
11
|
+
|
12
|
+
// NHS pages have a grey background, so we need a slightly darker colour for the hover
|
13
|
+
// This produces 1.1:1 contrast, the same as GOV.UK’s
|
14
|
+
$nhsuk-task-list-hover-color: color.adjust($color_nhsuk-grey-5, $lightness: -6%);
|
15
|
+
|
16
|
+
.nhsuk-task-list {
|
17
|
+
margin-top: 0;
|
18
|
+
padding: 0;
|
19
|
+
list-style-type: none;
|
20
|
+
|
21
|
+
@include nhsuk-font($size: 19);
|
22
|
+
@include nhsuk-responsive-margin(5, "bottom");
|
23
|
+
}
|
24
|
+
|
25
|
+
// This uses table layout so that the task name and status always appear side-by-side, with the width of
|
26
|
+
// each 'column' being flexible depending upon the length of the task names and statuses.
|
27
|
+
//
|
28
|
+
// The position is set to 'relative' so than an absolutely-positioned transparent element box
|
29
|
+
// can be added within the link so that the whole row can be clickable.
|
30
|
+
.nhsuk-task-list__item {
|
31
|
+
display: table;
|
32
|
+
position: relative;
|
33
|
+
width: 100%;
|
34
|
+
margin-bottom: 0;
|
35
|
+
// stylelint-disable-next-line function-calc-no-unspaced-operator
|
36
|
+
padding-top: calc(nhsuk-spacing(2) + 4px);
|
37
|
+
// stylelint-disable-next-line function-calc-no-unspaced-operator
|
38
|
+
padding-bottom: calc(nhsuk-spacing(2) + 4px);
|
39
|
+
border-bottom: 1px solid $nhsuk-border-color;
|
40
|
+
}
|
41
|
+
|
42
|
+
.nhsuk-task-list__item:first-child {
|
43
|
+
border-top: 1px solid $nhsuk-border-color;
|
44
|
+
}
|
45
|
+
|
46
|
+
// This class is added to the <li> elements where the task name is a link.
|
47
|
+
// The background hover colour is added to help indicate that the whole row is clickable, rather
|
48
|
+
// than just the visible link text.
|
49
|
+
.nhsuk-task-list__item--with-link:hover {
|
50
|
+
background: $nhsuk-task-list-hover-color;
|
51
|
+
}
|
52
|
+
|
53
|
+
.nhsuk-task-list__name-and-hint {
|
54
|
+
display: table-cell;
|
55
|
+
vertical-align: top;
|
56
|
+
color: $nhsuk-text-color;
|
57
|
+
}
|
58
|
+
|
59
|
+
.nhsuk-task-list__status {
|
60
|
+
display: table-cell;
|
61
|
+
padding-left: nhsuk-spacing(2);
|
62
|
+
text-align: right;
|
63
|
+
vertical-align: top;
|
64
|
+
color: $nhsuk-text-color;
|
65
|
+
}
|
66
|
+
|
67
|
+
// This replicates some of the styling and spacing of tags so that these non-tag
|
68
|
+
// statuses don’t look out of place with them. Longer term we may want to look to
|
69
|
+
// adjusting the tag styles to be closer to body text.
|
70
|
+
.nhsuk-task-list__status--completed,
|
71
|
+
.nhsuk-task-list__status--cannot-start-yet {
|
72
|
+
padding-bottom: nhsuk-spacing(1);
|
73
|
+
padding-left: nhsuk-spacing(2);
|
74
|
+
// stylelint-disable-next-line function-calc-no-unspaced-operator
|
75
|
+
padding-top: calc(nhsuk-spacing(1) + 2px); // to match the spacing on tags
|
76
|
+
text-decoration: none;
|
77
|
+
|
78
|
+
@include nhsuk-font($size: 16, $weight: regular, $line-height: 1);
|
79
|
+
}
|
80
|
+
|
81
|
+
.nhsuk-task-list__status--cannot-start-yet {
|
82
|
+
color: $nhsuk-secondary-text-color;
|
83
|
+
}
|
84
|
+
|
85
|
+
// This adds an empty transparent box covering the whole row, including the task status and
|
86
|
+
// any hint text. Because this is generated within the link element, this allows the whole area
|
87
|
+
// to be clickable.
|
88
|
+
.nhsuk-task-list__link::after {
|
89
|
+
content: "";
|
90
|
+
display: block;
|
91
|
+
position: absolute;
|
92
|
+
top: 0;
|
93
|
+
right: 0;
|
94
|
+
bottom: 0;
|
95
|
+
left: 0;
|
96
|
+
}
|
97
|
+
|
98
|
+
.nhsuk-task-list__hint {
|
99
|
+
margin-top: nhsuk-spacing(1);
|
100
|
+
color: $nhsuk-secondary-text-color;
|
101
|
+
}
|
data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/task-list/_task-list.scss
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
@forward ".";
|
data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/textarea/_index.scss
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
@use "../../core/settings" as *;
|
2
|
+
@use "../../core/tools" as *;
|
3
|
+
|
4
|
+
////
|
5
|
+
/// Textarea component
|
6
|
+
///
|
7
|
+
/// @group components
|
8
|
+
////
|
9
|
+
|
10
|
+
.nhsuk-textarea {
|
11
|
+
-webkit-appearance: none;
|
12
|
+
border: $nhsuk-border-width-form-element solid $nhsuk-form-border-color;
|
13
|
+
border-radius: 0;
|
14
|
+
box-sizing: border-box;
|
15
|
+
display: block;
|
16
|
+
min-height: 40px;
|
17
|
+
padding: nhsuk-spacing(1);
|
18
|
+
resize: vertical;
|
19
|
+
width: 100%;
|
20
|
+
|
21
|
+
@include nhsuk-font(19);
|
22
|
+
|
23
|
+
&:focus {
|
24
|
+
@include nhsuk-focused-input;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.nhsuk-textarea--error {
|
29
|
+
border: $nhsuk-border-width-form-element-error solid $nhsuk-error-color;
|
30
|
+
}
|
data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/textarea/_textarea.scss
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
@forward ".";
|
@@ -0,0 +1,19 @@
|
|
1
|
+
@use "../../core/settings" as *;
|
2
|
+
@use "../../core/tools" as *;
|
3
|
+
|
4
|
+
////
|
5
|
+
/// Warning callout component
|
6
|
+
///
|
7
|
+
/// 1. Uses @mixin panel-with-label from tools/_mixins.
|
8
|
+
/// 2. Uses @mixin heading-label from tools/_mixins.
|
9
|
+
///
|
10
|
+
/// @group components
|
11
|
+
////
|
12
|
+
|
13
|
+
.nhsuk-warning-callout {
|
14
|
+
@include nhsuk-panel-with-label($color_nhsuk-pale-yellow, $nhsuk-text-color, $color_nhsuk-yellow); // [1]
|
15
|
+
}
|
16
|
+
|
17
|
+
.nhsuk-warning-callout__label {
|
18
|
+
@include nhsuk-heading-label($color_nhsuk-yellow, $nhsuk-text-color); // [2]
|
19
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@forward ".";
|
@@ -0,0 +1,16 @@
|
|
1
|
+
///
|
2
|
+
/// Forms
|
3
|
+
///
|
4
|
+
/// Make sure our form elements don’t use any UA-specific font styles: we want
|
5
|
+
/// them to use ours. This may need reverting as more design information becomes
|
6
|
+
/// available, and we start putting together more complete forms.
|
7
|
+
///
|
8
|
+
/// @group elements
|
9
|
+
///
|
10
|
+
|
11
|
+
button,
|
12
|
+
input,
|
13
|
+
select,
|
14
|
+
textarea {
|
15
|
+
font-family: inherit;
|
16
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
@use "../../core/settings" as *;
|
2
|
+
@use "../../core/tools" as *;
|
3
|
+
|
4
|
+
////
|
5
|
+
/// Links
|
6
|
+
///
|
7
|
+
/// Our basic `<a>` elements only need very minimal styling.
|
8
|
+
/// It uses the @mixin nhsuk-link-style-default within tools/links.
|
9
|
+
/// Anything more opinionated (e.g. buttons, calls-to-action, etc.) will need a
|
10
|
+
/// class defining in the Components layer.
|
11
|
+
///
|
12
|
+
/// 1. Outputs full link URL for print.
|
13
|
+
/// 2. Point unit used for print.
|
14
|
+
///
|
15
|
+
/// @group elements
|
16
|
+
////
|
17
|
+
|
18
|
+
a {
|
19
|
+
@include nhsuk-link-style-default;
|
20
|
+
|
21
|
+
@include nhsuk-media-query($media-type: print) {
|
22
|
+
&::after {
|
23
|
+
color: $nhsuk-text-color;
|
24
|
+
content: " (Link: " attr(href) ")"; // [1]
|
25
|
+
font-size: inherit; // [2]
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.nhsuk-link--no-visited-state {
|
31
|
+
@include nhsuk-link-style-no-visited-state;
|
32
|
+
}
|
33
|
+
|
34
|
+
.nhsuk-link--reverse {
|
35
|
+
@include nhsuk-link-style-white;
|
36
|
+
|
37
|
+
@include nhsuk-media-query($media-type: print) {
|
38
|
+
&::after {
|
39
|
+
color: currentcolor;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|