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
data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/checkboxes/_index.scss
ADDED
|
@@ -0,0 +1,337 @@
|
|
|
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
|
+
/// Checkboxes component
|
|
11
|
+
///
|
|
12
|
+
/// @group components/checkboxes
|
|
13
|
+
////
|
|
14
|
+
|
|
15
|
+
$nhsuk-checkboxes-size: nhsuk-px-to-rem(nhsuk-spacing(6));
|
|
16
|
+
$nhsuk-checkboxes-small-size: nhsuk-px-to-rem(nhsuk-spacing(4));
|
|
17
|
+
|
|
18
|
+
$nhsuk-checkboxes-label-padding-left-right: nhsuk-px-to-rem(12px);
|
|
19
|
+
$nhsuk-checkboxes-check-horizontal-position: nhsuk-px-to-rem(12px);
|
|
20
|
+
|
|
21
|
+
// Offset 2px due to 40px form control with 44px clickable area
|
|
22
|
+
// https://nhsuk.github.io/nhsuk-frontend/examples/form-alignment/
|
|
23
|
+
$nhsuk-checkboxes-offset: $nhsuk-border-width-form-element;
|
|
24
|
+
|
|
25
|
+
@include nhsuk-exports("nhsuk/components/checkboxes") {
|
|
26
|
+
$nhsuk-touch-target-gutter: nhsuk-px-to-rem(4px);
|
|
27
|
+
$nhsuk-touch-target-size: $nhsuk-checkboxes-size + nhsuk-px-to-rem($nhsuk-touch-target-gutter);
|
|
28
|
+
|
|
29
|
+
.nhsuk-checkboxes {
|
|
30
|
+
margin: -$nhsuk-checkboxes-offset;
|
|
31
|
+
margin-right: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.nhsuk-checkboxes__item {
|
|
35
|
+
display: flex;
|
|
36
|
+
position: relative;
|
|
37
|
+
flex-wrap: wrap;
|
|
38
|
+
margin-top: nhsuk-spacing(2) - $nhsuk-checkboxes-offset;
|
|
39
|
+
|
|
40
|
+
.nhsuk-checkboxes__conditional:not(.nhsuk-checkboxes__conditional--hidden) + & {
|
|
41
|
+
@include nhsuk-responsive-margin(4, "top", $adjustment: - $nhsuk-checkboxes-offset);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.nhsuk-checkboxes__item:first-child {
|
|
46
|
+
margin-top: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.nhsuk-checkboxes__input {
|
|
50
|
+
// Allow the input to sit above the label, enabling its proper detection
|
|
51
|
+
// when exploring by touch or using automation tools like Selenium
|
|
52
|
+
z-index: 1;
|
|
53
|
+
|
|
54
|
+
width: $nhsuk-touch-target-size;
|
|
55
|
+
height: $nhsuk-touch-target-size;
|
|
56
|
+
margin: 0;
|
|
57
|
+
|
|
58
|
+
opacity: 0;
|
|
59
|
+
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.nhsuk-checkboxes__label {
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
|
|
66
|
+
align-self: center;
|
|
67
|
+
|
|
68
|
+
// Ensure that the width of the label is never more than the width of the
|
|
69
|
+
// container minus the input. This prevents the label from wrapping due to
|
|
70
|
+
// __item using flex-wrap because we want hints on a separate line
|
|
71
|
+
max-width: calc(100% - $nhsuk-touch-target-size);
|
|
72
|
+
margin-bottom: 0;
|
|
73
|
+
padding: (nhsuk-spacing(1) + $nhsuk-border-width-form-element) $nhsuk-checkboxes-label-padding-left-right;
|
|
74
|
+
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
// remove 300ms pause on mobile
|
|
77
|
+
touch-action: manipulation;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// [ ] Check box
|
|
81
|
+
.nhsuk-checkboxes__label::before {
|
|
82
|
+
content: "";
|
|
83
|
+
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
|
|
86
|
+
position: absolute;
|
|
87
|
+
top: math.div($nhsuk-touch-target-gutter, 2);
|
|
88
|
+
left: math.div($nhsuk-touch-target-gutter, 2);
|
|
89
|
+
|
|
90
|
+
width: $nhsuk-checkboxes-size;
|
|
91
|
+
height: $nhsuk-checkboxes-size;
|
|
92
|
+
|
|
93
|
+
border: $nhsuk-border-width-form-element solid $nhsuk-input-border-colour;
|
|
94
|
+
|
|
95
|
+
background: $nhsuk-input-background-colour;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// ✔ Check mark
|
|
99
|
+
//
|
|
100
|
+
// The check mark is a box with a border on the left and bottom side (└──),
|
|
101
|
+
// rotated 45 degrees
|
|
102
|
+
.nhsuk-checkboxes__label::after {
|
|
103
|
+
content: "";
|
|
104
|
+
|
|
105
|
+
box-sizing: border-box;
|
|
106
|
+
|
|
107
|
+
position: absolute;
|
|
108
|
+
|
|
109
|
+
// Use "magic numbers" to define shape and position of check mark because
|
|
110
|
+
// the complexity of the shape makes it difficult to calculate dynamically.
|
|
111
|
+
top: nhsuk-px-to-rem(15px);
|
|
112
|
+
left: $nhsuk-checkboxes-check-horizontal-position;
|
|
113
|
+
|
|
114
|
+
width: nhsuk-px-to-rem(22px);
|
|
115
|
+
height: nhsuk-px-to-rem(10px);
|
|
116
|
+
|
|
117
|
+
transform: rotate(-45deg);
|
|
118
|
+
|
|
119
|
+
border: solid;
|
|
120
|
+
border-width: 0 0 nhsuk-px-to-rem(4px) nhsuk-px-to-rem(4px);
|
|
121
|
+
// Fix bug in IE11 caused by transform rotate (-45deg).
|
|
122
|
+
// See: alphagov/nhsuk_elements/issues/518
|
|
123
|
+
border-top-color: transparent;
|
|
124
|
+
|
|
125
|
+
opacity: 0;
|
|
126
|
+
|
|
127
|
+
background: transparent;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.nhsuk-checkboxes__hint {
|
|
131
|
+
display: block;
|
|
132
|
+
width: 100%;
|
|
133
|
+
margin-top: nhsuk-spacing(-1);
|
|
134
|
+
padding-right: $nhsuk-checkboxes-label-padding-left-right;
|
|
135
|
+
padding-left: ($nhsuk-checkboxes-label-padding-left-right + $nhsuk-touch-target-size);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// This is to bypass nhsuk-hint's specificity on hints following labels having
|
|
139
|
+
// a margin bottom of 10px (nhsuk-spacing(2)). Because checkboxes are flexbox,
|
|
140
|
+
// the margin doesn't collapse so we have to do this manually.
|
|
141
|
+
.nhsuk-label:not(.nhsuk-label--m):not(.nhsuk-label--l):not(.nhsuk-label--xl) + .nhsuk-checkboxes__hint {
|
|
142
|
+
margin-bottom: 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Focused state
|
|
146
|
+
.nhsuk-checkboxes__input:focus + .nhsuk-checkboxes__label::before {
|
|
147
|
+
@include nhsuk-focused-checkbox;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// Selected state
|
|
151
|
+
.nhsuk-checkboxes__input:checked + .nhsuk-checkboxes__label::after {
|
|
152
|
+
opacity: 1;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// Disabled state
|
|
156
|
+
.nhsuk-checkboxes__input:disabled,
|
|
157
|
+
.nhsuk-checkboxes__input:disabled + .nhsuk-checkboxes__label {
|
|
158
|
+
cursor: not-allowed;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.nhsuk-checkboxes__input:disabled + .nhsuk-checkboxes__label,
|
|
162
|
+
.nhsuk-checkboxes__input:disabled ~ .nhsuk-hint {
|
|
163
|
+
opacity: 0.5;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// =========================================================
|
|
167
|
+
// Dividers ('or')
|
|
168
|
+
// =========================================================
|
|
169
|
+
|
|
170
|
+
.nhsuk-checkboxes__divider {
|
|
171
|
+
$nhsuk-divider-size: $nhsuk-checkboxes-size !default;
|
|
172
|
+
width: $nhsuk-divider-size;
|
|
173
|
+
margin-top: nhsuk-spacing(2) - $nhsuk-checkboxes-offset;
|
|
174
|
+
padding: 0 $nhsuk-checkboxes-offset;
|
|
175
|
+
text-align: center;
|
|
176
|
+
@include nhsuk-text-colour;
|
|
177
|
+
@include nhsuk-font($size: 19);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// =========================================================
|
|
181
|
+
// Conditional reveals
|
|
182
|
+
// =========================================================
|
|
183
|
+
|
|
184
|
+
// Calculate the amount of padding needed to keep the border centered against the checkbox.
|
|
185
|
+
$conditional-border-padding: math.div($nhsuk-touch-target-size, 2) - nhsuk-px-to-rem($nhsuk-border-width-form-element);
|
|
186
|
+
// Move the border centered with the checkbox
|
|
187
|
+
$conditional-margin-left: $conditional-border-padding;
|
|
188
|
+
// Move the contents of the conditional inline with the label
|
|
189
|
+
$conditional-padding-left: $conditional-border-padding + $nhsuk-checkboxes-label-padding-left-right;
|
|
190
|
+
|
|
191
|
+
.nhsuk-checkboxes__conditional {
|
|
192
|
+
margin-top: nhsuk-spacing(2) - $nhsuk-checkboxes-offset;
|
|
193
|
+
margin-bottom: $nhsuk-checkboxes-offset;
|
|
194
|
+
margin-left: $conditional-margin-left;
|
|
195
|
+
padding-left: $conditional-padding-left;
|
|
196
|
+
border-left: $nhsuk-border-width solid $nhsuk-input-border-colour;
|
|
197
|
+
|
|
198
|
+
.nhsuk-frontend-supported &--hidden {
|
|
199
|
+
display: none;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// =========================================================
|
|
204
|
+
// Small checkboxes
|
|
205
|
+
// =========================================================
|
|
206
|
+
|
|
207
|
+
.nhsuk-checkboxes--small {
|
|
208
|
+
$input-offset: math.div($nhsuk-touch-target-size - $nhsuk-checkboxes-small-size, 2);
|
|
209
|
+
|
|
210
|
+
.nhsuk-checkboxes__item {
|
|
211
|
+
margin-top: 0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Shift the touch target into the left margin so that the visible edge of
|
|
215
|
+
// the control is aligned
|
|
216
|
+
//
|
|
217
|
+
// ┆What colours do you like?
|
|
218
|
+
// ┌┆───┐
|
|
219
|
+
// │┆[] │ Purple
|
|
220
|
+
// └┆▲──┘
|
|
221
|
+
// ▲┆└─ Check box pseudo element, aligned with margin
|
|
222
|
+
// └─── Touch target (invisible input), shifted into the margin
|
|
223
|
+
.nhsuk-checkboxes__input {
|
|
224
|
+
margin-left: $input-offset * -1;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.nhsuk-checkboxes__label {
|
|
228
|
+
// Create a tiny space between the small checkbox hover state so that it
|
|
229
|
+
// doesn't clash with the label
|
|
230
|
+
padding-left: 1px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// [ ] Check box
|
|
234
|
+
//
|
|
235
|
+
// Reduce the size of the check box [1], vertically center it within the
|
|
236
|
+
// touch target [2]
|
|
237
|
+
// Left here is 0 because we've shifted the input into the left margin
|
|
238
|
+
.nhsuk-checkboxes__label::before {
|
|
239
|
+
top: $input-offset; // 2
|
|
240
|
+
left: 0;
|
|
241
|
+
width: $nhsuk-checkboxes-small-size; // 1
|
|
242
|
+
height: $nhsuk-checkboxes-small-size; // 1
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// ✔ Check mark
|
|
246
|
+
//
|
|
247
|
+
// Reduce the size of the check mark and re-align within the checkbox
|
|
248
|
+
.nhsuk-checkboxes__label::after {
|
|
249
|
+
top: nhsuk-px-to-rem(18px);
|
|
250
|
+
|
|
251
|
+
// Horizontal position is just the normal sized left value accounting for
|
|
252
|
+
// the new width of the smaller checkbox
|
|
253
|
+
left: (nhsuk-px-to-rem(18px) - $nhsuk-checkboxes-check-horizontal-position);
|
|
254
|
+
width: nhsuk-px-to-rem(12px);
|
|
255
|
+
height: nhsuk-px-to-rem(6px);
|
|
256
|
+
border-width: 0 0 nhsuk-px-to-rem(3px) nhsuk-px-to-rem(3px);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
// Fix position of hint with small checkboxes
|
|
260
|
+
//
|
|
261
|
+
// Do not use hints with small checkboxes – because they're within the input
|
|
262
|
+
// wrapper they trigger the hover state, but clicking them doesn't actually
|
|
263
|
+
// activate the control.
|
|
264
|
+
//
|
|
265
|
+
// (If you do use them, they won't look completely broken... but seriously,
|
|
266
|
+
// don't use them)
|
|
267
|
+
.nhsuk-checkboxes__hint {
|
|
268
|
+
padding-left: ($nhsuk-checkboxes-small-size + $input-offset);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// Align conditional reveals with small checkboxes
|
|
272
|
+
.nhsuk-checkboxes__conditional {
|
|
273
|
+
$margin-left: math.div($nhsuk-checkboxes-small-size, 2) - nhsuk-px-to-rem($nhsuk-border-width-form-element);
|
|
274
|
+
margin-left: $margin-left;
|
|
275
|
+
padding-left: ($nhsuk-touch-target-size - $input-offset) - ($margin-left + nhsuk-px-to-rem($nhsuk-border-width));
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.nhsuk-checkboxes__divider {
|
|
279
|
+
width: $nhsuk-checkboxes-small-size;
|
|
280
|
+
margin: nhsuk-spacing(1) - $nhsuk-checkboxes-offset 0;
|
|
281
|
+
padding: 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
// Hover state for small checkboxes.
|
|
285
|
+
//
|
|
286
|
+
// We use a hover state for small checkboxes because the touch target size
|
|
287
|
+
// is so much larger than their visible size, and so we need to provide
|
|
288
|
+
// feedback to the user as to which checkbox they will select when their
|
|
289
|
+
// cursor is outside of the visible area.
|
|
290
|
+
.nhsuk-checkboxes__input:not(:disabled):hover + .nhsuk-checkboxes__label::before,
|
|
291
|
+
.nhsuk-checkboxes__input:not(:disabled) + .nhsuk-checkboxes__label:hover::before {
|
|
292
|
+
// Forced colours modes tend to ignore box-shadow.
|
|
293
|
+
// Apply an outline for those modes to use instead.
|
|
294
|
+
outline: $nhsuk-focus-width dashed transparent;
|
|
295
|
+
outline-offset: 1px;
|
|
296
|
+
box-shadow: 0 0 0 $nhsuk-hover-width $nhsuk-hover-colour;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// Because we've overridden the border-shadow provided by the focus state,
|
|
300
|
+
// we need to redefine that too.
|
|
301
|
+
//
|
|
302
|
+
// We use two box shadows, one that restores the original focus state [1]
|
|
303
|
+
// and another that then applies the hover state [2].
|
|
304
|
+
.nhsuk-checkboxes__input:focus:hover + .nhsuk-checkboxes__label::before,
|
|
305
|
+
.nhsuk-checkboxes__input:focus + .nhsuk-checkboxes__label:hover::before {
|
|
306
|
+
// prettier-ignore
|
|
307
|
+
box-shadow:
|
|
308
|
+
0 0 0 $nhsuk-focus-width $nhsuk-focus-colour, // 1
|
|
309
|
+
0 0 0 $nhsuk-hover-width $nhsuk-hover-colour; // 2
|
|
310
|
+
|
|
311
|
+
// Set different HCM colour when we have both hover/focus applied at once
|
|
312
|
+
@media screen and (forced-colors: active), (-ms-high-contrast: active) {
|
|
313
|
+
outline-color: Highlight;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// For devices that explicitly don't support hover, don't provide a hover
|
|
318
|
+
// state (e.g. on touch devices like iOS).
|
|
319
|
+
//
|
|
320
|
+
// We can't use `@media (hover: hover)` because we wouldn't get the hover
|
|
321
|
+
// state in browsers that don't support `@media (hover)` (like Internet
|
|
322
|
+
// Explorer) – so we have to 'undo' the hover state instead.
|
|
323
|
+
@media (hover: none), (pointer: coarse) {
|
|
324
|
+
.nhsuk-checkboxes__input:not(:disabled):hover + .nhsuk-checkboxes__label::before,
|
|
325
|
+
.nhsuk-checkboxes__input:not(:disabled) + .nhsuk-checkboxes__label:hover::before {
|
|
326
|
+
box-shadow: initial;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.nhsuk-checkboxes__input:focus:hover + .nhsuk-checkboxes__label::before,
|
|
330
|
+
.nhsuk-checkboxes__input:focus + .nhsuk-checkboxes__label:hover::before {
|
|
331
|
+
box-shadow: 0 0 0 $nhsuk-focus-width $nhsuk-focus-colour;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/*# sourceMappingURL=_index.scss.map */
|
data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/contents-list/_index.scss
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use "../../core/settings" as *;
|
|
2
|
+
@use "../../core/tools" as *;
|
|
3
|
+
@use "../../core/helpers" as *;
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// Contents list component
|
|
7
|
+
///
|
|
8
|
+
/// @group components/contents-list
|
|
9
|
+
////
|
|
10
|
+
|
|
11
|
+
@include nhsuk-exports("nhsuk/components/contents-list") {
|
|
12
|
+
.nhsuk-contents-list__list {
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
list-style: none;
|
|
16
|
+
@include nhsuk-responsive-margin(6, "bottom");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.nhsuk-contents-list__item {
|
|
20
|
+
@include nhsuk-shape-dash;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nhsuk-contents-list__link {
|
|
24
|
+
display: inline-block;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.nhsuk-contents-list__current {
|
|
28
|
+
font-weight: $nhsuk-font-weight-bold;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/*# sourceMappingURL=_index.scss.map */
|
data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/date-input/_index.scss
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@use "../../core/tools" as *;
|
|
2
|
+
@forward "../error-message";
|
|
3
|
+
@forward "../input";
|
|
4
|
+
@forward "../hint";
|
|
5
|
+
@forward "../label";
|
|
6
|
+
@forward "../fieldset";
|
|
7
|
+
|
|
8
|
+
////
|
|
9
|
+
/// Date input component
|
|
10
|
+
///
|
|
11
|
+
/// @group components/date-input
|
|
12
|
+
////
|
|
13
|
+
|
|
14
|
+
@include nhsuk-exports("nhsuk/components/date-input") {
|
|
15
|
+
.nhsuk-date-input {
|
|
16
|
+
font-size: 0; // removes whitespace caused by inline-block
|
|
17
|
+
@include nhsuk-clearfix;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.nhsuk-date-input__item {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
margin-right: nhsuk-spacing(4);
|
|
23
|
+
margin-bottom: 0;
|
|
24
|
+
|
|
25
|
+
// Prevents an issue in iOS Safari 18 where the items vertically
|
|
26
|
+
// shift when the value of inputs is changed.
|
|
27
|
+
// https://github.com/alphagov/reported-bugs/issues/90
|
|
28
|
+
vertical-align: bottom;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.nhsuk-date-input__label {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.nhsuk-date-input__input {
|
|
36
|
+
margin-bottom: 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/*# sourceMappingURL=_index.scss.map */
|