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
|
@@ -0,0 +1,526 @@
|
|
|
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
|
+
/// Card component
|
|
9
|
+
///
|
|
10
|
+
/// 1. Is needed for the :active top positioning, and invisible clickable overlay.
|
|
11
|
+
/// 2. Border is used to create a divider between the white content
|
|
12
|
+
/// box and an image.
|
|
13
|
+
/// 3. Creates the 'pressed down' effect when clicked.
|
|
14
|
+
/// 4. Removes padding-top from headings directly after the card group.
|
|
15
|
+
/// 5. Includes the border width to achieve the correct left alignment.
|
|
16
|
+
/// 6. Stops the heading from spanning the full width of the card.
|
|
17
|
+
/// 7. Removes padding as added to container by nhsuk-panel-with-label mixin.
|
|
18
|
+
/// 8. Default care card colour set to blue (non-urgent care card) -
|
|
19
|
+
/// using the @mixin care-card tools/_mixins.scss.
|
|
20
|
+
/// The same mixin is used for each care card, setting the background
|
|
21
|
+
/// colour,text colour and print border width with the variables.
|
|
22
|
+
/// 9. 'Random number' for the heading triangle.
|
|
23
|
+
/// 10. 'Random number' for the heading triangle positioning.
|
|
24
|
+
/// 11. 'Random number' used for spacing to compensate for the triangle.
|
|
25
|
+
/// 12. Needed to enable the triangle to show correctly in high contrast mode.
|
|
26
|
+
/// 13. Prevent additional padding on headings
|
|
27
|
+
/// 14. Give the action link icon sufficient contrast when used in the emergency variant
|
|
28
|
+
/// 15. Reset the positioning to the default [1] to display heading triangle on a coloured background.
|
|
29
|
+
/// 16. Emergency care card <a> needs to be white because the background colour is black.
|
|
30
|
+
/// 17. Trick IE10 into rendering the invisible clickable area. Without this it does not.
|
|
31
|
+
///
|
|
32
|
+
/// @group components/card
|
|
33
|
+
////
|
|
34
|
+
|
|
35
|
+
$nhsuk-card-border-width: 1px;
|
|
36
|
+
$nhsuk-card-border-bottom-width: nhsuk-spacing(1);
|
|
37
|
+
$nhsuk-card-border-colour: $nhsuk-border-colour;
|
|
38
|
+
$nhsuk-card-border-hover-colour: $nhsuk-border-hover-colour;
|
|
39
|
+
|
|
40
|
+
// @deprecated To be removed in v11.0
|
|
41
|
+
$card-border-width: $nhsuk-card-border-width;
|
|
42
|
+
$card-border-bottom-width: $nhsuk-card-border-bottom-width;
|
|
43
|
+
$card-border-color: $nhsuk-card-border-colour;
|
|
44
|
+
$card-border-colour: $nhsuk-card-border-colour;
|
|
45
|
+
$card-border-hover-color: $nhsuk-card-border-hover-colour;
|
|
46
|
+
$card-border-hover-colour: $nhsuk-card-border-hover-colour;
|
|
47
|
+
|
|
48
|
+
@include nhsuk-exports("nhsuk/components/card") {
|
|
49
|
+
.nhsuk-card {
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
position: relative; // [1]
|
|
52
|
+
width: 100%;
|
|
53
|
+
|
|
54
|
+
@include nhsuk-panel($nhsuk-card-background-colour, $nhsuk-text-colour, $nhsuk-card-border-colour);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.nhsuk-card__img,
|
|
58
|
+
.nhsuk-card .nhsuk-image {
|
|
59
|
+
display: block;
|
|
60
|
+
width: 100%;
|
|
61
|
+
margin: 0;
|
|
62
|
+
border-bottom: $nhsuk-card-border-width solid nhsuk-colour("grey-5"); // [2]
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.nhsuk-card__content {
|
|
66
|
+
@include nhsuk-top-and-bottom;
|
|
67
|
+
@include nhsuk-responsive-padding(5);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.nhsuk-card .nhsuk-image__caption {
|
|
71
|
+
@include nhsuk-responsive-padding(5, "left");
|
|
72
|
+
@include nhsuk-responsive-padding(5, "right");
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.nhsuk-card__heading {
|
|
76
|
+
flex-basis: 0;
|
|
77
|
+
flex-grow: 999;
|
|
78
|
+
|
|
79
|
+
&:has(+ .nhsuk-icon) {
|
|
80
|
+
margin-bottom: 0;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.nhsuk-card__heading-container,
|
|
85
|
+
// Deprecated, to be removed in v11.0
|
|
86
|
+
.nhsuk-card--care__heading-container {
|
|
87
|
+
@include nhsuk-responsive-padding(5);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.nhsuk-card__heading-container {
|
|
91
|
+
&:last-child {
|
|
92
|
+
@include nhsuk-top-and-bottom;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:not(:last-child) {
|
|
96
|
+
padding-bottom: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
+ .nhsuk-card__content {
|
|
100
|
+
padding-top: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@include nhsuk-media-query($from: tablet) {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-wrap: nowrap;
|
|
106
|
+
align-items: baseline;
|
|
107
|
+
justify-content: space-between;
|
|
108
|
+
|
|
109
|
+
&:has(.nhsuk-card__actions:only-child) {
|
|
110
|
+
justify-content: right;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.nhsuk-card__actions {
|
|
116
|
+
display: flex;
|
|
117
|
+
|
|
118
|
+
flex-wrap: wrap;
|
|
119
|
+
row-gap: 10px;
|
|
120
|
+
|
|
121
|
+
margin: nhsuk-spacing(-1) 0 nhsuk-spacing(3);
|
|
122
|
+
padding: 0;
|
|
123
|
+
|
|
124
|
+
list-style: none;
|
|
125
|
+
@include nhsuk-font(19, $weight: bold);
|
|
126
|
+
|
|
127
|
+
@include nhsuk-media-query($from: tablet) {
|
|
128
|
+
justify-content: right;
|
|
129
|
+
margin: 0 0 nhsuk-spacing(3) nhsuk-spacing(3);
|
|
130
|
+
text-align: right;
|
|
131
|
+
|
|
132
|
+
&:only-child {
|
|
133
|
+
margin-left: 0;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.nhsuk-card__action {
|
|
139
|
+
display: inline-block;
|
|
140
|
+
|
|
141
|
+
// We use the following media query to target IE11 and 10 only to add margin
|
|
142
|
+
// between actions.
|
|
143
|
+
//
|
|
144
|
+
// We do this because we're using row-gap to create space between actions on
|
|
145
|
+
// more evergreen browsers which IE doesn't support. @supports currently isn't
|
|
146
|
+
// a viable solution, see https://github.com/w3c/csswg-drafts/issues/3559.
|
|
147
|
+
//
|
|
148
|
+
// Solution taken from https://stackoverflow.com/questions/11173106/apply-style-only-on-ie#answer-36448860
|
|
149
|
+
// which also includes an explanation of why this works
|
|
150
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
151
|
+
margin-bottom: nhsuk-spacing(1);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.nhsuk-card__action:last-child {
|
|
156
|
+
// See above comment for why this is here
|
|
157
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
158
|
+
margin-bottom: 0;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@include nhsuk-media-query($until: tablet) {
|
|
163
|
+
.nhsuk-card__action {
|
|
164
|
+
margin-right: nhsuk-spacing(2);
|
|
165
|
+
padding-right: nhsuk-spacing(2);
|
|
166
|
+
border-right: 1px solid $nhsuk-border-colour;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.nhsuk-card__action:last-child {
|
|
170
|
+
margin-right: 0;
|
|
171
|
+
padding-right: 0;
|
|
172
|
+
border: 0;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@include nhsuk-media-query($from: tablet) {
|
|
177
|
+
.nhsuk-card__action {
|
|
178
|
+
margin-bottom: 0;
|
|
179
|
+
margin-left: nhsuk-spacing(2);
|
|
180
|
+
padding-left: nhsuk-spacing(2);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.nhsuk-card__action:not(:first-child) {
|
|
184
|
+
border-left: 1px solid $nhsuk-border-colour;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.nhsuk-card__action:first-child {
|
|
188
|
+
margin-left: 0;
|
|
189
|
+
padding-left: 0;
|
|
190
|
+
border: 0;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.nhsuk-card__description {
|
|
195
|
+
margin-bottom: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// Clickable card
|
|
199
|
+
|
|
200
|
+
.nhsuk-card--clickable {
|
|
201
|
+
border-bottom-width: $nhsuk-card-border-bottom-width;
|
|
202
|
+
|
|
203
|
+
.nhsuk-card__heading a,
|
|
204
|
+
.nhsuk-card__link {
|
|
205
|
+
&::before {
|
|
206
|
+
content: "";
|
|
207
|
+
|
|
208
|
+
display: block;
|
|
209
|
+
|
|
210
|
+
position: absolute;
|
|
211
|
+
top: 0;
|
|
212
|
+
right: 0;
|
|
213
|
+
bottom: 0;
|
|
214
|
+
left: 0;
|
|
215
|
+
|
|
216
|
+
background-color: rgba(255, 255, 255, 0); // [17]
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&:active {
|
|
221
|
+
bottom: -$nhsuk-card-border-width; // [3]
|
|
222
|
+
border-color: $nhsuk-card-border-hover-colour;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// Card group
|
|
227
|
+
//
|
|
228
|
+
// Allows you to have a row of cards.
|
|
229
|
+
// Flexbox is used to make each card in a row the same height.
|
|
230
|
+
|
|
231
|
+
.nhsuk-card-group {
|
|
232
|
+
margin-bottom: nhsuk-spacing(3);
|
|
233
|
+
padding: 0;
|
|
234
|
+
|
|
235
|
+
@include nhsuk-flex;
|
|
236
|
+
|
|
237
|
+
@include nhsuk-media-query($until: desktop) {
|
|
238
|
+
margin-bottom: nhsuk-spacing(6);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
+ h2,
|
|
242
|
+
+ .nhsuk-heading-l,
|
|
243
|
+
+ h3,
|
|
244
|
+
+ .nhsuk-heading-m {
|
|
245
|
+
padding-top: 0; // [4]
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.nhsuk-card-group__item {
|
|
250
|
+
margin-bottom: 0;
|
|
251
|
+
list-style-type: none;
|
|
252
|
+
|
|
253
|
+
@include nhsuk-flex-item;
|
|
254
|
+
|
|
255
|
+
.nhsuk-card {
|
|
256
|
+
margin-bottom: nhsuk-spacing(5);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
@include nhsuk-media-query($until: desktop) {
|
|
260
|
+
.nhsuk-card {
|
|
261
|
+
margin-bottom: nhsuk-spacing(3);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&:last-child .nhsuk-card {
|
|
265
|
+
margin-bottom: 0;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
// Card panel shared styles
|
|
271
|
+
|
|
272
|
+
.nhsuk-card--feature > .nhsuk-card__heading-container,
|
|
273
|
+
.nhsuk-card--feature > .nhsuk-card__content,
|
|
274
|
+
.nhsuk-card--warning > .nhsuk-card__heading-container,
|
|
275
|
+
.nhsuk-card--warning > .nhsuk-card__content,
|
|
276
|
+
// Deprecated, to be removed in v11.0
|
|
277
|
+
.nhsuk-card__content--feature {
|
|
278
|
+
padding: 0; // [7]
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.nhsuk-card--feature > .nhsuk-card__heading-container,
|
|
282
|
+
.nhsuk-card--warning > .nhsuk-card__heading-container {
|
|
283
|
+
@include nhsuk-media-query($from: tablet) {
|
|
284
|
+
align-items: flex-start;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.nhsuk-card__actions {
|
|
288
|
+
margin-top: 0;
|
|
289
|
+
|
|
290
|
+
@include nhsuk-media-query($from: tablet) {
|
|
291
|
+
padding-top: nhsuk-spacing(4);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
// Card feature
|
|
297
|
+
|
|
298
|
+
.nhsuk-card--feature {
|
|
299
|
+
@include nhsuk-panel-with-label($nhsuk-card-background-colour, $nhsuk-text-colour, $nhsuk-card-border-colour);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.nhsuk-card--feature > .nhsuk-card__heading-container > .nhsuk-card__heading,
|
|
303
|
+
.nhsuk-card--feature > .nhsuk-card__content > .nhsuk-card__heading,
|
|
304
|
+
// Deprecated, to be removed in v11.0
|
|
305
|
+
.nhsuk-card__heading--feature {
|
|
306
|
+
flex-basis: auto;
|
|
307
|
+
flex-grow: 0;
|
|
308
|
+
@include nhsuk-heading-label($nhsuk-brand-colour, $nhsuk-reverse-text-colour);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// Card warning
|
|
312
|
+
|
|
313
|
+
.nhsuk-card--warning {
|
|
314
|
+
@include nhsuk-panel-with-label(nhsuk-colour("pale-yellow"), $nhsuk-text-colour, nhsuk-colour("yellow"));
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.nhsuk-card--warning > .nhsuk-card__heading-container > .nhsuk-card__heading,
|
|
318
|
+
.nhsuk-card--warning > .nhsuk-card__content > .nhsuk-card__heading {
|
|
319
|
+
flex-basis: auto;
|
|
320
|
+
flex-grow: 0;
|
|
321
|
+
@include nhsuk-heading-label(nhsuk-colour("yellow"), $nhsuk-text-colour);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
// Care card
|
|
325
|
+
|
|
326
|
+
.nhsuk-card--care {
|
|
327
|
+
@include nhsuk-care-card($nhsuk-brand-colour, $nhsuk-reverse-text-colour, 4px); // [8]
|
|
328
|
+
@include nhsuk-responsive-margin(7, "top");
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.nhsuk-card--care > .nhsuk-card__heading-container,
|
|
332
|
+
// Deprecated, to be removed in v11.0
|
|
333
|
+
.nhsuk-card--care__heading-container {
|
|
334
|
+
position: relative;
|
|
335
|
+
padding-top: nhsuk-spacing(3);
|
|
336
|
+
padding-bottom: nhsuk-spacing(3) - $nhsuk-card-border-width;
|
|
337
|
+
border-bottom: $nhsuk-card-border-width solid transparent;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.nhsuk-card--care > .nhsuk-card__heading-container > .nhsuk-card__heading,
|
|
341
|
+
// Deprecated, to be removed in v11.0
|
|
342
|
+
.nhsuk-card--care__heading {
|
|
343
|
+
margin: 0;
|
|
344
|
+
padding-top: 0; // [13]
|
|
345
|
+
|
|
346
|
+
@include nhsuk-font(26, $weight: bold);
|
|
347
|
+
@include nhsuk-print-colour;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.nhsuk-card--care__arrow {
|
|
351
|
+
display: block;
|
|
352
|
+
|
|
353
|
+
position: absolute;
|
|
354
|
+
bottom: nhsuk-px-to-rem(-11px); // [9]
|
|
355
|
+
left: nhsuk-px-to-rem(30px); // [10]
|
|
356
|
+
|
|
357
|
+
width: nhsuk-px-to-rem(20px); // [9]
|
|
358
|
+
height: nhsuk-px-to-rem(20px); // [9]
|
|
359
|
+
|
|
360
|
+
overflow: hidden;
|
|
361
|
+
|
|
362
|
+
transform: rotate(45deg);
|
|
363
|
+
@include nhsuk-print-hide;
|
|
364
|
+
|
|
365
|
+
@include nhsuk-media-query($from: tablet) {
|
|
366
|
+
left: nhsuk-px-to-rem(38px); // [10]
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
&::before,
|
|
370
|
+
&::after {
|
|
371
|
+
content: "";
|
|
372
|
+
|
|
373
|
+
display: block;
|
|
374
|
+
|
|
375
|
+
position: absolute;
|
|
376
|
+
top: 0;
|
|
377
|
+
|
|
378
|
+
width: 0;
|
|
379
|
+
height: 0;
|
|
380
|
+
|
|
381
|
+
transform: rotate(45deg); // [12]
|
|
382
|
+
|
|
383
|
+
border: solid nhsuk-px-to-rem(32px) $nhsuk-brand-colour; // [9]
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.nhsuk-card--care .nhsuk-card__content {
|
|
388
|
+
@include nhsuk-responsive-padding(5, "top");
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.nhsuk-card--care--urgent > .nhsuk-card__heading-container,
|
|
392
|
+
.nhsuk-card--care--non-urgent > .nhsuk-card__heading-container,
|
|
393
|
+
.nhsuk-card--care--emergency > .nhsuk-card__heading-container {
|
|
394
|
+
.nhsuk-card__actions {
|
|
395
|
+
margin-top: nhsuk-spacing(3);
|
|
396
|
+
margin-bottom: 0;
|
|
397
|
+
|
|
398
|
+
@include nhsuk-media-query($from: tablet) {
|
|
399
|
+
align-self: center;
|
|
400
|
+
margin-top: 0;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.nhsuk-card__action {
|
|
405
|
+
border-color: $nhsuk-secondary-border-colour;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.nhsuk-card__action a {
|
|
409
|
+
@include nhsuk-link-style-white;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.nhsuk-card--care--urgent {
|
|
414
|
+
@include nhsuk-care-card(nhsuk-colour("red"), $nhsuk-reverse-text-colour, 6px);
|
|
415
|
+
|
|
416
|
+
.nhsuk-card--care__arrow {
|
|
417
|
+
&::before,
|
|
418
|
+
&::after {
|
|
419
|
+
border-color: nhsuk-colour("red");
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.nhsuk-card--care--emergency {
|
|
425
|
+
@include nhsuk-care-card(nhsuk-colour("red"), $nhsuk-reverse-text-colour, 8px);
|
|
426
|
+
|
|
427
|
+
.nhsuk-card--care__arrow {
|
|
428
|
+
&::before,
|
|
429
|
+
&::after {
|
|
430
|
+
border-color: nhsuk-colour("red");
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.nhsuk-card__content {
|
|
435
|
+
position: static; // [15]
|
|
436
|
+
border: 0;
|
|
437
|
+
color: $nhsuk-reverse-text-colour;
|
|
438
|
+
background-color: nhsuk-colour("black");
|
|
439
|
+
|
|
440
|
+
a:not(.nhsuk-action-link):not(.nhsuk-button) {
|
|
441
|
+
@include nhsuk-link-style-white;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
@include nhsuk-print-colour {
|
|
445
|
+
background-color: $nhsuk-card-background-colour;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.nhsuk-details,
|
|
450
|
+
.nhsuk-details__summary {
|
|
451
|
+
color: $nhsuk-reverse-text-colour;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.nhsuk-details__summary {
|
|
455
|
+
&:hover {
|
|
456
|
+
color: $nhsuk-reverse-text-colour;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
&:focus {
|
|
460
|
+
color: $nhsuk-focus-text-colour;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.nhsuk-action-link__link .nhsuk-icon {
|
|
465
|
+
fill: $nhsuk-reverse-text-colour; // [14]
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
// Card primary
|
|
470
|
+
|
|
471
|
+
.nhsuk-card--primary > .nhsuk-card__content,
|
|
472
|
+
// Deprecated, to be removed in v11.0
|
|
473
|
+
.nhsuk-card__content--primary {
|
|
474
|
+
@include nhsuk-responsive-spacing(
|
|
475
|
+
5,
|
|
476
|
+
"padding",
|
|
477
|
+
$direction: "right",
|
|
478
|
+
$adjustment: nhsuk-px-to-rem(nhsuk-spacing(7))
|
|
479
|
+
);
|
|
480
|
+
|
|
481
|
+
@include nhsuk-media-query($from: desktop) {
|
|
482
|
+
height: 100%;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.nhsuk-card--primary,
|
|
487
|
+
// Deprecated, to be removed in v11.0
|
|
488
|
+
.nhsuk-card__content--primary {
|
|
489
|
+
.nhsuk-icon {
|
|
490
|
+
display: block;
|
|
491
|
+
|
|
492
|
+
position: absolute;
|
|
493
|
+
top: 50%;
|
|
494
|
+
|
|
495
|
+
width: nhsuk-px-to-rem($nhsuk-icon-size-large);
|
|
496
|
+
height: nhsuk-px-to-rem($nhsuk-icon-size-large);
|
|
497
|
+
margin-top: nhsuk-px-to-rem(math.floor(math.div($nhsuk-icon-size-large, -2)));
|
|
498
|
+
|
|
499
|
+
pointer-events: none;
|
|
500
|
+
|
|
501
|
+
fill: $nhsuk-link-colour;
|
|
502
|
+
@include nhsuk-responsive-spacing(5, "right");
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
// Card secondary
|
|
507
|
+
|
|
508
|
+
.nhsuk-card--secondary {
|
|
509
|
+
border-top: 0;
|
|
510
|
+
border-right: 0;
|
|
511
|
+
border-bottom: $nhsuk-card-border-bottom-width solid $nhsuk-card-border-colour;
|
|
512
|
+
border-left: 0;
|
|
513
|
+
background: transparent;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.nhsuk-card--secondary > .nhsuk-card__heading-container,
|
|
517
|
+
.nhsuk-card--secondary > .nhsuk-card__content,
|
|
518
|
+
// Deprecated, to be removed in v11.0
|
|
519
|
+
.nhsuk-card__content--secondary {
|
|
520
|
+
padding-top: 0;
|
|
521
|
+
padding-right: 0;
|
|
522
|
+
padding-left: 0;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/*# sourceMappingURL=_index.scss.map */
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@use "../../core/settings" as *;
|
|
2
|
+
@use "../../core/tools" as *;
|
|
3
|
+
@forward "../error-message";
|
|
4
|
+
@forward "../hint";
|
|
5
|
+
@forward "../label";
|
|
6
|
+
@forward "../textarea";
|
|
7
|
+
|
|
8
|
+
////
|
|
9
|
+
/// Character count component
|
|
10
|
+
///
|
|
11
|
+
/// @group components/character-count
|
|
12
|
+
////
|
|
13
|
+
|
|
14
|
+
@include nhsuk-exports("nhsuk/components/character-count") {
|
|
15
|
+
.nhsuk-character-count {
|
|
16
|
+
@include nhsuk-responsive-margin(5, "bottom");
|
|
17
|
+
|
|
18
|
+
.nhsuk-form-group,
|
|
19
|
+
.nhsuk-textarea {
|
|
20
|
+
margin-bottom: nhsuk-spacing(1);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// If the textarea enters the error state whilst the user is focused on it,
|
|
24
|
+
// show the error state. This presents feedback to the user that the value
|
|
25
|
+
// has become invalid without needing to see the counter.
|
|
26
|
+
.nhsuk-textarea--error:focus {
|
|
27
|
+
border-color: $nhsuk-error-colour;
|
|
28
|
+
box-shadow: inset 0 0 0 $nhsuk-border-width-form-element $nhsuk-error-colour;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.nhsuk-character-count__message,
|
|
33
|
+
.nhsuk-character-count__status {
|
|
34
|
+
margin-top: 0;
|
|
35
|
+
margin-bottom: 0;
|
|
36
|
+
|
|
37
|
+
&::after {
|
|
38
|
+
// Zero-width space that will reserve vertical space when no hint is
|
|
39
|
+
// provided as:
|
|
40
|
+
// - setting a min-height is not possible without a magic number because
|
|
41
|
+
// the line-height is set by the `nhsuk-font` call above
|
|
42
|
+
// - using `:empty` is not possible as the hint macro outputs line breaks
|
|
43
|
+
content: "\200B";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.nhsuk-character-count__status--disabled,
|
|
48
|
+
// Deprecated, to be removed in v11.0
|
|
49
|
+
.nhsuk-character-count__message--disabled {
|
|
50
|
+
visibility: hidden;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/*# sourceMappingURL=_index.scss.map */
|