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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 682961e5ace6d1fb7a0e9efbd5f5bf9d588eb4858f7ec7013db2188771d25de8
|
|
4
|
+
data.tar.gz: 9ea72be49b3b50294ef562c7254e94b2b29f908e4f064700106bd22231033be0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a65a069154023e6768451a889247e824a2dd6a5842d8a219ce4f76e1575b567f369395c0652ea3468bb2a428ab9d29bc95c5894755eadbc9ef2aeafd5f23fc6
|
|
7
|
+
data.tar.gz: fefa5477b56eaf6dddd30c22697bfbb506842e008c4f8650aa33a5f93b29470a1b576636b22fd06b6c97e0bd68bc44bb225536e7c309fd064c85010db13ccd04
|
|
@@ -2,37 +2,53 @@
|
|
|
2
2
|
/// Components
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
@forward "back-link";
|
|
7
|
-
@forward "breadcrumb";
|
|
5
|
+
// Form elements
|
|
8
6
|
@forward "button";
|
|
9
|
-
@forward "card";
|
|
10
|
-
@forward "contents-list";
|
|
11
|
-
@forward "date-input";
|
|
12
|
-
@forward "details";
|
|
13
|
-
@forward "do-dont-list";
|
|
14
7
|
@forward "error-message";
|
|
15
8
|
@forward "error-summary";
|
|
16
9
|
@forward "fieldset";
|
|
17
|
-
@forward "footer";
|
|
18
|
-
@forward "header";
|
|
19
|
-
@forward "hero";
|
|
20
10
|
@forward "hint";
|
|
21
|
-
@forward "images";
|
|
22
|
-
@forward "input";
|
|
23
|
-
@forward "inset-text";
|
|
24
11
|
@forward "label";
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
|
|
13
|
+
// Form components
|
|
27
14
|
@forward "checkboxes";
|
|
15
|
+
@forward "input";
|
|
28
16
|
@forward "radios";
|
|
29
17
|
@forward "select";
|
|
30
|
-
@forward "
|
|
18
|
+
@forward "textarea";
|
|
19
|
+
|
|
20
|
+
// Form components (composite)
|
|
21
|
+
@forward "character-count";
|
|
22
|
+
@forward "date-input";
|
|
23
|
+
@forward "file-upload";
|
|
24
|
+
@forward "password-input";
|
|
25
|
+
|
|
26
|
+
// Content presentation
|
|
27
|
+
@forward "details";
|
|
28
|
+
@forward "do-dont-list";
|
|
29
|
+
@forward "hero";
|
|
30
|
+
@forward "images";
|
|
31
|
+
@forward "inset-text";
|
|
32
|
+
@forward "notification-banner";
|
|
33
|
+
@forward "panel";
|
|
31
34
|
@forward "summary-list";
|
|
32
35
|
@forward "tables";
|
|
36
|
+
@forward "tabs";
|
|
33
37
|
@forward "tag";
|
|
34
38
|
@forward "task-list";
|
|
35
|
-
@forward "textarea";
|
|
36
39
|
@forward "warning-callout";
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
|
|
41
|
+
// Navigation
|
|
42
|
+
@forward "action-link";
|
|
43
|
+
@forward "back-link";
|
|
44
|
+
@forward "contents-list";
|
|
45
|
+
@forward "footer";
|
|
46
|
+
@forward "pagination";
|
|
47
|
+
@forward "skip-link";
|
|
48
|
+
|
|
49
|
+
// Navigation (composite)
|
|
50
|
+
@forward "breadcrumb";
|
|
51
|
+
@forward "card";
|
|
52
|
+
@forward "header";
|
|
53
|
+
|
|
54
|
+
/*# sourceMappingURL=_index.scss.map */
|
data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/action-link/_index.scss
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
/// Action link component
|
|
9
|
+
///
|
|
10
|
+
/// 1. Display inline-block so top and bottom margins are respected.
|
|
11
|
+
/// 2. Add sufficient space between icon and text.
|
|
12
|
+
/// 3. Position is relative so the arrow icon can display absolute.
|
|
13
|
+
/// 4. Text decoration none used to override default <a> styling.
|
|
14
|
+
///
|
|
15
|
+
/// @group components/action-link
|
|
16
|
+
////
|
|
17
|
+
|
|
18
|
+
@include nhsuk-exports("nhsuk/components/action-link") {
|
|
19
|
+
$_small-icon-size: nhsuk-px-to-rem($nhsuk-icon-size);
|
|
20
|
+
$_small-icon-spacing: math.div($_small-icon-size, 10);
|
|
21
|
+
|
|
22
|
+
$_large-icon-size: nhsuk-px-to-rem(36px);
|
|
23
|
+
$_large-icon-spacing: math.div($_large-icon-size, 10);
|
|
24
|
+
|
|
25
|
+
.nhsuk-action-link {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
display: inline-block; // [1]
|
|
28
|
+
position: relative; // [3]
|
|
29
|
+
padding-left: $_small-icon-size + $_small-icon-spacing; // [2]
|
|
30
|
+
text-decoration: none; // [4]
|
|
31
|
+
|
|
32
|
+
&:not(:focus):hover {
|
|
33
|
+
.nhsuk-action-link__text {
|
|
34
|
+
text-decoration: underline; // [5]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include nhsuk-font(22, $weight: bold, $line-height: $_small-icon-size);
|
|
39
|
+
|
|
40
|
+
@include nhsuk-print-colour {
|
|
41
|
+
@include nhsuk-link-style-text($nhsuk-print-text-colour);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include nhsuk-responsive-margin(6, "bottom");
|
|
45
|
+
|
|
46
|
+
@include nhsuk-media-query($from: tablet) {
|
|
47
|
+
padding-left: $_large-icon-size + $_large-icon-spacing; // [2]
|
|
48
|
+
line-height: nhsuk-line-height($_large-icon-size, $font-size: 22px);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.nhsuk-icon {
|
|
52
|
+
position: absolute;
|
|
53
|
+
left: -$_small-icon-spacing;
|
|
54
|
+
// stylelint-disable-next-line declaration-no-important
|
|
55
|
+
fill: nhsuk-colour("green") !important;
|
|
56
|
+
|
|
57
|
+
@include nhsuk-media-query($from: tablet) {
|
|
58
|
+
left: -$_large-icon-spacing;
|
|
59
|
+
width: $_large-icon-size;
|
|
60
|
+
height: $_large-icon-size;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:focus .nhsuk-icon {
|
|
65
|
+
// stylelint-disable-next-line declaration-no-important
|
|
66
|
+
fill: $nhsuk-focus-text-colour !important;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.nhsuk-action-link--reverse {
|
|
71
|
+
@include nhsuk-link-style-white;
|
|
72
|
+
|
|
73
|
+
&:link {
|
|
74
|
+
text-decoration: none; // [4]
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:not(:focus) .nhsuk-icon {
|
|
78
|
+
// stylelint-disable-next-line declaration-no-important
|
|
79
|
+
fill: $nhsuk-reverse-text-colour !important;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/*# sourceMappingURL=_index.scss.map */
|
data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/back-link/_index.scss
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@use "../../core/settings" as *;
|
|
2
|
+
@use "../../core/tools" as *;
|
|
3
|
+
|
|
4
|
+
////
|
|
5
|
+
/// Back link component
|
|
6
|
+
///
|
|
7
|
+
/// 1. Allow space for the chevron.
|
|
8
|
+
/// 2. Hide back link on print stylesheets.
|
|
9
|
+
///
|
|
10
|
+
/// @group components/back-link
|
|
11
|
+
////
|
|
12
|
+
|
|
13
|
+
@include nhsuk-exports("nhsuk/components/back-link") {
|
|
14
|
+
$_font-size: 16;
|
|
15
|
+
|
|
16
|
+
.nhsuk-back-link {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
display: inline-block;
|
|
19
|
+
|
|
20
|
+
position: relative;
|
|
21
|
+
|
|
22
|
+
padding: 0;
|
|
23
|
+
padding-left: nhsuk-em($_font-size, $_font-size);
|
|
24
|
+
|
|
25
|
+
border: 0;
|
|
26
|
+
|
|
27
|
+
background: none;
|
|
28
|
+
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
|
|
31
|
+
@include nhsuk-font($_font-size);
|
|
32
|
+
@include nhsuk-link-style-default;
|
|
33
|
+
@include nhsuk-link-style-no-visited-state;
|
|
34
|
+
@include nhsuk-responsive-margin(4, "top");
|
|
35
|
+
@include nhsuk-print-hide; // [2]
|
|
36
|
+
|
|
37
|
+
&::before {
|
|
38
|
+
content: "";
|
|
39
|
+
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 0;
|
|
42
|
+
bottom: 0;
|
|
43
|
+
left: 0;
|
|
44
|
+
|
|
45
|
+
margin: auto;
|
|
46
|
+
|
|
47
|
+
@include nhsuk-shape-chevron(left, $colour: currentcolor, $font-size: 19);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.nhsuk-back-link--reverse {
|
|
52
|
+
@include nhsuk-link-style-white;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/*# sourceMappingURL=_index.scss.map */
|
data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/breadcrumb/_index.scss
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
@use "../../core/settings" as *;
|
|
2
|
+
@use "../../core/tools" as *;
|
|
3
|
+
@use "../../core/helpers" as *;
|
|
4
|
+
@forward "../back-link";
|
|
5
|
+
|
|
6
|
+
////
|
|
7
|
+
/// Breadcrumb component
|
|
8
|
+
///
|
|
9
|
+
/// 1. Hide the breadcrumb on print stylesheets.
|
|
10
|
+
/// 2. Don't show the full breadcrumb below tablet size.
|
|
11
|
+
/// 3. Center chevron between breadcrumb items.
|
|
12
|
+
///
|
|
13
|
+
/// @group components/breadcrumb
|
|
14
|
+
////
|
|
15
|
+
|
|
16
|
+
@include nhsuk-exports("nhsuk/components/breadcrumb") {
|
|
17
|
+
$_font-size: 16;
|
|
18
|
+
$_chevron-colour: $nhsuk-secondary-text-colour;
|
|
19
|
+
$_chevron-size: nhsuk-em(nhsuk-chevron-size(), $_font-size);
|
|
20
|
+
|
|
21
|
+
.nhsuk-breadcrumb {
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
display: inline-block;
|
|
24
|
+
color: $nhsuk-text-colour;
|
|
25
|
+
|
|
26
|
+
@include nhsuk-responsive-margin(4, "top");
|
|
27
|
+
@include nhsuk-print-hide; // [1]
|
|
28
|
+
|
|
29
|
+
.nhsuk-back-link {
|
|
30
|
+
margin: 0;
|
|
31
|
+
|
|
32
|
+
@include nhsuk-media-query($from: tablet) {
|
|
33
|
+
display: none; // [2]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.nhsuk-breadcrumb__list {
|
|
39
|
+
margin: 0;
|
|
40
|
+
padding: 0;
|
|
41
|
+
list-style: none;
|
|
42
|
+
|
|
43
|
+
@include nhsuk-clearfix;
|
|
44
|
+
@include nhsuk-font($_font-size);
|
|
45
|
+
|
|
46
|
+
@include nhsuk-media-query($until: tablet) {
|
|
47
|
+
display: none; // [2]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.nhsuk-breadcrumb__list-item {
|
|
52
|
+
position: relative;
|
|
53
|
+
margin-bottom: 0;
|
|
54
|
+
margin-left: nhsuk-em(nhsuk-spacing(3), $_font-size); // [3]
|
|
55
|
+
padding-left: nhsuk-em(nhsuk-spacing(3), $_font-size) + $_chevron-size; // [3]
|
|
56
|
+
float: left;
|
|
57
|
+
|
|
58
|
+
&::before {
|
|
59
|
+
content: "";
|
|
60
|
+
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 0;
|
|
63
|
+
bottom: 0;
|
|
64
|
+
left: 0;
|
|
65
|
+
|
|
66
|
+
margin: auto;
|
|
67
|
+
|
|
68
|
+
@include nhsuk-shape-chevron(right, $_chevron-colour);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Hide chevron before first breadcrumb item
|
|
72
|
+
&:first-child {
|
|
73
|
+
margin-left: 0;
|
|
74
|
+
padding-left: 0;
|
|
75
|
+
|
|
76
|
+
&::before {
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.nhsuk-breadcrumb__link {
|
|
83
|
+
display: inline-block;
|
|
84
|
+
|
|
85
|
+
@include nhsuk-font($_font-size);
|
|
86
|
+
@include nhsuk-link-style-no-visited-state;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.nhsuk-breadcrumb--reverse {
|
|
90
|
+
color: $nhsuk-reverse-text-colour;
|
|
91
|
+
|
|
92
|
+
.nhsuk-breadcrumb__link,
|
|
93
|
+
.nhsuk-back-link {
|
|
94
|
+
@include nhsuk-link-style-white;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.nhsuk-breadcrumb__list-item::before {
|
|
98
|
+
color: rgba($nhsuk-reverse-text-colour, 0.6);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/*# sourceMappingURL=_index.scss.map */
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "../../core/settings" as *;
|
|
3
|
+
@use "../../core/tools" as *;
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// Button component
|
|
7
|
+
///
|
|
8
|
+
/// 1. Ensure that any global link styles are overridden.
|
|
9
|
+
/// 2. Fix unwanted button padding in Firefox.
|
|
10
|
+
/// 3. Use a pseudo element to expand the click target area to include the
|
|
11
|
+
/// button's shadow as well, in case users try to click it.
|
|
12
|
+
/// 4. Use a pseudo element to expand and cover the button's bounds, used to
|
|
13
|
+
/// add a button shadow or border without affecting the total height
|
|
14
|
+
/// 5. Adjust margin and padding to accommodate button shadow
|
|
15
|
+
///
|
|
16
|
+
/// @group components/button
|
|
17
|
+
////
|
|
18
|
+
|
|
19
|
+
$nhsuk-button-padding-top-bottom-mobile: nhsuk-px-to-rem(10px);
|
|
20
|
+
$nhsuk-button-padding-top-bottom-desktop: nhsuk-px-to-rem(14px);
|
|
21
|
+
$nhsuk-button-padding-top-bottom-small: nhsuk-px-to-rem(6px);
|
|
22
|
+
$nhsuk-button-padding-left-right: nhsuk-px-to-rem(16px);
|
|
23
|
+
$nhsuk-button-padding-left-right-small: nhsuk-px-to-rem(12px);
|
|
24
|
+
|
|
25
|
+
// @deprecated To be removed in v11.0
|
|
26
|
+
$button-border-radius: $nhsuk-button-border-radius;
|
|
27
|
+
$button-padding-top-bottom-mobile: $nhsuk-button-padding-top-bottom-mobile;
|
|
28
|
+
$button-padding-top-bottom-desktop: $nhsuk-button-padding-top-bottom-desktop;
|
|
29
|
+
$button-padding-left-right: $nhsuk-button-padding-left-right;
|
|
30
|
+
$button-shadow-size: $nhsuk-button-shadow-size;
|
|
31
|
+
|
|
32
|
+
@include nhsuk-exports("nhsuk/components/button") {
|
|
33
|
+
.nhsuk-button {
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
|
|
36
|
+
display: inline-block;
|
|
37
|
+
|
|
38
|
+
position: relative;
|
|
39
|
+
|
|
40
|
+
width: 100%;
|
|
41
|
+
min-height: nhsuk-px-to-rem(44px);
|
|
42
|
+
margin-top: 0;
|
|
43
|
+
padding: $nhsuk-button-padding-top-bottom-mobile $nhsuk-button-padding-left-right; // [5]
|
|
44
|
+
|
|
45
|
+
overflow: visible;
|
|
46
|
+
|
|
47
|
+
border: $nhsuk-border-width-form-element solid transparent;
|
|
48
|
+
border-radius: nhsuk-px-to-rem($nhsuk-button-border-radius);
|
|
49
|
+
|
|
50
|
+
text-align: center;
|
|
51
|
+
vertical-align: top;
|
|
52
|
+
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
|
|
55
|
+
-webkit-appearance: none;
|
|
56
|
+
|
|
57
|
+
appearance: none;
|
|
58
|
+
|
|
59
|
+
@include nhsuk-button-style;
|
|
60
|
+
@include nhsuk-font(19, $line-height: 19px, $weight: bold);
|
|
61
|
+
@include nhsuk-responsive-margin(5, "bottom", $adjustment: $nhsuk-button-shadow-size); // [5]
|
|
62
|
+
|
|
63
|
+
@include nhsuk-media-query($from: tablet) {
|
|
64
|
+
width: auto;
|
|
65
|
+
min-height: nhsuk-px-to-rem(56px);
|
|
66
|
+
padding: $nhsuk-button-padding-top-bottom-desktop $nhsuk-button-padding-left-right; // [5]
|
|
67
|
+
line-height: nhsuk-line-height(24px, $font-size: 19px);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// [1]
|
|
71
|
+
&,
|
|
72
|
+
&:hover,
|
|
73
|
+
&:active {
|
|
74
|
+
text-decoration: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// [2]
|
|
78
|
+
&::-moz-focus-inner {
|
|
79
|
+
padding: 0;
|
|
80
|
+
border: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Reset focus styles added to buttons as links
|
|
84
|
+
&:focus {
|
|
85
|
+
outline: none;
|
|
86
|
+
box-shadow: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Add button focus styles ensuring the active "pressed" state has priority
|
|
90
|
+
&:focus:not(:active),
|
|
91
|
+
&:focus:not(:active):hover {
|
|
92
|
+
@include nhsuk-focused-button;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Remove button shadow when pressed
|
|
96
|
+
&:active,
|
|
97
|
+
&:active:focus {
|
|
98
|
+
top: $nhsuk-button-shadow-size;
|
|
99
|
+
box-shadow: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:disabled {
|
|
103
|
+
pointer-events: none;
|
|
104
|
+
opacity: (0.5);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Default pseudo element styles for [3] and [4]
|
|
108
|
+
&::before,
|
|
109
|
+
&::after {
|
|
110
|
+
content: "";
|
|
111
|
+
|
|
112
|
+
display: block;
|
|
113
|
+
|
|
114
|
+
position: absolute;
|
|
115
|
+
top: -$nhsuk-border-width-form-element;
|
|
116
|
+
right: -$nhsuk-border-width-form-element;
|
|
117
|
+
bottom: -$nhsuk-border-width-form-element;
|
|
118
|
+
left: -$nhsuk-border-width-form-element;
|
|
119
|
+
|
|
120
|
+
border-radius: nhsuk-px-to-rem($nhsuk-button-border-radius);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Use a pseudo element to expand the click target area to include the
|
|
124
|
+
// button's shadow as well, in case users try to click it [3]
|
|
125
|
+
&::before {
|
|
126
|
+
bottom: -($nhsuk-border-width-form-element + $nhsuk-button-shadow-size);
|
|
127
|
+
border: $nhsuk-border-width-form-element solid transparent;
|
|
128
|
+
background-color: transparent;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// When the button is active it is shifted down by $nhsuk-button-shadow-size to
|
|
132
|
+
// denote a 'pressed' state. If the user happened to click at the very top
|
|
133
|
+
// of the button, their mouse is no longer over the button (because it has
|
|
134
|
+
// 'moved beneath them') and so the click event is not fired.
|
|
135
|
+
//
|
|
136
|
+
// This corrects that by shifting the top of the pseudo element so that it
|
|
137
|
+
// continues to cover the area that the user originally clicked, which means
|
|
138
|
+
// the click event is still fired.
|
|
139
|
+
&:active::before {
|
|
140
|
+
top: -($nhsuk-border-width-form-element + $nhsuk-button-shadow-size);
|
|
141
|
+
bottom: -$nhsuk-border-width-form-element;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Button variations
|
|
146
|
+
|
|
147
|
+
.nhsuk-button--secondary,
|
|
148
|
+
.nhsuk-button--secondary-solid {
|
|
149
|
+
@include nhsuk-button-style(
|
|
150
|
+
$button-colour: $nhsuk-secondary-button-colour,
|
|
151
|
+
$button-border-colour: $nhsuk-secondary-button-border-colour,
|
|
152
|
+
$button-hover-colour: $nhsuk-secondary-button-hover-colour,
|
|
153
|
+
$button-active-colour: $nhsuk-secondary-button-active-colour,
|
|
154
|
+
$button-text-colour: $nhsuk-secondary-button-text-colour,
|
|
155
|
+
$button-shadow-colour: $nhsuk-secondary-button-shadow-colour
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.nhsuk-button--secondary-solid {
|
|
160
|
+
background-color: $nhsuk-secondary-button-solid-background-colour;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.nhsuk-button--reverse {
|
|
164
|
+
@include nhsuk-button-style(
|
|
165
|
+
$button-colour: $nhsuk-reverse-button-colour,
|
|
166
|
+
$button-hover-colour: $nhsuk-reverse-button-hover-colour,
|
|
167
|
+
$button-active-colour: $nhsuk-reverse-button-active-colour,
|
|
168
|
+
$button-text-colour: $nhsuk-reverse-button-text-colour,
|
|
169
|
+
$button-shadow-colour: $nhsuk-reverse-button-shadow-colour
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.nhsuk-button--warning {
|
|
174
|
+
@include nhsuk-button-style(
|
|
175
|
+
$button-colour: $nhsuk-warning-button-colour,
|
|
176
|
+
$button-hover-colour: $nhsuk-warning-button-hover-colour,
|
|
177
|
+
$button-active-colour: $nhsuk-warning-button-active-colour,
|
|
178
|
+
$button-shadow-colour: $nhsuk-warning-button-shadow-colour
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.nhsuk-button--login {
|
|
183
|
+
@include nhsuk-button-style(
|
|
184
|
+
$button-colour: $nhsuk-login-button-colour,
|
|
185
|
+
$button-hover-colour: $nhsuk-login-button-hover-colour,
|
|
186
|
+
$button-active-colour: $nhsuk-login-button-active-colour,
|
|
187
|
+
$button-shadow-colour: $nhsuk-login-button-shadow-colour
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// =========================================================
|
|
192
|
+
// Small buttons
|
|
193
|
+
// =========================================================
|
|
194
|
+
|
|
195
|
+
.nhsuk-button--small {
|
|
196
|
+
min-height: nhsuk-px-to-rem(36px);
|
|
197
|
+
padding: $nhsuk-button-padding-top-bottom-small $nhsuk-button-padding-left-right-small; // [5]
|
|
198
|
+
|
|
199
|
+
@include nhsuk-responsive-margin(4, "bottom", $adjustment: $nhsuk-button-shadow-size); // [5]
|
|
200
|
+
|
|
201
|
+
@include nhsuk-media-query($from: tablet) {
|
|
202
|
+
@include nhsuk-font(16, $line-height: 19px, $weight: bold);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/*# sourceMappingURL=_index.scss.map */
|