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,100 @@
|
|
|
1
|
+
@use "../../core/settings" as *;
|
|
2
|
+
@use "../../core/tools" as *;
|
|
3
|
+
@use "../../core/helpers" as *;
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// Notification banner component
|
|
7
|
+
///
|
|
8
|
+
/// @group components/notification-banner
|
|
9
|
+
////
|
|
10
|
+
|
|
11
|
+
@include nhsuk-exports("nhsuk/components/notification-banner") {
|
|
12
|
+
.nhsuk-notification-banner {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
border: $nhsuk-border-width solid $nhsuk-brand-colour;
|
|
15
|
+
|
|
16
|
+
@include nhsuk-font($size: 19);
|
|
17
|
+
@include nhsuk-responsive-margin(8, "bottom");
|
|
18
|
+
|
|
19
|
+
&:focus {
|
|
20
|
+
outline: $nhsuk-focus-width solid $nhsuk-focus-colour;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.nhsuk-notification-banner__header {
|
|
25
|
+
padding: 2px nhsuk-spacing(3) nhsuk-spacing(1);
|
|
26
|
+
|
|
27
|
+
// Ensures the notification header appears separate to the notification body
|
|
28
|
+
// text in high contrast mode
|
|
29
|
+
border-bottom: 1px solid transparent;
|
|
30
|
+
background-color: $nhsuk-brand-colour;
|
|
31
|
+
|
|
32
|
+
@include nhsuk-media-query($from: tablet) {
|
|
33
|
+
padding: 2px nhsuk-spacing(4) nhsuk-spacing(1);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.nhsuk-notification-banner__title {
|
|
38
|
+
margin: 0;
|
|
39
|
+
padding: 0;
|
|
40
|
+
color: $nhsuk-reverse-text-colour;
|
|
41
|
+
|
|
42
|
+
// Set the size again because this element is a heading and the user agent
|
|
43
|
+
// font size overrides the inherited font size
|
|
44
|
+
@include nhsuk-font($size: 19, $weight: bold);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.nhsuk-notification-banner__content {
|
|
48
|
+
$padding-tablet: nhsuk-spacing(4);
|
|
49
|
+
padding: nhsuk-spacing(3);
|
|
50
|
+
|
|
51
|
+
@include nhsuk-text-colour;
|
|
52
|
+
@include nhsuk-media-query($from: tablet) {
|
|
53
|
+
padding: $padding-tablet;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Wrap content at the same place that a 2/3 grid column ends, to maintain
|
|
57
|
+
// shorter line-lengths when the notification banner is full width
|
|
58
|
+
> * {
|
|
59
|
+
// When elements have their own padding (like lists), include the padding
|
|
60
|
+
// in the max-width calculation
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
|
|
63
|
+
// Calculate the internal width of a two-thirds column...
|
|
64
|
+
$two-col-width: calc($nhsuk-page-width * 2 / 3) - calc($nhsuk-gutter * 1 / 3);
|
|
65
|
+
|
|
66
|
+
// ...and then factor in the left border and padding
|
|
67
|
+
$banner-exterior: ($padding-tablet + $nhsuk-border-width);
|
|
68
|
+
max-width: $two-col-width - $banner-exterior;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
> :last-child {
|
|
72
|
+
margin-bottom: 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.nhsuk-notification-banner__heading {
|
|
77
|
+
margin: 0 0 nhsuk-spacing(3);
|
|
78
|
+
padding: 0;
|
|
79
|
+
|
|
80
|
+
@include nhsuk-font($size: 26, $weight: bold);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.nhsuk-notification-banner__link {
|
|
84
|
+
@include nhsuk-link-style-no-visited-state;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.nhsuk-notification-banner--success {
|
|
88
|
+
border-color: $nhsuk-success-colour;
|
|
89
|
+
|
|
90
|
+
.nhsuk-notification-banner__header {
|
|
91
|
+
background-color: $nhsuk-success-colour;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.nhsuk-notification-banner__link {
|
|
95
|
+
@include nhsuk-link-style-success;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/*# sourceMappingURL=_index.scss.map */
|
data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/pagination/_index.scss
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "../../core/settings" as *;
|
|
3
|
+
@use "../../core/tools" as *;
|
|
4
|
+
@use "../../core/helpers" as *;
|
|
5
|
+
@forward "../../core/styles/icons";
|
|
6
|
+
|
|
7
|
+
////
|
|
8
|
+
/// Pagination component
|
|
9
|
+
///
|
|
10
|
+
/// 1. Padding to give the icon spacing.
|
|
11
|
+
/// 2. Append the word 'page' after next and
|
|
12
|
+
/// previous on print stylesheets to make it easier
|
|
13
|
+
/// to understand in print context.
|
|
14
|
+
///
|
|
15
|
+
/// @group components/pagination
|
|
16
|
+
////
|
|
17
|
+
|
|
18
|
+
@include nhsuk-exports("nhsuk/components/pagination") {
|
|
19
|
+
$_icon-size: nhsuk-em($nhsuk-icon-size-large, 26px);
|
|
20
|
+
$_small-icon-size: nhsuk-em($nhsuk-icon-size, 19px);
|
|
21
|
+
|
|
22
|
+
.nhsuk-pagination {
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
@include nhsuk-responsive-margin(7, "top");
|
|
25
|
+
@include nhsuk-responsive-margin(7, "bottom");
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.nhsuk-pagination__list {
|
|
29
|
+
@include nhsuk-clearfix;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.nhsuk-pagination-item--previous {
|
|
33
|
+
width: 50%;
|
|
34
|
+
float: left;
|
|
35
|
+
text-align: left;
|
|
36
|
+
|
|
37
|
+
.nhsuk-icon {
|
|
38
|
+
left: nhsuk-px-to-rem(-6px);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.nhsuk-pagination__title {
|
|
42
|
+
padding-left: $_icon-size; // [1]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.nhsuk-pagination-item--next {
|
|
47
|
+
width: 50%;
|
|
48
|
+
float: right;
|
|
49
|
+
text-align: right;
|
|
50
|
+
|
|
51
|
+
.nhsuk-icon {
|
|
52
|
+
right: nhsuk-px-to-rem(-6px);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.nhsuk-pagination__title {
|
|
56
|
+
padding-right: $_icon-size; // [1]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.nhsuk-pagination__link {
|
|
61
|
+
display: block;
|
|
62
|
+
position: relative;
|
|
63
|
+
width: 100%;
|
|
64
|
+
text-decoration: none;
|
|
65
|
+
|
|
66
|
+
@include nhsuk-font-size(26);
|
|
67
|
+
@include nhsuk-print-colour {
|
|
68
|
+
@include nhsuk-link-style-text($nhsuk-print-text-colour);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.nhsuk-icon {
|
|
72
|
+
position: absolute;
|
|
73
|
+
top: 0;
|
|
74
|
+
width: $_icon-size;
|
|
75
|
+
height: $_icon-size;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.nhsuk-pagination__title {
|
|
80
|
+
display: block;
|
|
81
|
+
|
|
82
|
+
@include nhsuk-media-query($media-type: print) {
|
|
83
|
+
&::after {
|
|
84
|
+
content: " page"; // [2]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.nhsuk-pagination__page {
|
|
90
|
+
display: block;
|
|
91
|
+
text-decoration: underline;
|
|
92
|
+
|
|
93
|
+
@include nhsuk-font-size(16);
|
|
94
|
+
|
|
95
|
+
.nhsuk-pagination__link:hover &,
|
|
96
|
+
.nhsuk-pagination__link:focus & {
|
|
97
|
+
text-decoration: none;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Numbered pagination variant
|
|
102
|
+
|
|
103
|
+
// Flexbox enhancement for small screen visual design
|
|
104
|
+
// Falls back to a float: left layout on non-flex browsers
|
|
105
|
+
.nhsuk-pagination--numbered {
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
flex-wrap: wrap;
|
|
109
|
+
align-items: center;
|
|
110
|
+
|
|
111
|
+
@include nhsuk-media-query($from: tablet) {
|
|
112
|
+
flex-direction: row;
|
|
113
|
+
align-items: flex-start;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// Container for the list of numbered items
|
|
118
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__list {
|
|
119
|
+
margin: 0;
|
|
120
|
+
padding: 0;
|
|
121
|
+
list-style: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Override for the default non-numbered style
|
|
125
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__list::after {
|
|
126
|
+
content: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__item {
|
|
130
|
+
// Hide items on small screens except the prev/next items,
|
|
131
|
+
// non-link items and the first and last items
|
|
132
|
+
display: none;
|
|
133
|
+
|
|
134
|
+
// Center align pagination links in their parent list item so that they
|
|
135
|
+
// visually sit in the middle of their touch area
|
|
136
|
+
text-align: center;
|
|
137
|
+
|
|
138
|
+
@include nhsuk-media-query($from: tablet) {
|
|
139
|
+
display: block;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// Only show first, last and non-link items on mobile
|
|
144
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__item:first-child,
|
|
145
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__item:last-child,
|
|
146
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__item--ellipsis,
|
|
147
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__item--current {
|
|
148
|
+
display: block;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// Numbered items, previous and next links
|
|
152
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__item,
|
|
153
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__previous,
|
|
154
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__next {
|
|
155
|
+
box-sizing: border-box;
|
|
156
|
+
|
|
157
|
+
position: relative;
|
|
158
|
+
|
|
159
|
+
min-width: nhsuk-px-to-rem(45px); // Set size using rems to make the icon scale with text
|
|
160
|
+
min-height: nhsuk-px-to-rem(45px);
|
|
161
|
+
margin: 0;
|
|
162
|
+
padding: nhsuk-spacing(2);
|
|
163
|
+
|
|
164
|
+
float: left; // Float is ignored if flex is active for prev/next links
|
|
165
|
+
|
|
166
|
+
text-align: center;
|
|
167
|
+
@include nhsuk-font(19);
|
|
168
|
+
|
|
169
|
+
&:hover {
|
|
170
|
+
background-color: nhsuk-colour("grey-4");
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&:focus {
|
|
174
|
+
@include nhsuk-link-style-focus;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// Previous and next links within pagination navigation
|
|
179
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__previous,
|
|
180
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__next {
|
|
181
|
+
// Use flex to avoid extra space being introduced when
|
|
182
|
+
// whitespace exists between the arrow svg and the link text
|
|
183
|
+
display: flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__previous {
|
|
188
|
+
padding-left: 0;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__next {
|
|
192
|
+
padding-right: 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// Numbered item links
|
|
196
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__link {
|
|
197
|
+
position: static;
|
|
198
|
+
@include nhsuk-link-style;
|
|
199
|
+
@include nhsuk-font-size(19);
|
|
200
|
+
|
|
201
|
+
// Increase the touch area for the link to the parent element.
|
|
202
|
+
@media screen {
|
|
203
|
+
&::after {
|
|
204
|
+
content: "";
|
|
205
|
+
|
|
206
|
+
position: absolute;
|
|
207
|
+
top: 0;
|
|
208
|
+
right: 0;
|
|
209
|
+
bottom: 0;
|
|
210
|
+
left: 0;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// Current number
|
|
216
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__item--current {
|
|
217
|
+
background-color: nhsuk-colour("blue");
|
|
218
|
+
font-weight: $nhsuk-font-weight-bold;
|
|
219
|
+
|
|
220
|
+
.nhsuk-pagination__link {
|
|
221
|
+
@include nhsuk-link-style-white;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__item--current:hover {
|
|
226
|
+
background-color: nhsuk-colour("blue");
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__item--ellipsis {
|
|
230
|
+
@include nhsuk-typography-weight-bold;
|
|
231
|
+
color: $nhsuk-secondary-text-colour;
|
|
232
|
+
|
|
233
|
+
// Remove hover state for ellipsis items as they don't contain links
|
|
234
|
+
&:hover {
|
|
235
|
+
background-color: transparent;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// Previous and Next labels next to arrows
|
|
240
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__title {
|
|
241
|
+
display: inline;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// Arrows within numbered pagination
|
|
245
|
+
.nhsuk-pagination--numbered .nhsuk-icon {
|
|
246
|
+
width: $_small-icon-size;
|
|
247
|
+
height: $_small-icon-size;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__previous .nhsuk-icon {
|
|
251
|
+
margin-right: nhsuk-spacing(2);
|
|
252
|
+
margin-left: -0.175rem;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.nhsuk-pagination--numbered .nhsuk-pagination__next .nhsuk-icon {
|
|
256
|
+
margin-right: -0.175rem;
|
|
257
|
+
margin-left: nhsuk-spacing(2);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/*# sourceMappingURL=_index.scss.map */
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
@use "../../core/settings" as *;
|
|
2
|
+
@use "../../core/tools" as *;
|
|
3
|
+
@use "../../core/helpers" as *;
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// Panel component
|
|
7
|
+
///
|
|
8
|
+
/// 1. Adds a transparent border for high contrast modes
|
|
9
|
+
/// 2. This subtracts the transparent border width from the padding (because the border
|
|
10
|
+
/// visually adds to the total padding)
|
|
11
|
+
/// 3. This is an if-all-else-fails attempt to stop long words from overflowing the container
|
|
12
|
+
/// on very narrow viewports by forcing them to break and wrap instead. This
|
|
13
|
+
/// overflowing is more likely to happen when user increases text size on a mobile eg. using
|
|
14
|
+
/// iOS Safari text resize controls.
|
|
15
|
+
|
|
16
|
+
/// The overflowing is a particular problem with the panel component since it uses white
|
|
17
|
+
/// text: when the text overflows the container, it is invisible on the white (page)
|
|
18
|
+
/// background. When the text in our other components overflow, the user might have to scroll
|
|
19
|
+
/// horizontally to view it but the text remains legible.
|
|
20
|
+
///
|
|
21
|
+
/// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)
|
|
22
|
+
///
|
|
23
|
+
/// @group components/panel
|
|
24
|
+
////
|
|
25
|
+
|
|
26
|
+
$nhsuk-panel-border-width: nhsuk-spacing(1);
|
|
27
|
+
|
|
28
|
+
// @deprecated To be removed in v11.0
|
|
29
|
+
$nhsuk-border-width-panel: $nhsuk-panel-border-width;
|
|
30
|
+
|
|
31
|
+
@include nhsuk-exports("nhsuk/components/panel") {
|
|
32
|
+
.nhsuk-panel {
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
padding: nhsuk-spacing(5) - $nhsuk-panel-border-width; /* [2] */
|
|
35
|
+
border: $nhsuk-panel-border-width solid transparent; /* [1] */
|
|
36
|
+
color: $nhsuk-reverse-text-colour;
|
|
37
|
+
background: $nhsuk-success-colour;
|
|
38
|
+
|
|
39
|
+
@include nhsuk-font-size(26);
|
|
40
|
+
@include nhsuk-responsive-margin(4, "bottom");
|
|
41
|
+
|
|
42
|
+
@include nhsuk-media-query($until: tablet) {
|
|
43
|
+
padding: nhsuk-spacing(4) - $nhsuk-panel-border-width; /* [2] */
|
|
44
|
+
@include nhsuk-text-break-word; /* [3] */
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@include nhsuk-print-colour {
|
|
48
|
+
border-color: currentcolor;
|
|
49
|
+
background: none;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.nhsuk-panel--interruption {
|
|
54
|
+
background-color: $nhsuk-brand-colour;
|
|
55
|
+
|
|
56
|
+
// Links within the Panel should use white text
|
|
57
|
+
.nhsuk-link,
|
|
58
|
+
a:not(.nhsuk-button) {
|
|
59
|
+
@include nhsuk-link-style-white;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.nhsuk-panel__title {
|
|
64
|
+
margin-top: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.nhsuk-panel__title,
|
|
68
|
+
.nhsuk-panel__title--xl {
|
|
69
|
+
@include nhsuk-font-size(48);
|
|
70
|
+
@include nhsuk-responsive-margin(5, "bottom");
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.nhsuk-panel__title--l {
|
|
74
|
+
@include nhsuk-font-size(36);
|
|
75
|
+
@include nhsuk-responsive-margin(3, "bottom");
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.nhsuk-panel__title--m {
|
|
79
|
+
@include nhsuk-font-size(26);
|
|
80
|
+
@include nhsuk-responsive-margin(3, "bottom");
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.nhsuk-panel__title:last-child {
|
|
84
|
+
margin-bottom: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.nhsuk-panel__body {
|
|
88
|
+
> :last-child {
|
|
89
|
+
margin-bottom: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Deduct button group vertical gap from margin
|
|
93
|
+
> .nhsuk-button-group:last-child {
|
|
94
|
+
margin-bottom: nhsuk-spacing(-3);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/*# sourceMappingURL=_index.scss.map */
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@use "../../core/settings" as *;
|
|
2
|
+
@use "../../core/tools" as *;
|
|
3
|
+
@use "../../core/helpers" as *;
|
|
4
|
+
@forward "../button";
|
|
5
|
+
@forward "../input";
|
|
6
|
+
|
|
7
|
+
////
|
|
8
|
+
/// Password input component
|
|
9
|
+
///
|
|
10
|
+
/// @group components/password-input
|
|
11
|
+
////
|
|
12
|
+
|
|
13
|
+
@include nhsuk-exports("nhsuk/components/password-input") {
|
|
14
|
+
.nhsuk-password-input__input {
|
|
15
|
+
// IE 11 and Microsoft Edge comes with its own password reveal function. We
|
|
16
|
+
// want to hide it, so that there aren't two controls presented to the user
|
|
17
|
+
// that do the same thing but aren't in sync with one another. This doesn't
|
|
18
|
+
// affect the function that allows Edge users to toggle password visibility
|
|
19
|
+
// by pressing Alt+F8, which cannot be programmatically disabled.
|
|
20
|
+
&::-ms-reveal {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.nhsuk-password-input__toggle {
|
|
26
|
+
// Hide the button by default, JS removes this attribute
|
|
27
|
+
&[hidden] {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include nhsuk-media-query($from: mobile) {
|
|
32
|
+
flex-basis: 5em;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/*# sourceMappingURL=_index.scss.map */
|