design_system 0.10.0 → 0.12.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 +4 -4
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/components/_index.scss +36 -20
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/action-link/_action-link.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/action-link/_index.scss +84 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/back-link/_back-link.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/back-link/_index.scss +56 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/breadcrumb/_breadcrumb.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/breadcrumb/_index.scss +103 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/button/_button.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/button/_index.scss +207 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/card/_card.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/card/_index.scss +526 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/character-count/_character-count.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/character-count/_index.scss +54 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/checkboxes/_checkboxes.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/checkboxes/_index.scss +337 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/contents-list/_contents-list.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/contents-list/_index.scss +32 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/date-input/_date-input.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/date-input/_index.scss +40 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/details/_details.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/details/_index.scss +374 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/do-dont-list/_do-dont-list.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/do-dont-list/_index.scss +37 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-message/_error-message.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-message/_index.scss +22 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-summary/_error-summary.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-summary/_index.scss +75 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/fieldset/_fieldset.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/fieldset/_index.scss +81 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/file-upload/_file-upload.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/file-upload/_index.scss +251 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/footer/_footer.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/footer/_index.scss +64 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/header/_header.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/header/_index.scss +783 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hero/_hero.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hero/_index.scss +205 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hint/_hint.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hint/_index.scss +53 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/images/_images.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/images/_index.scss +53 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/input/_index.scss +184 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/input/_input.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/inset-text/_index.scss +34 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/inset-text/_inset-text.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/label/_index.scss +53 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/label/_label.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/notification-banner/_index.scss +100 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/notification-banner/_notification-banner.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/pagination/_index.scss +261 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/pagination/_pagination.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/panel/_index.scss +99 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/panel/_panel.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/password-input/_index.scss +37 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/password-input/_password-input.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/radios/_index.scss +354 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/radios/_radios.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/select/_index.scss +63 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/select/_select.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/skip-link/_index.scss +48 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/skip-link/_skip-link.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/summary-list/_index.scss +215 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/summary-list/_summary-list.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tables/_index.scss +205 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tables/_tables.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tabs/_index.scss +138 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tabs/_tabs.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tag/_index.scss +101 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tag/_tag.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/task-list/_index.scss +111 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/task-list/_task-list.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/textarea/_index.scss +52 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/textarea/_textarea.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/warning-callout/_index.scss +22 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/warning-callout/_warning-callout.scss +3 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/_index.scss +4 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/_nhsuk-frontend-properties.scss +28 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/all.scss +3 -1
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_forms.scss +4 -2
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_index.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_links.scss +3 -2
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/elements/_page.scss +66 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_table.scss +6 -5
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/generic/_box-sizing.scss +2 -4
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/generic/_font-face.scss +29 -15
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/generic/_index.scss +2 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/helpers/_colour.scss +106 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/helpers/_index.scss +7 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_button-group.scss +124 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_form-group.scss +47 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/objects/_grid.scss +5 -3
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/objects/_index.scss +4 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_input-wrapper.scss +81 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_main-wrapper.scss +66 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_width-container.scss +98 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_all.scss +3 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_breakpoints.scss +35 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours-applied.scss +326 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours-deprecated.scss +116 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours-palette.scss +41 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours.scss +12 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_globals.scss +214 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_index.scss +5 -1
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_spacing.scss +3 -3
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_typography.scss +15 -34
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_warnings.scss +11 -5
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/styles/_icons.scss +45 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_index.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_lists.scss +15 -10
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_section-break.scss +4 -2
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_typography.scss +34 -39
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_all.scss +3 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_buttons.scss +85 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_exports.scss +1 -11
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_focused.scss +134 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_functions.scss +81 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_grid.scss +74 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_index.scss +5 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_links.scss +234 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_mixins.scss +168 -118
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_sass-mq.scss +9 -11
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_shape-arrow.scss +14 -20
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_shape-chevron.scss +65 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_shape-dash.scss +31 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_spacing.scss +25 -14
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_typography.scss +71 -25
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_clearfix.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_display.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_float.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_grid-widths.scss +19 -20
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_index.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_link-nowrap.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_list-border.scss +6 -2
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_reading-width.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_spacing.scss +6 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_text-align.scss +2 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/utilities/_typography.scss +52 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_visually-hidden.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_widths.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/vendor/sass-mq.scss +4 -2
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/index.scss +4 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/nhsuk.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk.scss +2 -2
- data/app/helpers/design_system_helper.rb +8 -4
- data/app/views/layouts/govuk/application.html.erb +1 -0
- data/app/views/layouts/nhsuk/application.html.erb +52 -59
- data/app/views/nhsuk/_navigation.html.erb +9 -13
- data/lib/design_system/engine.rb +1 -1
- data/lib/design_system/generic/builders/action_link.rb +17 -0
- data/lib/design_system/generic/builders/elements/backlink.rb +30 -0
- data/lib/design_system/generic/builders/fixed_elements.rb +4 -0
- data/lib/design_system/generic/builders/link.rb +9 -0
- data/lib/design_system/generic/builders/notification.rb +10 -6
- data/lib/design_system/generic/builders/pagination_renderer.rb +4 -9
- data/lib/design_system/govuk/builders/action_link.rb +17 -0
- data/lib/design_system/govuk/form_builder.rb +6 -2
- data/lib/design_system/govuk/test_helpers/form_builder_testable.rb +14 -0
- data/lib/design_system/nhsuk/builders/action_link.rb +30 -0
- data/lib/design_system/nhsuk/builders/elements/breadcrumbs.rb +12 -16
- data/lib/design_system/nhsuk/builders/notification.rb +0 -6
- data/lib/design_system/version.rb +1 -1
- data/lib/tasks/nhsuk.rake +10 -5
- data/public/design_system/static/{nhsuk-frontend-9.6.4/favicons → nhsuk-frontend-10.3.1/images}/favicon.ico +0 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/images/favicon.svg +4 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-180.png +0 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-192.png +0 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-512.png +0 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-mask.svg +3 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-opengraph-image.png +0 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/manifest.json +39 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/nhsuk-frontend.min.js +1 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/nhsuk-frontend.min.js.map +1 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/nhsuk.js +7 -0
- metadata +159 -161
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/action-link/_action-link.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/action-link/_index.scss +0 -73
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/back-link/_back-link.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/back-link/_index.scss +0 -66
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/breadcrumb/_breadcrumb.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/breadcrumb/_index.scss +0 -138
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/button/_button.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/button/_index.scss +0 -257
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/card/_card.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/card/_index.scss +0 -321
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/character-count/_character-count.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/character-count/_index.scss +0 -19
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/checkboxes/_checkboxes.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/checkboxes/_index.scss +0 -155
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/contents-list/_contents-list.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/contents-list/_index.scss +0 -40
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/date-input/_date-input.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/date-input/_index.scss +0 -29
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/details/_details.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/details/_index.scss +0 -211
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/do-dont-list/_do-dont-list.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/do-dont-list/_index.scss +0 -23
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-message/_error-message.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-message/_index.scss +0 -17
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-summary/_error-summary.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-summary/_index.scss +0 -72
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/fieldset/_fieldset.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/fieldset/_index.scss +0 -65
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/footer/_footer.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/footer/_index.scss +0 -87
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-base.scss +0 -495
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-organisation.scss +0 -126
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-service.scss +0 -60
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-transactional.scss +0 -61
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-white.scss +0 -117
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_index.scss +0 -5
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hero/_hero.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hero/_index.scss +0 -187
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hint/_hint.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hint/_index.scss +0 -51
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/images/_images.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/images/_index.scss +0 -48
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/input/_index.scss +0 -149
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/input/_input.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/inset-text/_index.scss +0 -28
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/inset-text/_inset-text.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/label/_index.scss +0 -53
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/label/_label.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/pagination/_index.scss +0 -95
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/pagination/_pagination.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/panel/_index.scss +0 -57
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/panel/_panel.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/radios/_index.scss +0 -180
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/radios/_radios.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/select/_index.scss +0 -44
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/select/_select.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/skip-link/_index.scss +0 -34
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/skip-link/_skip-link.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/summary-list/_index.scss +0 -183
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/summary-list/_summary-list.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tables/_index.scss +0 -181
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tables/_tables.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tabs/_index.scss +0 -120
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tabs/_tabs.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tag/_index.scss +0 -92
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tag/_tag.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/task-list/_index.scss +0 -101
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/task-list/_task-list.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/textarea/_index.scss +0 -30
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/textarea/_textarea.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/warning-callout/_index.scss +0 -19
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/warning-callout/_warning-callout.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/elements/_page.scss +0 -43
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_form-group.scss +0 -25
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_main-wrapper.scss +0 -96
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_width-container.scss +0 -63
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_breakpoints.scss +0 -18
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_colours.scss +0 -188
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_globals.scss +0 -82
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/styles/_icons.scss +0 -105
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_focused.scss +0 -86
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_functions.scss +0 -45
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_grid.scss +0 -138
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_ifff.scss +0 -19
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_links.scss +0 -184
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_typography.scss +0 -72
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/nhsuk.scss +0 -1
- 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.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon.svg +0 -3
- 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 +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-arrow-right-circle.svg +0 -4
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-arrow-right.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-chevron-left.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-chevron-right.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-close.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-cross.svg +0 -4
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-emdash-small.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-emdash.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-minus.svg +0 -4
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-plus.svg +0 -4
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-search.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-tick.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/logos/logo-nhs.svg +0 -5
- 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 +0 -4
- data/public/design_system/static/nhsuk-frontend-9.6.4/nhsuk.min.js +0 -1
- /data/public/design_system/static/{design_system-0.10.0 → design_system-0.12.0}/design_system.js +0 -0
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "../../core/settings" as *;
|
|
3
|
+
@use "../../core/tools" as *;
|
|
4
|
+
@forward "../error-message";
|
|
5
|
+
@forward "../fieldset";
|
|
6
|
+
@forward "../hint";
|
|
7
|
+
@forward "../label";
|
|
8
|
+
|
|
9
|
+
////
|
|
10
|
+
/// Radios component
|
|
11
|
+
///
|
|
12
|
+
/// @group components/radios
|
|
13
|
+
////
|
|
14
|
+
|
|
15
|
+
$nhsuk-radios-size: nhsuk-px-to-rem(nhsuk-spacing(6));
|
|
16
|
+
$nhsuk-radios-small-size: nhsuk-px-to-rem(nhsuk-spacing(4));
|
|
17
|
+
|
|
18
|
+
$nhsuk-radios-label-padding-left-right: nhsuk-px-to-rem(12px);
|
|
19
|
+
|
|
20
|
+
// When the default focus width is used on a curved edge it looks visually
|
|
21
|
+
// smaller. So for the circular radios we bump the default to make it look
|
|
22
|
+
// visually consistent.
|
|
23
|
+
$nhsuk-radios-focus-width: nhsuk-px-to-rem($nhsuk-focus-width + 1px);
|
|
24
|
+
|
|
25
|
+
// Offset 2px due to 40px form control with 44px clickable area
|
|
26
|
+
// https://nhsuk.github.io/nhsuk-frontend/examples/form-alignment/
|
|
27
|
+
$nhsuk-radios-offset: $nhsuk-border-width-form-element;
|
|
28
|
+
|
|
29
|
+
@include nhsuk-exports("nhsuk/components/radios") {
|
|
30
|
+
$nhsuk-touch-target-gutter: nhsuk-px-to-rem(4px);
|
|
31
|
+
$nhsuk-touch-target-size: $nhsuk-radios-size + $nhsuk-touch-target-gutter;
|
|
32
|
+
|
|
33
|
+
.nhsuk-radios {
|
|
34
|
+
margin: -$nhsuk-radios-offset;
|
|
35
|
+
margin-right: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.nhsuk-radios__item {
|
|
39
|
+
display: flex;
|
|
40
|
+
position: relative;
|
|
41
|
+
flex-wrap: wrap;
|
|
42
|
+
margin-top: nhsuk-spacing(2) - $nhsuk-radios-offset;
|
|
43
|
+
|
|
44
|
+
.nhsuk-radios__conditional:not(.nhsuk-radios__conditional--hidden) + & {
|
|
45
|
+
@include nhsuk-responsive-margin(4, "top", $adjustment: - $nhsuk-radios-offset);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.nhsuk-radios__item:first-child {
|
|
50
|
+
margin-top: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.nhsuk-radios__input {
|
|
54
|
+
// Allow the input to sit above the label, enabling its proper detection
|
|
55
|
+
// when exploring by touch or using automation tools like Selenium
|
|
56
|
+
z-index: 1;
|
|
57
|
+
|
|
58
|
+
width: $nhsuk-touch-target-size;
|
|
59
|
+
height: $nhsuk-touch-target-size;
|
|
60
|
+
margin: 0;
|
|
61
|
+
|
|
62
|
+
opacity: 0;
|
|
63
|
+
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.nhsuk-radios__label {
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
|
|
70
|
+
align-self: center;
|
|
71
|
+
|
|
72
|
+
// Ensure that the width of the label is never more than the width of the
|
|
73
|
+
// container minus the input. This prevents the label from wrapping due to
|
|
74
|
+
// __item using flex-wrap because we want hints on a separate line
|
|
75
|
+
max-width: calc(100% - $nhsuk-touch-target-size);
|
|
76
|
+
margin-bottom: 0;
|
|
77
|
+
padding: (nhsuk-spacing(1) + $nhsuk-border-width-form-element) $nhsuk-radios-label-padding-left-right;
|
|
78
|
+
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
// remove 300ms pause on mobile
|
|
81
|
+
touch-action: manipulation;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// ( ) Radio ring
|
|
85
|
+
.nhsuk-radios__label::before {
|
|
86
|
+
content: "";
|
|
87
|
+
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
|
|
90
|
+
position: absolute;
|
|
91
|
+
top: math.div($nhsuk-touch-target-gutter, 2);
|
|
92
|
+
left: math.div($nhsuk-touch-target-gutter, 2);
|
|
93
|
+
|
|
94
|
+
width: $nhsuk-radios-size;
|
|
95
|
+
height: $nhsuk-radios-size;
|
|
96
|
+
|
|
97
|
+
border: $nhsuk-border-width-form-element solid $nhsuk-input-border-colour;
|
|
98
|
+
border-radius: 50%;
|
|
99
|
+
|
|
100
|
+
background: $nhsuk-input-background-colour;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// • Radio button
|
|
104
|
+
//
|
|
105
|
+
// We create the 'button' entirely out of 'border' so that they remain
|
|
106
|
+
// 'filled' even when colours are overridden in the browser.
|
|
107
|
+
.nhsuk-radios__label::after {
|
|
108
|
+
$radio-button-size: nhsuk-px-to-rem(10px);
|
|
109
|
+
|
|
110
|
+
content: "";
|
|
111
|
+
|
|
112
|
+
position: absolute;
|
|
113
|
+
|
|
114
|
+
// Positioned by getting half the touch target, so we have the centre of the
|
|
115
|
+
// input, and then moving back by the button's border width, thus positioning
|
|
116
|
+
// the centre of the button in the centre of the input.
|
|
117
|
+
top: math.div($nhsuk-touch-target-size, 2) - $radio-button-size;
|
|
118
|
+
left: math.div($nhsuk-touch-target-size, 2) - $radio-button-size;
|
|
119
|
+
|
|
120
|
+
width: 0;
|
|
121
|
+
height: 0;
|
|
122
|
+
|
|
123
|
+
border: $radio-button-size solid currentcolor;
|
|
124
|
+
border-radius: 50%;
|
|
125
|
+
|
|
126
|
+
opacity: 0;
|
|
127
|
+
|
|
128
|
+
background: currentcolor;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.nhsuk-radios__hint {
|
|
132
|
+
display: block;
|
|
133
|
+
width: 100%;
|
|
134
|
+
margin-top: nhsuk-spacing(-1);
|
|
135
|
+
padding-right: $nhsuk-radios-label-padding-left-right;
|
|
136
|
+
padding-left: ($nhsuk-radios-label-padding-left-right + $nhsuk-touch-target-size);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// This is to bypass nhsuk-hint's specificity on hints following labels having
|
|
140
|
+
// a margin bottom of 8px (nhsuk-spacing(2)). Because radios are flexbox,
|
|
141
|
+
// the margin doesn't collapse so we have to do this manually.
|
|
142
|
+
.nhsuk-label:not(.nhsuk-label--m):not(.nhsuk-label--l):not(.nhsuk-label--xl) + .nhsuk-radios__hint {
|
|
143
|
+
margin-bottom: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Focused state
|
|
147
|
+
.nhsuk-radios__input:focus + .nhsuk-radios__label::before {
|
|
148
|
+
@include nhsuk-focused-radio($nhsuk-radios-focus-width);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// Selected state
|
|
152
|
+
.nhsuk-radios__input:checked + .nhsuk-radios__label::after {
|
|
153
|
+
opacity: 1;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// Disabled state
|
|
157
|
+
.nhsuk-radios__input:disabled,
|
|
158
|
+
.nhsuk-radios__input:disabled + .nhsuk-radios__label {
|
|
159
|
+
cursor: not-allowed;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.nhsuk-radios__input:disabled + .nhsuk-radios__label,
|
|
163
|
+
.nhsuk-radios__input:disabled ~ .nhsuk-hint {
|
|
164
|
+
opacity: 0.5;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// =========================================================
|
|
168
|
+
// Inline radios
|
|
169
|
+
// =========================================================
|
|
170
|
+
|
|
171
|
+
.nhsuk-radios--inline {
|
|
172
|
+
@include nhsuk-media-query($from: tablet) {
|
|
173
|
+
display: flex;
|
|
174
|
+
flex-wrap: wrap;
|
|
175
|
+
align-items: flex-start;
|
|
176
|
+
|
|
177
|
+
.nhsuk-radios__item {
|
|
178
|
+
margin-top: 0;
|
|
179
|
+
margin-right: nhsuk-spacing(4);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// =========================================================
|
|
185
|
+
// Dividers ('or')
|
|
186
|
+
// =========================================================
|
|
187
|
+
|
|
188
|
+
.nhsuk-radios__divider {
|
|
189
|
+
$nhsuk-divider-size: $nhsuk-radios-size !default;
|
|
190
|
+
width: $nhsuk-divider-size;
|
|
191
|
+
margin-top: nhsuk-spacing(2) - $nhsuk-radios-offset;
|
|
192
|
+
padding: 0 $nhsuk-radios-offset;
|
|
193
|
+
text-align: center;
|
|
194
|
+
@include nhsuk-text-colour;
|
|
195
|
+
@include nhsuk-font($size: 19);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// =========================================================
|
|
199
|
+
// Conditional reveals
|
|
200
|
+
// =========================================================
|
|
201
|
+
|
|
202
|
+
// Calculate the amount of padding needed to keep the border centered against
|
|
203
|
+
// the radios.
|
|
204
|
+
$conditional-border-padding: math.div($nhsuk-touch-target-size, 2) - nhsuk-px-to-rem($nhsuk-border-width-form-element);
|
|
205
|
+
// Move the border centered with the radios
|
|
206
|
+
$conditional-margin-left: $conditional-border-padding;
|
|
207
|
+
// Move the contents of the conditional inline with the label
|
|
208
|
+
$conditional-padding-left: $conditional-border-padding + $nhsuk-radios-label-padding-left-right;
|
|
209
|
+
|
|
210
|
+
.nhsuk-radios__conditional {
|
|
211
|
+
margin-top: nhsuk-spacing(2) - $nhsuk-radios-offset;
|
|
212
|
+
margin-bottom: $nhsuk-radios-offset;
|
|
213
|
+
margin-left: $conditional-margin-left;
|
|
214
|
+
padding-left: $conditional-padding-left;
|
|
215
|
+
border-left: $nhsuk-border-width solid $nhsuk-input-border-colour;
|
|
216
|
+
|
|
217
|
+
.nhsuk-frontend-supported &--hidden {
|
|
218
|
+
display: none;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// =========================================================
|
|
223
|
+
// Small radios
|
|
224
|
+
// =========================================================
|
|
225
|
+
|
|
226
|
+
.nhsuk-radios--small {
|
|
227
|
+
$input-offset: math.div($nhsuk-touch-target-size - $nhsuk-radios-small-size, 2);
|
|
228
|
+
|
|
229
|
+
.nhsuk-radios__item {
|
|
230
|
+
margin-top: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// Shift the touch target into the left margin so that the visible edge of
|
|
234
|
+
// the control is aligned
|
|
235
|
+
//
|
|
236
|
+
// ┆Which colour is your favourite?
|
|
237
|
+
// ┌┆───┐
|
|
238
|
+
// │┆() │ Purple
|
|
239
|
+
// └┆▲──┘
|
|
240
|
+
// ▲┆└─ Radio pseudo element, aligned with margin
|
|
241
|
+
// └─── Touch target (invisible input), shifted into the margin
|
|
242
|
+
.nhsuk-radios__input {
|
|
243
|
+
margin-left: $input-offset * -1;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.nhsuk-radios__label {
|
|
247
|
+
// Create a tiny space between the small radio hover state so that it
|
|
248
|
+
// doesn't clash with the label
|
|
249
|
+
padding-left: 1px;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// ( ) Radio ring
|
|
253
|
+
//
|
|
254
|
+
// Reduce the size of the control [1], vertically centering it within the
|
|
255
|
+
// touch target [2]
|
|
256
|
+
// Left here is 0 because we've shifted the input into the left margin
|
|
257
|
+
.nhsuk-radios__label::before {
|
|
258
|
+
top: $input-offset; // 2
|
|
259
|
+
left: 0;
|
|
260
|
+
width: $nhsuk-radios-small-size; // 1
|
|
261
|
+
height: $nhsuk-radios-small-size; // 1
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// • Radio button
|
|
265
|
+
//
|
|
266
|
+
// Reduce the size of the 'button' and center it within the ring
|
|
267
|
+
.nhsuk-radios__label::after {
|
|
268
|
+
$radio-button-size: nhsuk-px-to-rem(5px);
|
|
269
|
+
|
|
270
|
+
// The same calculation as normal radio buttons but reduce the border width
|
|
271
|
+
top: math.div($nhsuk-touch-target-size, 2) - $radio-button-size;
|
|
272
|
+
left: (math.div($nhsuk-touch-target-size, 2) - $radio-button-size) - $input-offset;
|
|
273
|
+
border-width: $radio-button-size;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// Fix position of hint with small radios
|
|
277
|
+
//
|
|
278
|
+
// Do not use hints with small radios – because they're within the input
|
|
279
|
+
// wrapper they trigger the hover state, but clicking them doesn't actually
|
|
280
|
+
// activate the control.
|
|
281
|
+
//
|
|
282
|
+
// (If you do use them, they won't look completely broken... but seriously,
|
|
283
|
+
// don't use them)
|
|
284
|
+
.nhsuk-radios__hint {
|
|
285
|
+
padding-left: ($nhsuk-radios-small-size + $input-offset);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// Align conditional reveals with small radios
|
|
289
|
+
.nhsuk-radios__conditional {
|
|
290
|
+
$margin-left: math.div($nhsuk-radios-small-size, 2) - nhsuk-px-to-rem($nhsuk-border-width-form-element);
|
|
291
|
+
margin-left: $margin-left;
|
|
292
|
+
padding-left: ($nhsuk-touch-target-size - $input-offset) - ($margin-left + nhsuk-px-to-rem($nhsuk-border-width));
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.nhsuk-radios__divider {
|
|
296
|
+
width: $nhsuk-radios-small-size;
|
|
297
|
+
margin: nhsuk-spacing(1) - $nhsuk-radios-offset 0;
|
|
298
|
+
padding: 0;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
// Hover state for small radios.
|
|
302
|
+
//
|
|
303
|
+
// We use a hover state for small radios because the touch target size
|
|
304
|
+
// is so much larger than their visible size, and so we need to provide
|
|
305
|
+
// feedback to the user as to which radio they will select when their
|
|
306
|
+
// cursor is outside of the visible area.
|
|
307
|
+
.nhsuk-radios__input:not(:disabled):hover + .nhsuk-radios__label::before,
|
|
308
|
+
.nhsuk-radios__input:not(:disabled) + .nhsuk-radios__label:hover::before {
|
|
309
|
+
// Forced colours modes tend to ignore box-shadow.
|
|
310
|
+
// Apply an outline for those modes to use instead.
|
|
311
|
+
outline: $nhsuk-radios-focus-width dashed transparent;
|
|
312
|
+
outline-offset: 1px;
|
|
313
|
+
box-shadow: 0 0 0 $nhsuk-hover-width $nhsuk-hover-colour;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
// Because we've overridden the border-shadow provided by the focus state,
|
|
317
|
+
// we need to redefine that too.
|
|
318
|
+
//
|
|
319
|
+
// We use two box shadows, one that restores the original focus state [1]
|
|
320
|
+
// and another that then applies the hover state [2].
|
|
321
|
+
.nhsuk-radios__input:focus:hover + .nhsuk-radios__label::before,
|
|
322
|
+
.nhsuk-radios__input:focus + .nhsuk-radios__label:hover::before {
|
|
323
|
+
// prettier-ignore
|
|
324
|
+
box-shadow:
|
|
325
|
+
0 0 0 $nhsuk-radios-focus-width $nhsuk-focus-colour, // 1
|
|
326
|
+
0 0 0 $nhsuk-hover-width $nhsuk-hover-colour; // 2
|
|
327
|
+
|
|
328
|
+
// Set different HCM colour when we have both hover/focus applied at once
|
|
329
|
+
@media screen and (forced-colors: active), (-ms-high-contrast: active) {
|
|
330
|
+
outline-color: Highlight;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
// For devices that explicitly don't support hover, don't provide a hover
|
|
335
|
+
// state (e.g. on touch devices like iOS).
|
|
336
|
+
//
|
|
337
|
+
// We can't use `@media (hover: hover)` because we wouldn't get the hover
|
|
338
|
+
// state in browsers that don't support `@media (hover)` (like Internet
|
|
339
|
+
// Explorer) – so we have to 'undo' the hover state instead.
|
|
340
|
+
@media (hover: none), (pointer: coarse) {
|
|
341
|
+
.nhsuk-radios__input:not(:disabled):hover + .nhsuk-radios__label::before,
|
|
342
|
+
.nhsuk-radios__input:not(:disabled) + .nhsuk-radios__label:hover::before {
|
|
343
|
+
box-shadow: initial;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.nhsuk-radios__input:focus:hover + .nhsuk-radios__label::before,
|
|
347
|
+
.nhsuk-radios__input:focus + .nhsuk-radios__label:hover::before {
|
|
348
|
+
box-shadow: 0 0 0 $nhsuk-radios-focus-width $nhsuk-focus-colour;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/*# sourceMappingURL=_index.scss.map */
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@use "../../core/settings" as *;
|
|
2
|
+
@use "../../core/tools" as *;
|
|
3
|
+
@use "../../core/helpers" as *;
|
|
4
|
+
@forward "../../core/objects/input-wrapper";
|
|
5
|
+
@forward "../error-message";
|
|
6
|
+
@forward "../hint";
|
|
7
|
+
@forward "../label";
|
|
8
|
+
|
|
9
|
+
////
|
|
10
|
+
/// Select component
|
|
11
|
+
///
|
|
12
|
+
/// @group components/select
|
|
13
|
+
////
|
|
14
|
+
|
|
15
|
+
@include nhsuk-exports("nhsuk/components/select") {
|
|
16
|
+
.nhsuk-select {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
|
|
19
|
+
min-width: 100%;
|
|
20
|
+
max-width: 100%;
|
|
21
|
+
height: nhsuk-px-to-rem(40px);
|
|
22
|
+
padding: nhsuk-px-to-rem(nhsuk-spacing(1));
|
|
23
|
+
|
|
24
|
+
border: $nhsuk-border-width-form-element solid $nhsuk-input-border-colour;
|
|
25
|
+
|
|
26
|
+
// Default user agent colours for selects can have low contrast,
|
|
27
|
+
// and may look disabled (https://github.com/alphagov/govuk-frontend/issues/2435)
|
|
28
|
+
color: $nhsuk-text-colour;
|
|
29
|
+
background-color: $nhsuk-input-background-colour;
|
|
30
|
+
|
|
31
|
+
@include nhsuk-font($size: 19, $line-height: 1.25);
|
|
32
|
+
|
|
33
|
+
&:focus {
|
|
34
|
+
@include nhsuk-focused-input;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:disabled {
|
|
38
|
+
opacity: 0.5;
|
|
39
|
+
color: inherit;
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@include nhsuk-media-query($from: mobile) {
|
|
44
|
+
// This min-width was chosen because:
|
|
45
|
+
// - it makes the Select wider than it is tall (which is what users expect)
|
|
46
|
+
// - 20ex + 3ex matches the 'length-10' variant of the input component
|
|
47
|
+
min-width: 20ex + 3ex;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.nhsuk-select option:active,
|
|
52
|
+
.nhsuk-select option:checked,
|
|
53
|
+
.nhsuk-select:focus::-ms-value {
|
|
54
|
+
color: $nhsuk-reverse-text-colour;
|
|
55
|
+
background-color: nhsuk-colour("blue");
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.nhsuk-select--error {
|
|
59
|
+
border-color: $nhsuk-error-colour;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/*# sourceMappingURL=_index.scss.map */
|
data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/skip-link/_index.scss
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@use "sass:string";
|
|
2
|
+
@use "../../core/settings" as *;
|
|
3
|
+
@use "../../core/tools" as *;
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// Skip link component
|
|
7
|
+
///
|
|
8
|
+
/// 1. Hide until the skip link gains focus from keyboard tabbing.
|
|
9
|
+
///
|
|
10
|
+
/// @group components/skip-link
|
|
11
|
+
////
|
|
12
|
+
|
|
13
|
+
@include nhsuk-exports("nhsuk/components/skip-link") {
|
|
14
|
+
.nhsuk-skip-link {
|
|
15
|
+
position: absolute;
|
|
16
|
+
z-index: 2;
|
|
17
|
+
top: nhsuk-spacing(3);
|
|
18
|
+
left: nhsuk-spacing(3);
|
|
19
|
+
padding: nhsuk-px-to-rem(nhsuk-spacing(2));
|
|
20
|
+
@include nhsuk-visually-hidden-focusable; // [1]
|
|
21
|
+
|
|
22
|
+
// Respect 'display cutout' safe area (avoids notches and rounded corners)
|
|
23
|
+
@supports (left: string.unquote("max(calc(0px))")) {
|
|
24
|
+
$safe-area-left: calc(#{nhsuk-spacing(3)} + env(safe-area-inset-left));
|
|
25
|
+
|
|
26
|
+
// Use max() to pick largest offset, default or with safe area
|
|
27
|
+
// Escaped due to Sass max() vs. CSS native max()
|
|
28
|
+
left: string.unquote("max(#{nhsuk-spacing(3)}, #{$safe-area-left})");
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.nhsuk-skip-link-focused-element {
|
|
33
|
+
&:focus {
|
|
34
|
+
// Remove the native visible focus indicator when the element is
|
|
35
|
+
// programmatically focused.
|
|
36
|
+
//
|
|
37
|
+
// We set the focus on the linked element (this is usually the <main>
|
|
38
|
+
// element) when the skip link is activated to improve screen reader
|
|
39
|
+
// announcements. However, we remove the visible focus indicator from the
|
|
40
|
+
// linked element because the user cannot interact with it.
|
|
41
|
+
//
|
|
42
|
+
// A related discussion: https://github.com/w3c/wcag/issues/1001
|
|
43
|
+
outline: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/*# sourceMappingURL=_index.scss.map */
|
data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/summary-list/_index.scss
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
@use "../../core/settings" as *;
|
|
2
|
+
@use "../../core/tools" as *;
|
|
3
|
+
@use "../../core/helpers" as *;
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// Summary list component
|
|
7
|
+
///
|
|
8
|
+
/// @group components/summary-list
|
|
9
|
+
/// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)
|
|
10
|
+
////
|
|
11
|
+
|
|
12
|
+
@include nhsuk-exports("nhsuk/components/summary-list") {
|
|
13
|
+
.nhsuk-summary-list {
|
|
14
|
+
margin: 0; // Reset default user agent styles
|
|
15
|
+
|
|
16
|
+
@include nhsuk-font($size: 19);
|
|
17
|
+
@include nhsuk-responsive-margin(6, "bottom");
|
|
18
|
+
|
|
19
|
+
@include nhsuk-media-query($from: tablet) {
|
|
20
|
+
display: table;
|
|
21
|
+
width: 100%;
|
|
22
|
+
table-layout: fixed; // Required to allow us to wrap words that overflow.
|
|
23
|
+
border-collapse: collapse;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.nhsuk-summary-list__row {
|
|
28
|
+
border-bottom: 1px solid $nhsuk-border-colour;
|
|
29
|
+
|
|
30
|
+
@include nhsuk-media-query($until: tablet) {
|
|
31
|
+
margin-bottom: nhsuk-spacing(3);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include nhsuk-media-query($from: tablet) {
|
|
35
|
+
display: table-row;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Remove right padding from the last column in the row
|
|
40
|
+
.nhsuk-summary-list__row:not(.nhsuk-summary-list__row--no-actions) > :last-child {
|
|
41
|
+
padding-right: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Provide an empty 'cell' for rows that don't have actions – otherwise the
|
|
45
|
+
// bottom border is not drawn for that part of the row in some browsers.
|
|
46
|
+
.nhsuk-summary-list__row--no-actions {
|
|
47
|
+
@include nhsuk-media-query($from: tablet) {
|
|
48
|
+
&::after {
|
|
49
|
+
content: "";
|
|
50
|
+
display: table-cell;
|
|
51
|
+
width: 20%;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.nhsuk-summary-list__key,
|
|
57
|
+
.nhsuk-summary-list__value,
|
|
58
|
+
.nhsuk-summary-list__actions {
|
|
59
|
+
margin: 0; // Reset default user agent styles
|
|
60
|
+
|
|
61
|
+
@include nhsuk-media-query($from: tablet) {
|
|
62
|
+
display: table-cell;
|
|
63
|
+
padding-top: nhsuk-spacing(2);
|
|
64
|
+
padding-right: nhsuk-spacing(4);
|
|
65
|
+
padding-bottom: nhsuk-spacing(2);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.nhsuk-summary-list__actions {
|
|
70
|
+
margin-top: nhsuk-spacing(-1);
|
|
71
|
+
margin-bottom: nhsuk-spacing(3);
|
|
72
|
+
|
|
73
|
+
@include nhsuk-media-query($from: tablet) {
|
|
74
|
+
width: 20%;
|
|
75
|
+
text-align: right;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.nhsuk-summary-list__key,
|
|
80
|
+
.nhsuk-summary-list__value {
|
|
81
|
+
// Automatic wrapping for unbreakable text (e.g. URLs)
|
|
82
|
+
@include nhsuk-text-break-word;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.nhsuk-summary-list__key {
|
|
86
|
+
margin-bottom: nhsuk-spacing(1);
|
|
87
|
+
@include nhsuk-typography-weight-bold;
|
|
88
|
+
|
|
89
|
+
@include nhsuk-media-query($from: tablet) {
|
|
90
|
+
width: 30%;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.nhsuk-summary-list__value {
|
|
95
|
+
@include nhsuk-media-query($until: tablet) {
|
|
96
|
+
margin-bottom: nhsuk-spacing(3);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.nhsuk-summary-list__value > p {
|
|
101
|
+
margin-bottom: nhsuk-spacing(2);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.nhsuk-summary-list__value > :last-child {
|
|
105
|
+
margin-bottom: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.nhsuk-summary-list__actions-list {
|
|
109
|
+
display: flex;
|
|
110
|
+
|
|
111
|
+
flex-wrap: wrap;
|
|
112
|
+
row-gap: 10px;
|
|
113
|
+
|
|
114
|
+
width: 100%;
|
|
115
|
+
margin: 0; // Reset default user agent styles
|
|
116
|
+
padding: 0; // Reset default user agent styles
|
|
117
|
+
|
|
118
|
+
list-style: none;
|
|
119
|
+
|
|
120
|
+
@include nhsuk-media-query($from: tablet) {
|
|
121
|
+
justify-content: right;
|
|
122
|
+
text-align: right;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.nhsuk-summary-list__actions-list-item {
|
|
127
|
+
display: inline-block;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@include nhsuk-media-query($until: tablet) {
|
|
131
|
+
.nhsuk-summary-list__actions-list-item {
|
|
132
|
+
margin-right: nhsuk-spacing(2);
|
|
133
|
+
padding-right: nhsuk-spacing(2);
|
|
134
|
+
border-right: 1px solid $nhsuk-border-colour;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.nhsuk-summary-list__actions-list-item:last-child {
|
|
138
|
+
margin-right: 0;
|
|
139
|
+
padding-right: 0;
|
|
140
|
+
border: 0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@include nhsuk-media-query($from: tablet) {
|
|
145
|
+
.nhsuk-summary-list__actions-list-item {
|
|
146
|
+
margin-bottom: 0;
|
|
147
|
+
margin-left: nhsuk-spacing(2);
|
|
148
|
+
padding-left: nhsuk-spacing(2);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.nhsuk-summary-list__actions-list-item:not(:first-child) {
|
|
152
|
+
border-left: 1px solid $nhsuk-border-colour;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.nhsuk-summary-list__actions-list-item:first-child {
|
|
156
|
+
margin-left: 0;
|
|
157
|
+
padding-left: 0;
|
|
158
|
+
border: 0;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// Large groups of action links may wrap onto multiple lines. Because the link
|
|
163
|
+
// focus styles are applied outside of the link's bounding box, there are
|
|
164
|
+
// situations where the focus style on a link can be overlapped by subsequent
|
|
165
|
+
// links. We don't want this, so let's create a new stacking context on focus
|
|
166
|
+
// so the link always appears to be 'on top'.
|
|
167
|
+
.nhsuk-summary-list__actions-list-item .nhsuk-link:focus {
|
|
168
|
+
isolation: isolate;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// No border on entire summary list
|
|
172
|
+
.nhsuk-summary-list--no-border {
|
|
173
|
+
.nhsuk-summary-list__row {
|
|
174
|
+
border: 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Increase padding by 1px to compensate for 'missing' border
|
|
178
|
+
@include nhsuk-media-query($from: tablet) {
|
|
179
|
+
.nhsuk-summary-list__key,
|
|
180
|
+
.nhsuk-summary-list__value,
|
|
181
|
+
.nhsuk-summary-list__actions {
|
|
182
|
+
padding-bottom: nhsuk-spacing(2) + 1px;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// No border on specific rows
|
|
188
|
+
.nhsuk-summary-list__row--no-border {
|
|
189
|
+
border: 0;
|
|
190
|
+
|
|
191
|
+
// Increase padding by 1px to compensate for 'missing' border
|
|
192
|
+
@include nhsuk-media-query($from: tablet) {
|
|
193
|
+
.nhsuk-summary-list__key,
|
|
194
|
+
.nhsuk-summary-list__value,
|
|
195
|
+
.nhsuk-summary-list__actions {
|
|
196
|
+
padding-bottom: nhsuk-spacing(2) + 1px;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.nhsuk-card__content {
|
|
202
|
+
.nhsuk-summary-list:last-child .nhsuk-summary-list__row:last-of-type {
|
|
203
|
+
margin-bottom: 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.nhsuk-summary-list--no-border:last-child .nhsuk-summary-list__row:last-of-type > :last-child,
|
|
207
|
+
.nhsuk-summary-list:last-child .nhsuk-summary-list__row--no-border:last-of-type > :last-child {
|
|
208
|
+
@include nhsuk-media-query($until: tablet) {
|
|
209
|
+
margin-bottom: 0;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/*# sourceMappingURL=_index.scss.map */
|