design_system 0.11.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 +4 -0
- 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 +2 -0
- 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 -7
- 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.11.0 → design_system-0.12.0}/design_system.js +0 -0
|
@@ -0,0 +1,783 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "../../core/objects" as *;
|
|
3
|
+
@use "../../core/settings" as *;
|
|
4
|
+
@use "../../core/tools" as *;
|
|
5
|
+
@use "../../core/helpers" as *;
|
|
6
|
+
@forward "../../core/styles/icons";
|
|
7
|
+
@forward "../input";
|
|
8
|
+
|
|
9
|
+
////
|
|
10
|
+
/// Header component
|
|
11
|
+
///
|
|
12
|
+
/// This component has 4 colour variations:
|
|
13
|
+
///
|
|
14
|
+
/// 1. Blue background
|
|
15
|
+
/// 2. Blue background with white background for navigation
|
|
16
|
+
/// 3. White background with blue background for navigation
|
|
17
|
+
/// 4. White background
|
|
18
|
+
///
|
|
19
|
+
/// The behaviour with regards to navigation is as follows:
|
|
20
|
+
///
|
|
21
|
+
/// Menu toggle button is hidden until there is no space for navigation items
|
|
22
|
+
/// to display horizontally. Once there are overflowing navigation items to
|
|
23
|
+
/// display, the menu toggle button is shown, which toggles the overflow menu.
|
|
24
|
+
///
|
|
25
|
+
/// @group components/header
|
|
26
|
+
////
|
|
27
|
+
|
|
28
|
+
$nhsuk-header-item-colour: $nhsuk-brand-colour;
|
|
29
|
+
$nhsuk-header-item-button-colour: nhsuk-tint($nhsuk-brand-colour, 93%);
|
|
30
|
+
$nhsuk-header-item-hover-colour: nhsuk-shade($nhsuk-brand-colour, 20%);
|
|
31
|
+
$nhsuk-header-item-active-colour: nhsuk-shade($nhsuk-brand-colour, 35%);
|
|
32
|
+
|
|
33
|
+
$nhsuk-header-reverse-item-colour: $nhsuk-reverse-text-colour;
|
|
34
|
+
$nhsuk-header-reverse-item-hover-colour: $nhsuk-reverse-text-colour;
|
|
35
|
+
$nhsuk-header-reverse-item-active-colour: $nhsuk-reverse-text-colour;
|
|
36
|
+
|
|
37
|
+
/// Header link styling
|
|
38
|
+
///
|
|
39
|
+
/// @param {Colour} $link-colour [$nhsuk-header-item-colour] - Link colour
|
|
40
|
+
/// @param {Colour} $link-hover-colour [$nhsuk-header-item-hover-colour] - Link hover colour
|
|
41
|
+
/// @param {Colour} $link-active-colour [$nhsuk-header-item-active-colour] - Link active colour
|
|
42
|
+
///
|
|
43
|
+
/// @access private
|
|
44
|
+
|
|
45
|
+
@mixin _header-link-style(
|
|
46
|
+
$link-colour: $nhsuk-header-item-colour,
|
|
47
|
+
$link-hover-colour: $nhsuk-header-item-hover-colour,
|
|
48
|
+
$link-active-colour: $nhsuk-header-item-active-colour
|
|
49
|
+
) {
|
|
50
|
+
& {
|
|
51
|
+
color: $link-colour;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@include nhsuk-link-style-visited($link-colour);
|
|
55
|
+
@include nhsuk-link-style-hover($link-hover-colour);
|
|
56
|
+
@include nhsuk-link-style-active($link-active-colour);
|
|
57
|
+
@include nhsuk-link-style-focus;
|
|
58
|
+
|
|
59
|
+
&:focus,
|
|
60
|
+
&:focus:visited {
|
|
61
|
+
color: $nhsuk-focus-text-colour;
|
|
62
|
+
box-shadow: inset 0 ($nhsuk-focus-width * -1) $nhsuk-focus-text-colour;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@include nhsuk-print-colour($print-colour: inherit) {
|
|
66
|
+
&::after {
|
|
67
|
+
content: "";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@include nhsuk-exports("nhsuk/components/header") {
|
|
73
|
+
$_header-item-padding: 12px;
|
|
74
|
+
$_header-link-padding: 2px;
|
|
75
|
+
$_header-item-active-size: $nhsuk-focus-width;
|
|
76
|
+
|
|
77
|
+
.nhsuk-header {
|
|
78
|
+
outline: 1px solid transparent;
|
|
79
|
+
color: $nhsuk-reverse-text-colour;
|
|
80
|
+
background-color: $nhsuk-brand-colour;
|
|
81
|
+
|
|
82
|
+
// Add shadow to bottom of header when open
|
|
83
|
+
&:has(.nhsuk-header__menu-list:not([hidden])) {
|
|
84
|
+
border-bottom: nhsuk-spacing(1) solid $nhsuk-border-colour;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@include nhsuk-print-colour;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.nhsuk-header__container {
|
|
91
|
+
padding: nhsuk-spacing(3) 0;
|
|
92
|
+
|
|
93
|
+
@include nhsuk-media-query($from: tablet) {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-flow: row wrap;
|
|
96
|
+
gap: nhsuk-spacing(3);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Service logo (and optional name)
|
|
101
|
+
|
|
102
|
+
.nhsuk-header__logo {
|
|
103
|
+
min-width: nhsuk-px-to-rem(100px);
|
|
104
|
+
height: auto;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.nhsuk-header__service,
|
|
108
|
+
.nhsuk-header__service-logo {
|
|
109
|
+
margin-right: auto;
|
|
110
|
+
gap: nhsuk-spacing(2) nhsuk-spacing(3);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.nhsuk-header__service {
|
|
114
|
+
display: flex;
|
|
115
|
+
|
|
116
|
+
@include nhsuk-media-query($from: tablet) {
|
|
117
|
+
flex-grow: 999;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.nhsuk-header__service-name {
|
|
122
|
+
display: inline-flex;
|
|
123
|
+
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
flex-grow: 0;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
|
|
128
|
+
max-width: 54ch;
|
|
129
|
+
margin-right: auto;
|
|
130
|
+
|
|
131
|
+
text-wrap: balance;
|
|
132
|
+
@include nhsuk-font(19, $line-height: 1.1);
|
|
133
|
+
|
|
134
|
+
&:only-child {
|
|
135
|
+
display: block;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.nhsuk-header__service-logo {
|
|
140
|
+
display: inline-flex;
|
|
141
|
+
|
|
142
|
+
position: relative;
|
|
143
|
+
|
|
144
|
+
flex-grow: 0;
|
|
145
|
+
|
|
146
|
+
margin-right: 0;
|
|
147
|
+
|
|
148
|
+
line-height: 0;
|
|
149
|
+
text-decoration: none;
|
|
150
|
+
|
|
151
|
+
&:only-child {
|
|
152
|
+
display: flex;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// Add SVG logo underline on hover
|
|
156
|
+
//
|
|
157
|
+
// It should be possible to add a box shadow directly to .nhsuk-header_logo
|
|
158
|
+
// however Safari doesn’t render anything beyond the bounding box of the SVG.
|
|
159
|
+
// By adding a pseudo element with the same dimensions, we style this instead.
|
|
160
|
+
&:has(svg):not(:focus):hover::before {
|
|
161
|
+
content: "";
|
|
162
|
+
|
|
163
|
+
box-sizing: border-box;
|
|
164
|
+
|
|
165
|
+
display: inline;
|
|
166
|
+
|
|
167
|
+
position: absolute;
|
|
168
|
+
top: 0.2rem;
|
|
169
|
+
|
|
170
|
+
width: nhsuk-px-to-rem(100px);
|
|
171
|
+
height: nhsuk-px-to-rem(40px);
|
|
172
|
+
|
|
173
|
+
border-bottom: 0.1rem solid currentcolor;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.nhsuk-header__service-logo,
|
|
178
|
+
.nhsuk-header__service-name[href],
|
|
179
|
+
.nhsuk-header__account-button,
|
|
180
|
+
.nhsuk-header__account-link {
|
|
181
|
+
@include _header-link-style(
|
|
182
|
+
$link-colour: $nhsuk-header-reverse-item-colour,
|
|
183
|
+
$link-hover-colour: $nhsuk-header-reverse-item-hover-colour,
|
|
184
|
+
$link-active-colour: $nhsuk-header-reverse-item-active-colour
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Account
|
|
189
|
+
|
|
190
|
+
.nhsuk-header__account {
|
|
191
|
+
flex-grow: 1;
|
|
192
|
+
|
|
193
|
+
margin-top: nhsuk-spacing(3);
|
|
194
|
+
|
|
195
|
+
overflow: hidden;
|
|
196
|
+
|
|
197
|
+
border: 1px solid nhsuk-shade($nhsuk-brand-colour, 20%);
|
|
198
|
+
border-radius: nhsuk-px-to-rem($nhsuk-border-radius);
|
|
199
|
+
|
|
200
|
+
background-color: nhsuk-shade($nhsuk-brand-colour, 20%);
|
|
201
|
+
|
|
202
|
+
.nhsuk-icon--user {
|
|
203
|
+
flex-shrink: 0;
|
|
204
|
+
width: nhsuk-px-to-rem(24px);
|
|
205
|
+
height: nhsuk-px-to-rem(24px);
|
|
206
|
+
fill: currentcolor;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@include nhsuk-print-hide;
|
|
210
|
+
|
|
211
|
+
@include nhsuk-media-query($from: tablet) {
|
|
212
|
+
align-self: start;
|
|
213
|
+
|
|
214
|
+
// Expand header account by 1px to ensure the search
|
|
215
|
+
// input does not appear to be taller when inline
|
|
216
|
+
margin: -1px;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.nhsuk-header__account-list {
|
|
221
|
+
display: flex;
|
|
222
|
+
|
|
223
|
+
position: relative;
|
|
224
|
+
|
|
225
|
+
flex-wrap: wrap;
|
|
226
|
+
|
|
227
|
+
margin: 0;
|
|
228
|
+
padding: 0;
|
|
229
|
+
|
|
230
|
+
overflow: hidden;
|
|
231
|
+
|
|
232
|
+
list-style: none;
|
|
233
|
+
|
|
234
|
+
gap: 1px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.nhsuk-header__account-item {
|
|
238
|
+
display: flex;
|
|
239
|
+
|
|
240
|
+
flex-grow: 1;
|
|
241
|
+
|
|
242
|
+
margin: 0;
|
|
243
|
+
padding: nhsuk-spacing(2) $_header-item-padding;
|
|
244
|
+
|
|
245
|
+
outline: 1px solid $nhsuk-brand-colour;
|
|
246
|
+
|
|
247
|
+
overflow-wrap: anywhere;
|
|
248
|
+
|
|
249
|
+
gap: nhsuk-spacing(2);
|
|
250
|
+
@include nhsuk-font(16);
|
|
251
|
+
|
|
252
|
+
&:nth-last-child(2) {
|
|
253
|
+
margin-right: auto;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&:last-child {
|
|
257
|
+
flex-grow: 0;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.nhsuk-header__account-button,
|
|
262
|
+
.nhsuk-header__account-link {
|
|
263
|
+
display: flex;
|
|
264
|
+
margin: nhsuk-spacing(-2) ($_header-item-padding * -1);
|
|
265
|
+
padding: nhsuk-spacing(2) $_header-item-padding;
|
|
266
|
+
overflow-wrap: anywhere;
|
|
267
|
+
gap: nhsuk-spacing(2);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.nhsuk-header__account-button {
|
|
271
|
+
border: 0;
|
|
272
|
+
background: none;
|
|
273
|
+
text-decoration: underline;
|
|
274
|
+
cursor: pointer;
|
|
275
|
+
@include nhsuk-font(16);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// Search
|
|
279
|
+
|
|
280
|
+
.nhsuk-header__search {
|
|
281
|
+
display: block;
|
|
282
|
+
position: relative;
|
|
283
|
+
z-index: 10;
|
|
284
|
+
flex-grow: 1;
|
|
285
|
+
margin-top: nhsuk-spacing(3);
|
|
286
|
+
|
|
287
|
+
@include nhsuk-print-hide;
|
|
288
|
+
|
|
289
|
+
@include nhsuk-media-query($from: tablet) {
|
|
290
|
+
margin: 0;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.nhsuk-icon--search {
|
|
294
|
+
width: nhsuk-px-to-rem(28px);
|
|
295
|
+
height: nhsuk-px-to-rem(28px);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.nhsuk-header__search-form {
|
|
300
|
+
display: flex;
|
|
301
|
+
height: 100%;
|
|
302
|
+
overflow: visible;
|
|
303
|
+
|
|
304
|
+
.nhsuk-form-group {
|
|
305
|
+
width: 100%;
|
|
306
|
+
margin: 0;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.nhsuk-input-wrapper {
|
|
310
|
+
display: flex;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
// Disable default search input appearance
|
|
315
|
+
.nhsuk-header__search-form .nhsuk-input,
|
|
316
|
+
// Deprecated, to be removed in v11.0
|
|
317
|
+
.nhsuk-header__search-input {
|
|
318
|
+
width: 100%;
|
|
319
|
+
height: nhsuk-px-to-rem(40px);
|
|
320
|
+
padding-right: $_header-item-padding - $nhsuk-border-width-form-element;
|
|
321
|
+
padding-left: $_header-item-padding - $nhsuk-border-width-form-element;
|
|
322
|
+
|
|
323
|
+
border-radius: nhsuk-px-to-rem($nhsuk-border-radius) 0 0 nhsuk-px-to-rem($nhsuk-border-radius);
|
|
324
|
+
border-color: transparent;
|
|
325
|
+
|
|
326
|
+
background-color: $nhsuk-input-background-colour;
|
|
327
|
+
|
|
328
|
+
@include nhsuk-font-size(16);
|
|
329
|
+
|
|
330
|
+
&:focus {
|
|
331
|
+
z-index: 10;
|
|
332
|
+
border-color: $nhsuk-focus-text-colour;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// Hide search input clear button (IE)
|
|
336
|
+
&::-ms-clear {
|
|
337
|
+
display: none;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
// Hide search input icon and cancel button (WebKit, Blink)
|
|
341
|
+
&::-webkit-search-decoration,
|
|
342
|
+
&::-webkit-search-cancel-button {
|
|
343
|
+
-webkit-appearance: none;
|
|
344
|
+
appearance: none;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
@include nhsuk-media-query($until: tablet) {
|
|
348
|
+
font-size: inherit;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.nhsuk-header__search-form .nhsuk-button,
|
|
353
|
+
// Deprecated, to be removed in v11.0
|
|
354
|
+
.nhsuk-header__search-submit {
|
|
355
|
+
flex-shrink: 0;
|
|
356
|
+
|
|
357
|
+
width: nhsuk-px-to-rem(44px);
|
|
358
|
+
height: nhsuk-px-to-rem(40px);
|
|
359
|
+
|
|
360
|
+
// stylelint-disable-next-line declaration-no-important
|
|
361
|
+
margin: 0 !important;
|
|
362
|
+
|
|
363
|
+
// Reduce padding to better fit icon
|
|
364
|
+
padding: 0 nhsuk-spacing(2) - 1px;
|
|
365
|
+
|
|
366
|
+
border: 1px solid transparent;
|
|
367
|
+
border-radius: 0 nhsuk-px-to-rem($nhsuk-border-radius) nhsuk-px-to-rem($nhsuk-border-radius) 0;
|
|
368
|
+
|
|
369
|
+
color: $nhsuk-brand-colour;
|
|
370
|
+
background-color: $nhsuk-header-item-button-colour;
|
|
371
|
+
box-shadow: none;
|
|
372
|
+
|
|
373
|
+
line-height: 1;
|
|
374
|
+
|
|
375
|
+
cursor: pointer;
|
|
376
|
+
|
|
377
|
+
&:hover,
|
|
378
|
+
&:active {
|
|
379
|
+
border-color: nhsuk-colour("white");
|
|
380
|
+
color: nhsuk-colour("white");
|
|
381
|
+
background-color: $nhsuk-header-item-hover-colour;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
&:active {
|
|
385
|
+
background-color: $nhsuk-header-item-active-colour;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
// Prevent height change when pressed
|
|
389
|
+
&:active,
|
|
390
|
+
&:active:focus {
|
|
391
|
+
top: 0;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
&:focus {
|
|
395
|
+
outline: none;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
&:focus:not(:active),
|
|
399
|
+
&:focus:not(:active):hover {
|
|
400
|
+
border-color: transparent;
|
|
401
|
+
|
|
402
|
+
@include nhsuk-focused-button;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
// Navigation
|
|
407
|
+
|
|
408
|
+
.nhsuk-header__navigation {
|
|
409
|
+
border: 0 solid nhsuk-colour("white");
|
|
410
|
+
color: nhsuk-colour("white");
|
|
411
|
+
background-color: $nhsuk-brand-colour;
|
|
412
|
+
|
|
413
|
+
@media screen and (forced-colors: active), (-ms-high-contrast: active) {
|
|
414
|
+
border: 0;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
@include nhsuk-print-hide;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.nhsuk-header__navigation-list {
|
|
421
|
+
display: flex;
|
|
422
|
+
|
|
423
|
+
position: relative;
|
|
424
|
+
|
|
425
|
+
flex-wrap: wrap;
|
|
426
|
+
|
|
427
|
+
width: calc(100% + $nhsuk-gutter-half);
|
|
428
|
+
margin: 0 math.div($nhsuk-gutter-half, 2) * -1;
|
|
429
|
+
padding: 0;
|
|
430
|
+
|
|
431
|
+
list-style: none;
|
|
432
|
+
|
|
433
|
+
@include nhsuk-media-query($from: tablet) {
|
|
434
|
+
width: calc(100% + $nhsuk-gutter);
|
|
435
|
+
margin: 0 math.div($nhsuk-gutter, 2) * -1;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.nhsuk-header__navigation--justified & {
|
|
439
|
+
@include nhsuk-media-query($from: desktop) {
|
|
440
|
+
justify-content: space-between;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.nhsuk-frontend-supported & {
|
|
445
|
+
flex-wrap: nowrap;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.nhsuk-header__navigation-item {
|
|
450
|
+
margin-bottom: 0;
|
|
451
|
+
padding: 0 math.div($nhsuk-gutter-half, 2);
|
|
452
|
+
|
|
453
|
+
@include nhsuk-media-query($from: tablet) {
|
|
454
|
+
padding: 0 $nhsuk-gutter-half;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
// This is a <strong> element used as a fallback mechanism for visually
|
|
459
|
+
// indicating current page in scenarios where CSS isn’t available.
|
|
460
|
+
// We don’t actually want it to be bold normally, so inherit parent font-weight.
|
|
461
|
+
.nhsuk-header__navigation-item-current-fallback {
|
|
462
|
+
font-weight: inherit;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.nhsuk-header__navigation-link {
|
|
466
|
+
display: block;
|
|
467
|
+
position: relative;
|
|
468
|
+
padding: nhsuk-spacing(3) $_header-link-padding;
|
|
469
|
+
white-space: nowrap;
|
|
470
|
+
@include nhsuk-font(16);
|
|
471
|
+
@include _header-link-style(
|
|
472
|
+
$link-colour: $nhsuk-header-reverse-item-colour,
|
|
473
|
+
$link-hover-colour: $nhsuk-header-reverse-item-hover-colour,
|
|
474
|
+
$link-active-colour: $nhsuk-header-reverse-item-active-colour
|
|
475
|
+
);
|
|
476
|
+
|
|
477
|
+
// Visual indicator for navigation item uses a border on bottom edge
|
|
478
|
+
&::before {
|
|
479
|
+
content: "";
|
|
480
|
+
|
|
481
|
+
display: block;
|
|
482
|
+
|
|
483
|
+
position: absolute;
|
|
484
|
+
right: 0;
|
|
485
|
+
bottom: 0;
|
|
486
|
+
left: 0;
|
|
487
|
+
|
|
488
|
+
border: 0 solid currentcolor;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
// Visual indicator for current navigation
|
|
492
|
+
&[aria-current="page"]::before,
|
|
493
|
+
&[aria-current="true"]::before {
|
|
494
|
+
border-bottom-width: $_header-item-active-size;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
@include nhsuk-media-query($until: tablet) {
|
|
498
|
+
font-size: inherit;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
// Menu (shown when screen can’t fit all navigation items)
|
|
503
|
+
|
|
504
|
+
.nhsuk-header__menu {
|
|
505
|
+
align-self: center;
|
|
506
|
+
padding: 0 math.div($nhsuk-gutter-half, 2);
|
|
507
|
+
|
|
508
|
+
&[hidden] {
|
|
509
|
+
display: none;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
@include nhsuk-media-query($from: tablet) {
|
|
513
|
+
padding: 0 $nhsuk-gutter-half;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.nhsuk-header__menu-toggle {
|
|
518
|
+
$_chevron-font-size: 19;
|
|
519
|
+
|
|
520
|
+
display: flex;
|
|
521
|
+
|
|
522
|
+
align-items: center;
|
|
523
|
+
|
|
524
|
+
margin: 0;
|
|
525
|
+
padding-right: nhsuk-em($_chevron-font-size, 16);
|
|
526
|
+
|
|
527
|
+
border: 0;
|
|
528
|
+
border-radius: 0;
|
|
529
|
+
|
|
530
|
+
background: transparent;
|
|
531
|
+
|
|
532
|
+
text-align: center;
|
|
533
|
+
|
|
534
|
+
cursor: pointer;
|
|
535
|
+
|
|
536
|
+
&[hidden] {
|
|
537
|
+
display: none;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
&::after {
|
|
541
|
+
content: "";
|
|
542
|
+
|
|
543
|
+
position: absolute;
|
|
544
|
+
top: 2px;
|
|
545
|
+
right: $_header-link-padding;
|
|
546
|
+
bottom: 0;
|
|
547
|
+
|
|
548
|
+
margin: auto;
|
|
549
|
+
|
|
550
|
+
@include nhsuk-shape-chevron(down, currentcolor, $font-size: $_chevron-font-size);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
&[aria-expanded="true"]::after {
|
|
554
|
+
@include nhsuk-shape-chevron(up, currentcolor, $font-size: $_chevron-font-size);
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.nhsuk-header__menu-list {
|
|
559
|
+
position: absolute;
|
|
560
|
+
top: 100%;
|
|
561
|
+
right: 0;
|
|
562
|
+
left: 0;
|
|
563
|
+
|
|
564
|
+
margin: 0 math.div($nhsuk-gutter-half, 2);
|
|
565
|
+
padding: 0;
|
|
566
|
+
|
|
567
|
+
list-style: none;
|
|
568
|
+
|
|
569
|
+
@include nhsuk-print-hide;
|
|
570
|
+
|
|
571
|
+
@include nhsuk-media-query($from: tablet) {
|
|
572
|
+
margin: 0 $nhsuk-gutter-half;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
&[hidden] {
|
|
576
|
+
display: none;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.nhsuk-header__navigation-link {
|
|
580
|
+
@include _header-link-style;
|
|
581
|
+
|
|
582
|
+
// Visual indicator for navigation item uses a border on left edge
|
|
583
|
+
&[aria-current="page"]::before,
|
|
584
|
+
&[aria-current="true"]::before {
|
|
585
|
+
top: 0;
|
|
586
|
+
right: auto;
|
|
587
|
+
bottom: 0;
|
|
588
|
+
left: -$nhsuk-gutter-half;
|
|
589
|
+
|
|
590
|
+
width: 0;
|
|
591
|
+
|
|
592
|
+
border-left-width: $_header-item-active-size;
|
|
593
|
+
|
|
594
|
+
// stylelint-disable-next-line max-nesting-depth
|
|
595
|
+
@include nhsuk-media-query($from: desktop) {
|
|
596
|
+
left: -$nhsuk-gutter;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.nhsuk-header__navigation-item {
|
|
602
|
+
padding: 0;
|
|
603
|
+
border-bottom: 1px solid nhsuk-colour("grey-5");
|
|
604
|
+
|
|
605
|
+
&:last-child {
|
|
606
|
+
border-color: transparent;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
// White header navigation variant
|
|
612
|
+
|
|
613
|
+
.nhsuk-header__navigation--white {
|
|
614
|
+
color: $nhsuk-brand-colour;
|
|
615
|
+
background-color: nhsuk-colour("white");
|
|
616
|
+
|
|
617
|
+
.nhsuk-header__navigation-link {
|
|
618
|
+
@include _header-link-style;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.nhsuk-header__menu-list {
|
|
622
|
+
border-top: 1px solid nhsuk-colour("grey-5");
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
// When header and navigation have the same background colour:
|
|
627
|
+
// - Until tablet breakpoint, add negative top margin
|
|
628
|
+
// - From tablet breakpoint, add a top border
|
|
629
|
+
.nhsuk-header__navigation-container {
|
|
630
|
+
box-shadow: 0 -1px 0 0 $nhsuk-secondary-border-colour;
|
|
631
|
+
|
|
632
|
+
.nhsuk-header--white .nhsuk-header__navigation--white & {
|
|
633
|
+
box-shadow: 0 -1px 0 0 $nhsuk-border-colour;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.nhsuk-header--white :not(.nhsuk-header__navigation--white) &,
|
|
637
|
+
.nhsuk-header__navigation--white & {
|
|
638
|
+
margin-top: 0;
|
|
639
|
+
box-shadow: none;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
&,
|
|
643
|
+
.nhsuk-header--white .nhsuk-header__navigation--white & {
|
|
644
|
+
@include nhsuk-media-query($until: tablet) {
|
|
645
|
+
margin-top: math.div($nhsuk-gutter, 2) * -1;
|
|
646
|
+
box-shadow: none;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
// White header variant
|
|
652
|
+
|
|
653
|
+
.nhsuk-header--white {
|
|
654
|
+
color: $nhsuk-brand-colour;
|
|
655
|
+
background-color: nhsuk-colour("white");
|
|
656
|
+
|
|
657
|
+
.nhsuk-header__service-logo,
|
|
658
|
+
.nhsuk-header__service-name[href],
|
|
659
|
+
.nhsuk-header__account-button,
|
|
660
|
+
.nhsuk-header__account-link {
|
|
661
|
+
@include _header-link-style;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.nhsuk-header__service-logo:not(:focus):not(:hover) .nhsuk-header__organisation-name {
|
|
665
|
+
color: $nhsuk-text-colour;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.nhsuk-header__account {
|
|
669
|
+
border-color: $nhsuk-border-colour;
|
|
670
|
+
background-color: nhsuk-colour("grey-5");
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.nhsuk-header__account-item {
|
|
674
|
+
outline-color: $nhsuk-border-colour;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.nhsuk-header__search-form .nhsuk-input:not(:focus),
|
|
678
|
+
// Deprecated, to be removed in v11.0
|
|
679
|
+
.nhsuk-header__search-input:not(:focus) {
|
|
680
|
+
margin-right: -1px;
|
|
681
|
+
padding-right: $_header-item-padding;
|
|
682
|
+
padding-left: $_header-item-padding - 1px;
|
|
683
|
+
border-width: 1px;
|
|
684
|
+
border-color: $nhsuk-border-hover-colour;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.nhsuk-header__search-form .nhsuk-button,
|
|
688
|
+
// Deprecated, to be removed in v11.0
|
|
689
|
+
.nhsuk-header__search-submit {
|
|
690
|
+
color: $nhsuk-reverse-text-colour;
|
|
691
|
+
background-color: $nhsuk-header-item-colour;
|
|
692
|
+
|
|
693
|
+
&:hover,
|
|
694
|
+
&:active {
|
|
695
|
+
border-color: $nhsuk-header-item-hover-colour;
|
|
696
|
+
background-color: $nhsuk-header-item-hover-colour;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
&:active {
|
|
700
|
+
background-color: $nhsuk-header-item-active-colour;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
// Organisation header variant
|
|
706
|
+
|
|
707
|
+
.nhsuk-header--organisation {
|
|
708
|
+
.nhsuk-header__logo {
|
|
709
|
+
width: nhsuk-px-to-rem(60px);
|
|
710
|
+
min-width: auto;
|
|
711
|
+
height: nhsuk-px-to-rem(24px);
|
|
712
|
+
margin-bottom: nhsuk-px-to-rem(6px);
|
|
713
|
+
|
|
714
|
+
@include nhsuk-media-query($from: tablet) {
|
|
715
|
+
width: nhsuk-px-to-rem(80px);
|
|
716
|
+
height: nhsuk-px-to-rem(32px);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.nhsuk-header__service-logo {
|
|
721
|
+
display: block;
|
|
722
|
+
|
|
723
|
+
// Adjust SVG logo underline position
|
|
724
|
+
&:has(svg):not(:focus):hover::before {
|
|
725
|
+
width: nhsuk-px-to-rem(60px);
|
|
726
|
+
height: nhsuk-px-to-rem(24px);
|
|
727
|
+
|
|
728
|
+
@include nhsuk-media-query($from: tablet) {
|
|
729
|
+
width: nhsuk-px-to-rem(80px);
|
|
730
|
+
height: nhsuk-px-to-rem(32px);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.nhsuk-header__organisation-name {
|
|
737
|
+
display: block;
|
|
738
|
+
@include nhsuk-font(22, $weight: bold, $line-height: 1.1);
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.nhsuk-header__organisation-name-split {
|
|
742
|
+
display: block;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.nhsuk-header__organisation-name-descriptor {
|
|
746
|
+
display: block;
|
|
747
|
+
@include nhsuk-font(14, $weight: bold);
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.nhsuk-header__organisation-logo {
|
|
751
|
+
width: nhsuk-px-to-rem(280px);
|
|
752
|
+
height: auto;
|
|
753
|
+
border: 0;
|
|
754
|
+
|
|
755
|
+
@include nhsuk-media-query($until: 450px) {
|
|
756
|
+
max-width: nhsuk-px-to-rem(150px);
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
&[src$=".svg"] {
|
|
760
|
+
width: nhsuk-px-to-rem(220px);
|
|
761
|
+
max-width: nhsuk-px-to-rem(220px);
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
// Remove service name underline
|
|
766
|
+
.nhsuk-header .nhsuk-header__service-name[href] {
|
|
767
|
+
text-decoration: none;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
// Add service logo underline on hover
|
|
771
|
+
.nhsuk-header .nhsuk-header__service-logo:not(:focus):hover,
|
|
772
|
+
.nhsuk-header .nhsuk-header__service-logo:not(:focus):hover .nhsuk-header__service-name,
|
|
773
|
+
.nhsuk-header .nhsuk-header__service-name[href]:not(:focus):hover {
|
|
774
|
+
text-decoration: underline;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
// Add service logo box shadow on focus
|
|
778
|
+
.nhsuk-header .nhsuk-header__service-logo:focus {
|
|
779
|
+
@include nhsuk-focused-box;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
/*# sourceMappingURL=_index.scss.map */
|