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
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
// stylelint-disable declaration-no-important
|
|
2
|
+
|
|
1
3
|
@use "../settings" as *;
|
|
4
|
+
@use "../helpers" as *;
|
|
2
5
|
@use "sass-mq" as *;
|
|
3
6
|
@use "spacing" as *;
|
|
4
7
|
@use "typography" as *;
|
|
@@ -11,17 +14,15 @@
|
|
|
11
14
|
|
|
12
15
|
/// Clearfix mixin
|
|
13
16
|
///
|
|
14
|
-
/// @see utilities/clearfix
|
|
15
|
-
///
|
|
16
17
|
/// @example scss
|
|
17
|
-
/// @include nhsuk-clearfix
|
|
18
|
+
/// @include nhsuk-clearfix;
|
|
18
19
|
///
|
|
19
20
|
|
|
20
|
-
@mixin nhsuk-clearfix
|
|
21
|
+
@mixin nhsuk-clearfix {
|
|
21
22
|
&::after {
|
|
22
|
-
clear: both;
|
|
23
23
|
content: "";
|
|
24
24
|
display: block;
|
|
25
|
+
clear: both;
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -38,13 +39,11 @@
|
|
|
38
39
|
/// Reading width mixin, add a maximum width
|
|
39
40
|
/// to large pieces of content
|
|
40
41
|
///
|
|
41
|
-
/// @see utilities/reading-width
|
|
42
|
-
///
|
|
43
42
|
/// @example scss
|
|
44
|
-
/// @include nhsuk-reading-width
|
|
43
|
+
/// @include nhsuk-reading-width;
|
|
45
44
|
///
|
|
46
45
|
|
|
47
|
-
@mixin nhsuk-reading-width
|
|
46
|
+
@mixin nhsuk-reading-width {
|
|
48
47
|
max-width: 44em;
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -69,40 +68,53 @@
|
|
|
69
68
|
/// @param {Boolean} $important [true] - Whether to mark as `!important`
|
|
70
69
|
///
|
|
71
70
|
/// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)
|
|
71
|
+
///
|
|
72
|
+
/// @access private
|
|
72
73
|
|
|
73
74
|
@mixin _nhsuk-visually-hide-content($important: true) {
|
|
74
|
-
|
|
75
|
+
$properties: (
|
|
76
|
+
"position": absolute,
|
|
77
|
+
|
|
78
|
+
"width": 1px,
|
|
79
|
+
"height": 1px,
|
|
75
80
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
margin: 0 if($important, !important, null);
|
|
81
|
-
padding: 0 if($important, !important, null);
|
|
81
|
+
// If margin is set to a negative value it can cause text to be announced in
|
|
82
|
+
// the wrong order in VoiceOver for OSX
|
|
83
|
+
"margin": 0,
|
|
84
|
+
"padding": 0,
|
|
82
85
|
|
|
83
|
-
|
|
86
|
+
"overflow": hidden,
|
|
84
87
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
// `clip` is needed for IE11 support
|
|
89
|
+
"clip": rect(0 0 0 0),
|
|
90
|
+
"clip-path": inset(50%),
|
|
91
|
+
"border": 0,
|
|
88
92
|
|
|
89
|
-
|
|
93
|
+
// For long content, line feeds are not interpreted as spaces and small width
|
|
94
|
+
// causes content to wrap 1 word per line:
|
|
95
|
+
// https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
|
|
96
|
+
"white-space": nowrap
|
|
97
|
+
);
|
|
90
98
|
|
|
91
|
-
//
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
99
|
+
// Workaround to avoid deprecated `if()` function
|
|
100
|
+
@each $property, $value in $properties {
|
|
101
|
+
@if $important == true {
|
|
102
|
+
#{$property}: $value !important;
|
|
103
|
+
} @else {
|
|
104
|
+
#{$property}: $value;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
95
107
|
|
|
96
108
|
// Prevent users from selecting or copying visually-hidden text. This prevents
|
|
97
109
|
// a user unintentionally copying more text than they intended and needing to
|
|
98
110
|
// manually trim it down again.
|
|
99
|
-
user-select: none;
|
|
111
|
+
-webkit-user-select: none;
|
|
112
|
+
-ms-user-select: none;
|
|
113
|
+
user-select: none;
|
|
100
114
|
}
|
|
101
115
|
|
|
102
116
|
/// Hide an element visually, but have it available for screen readers
|
|
103
117
|
///
|
|
104
|
-
/// @see utilities/visually-hidden
|
|
105
|
-
///
|
|
106
118
|
/// @param {Boolean} $important [true] - Whether to mark as `!important`
|
|
107
119
|
///
|
|
108
120
|
/// @example scss
|
|
@@ -145,7 +157,10 @@
|
|
|
145
157
|
|
|
146
158
|
@mixin nhsuk-visually-hidden-focusable($important: true) {
|
|
147
159
|
// IE 11 doesn't support the combined `:not(:active, :focus)` syntax.
|
|
148
|
-
|
|
160
|
+
// Also allows for ':focus' companion classes from postcss-pseudo-classes
|
|
161
|
+
// which the plugin unfortunately doesn't handle automatically.
|
|
162
|
+
// stylelint-disable-next-line selector-class-pattern
|
|
163
|
+
&:not(:active):not(:focus):not(.\:focus) {
|
|
149
164
|
@include _nhsuk-visually-hide-content($important: $important);
|
|
150
165
|
}
|
|
151
166
|
}
|
|
@@ -180,17 +195,33 @@
|
|
|
180
195
|
"visually-shown is deprecated. Use @media queries to apply `visually-hidden` instead."
|
|
181
196
|
);
|
|
182
197
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
198
|
+
$properties: (
|
|
199
|
+
"position": static,
|
|
200
|
+
|
|
201
|
+
"width": auto,
|
|
202
|
+
"height": auto,
|
|
203
|
+
"margin": 0,
|
|
204
|
+
"padding": 0,
|
|
205
|
+
|
|
206
|
+
"overflow": visible,
|
|
207
|
+
|
|
208
|
+
"clip": auto,
|
|
209
|
+
"clip-path": none,
|
|
210
|
+
|
|
211
|
+
"border": none,
|
|
212
|
+
|
|
213
|
+
"white-space": normal,
|
|
214
|
+
"user-select": auto
|
|
215
|
+
);
|
|
216
|
+
|
|
217
|
+
// Workaround to avoid deprecated `if()` function
|
|
218
|
+
@each $property, $value in $properties {
|
|
219
|
+
@if $important == true {
|
|
220
|
+
#{$property}: $value !important;
|
|
221
|
+
} @else {
|
|
222
|
+
#{$property}: $value;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
194
225
|
|
|
195
226
|
@if $display {
|
|
196
227
|
display: $display;
|
|
@@ -200,13 +231,11 @@
|
|
|
200
231
|
/// Top and bottom margin mixin, remove
|
|
201
232
|
/// the top and bottom margin spacing
|
|
202
233
|
///
|
|
203
|
-
/// @see utilities/top-and-bottom
|
|
204
|
-
///
|
|
205
234
|
/// @example scss
|
|
206
235
|
/// @include nhsuk-top-and-bottom;
|
|
207
236
|
///
|
|
208
237
|
|
|
209
|
-
@mixin nhsuk-top-and-bottom
|
|
238
|
+
@mixin nhsuk-top-and-bottom {
|
|
210
239
|
& > *:first-child {
|
|
211
240
|
margin-top: 0;
|
|
212
241
|
}
|
|
@@ -231,21 +260,27 @@
|
|
|
231
260
|
///
|
|
232
261
|
/// See components/_panel
|
|
233
262
|
///
|
|
263
|
+
/// @param {Colour} $panel-background-colour - Panel background colour
|
|
264
|
+
/// @param {Colour} $panel-text-colour - Panel text colour
|
|
265
|
+
/// @param {Colour} $panel-border-colour [null] - Optional panel border colour
|
|
266
|
+
///
|
|
234
267
|
/// @example scss
|
|
235
|
-
/// @include nhsuk-panel($
|
|
268
|
+
/// @include nhsuk-panel($nhsuk-brand-colour, $nhsuk-reverse-text-colour, $nhsuk-secondary-border-colour);
|
|
236
269
|
///
|
|
237
270
|
|
|
238
|
-
@mixin nhsuk-panel($panel-background-
|
|
239
|
-
|
|
240
|
-
|
|
271
|
+
@mixin nhsuk-panel($panel-background-colour, $panel-text-colour, $panel-border-colour: null) {
|
|
272
|
+
box-sizing: border-box;
|
|
273
|
+
@if $panel-border-colour {
|
|
274
|
+
border: 1px solid $panel-border-colour;
|
|
275
|
+
}
|
|
276
|
+
color: $panel-text-colour;
|
|
277
|
+
background-color: $panel-background-colour;
|
|
241
278
|
|
|
242
279
|
@include nhsuk-top-and-bottom;
|
|
243
280
|
@include nhsuk-responsive-margin(7, "bottom");
|
|
244
|
-
@include nhsuk-responsive-margin(7, "top");
|
|
245
|
-
@include nhsuk-responsive-padding(5);
|
|
246
281
|
|
|
247
282
|
@include nhsuk-media-query($media-type: print) {
|
|
248
|
-
border: 1px solid $nhsuk-print-text-
|
|
283
|
+
border: 1px solid $nhsuk-print-text-colour;
|
|
249
284
|
page-break-inside: avoid;
|
|
250
285
|
}
|
|
251
286
|
}
|
|
@@ -263,20 +298,21 @@
|
|
|
263
298
|
/// Panel with label mixin, inherits panel styling
|
|
264
299
|
/// and removes padding top for the label positioning
|
|
265
300
|
///
|
|
266
|
-
///
|
|
267
|
-
///
|
|
268
|
-
/// @
|
|
301
|
+
/// @param {Colour} $panel-background-colour - Panel background colour
|
|
302
|
+
/// @param {Colour} $panel-text-colour - Panel text colour
|
|
303
|
+
/// @param {Colour} $panel-border-colour - Panel border colour
|
|
269
304
|
///
|
|
270
305
|
/// @example scss
|
|
271
|
-
/// @include nhsuk-panel-with-label($
|
|
306
|
+
/// @include nhsuk-panel-with-label($nhsuk-brand-colour, $nhsuk-reverse-text-colour, $nhsuk-secondary-border-colour);
|
|
272
307
|
///
|
|
273
308
|
|
|
274
|
-
@mixin nhsuk-panel-with-label($panel-background-
|
|
275
|
-
border: 1px solid $panel-border-color;
|
|
276
|
-
// stylelint-disable-next-line declaration-no-important
|
|
309
|
+
@mixin nhsuk-panel-with-label($panel-background-colour, $panel-text-colour, $panel-border-colour) {
|
|
277
310
|
padding-top: 0 !important;
|
|
311
|
+
border: 1px solid $panel-border-colour;
|
|
278
312
|
|
|
279
|
-
@include nhsuk-panel($panel-background-
|
|
313
|
+
@include nhsuk-panel($panel-background-colour, $panel-text-colour, $panel-border-colour);
|
|
314
|
+
@include nhsuk-responsive-margin(7, "top");
|
|
315
|
+
@include nhsuk-responsive-padding(5);
|
|
280
316
|
}
|
|
281
317
|
|
|
282
318
|
/// Panel with label mixin, inherits panel styling
|
|
@@ -293,43 +329,48 @@
|
|
|
293
329
|
/// Heading label mixin, adds a tab heading to
|
|
294
330
|
/// warning callout, do and don't lists and panel
|
|
295
331
|
///
|
|
296
|
-
/// Used in-conjunction with @mixin panel-with-label
|
|
297
|
-
///
|
|
298
|
-
/// @see components/_warning-component
|
|
299
|
-
///
|
|
300
332
|
/// 1. Background colour to be set on the @include.
|
|
301
|
-
/// 2.
|
|
302
|
-
/// 3.
|
|
303
|
-
/// 4.
|
|
304
|
-
/// 5.
|
|
305
|
-
///
|
|
333
|
+
/// 2. Ensures heading appears separate to the body text in high contrast mode.
|
|
334
|
+
/// 3. Text colour to be set on the @include.
|
|
335
|
+
/// 4. Display inline-block so it does not take up the full width.
|
|
336
|
+
/// 5. Negative left margin aligns the heading to the box.
|
|
337
|
+
/// 6. Top positioning set to minus to make heading sit just outside the box.
|
|
338
|
+
///
|
|
339
|
+
/// @param {Colour} $heading-background-colour - Heading background colour
|
|
340
|
+
/// @param {Colour} $heading-text-colour - Heading text colour
|
|
306
341
|
///
|
|
307
342
|
/// @example scss
|
|
308
|
-
/// @include nhsuk-heading-label($
|
|
343
|
+
/// @include nhsuk-heading-label($nhsuk-brand-colour, $nhsuk-reverse-text-colour);
|
|
309
344
|
///
|
|
310
345
|
|
|
311
|
-
@mixin nhsuk-heading-label($heading-background-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
display: inline-block; // [3]
|
|
315
|
-
margin: nhsuk-spacing(0) nhsuk-spacing(0) nhsuk-spacing(2) -33px;
|
|
316
|
-
padding: nhsuk-spacing(2) nhsuk-spacing(5);
|
|
346
|
+
@mixin nhsuk-heading-label($heading-background-colour, $heading-text-colour) {
|
|
347
|
+
display: inline-block; // [4]
|
|
348
|
+
|
|
317
349
|
position: relative;
|
|
318
|
-
top: -
|
|
350
|
+
top: nhsuk-spacing(-3); // [6]
|
|
351
|
+
|
|
352
|
+
margin: 0;
|
|
353
|
+
margin-bottom: nhsuk-spacing(2);
|
|
354
|
+
margin-left: nhsuk-spacing(-5) - 1px; // [5]
|
|
355
|
+
padding: nhsuk-spacing(2) nhsuk-spacing(5);
|
|
356
|
+
|
|
357
|
+
outline: 1px solid transparent; // [2]
|
|
358
|
+
outline-offset: -1px;
|
|
359
|
+
|
|
360
|
+
color: $heading-text-colour; // [3]
|
|
361
|
+
background-color: $heading-background-colour; // [1]
|
|
319
362
|
|
|
320
363
|
@include nhsuk-font-size(26);
|
|
321
364
|
|
|
322
365
|
@include nhsuk-media-query($until: tablet) {
|
|
323
|
-
|
|
324
|
-
margin-
|
|
366
|
+
top: nhsuk-spacing(-2); // [6]
|
|
367
|
+
margin-left: nhsuk-spacing(-4) - 1px; // [5]
|
|
325
368
|
padding: nhsuk-spacing(2) nhsuk-spacing(4);
|
|
326
|
-
top: -8px; // [5]
|
|
327
369
|
}
|
|
328
370
|
|
|
329
|
-
@include nhsuk-
|
|
330
|
-
background: none;
|
|
331
|
-
color: $color_nhsuk-black;
|
|
371
|
+
@include nhsuk-print-colour {
|
|
332
372
|
top: 0;
|
|
373
|
+
background: none;
|
|
333
374
|
}
|
|
334
375
|
}
|
|
335
376
|
|
|
@@ -347,21 +388,23 @@
|
|
|
347
388
|
/// Care card mixin, used for creating
|
|
348
389
|
/// different coloured care cards
|
|
349
390
|
///
|
|
350
|
-
/// @
|
|
391
|
+
/// @param {Colour} $heading-background-colour - Heading background colour
|
|
392
|
+
/// @param {Colour} $heading-text-colour - Heading text colour
|
|
393
|
+
/// @param {Number} $print-border-size - Print border size
|
|
351
394
|
///
|
|
352
395
|
/// @example scss
|
|
353
|
-
/// @include nhsuk-care-card($
|
|
396
|
+
/// @include nhsuk-care-card($nhsuk-brand-colour, $nhsuk-reverse-text-colour, 4px);
|
|
354
397
|
///
|
|
355
398
|
|
|
356
|
-
@mixin nhsuk-care-card($heading-background-
|
|
399
|
+
@mixin nhsuk-care-card($heading-background-colour, $heading-text-colour, $print-border-size) {
|
|
400
|
+
.nhsuk-card__heading-container,
|
|
357
401
|
.nhsuk-card--care__heading-container {
|
|
358
|
-
|
|
359
|
-
color: $heading-
|
|
402
|
+
color: $heading-text-colour;
|
|
403
|
+
background-color: $heading-background-colour;
|
|
360
404
|
}
|
|
361
405
|
|
|
362
|
-
@include nhsuk-
|
|
363
|
-
border: $print-border-size solid $nhsuk-print-text-
|
|
364
|
-
color: $nhsuk-print-text-color;
|
|
406
|
+
@include nhsuk-print-colour {
|
|
407
|
+
border: $print-border-size solid $nhsuk-print-text-colour;
|
|
365
408
|
page-break-inside: avoid;
|
|
366
409
|
}
|
|
367
410
|
}
|
|
@@ -380,43 +423,48 @@
|
|
|
380
423
|
/// Print colour mixin, sets the text print colour
|
|
381
424
|
/// warning callout, do and don't lists and panels
|
|
382
425
|
///
|
|
383
|
-
/// @
|
|
426
|
+
/// @param {Colour} $print-colour [$nhsuk-print-text-colour] - Print colour
|
|
384
427
|
///
|
|
385
428
|
/// @example scss
|
|
386
|
-
/// @include nhsuk-print-
|
|
429
|
+
/// @include nhsuk-print-colour($print-colour: inherit);
|
|
387
430
|
///
|
|
388
431
|
|
|
389
|
-
@mixin nhsuk-print-
|
|
432
|
+
@mixin nhsuk-print-colour($print-colour: $nhsuk-print-text-colour) {
|
|
390
433
|
@include nhsuk-media-query($media-type: print) {
|
|
391
|
-
color: $print-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
&:active,
|
|
395
|
-
&:focus,
|
|
396
|
-
&:visited {
|
|
397
|
-
color: $nhsuk-print-text-color;
|
|
398
|
-
}
|
|
434
|
+
color: $print-colour;
|
|
435
|
+
@content;
|
|
399
436
|
}
|
|
400
437
|
}
|
|
401
438
|
|
|
402
439
|
/// Print colour mixin, sets the text print colour
|
|
403
440
|
/// warning callout, do and don't lists and panels (deprecated)
|
|
404
441
|
///
|
|
405
|
-
/// @alias nhsuk-print-
|
|
406
|
-
/// @deprecated To be removed in v11.0, replaced by nhsuk-print-
|
|
442
|
+
/// @alias nhsuk-print-colour
|
|
443
|
+
/// @deprecated To be removed in v11.0, replaced by nhsuk-print-colour
|
|
444
|
+
|
|
445
|
+
@mixin nhsuk-print-color($args...) {
|
|
446
|
+
@include nhsuk-warning("color-to-colour", "nhsuk-print-color is deprecated. Use nhsuk-print-colour instead.");
|
|
447
|
+
@include nhsuk-print-colour($args...);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/// Print colour mixin, sets the text print colour
|
|
451
|
+
/// warning callout, do and don't lists and panels (deprecated)
|
|
452
|
+
///
|
|
453
|
+
/// @alias nhsuk-print-colour
|
|
454
|
+
/// @deprecated To be removed in v11.0, replaced by nhsuk-print-colour
|
|
407
455
|
|
|
408
456
|
@mixin print-color($args...) {
|
|
409
|
-
@include nhsuk-warning("print-color", "print-color is deprecated. Use nhsuk-print-
|
|
410
|
-
@include nhsuk-print-
|
|
457
|
+
@include nhsuk-warning("print-color", "print-color is deprecated. Use nhsuk-print-colour instead.");
|
|
458
|
+
@include nhsuk-print-colour($args...);
|
|
411
459
|
}
|
|
412
460
|
|
|
413
461
|
/// Print hide mixin, hides the element from print
|
|
414
462
|
///
|
|
415
463
|
/// @example scss
|
|
416
|
-
/// @include nhsuk-print-hide
|
|
464
|
+
/// @include nhsuk-print-hide;
|
|
417
465
|
///
|
|
418
466
|
|
|
419
|
-
@mixin nhsuk-print-hide
|
|
467
|
+
@mixin nhsuk-print-hide {
|
|
420
468
|
@include nhsuk-media-query($media-type: print) {
|
|
421
469
|
display: none;
|
|
422
470
|
}
|
|
@@ -427,9 +475,9 @@
|
|
|
427
475
|
/// @alias nhsuk-print-hide
|
|
428
476
|
/// @deprecated To be removed in v11.0, replaced by nhsuk-print-hide
|
|
429
477
|
|
|
430
|
-
@mixin print-hide
|
|
478
|
+
@mixin print-hide {
|
|
431
479
|
@include nhsuk-warning("print-hide", "print-hide is deprecated. Use nhsuk-print-hide instead.");
|
|
432
|
-
@include nhsuk-print-hide
|
|
480
|
+
@include nhsuk-print-hide;
|
|
433
481
|
}
|
|
434
482
|
|
|
435
483
|
/// Flex mixin
|
|
@@ -438,7 +486,7 @@
|
|
|
438
486
|
/// @include nhsuk-flex;
|
|
439
487
|
///
|
|
440
488
|
|
|
441
|
-
@mixin nhsuk-flex
|
|
489
|
+
@mixin nhsuk-flex {
|
|
442
490
|
display: flex;
|
|
443
491
|
flex-wrap: wrap;
|
|
444
492
|
}
|
|
@@ -448,9 +496,9 @@
|
|
|
448
496
|
/// @alias nhsuk-flex
|
|
449
497
|
/// @deprecated To be removed in v11.0, replaced by nhsuk-flex
|
|
450
498
|
|
|
451
|
-
@mixin flex
|
|
499
|
+
@mixin flex {
|
|
452
500
|
@include nhsuk-warning("flex", "flex is deprecated. Use nhsuk-flex instead.");
|
|
453
|
-
@include nhsuk-flex
|
|
501
|
+
@include nhsuk-flex;
|
|
454
502
|
}
|
|
455
503
|
|
|
456
504
|
/// Flex item mixin
|
|
@@ -459,7 +507,7 @@
|
|
|
459
507
|
/// @include nhsuk-flex-item;
|
|
460
508
|
///
|
|
461
509
|
|
|
462
|
-
@mixin nhsuk-flex-item
|
|
510
|
+
@mixin nhsuk-flex-item {
|
|
463
511
|
display: flex;
|
|
464
512
|
|
|
465
513
|
@include nhsuk-media-query($until: desktop) {
|
|
@@ -472,19 +520,19 @@
|
|
|
472
520
|
/// @alias nhsuk-flex-item
|
|
473
521
|
/// @deprecated To be removed in v11.0, replaced by nhsuk-flex-item
|
|
474
522
|
|
|
475
|
-
@mixin flex-item
|
|
523
|
+
@mixin flex-item {
|
|
476
524
|
@include nhsuk-warning("flex-item", "flex-item is deprecated. Use nhsuk-flex-item instead.");
|
|
477
|
-
@include nhsuk-flex-item
|
|
525
|
+
@include nhsuk-flex-item;
|
|
478
526
|
}
|
|
479
527
|
|
|
480
528
|
/// Remove margin mobile mixin
|
|
481
529
|
///
|
|
482
530
|
/// Removes left and right margin at tablet breakpoint
|
|
483
531
|
|
|
484
|
-
@mixin nhsuk-remove-margin-mobile
|
|
532
|
+
@mixin nhsuk-remove-margin-mobile {
|
|
485
533
|
@include nhsuk-media-query($until: tablet) {
|
|
486
|
-
margin-left: -$nhsuk-gutter-half;
|
|
487
534
|
margin-right: -$nhsuk-gutter-half;
|
|
535
|
+
margin-left: -$nhsuk-gutter-half;
|
|
488
536
|
}
|
|
489
537
|
}
|
|
490
538
|
|
|
@@ -510,11 +558,13 @@
|
|
|
510
558
|
/// Used in the header and footer.
|
|
511
559
|
|
|
512
560
|
@mixin nhsuk-logo-size {
|
|
513
|
-
height: 40px;
|
|
514
561
|
width: 100px;
|
|
562
|
+
height: 40px;
|
|
515
563
|
}
|
|
516
564
|
|
|
517
565
|
@mixin nhsuk-logo-size-small {
|
|
518
|
-
height: 32px;
|
|
519
566
|
width: 80px;
|
|
567
|
+
height: 32px;
|
|
520
568
|
}
|
|
569
|
+
|
|
570
|
+
/*# sourceMappingURL=_mixins.scss.map */
|
|
@@ -4,28 +4,24 @@
|
|
|
4
4
|
@use "../settings" as *;
|
|
5
5
|
@use "../vendor/sass-mq" as * with (
|
|
6
6
|
$mq-breakpoints: $nhsuk-breakpoints,
|
|
7
|
-
$mq-show-breakpoints:
|
|
8
|
-
meta.variable-exists(nhsuk-show-breakpoints) and $nhsuk-show-breakpoints,
|
|
9
|
-
map.keys($nhsuk-breakpoints),
|
|
10
|
-
()
|
|
11
|
-
)
|
|
7
|
+
$mq-show-breakpoints: $nhsuk-show-breakpoints
|
|
12
8
|
);
|
|
13
9
|
|
|
14
10
|
////
|
|
15
|
-
/// Wrangle sass-mq config...
|
|
16
|
-
///
|
|
17
11
|
/// @group tools
|
|
18
12
|
////
|
|
19
13
|
|
|
14
|
+
// Wrangle sass-mq config...
|
|
20
15
|
@forward "../vendor/sass-mq";
|
|
21
16
|
|
|
22
|
-
/// Helpers
|
|
23
|
-
|
|
24
17
|
/// Media query
|
|
25
18
|
///
|
|
26
19
|
/// This is a currently a wrapper for sass-mq - abstracted so that we can
|
|
27
20
|
/// replace it in the future if we so choose.
|
|
28
21
|
///
|
|
22
|
+
/// Due to Sass deprecated 'misplaced-rest' named argument warnings, all
|
|
23
|
+
/// arguments must be passed to maintain `nhsuk-media-query(950px)` support.
|
|
24
|
+
///
|
|
29
25
|
/// @param {String | Boolean} $from [false] - One of $nhsuk-breakpoints
|
|
30
26
|
/// @param {String | Boolean} $until [false] - One of $nhsuk-breakpoints
|
|
31
27
|
/// @param {String | Boolean} $and [false] - Additional media query parameters
|
|
@@ -60,8 +56,8 @@
|
|
|
60
56
|
///
|
|
61
57
|
/// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)
|
|
62
58
|
|
|
63
|
-
@mixin nhsuk-media-query($
|
|
64
|
-
@include mq($
|
|
59
|
+
@mixin nhsuk-media-query($from: false, $until: false, $and: false, $media-type: $mq-media-type) {
|
|
60
|
+
@include mq($from, $until, $and, $media-type, $silence-warning: true) {
|
|
65
61
|
@content;
|
|
66
62
|
}
|
|
67
63
|
}
|
|
@@ -77,3 +73,5 @@
|
|
|
77
73
|
@content;
|
|
78
74
|
}
|
|
79
75
|
}
|
|
76
|
+
|
|
77
|
+
/*# sourceMappingURL=_sass-mq.scss.map */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
|
-
@use "../settings
|
|
2
|
+
@use "../settings" as *;
|
|
3
|
+
@use "../tools/functions" as *;
|
|
3
4
|
|
|
4
5
|
////
|
|
5
6
|
/// Shape arrow
|
|
@@ -15,6 +16,8 @@
|
|
|
15
16
|
///
|
|
16
17
|
/// @param {Number} $base - Length of the base of the triangle
|
|
17
18
|
/// @return {Number} Calculated height of the triangle
|
|
19
|
+
///
|
|
20
|
+
/// @access private
|
|
18
21
|
|
|
19
22
|
@function _nhsuk-equilateral-height($base) {
|
|
20
23
|
$square-root-of-three: 1.732;
|
|
@@ -42,13 +45,12 @@
|
|
|
42
45
|
|
|
43
46
|
@mixin nhsuk-shape-arrow($direction, $base, $height: null, $display: block) {
|
|
44
47
|
display: $display;
|
|
45
|
-
|
|
46
48
|
width: 0;
|
|
47
49
|
height: 0;
|
|
48
|
-
|
|
49
50
|
border-style: solid;
|
|
50
51
|
border-color: transparent; // 1
|
|
51
52
|
|
|
53
|
+
$base: nhsuk-px-to-rem($base);
|
|
52
54
|
$perpendicular: math.div($base, 2);
|
|
53
55
|
|
|
54
56
|
@if not $height {
|
|
@@ -56,23 +58,23 @@
|
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
@if $direction == "up" {
|
|
59
|
-
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
|
|
60
|
-
|
|
61
|
+
-webkit-clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
|
|
62
|
+
clip-path: polygon(50% 0%, 0% 100%, 100% 100%); // 3
|
|
61
63
|
border-width: 0 $perpendicular $height;
|
|
62
64
|
border-bottom-color: inherit; // 2
|
|
63
65
|
} @else if $direction == "right" {
|
|
64
|
-
clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
|
|
65
|
-
|
|
66
|
+
-webkit-clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
|
|
67
|
+
clip-path: polygon(0% 0%, 100% 50%, 0% 100%); // 3
|
|
66
68
|
border-width: $perpendicular 0 $perpendicular $height;
|
|
67
69
|
border-left-color: inherit; // 2
|
|
68
70
|
} @else if $direction == "down" {
|
|
69
|
-
clip-path: polygon(0% 0%, 50% 100%, 100% 0%);
|
|
70
|
-
|
|
71
|
+
-webkit-clip-path: polygon(0% 0%, 50% 100%, 100% 0%);
|
|
72
|
+
clip-path: polygon(0% 0%, 50% 100%, 100% 0%); // 3
|
|
71
73
|
border-width: $height $perpendicular 0 $perpendicular;
|
|
72
74
|
border-top-color: inherit; // 2
|
|
73
75
|
} @else if $direction == "left" {
|
|
74
|
-
clip-path: polygon(0% 50%, 100% 100%, 100% 0%);
|
|
75
|
-
|
|
76
|
+
-webkit-clip-path: polygon(0% 50%, 100% 100%, 100% 0%);
|
|
77
|
+
clip-path: polygon(0% 50%, 100% 100%, 100% 0%); // 3
|
|
76
78
|
border-width: $perpendicular $height $perpendicular 0;
|
|
77
79
|
border-right-color: inherit; // 2
|
|
78
80
|
} @else {
|
|
@@ -80,12 +82,4 @@
|
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
|
|
84
|
-
///
|
|
85
|
-
/// @alias nhsuk-shape-arrow
|
|
86
|
-
/// @deprecated To be removed in v10.0, replaced by nhsuk-shape-arrow
|
|
87
|
-
|
|
88
|
-
@mixin govuk-shape-arrow($args...) {
|
|
89
|
-
@include nhsuk-warning("govuk-shape-arrow", "govuk-shape-arrow is deprecated. Use nhsuk-shape-arrow instead.");
|
|
90
|
-
@include nhsuk-shape-arrow($args...);
|
|
91
|
-
}
|
|
85
|
+
/*# sourceMappingURL=_shape-arrow.scss.map */
|