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,205 @@
|
|
|
1
|
+
@use "../../core/settings" as *;
|
|
2
|
+
@use "../../core/tools" as *;
|
|
3
|
+
@use "../../core/helpers" as *;
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// Hero component
|
|
7
|
+
///
|
|
8
|
+
/// 1. Position relative to support the description
|
|
9
|
+
/// appearing over the image.
|
|
10
|
+
/// 2. Adds a border between the header and hero, if required
|
|
11
|
+
///
|
|
12
|
+
/// @group components/hero
|
|
13
|
+
///
|
|
14
|
+
|
|
15
|
+
@include nhsuk-exports("nhsuk/components/hero") {
|
|
16
|
+
.nhsuk-hero {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
position: relative; // [1]
|
|
19
|
+
color: $nhsuk-reverse-text-colour;
|
|
20
|
+
background-color: $nhsuk-brand-colour;
|
|
21
|
+
|
|
22
|
+
@include nhsuk-print-colour;
|
|
23
|
+
|
|
24
|
+
.nhsuk-link,
|
|
25
|
+
a:not(.nhsuk-button) {
|
|
26
|
+
@include nhsuk-link-style-white;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.nhsuk-hero--border {
|
|
30
|
+
// [2]
|
|
31
|
+
border-top: $nhsuk-hero-border solid $nhsuk-secondary-border-colour;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.nhsuk-hero__wrapper {
|
|
36
|
+
@include nhsuk-responsive-padding(8, top);
|
|
37
|
+
@include nhsuk-responsive-padding(8, bottom);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.nhsuk-hero__heading {
|
|
41
|
+
@include nhsuk-responsive-margin(3, bottom);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Hero component image styles
|
|
45
|
+
//
|
|
46
|
+
// 3. Center the background image.
|
|
47
|
+
// 4. Stop the height affecting print stylesheets.
|
|
48
|
+
// 5. Show more of the image for larger screen sizes
|
|
49
|
+
// 6. Overlay must be min same height as .nhsuk-hero--image to cover the image.
|
|
50
|
+
// 7. Darken the background image with an overlay.
|
|
51
|
+
// 12. Remove any heights/min heights in Windows high contrast mode.
|
|
52
|
+
|
|
53
|
+
.nhsuk-hero--image {
|
|
54
|
+
background-repeat: no-repeat;
|
|
55
|
+
background-position: center right; // [3]
|
|
56
|
+
background-size: cover;
|
|
57
|
+
|
|
58
|
+
@media only screen {
|
|
59
|
+
// [4]
|
|
60
|
+
min-height: nhsuk-px-to-rem(200px);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@include nhsuk-media-query($from: tablet) {
|
|
64
|
+
@media only screen {
|
|
65
|
+
// [4]
|
|
66
|
+
min-height: nhsuk-px-to-rem(320px); // [5]
|
|
67
|
+
|
|
68
|
+
.nhsuk-hero__overlay {
|
|
69
|
+
height: nhsuk-px-to-rem(320px); // [6]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@media screen and (forced-colors: active), (-ms-high-contrast: active) {
|
|
75
|
+
min-height: 0; // [12]
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.nhsuk-hero__overlay {
|
|
79
|
+
background-color: rgba(nhsuk-shade($nhsuk-brand-colour, 50%), 0.1); // [7]
|
|
80
|
+
|
|
81
|
+
@media only screen {
|
|
82
|
+
// [4]
|
|
83
|
+
min-height: nhsuk-px-to-rem(200px); // [6]
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@media screen and (forced-colors: active), (-ms-high-contrast: active) {
|
|
87
|
+
height: auto; // [12]
|
|
88
|
+
min-height: 0; // [12]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Hero component description styles.
|
|
94
|
+
//
|
|
95
|
+
// 8. 'Random number' for the triangle.
|
|
96
|
+
// 9. 'Random number' for the triangle positioning.
|
|
97
|
+
// 10. Needed to enable the triangle to show correctly in high contrast mode.
|
|
98
|
+
// 11. Give the description box a max width.
|
|
99
|
+
// 13. Remove the arrow in Windows high contrast mode.
|
|
100
|
+
// 14. Reduce spacing and change positioning for Windows high contrast mode.
|
|
101
|
+
// 15. Prevent text breaking out of box on smaller sizes
|
|
102
|
+
// 16. Prevent overlap using safe area: box offset + arrow height + spacing
|
|
103
|
+
|
|
104
|
+
.nhsuk-hero--image-description {
|
|
105
|
+
margin-bottom: nhsuk-px-to-rem(70px + 20px + nhsuk-spacing(3)); // [16]
|
|
106
|
+
|
|
107
|
+
@include nhsuk-media-query($from: tablet) {
|
|
108
|
+
margin-bottom: nhsuk-px-to-rem(48px + 20px + nhsuk-spacing(4)); // [16]
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.nhsuk-hero-content {
|
|
112
|
+
position: relative;
|
|
113
|
+
top: nhsuk-px-to-rem(70px);
|
|
114
|
+
|
|
115
|
+
margin-bottom: nhsuk-px-to-rem(24px);
|
|
116
|
+
padding: nhsuk-spacing(4);
|
|
117
|
+
|
|
118
|
+
color: $nhsuk-reverse-text-colour;
|
|
119
|
+
background-color: $nhsuk-brand-colour;
|
|
120
|
+
|
|
121
|
+
.nhsuk-hero__arrow {
|
|
122
|
+
display: block;
|
|
123
|
+
|
|
124
|
+
position: absolute;
|
|
125
|
+
bottom: nhsuk-px-to-rem(-10px); // [8]
|
|
126
|
+
left: nhsuk-px-to-rem(32px); // [9]
|
|
127
|
+
|
|
128
|
+
width: nhsuk-px-to-rem(20px); // [8]
|
|
129
|
+
height: nhsuk-px-to-rem(20px); // [8]
|
|
130
|
+
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
|
|
133
|
+
transform: rotate(45deg);
|
|
134
|
+
@include nhsuk-print-hide;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.nhsuk-hero__arrow::before,
|
|
138
|
+
.nhsuk-hero__arrow::after {
|
|
139
|
+
content: "";
|
|
140
|
+
|
|
141
|
+
display: block;
|
|
142
|
+
|
|
143
|
+
position: absolute;
|
|
144
|
+
top: 0;
|
|
145
|
+
|
|
146
|
+
width: 0;
|
|
147
|
+
height: 0;
|
|
148
|
+
|
|
149
|
+
transform: rotate(45deg); // [10]
|
|
150
|
+
|
|
151
|
+
border: solid nhsuk-px-to-rem(32px) $nhsuk-brand-colour; // [8]
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@include nhsuk-print-colour {
|
|
155
|
+
max-width: 100%;
|
|
156
|
+
padding: 0;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@include nhsuk-media-query(375px) {
|
|
161
|
+
.nhsuk-hero-content {
|
|
162
|
+
width: 85%; // [15]
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@include nhsuk-media-query($from: tablet) {
|
|
167
|
+
.nhsuk-hero-content {
|
|
168
|
+
box-sizing: border-box;
|
|
169
|
+
|
|
170
|
+
position: absolute;
|
|
171
|
+
top: auto;
|
|
172
|
+
bottom: nhsuk-px-to-rem(-48px); // [8]
|
|
173
|
+
|
|
174
|
+
max-width: nhsuk-em(560); // [11]
|
|
175
|
+
margin-bottom: 0;
|
|
176
|
+
padding: nhsuk-spacing(5) nhsuk-spacing(6);
|
|
177
|
+
|
|
178
|
+
@include nhsuk-top-and-bottom;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.nhsuk-hero__arrow {
|
|
182
|
+
left: nhsuk-px-to-rem(46px); // [9]
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@media screen and (forced-colors: active), (-ms-high-contrast: active) {
|
|
187
|
+
.nhsuk-hero-content {
|
|
188
|
+
position: relative;
|
|
189
|
+
top: 0;
|
|
190
|
+
// [14]
|
|
191
|
+
bottom: 0;
|
|
192
|
+
|
|
193
|
+
min-height: 0;
|
|
194
|
+
margin-bottom: 0;
|
|
195
|
+
padding: nhsuk-spacing(5) 0 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.nhsuk-hero__arrow {
|
|
199
|
+
display: none; // [13]
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/*# sourceMappingURL=_index.scss.map */
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@use "../../core/settings" as *;
|
|
2
|
+
@use "../../core/tools" as *;
|
|
3
|
+
|
|
4
|
+
////
|
|
5
|
+
/// Hint component
|
|
6
|
+
///
|
|
7
|
+
/// @group components/hint
|
|
8
|
+
////
|
|
9
|
+
|
|
10
|
+
@include nhsuk-exports("nhsuk/components/hint") {
|
|
11
|
+
.nhsuk-hint {
|
|
12
|
+
margin-bottom: nhsuk-spacing(3);
|
|
13
|
+
color: $nhsuk-secondary-text-colour;
|
|
14
|
+
|
|
15
|
+
@include nhsuk-font($size: 19);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Reduces margin-bottom of hint when used after the default label (no class)
|
|
19
|
+
// or nhsuk-label--s for better vertical alignment.
|
|
20
|
+
|
|
21
|
+
// This adjustment will not work when the label is inside the <h1>, however it
|
|
22
|
+
// is unlikely that the default or nhsuk-label--s class would be used in this
|
|
23
|
+
// case.
|
|
24
|
+
|
|
25
|
+
// This adjustment will not work in browsers that do not support :not().
|
|
26
|
+
// Users with these browsers will see the default size margin (5px larger).
|
|
27
|
+
|
|
28
|
+
.nhsuk-label:not(.nhsuk-label--m):not(.nhsuk-label--l):not(.nhsuk-label--xl) + .nhsuk-hint {
|
|
29
|
+
margin-bottom: nhsuk-spacing(2);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Reduces margin-bottom of hint when used after the default legend (no class)
|
|
33
|
+
// or nhsuk-fieldset__legend--s for better vertical alignment.
|
|
34
|
+
|
|
35
|
+
// This adjustment will not work when the legend is outside the <h1>, however
|
|
36
|
+
// it is unlikely that the default or nhsuk-fieldset__legend--s class would be
|
|
37
|
+
// used in this case.
|
|
38
|
+
|
|
39
|
+
// This adjustment will not work in browsers that do not support :not().
|
|
40
|
+
// Users with these browsers will see the default size margin (5px larger).
|
|
41
|
+
|
|
42
|
+
// prettier-ignore
|
|
43
|
+
.nhsuk-fieldset__legend:not(.nhsuk-fieldset__legend--m):not(.nhsuk-fieldset__legend--l):not(.nhsuk-fieldset__legend--xl) + .nhsuk-hint {
|
|
44
|
+
margin-bottom: nhsuk-spacing(2);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Reduces visual spacing of legend when there is a hint
|
|
48
|
+
.nhsuk-fieldset__legend + .nhsuk-hint {
|
|
49
|
+
margin-top: nhsuk-spacing(-1);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/*# sourceMappingURL=_index.scss.map */
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "../../core/settings" as *;
|
|
3
|
+
@use "../../core/tools" as *;
|
|
4
|
+
@use "../../core/helpers" as *;
|
|
5
|
+
|
|
6
|
+
////
|
|
7
|
+
/// Images component
|
|
8
|
+
///
|
|
9
|
+
/// 1. Overrides default browser margin values.
|
|
10
|
+
/// 2. Makes the image width two thirds of its container for desktop.
|
|
11
|
+
/// 3. Avoid image printing full width of a page.
|
|
12
|
+
/// 4. Removes top margin from subsequent nhsuk-image.
|
|
13
|
+
///
|
|
14
|
+
/// @group components/images
|
|
15
|
+
////
|
|
16
|
+
|
|
17
|
+
@include nhsuk-exports("nhsuk/components/images") {
|
|
18
|
+
.nhsuk-image {
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
margin-right: 0; // [1]
|
|
21
|
+
margin-left: 0; // [1]
|
|
22
|
+
border-bottom: 1px solid $nhsuk-border-colour;
|
|
23
|
+
background-color: $nhsuk-card-background-colour;
|
|
24
|
+
|
|
25
|
+
@include nhsuk-responsive-margin(6, "bottom");
|
|
26
|
+
@include nhsuk-responsive-margin(6, "top");
|
|
27
|
+
|
|
28
|
+
@include nhsuk-media-query($from: desktop) {
|
|
29
|
+
width: math.percentage(math.div(2, 3)); // [2]
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@include nhsuk-media-query($media-type: print) {
|
|
33
|
+
width: math.percentage(math.div(1, 2)); // [3]
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
& + .nhsuk-image {
|
|
37
|
+
@include nhsuk-responsive-margin(0, "top"); // [4]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.nhsuk-image__img {
|
|
42
|
+
display: block;
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.nhsuk-image__caption {
|
|
47
|
+
padding: nhsuk-spacing(3);
|
|
48
|
+
|
|
49
|
+
@include nhsuk-font-size(16);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/*# sourceMappingURL=_index.scss.map */
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
@use "../../core/settings" as *;
|
|
2
|
+
@use "../../core/tools" as *;
|
|
3
|
+
@use "../../core/helpers" as *;
|
|
4
|
+
@forward "../../core/objects/input-wrapper";
|
|
5
|
+
@forward "../error-message";
|
|
6
|
+
@forward "../hint";
|
|
7
|
+
@forward "../label";
|
|
8
|
+
|
|
9
|
+
////
|
|
10
|
+
/// Input component
|
|
11
|
+
///
|
|
12
|
+
/// @group components/input
|
|
13
|
+
////
|
|
14
|
+
|
|
15
|
+
@include nhsuk-exports("nhsuk/components/input") {
|
|
16
|
+
.nhsuk-input {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: nhsuk-px-to-rem(40px);
|
|
21
|
+
margin-top: 0;
|
|
22
|
+
padding: nhsuk-px-to-rem(nhsuk-spacing(1));
|
|
23
|
+
// Setting any background-color makes text invisible when changing colours
|
|
24
|
+
// to dark backgrounds in Firefox (https://bugzil.la/1335476). As
|
|
25
|
+
// background-color and color need to always be set together, color should
|
|
26
|
+
// not be set either
|
|
27
|
+
border: $nhsuk-border-width-form-element solid $nhsuk-input-border-colour;
|
|
28
|
+
border-radius: 0;
|
|
29
|
+
|
|
30
|
+
// Disable inner shadow and remove rounded corners
|
|
31
|
+
-webkit-appearance: none;
|
|
32
|
+
appearance: none;
|
|
33
|
+
|
|
34
|
+
@include nhsuk-font($size: 19);
|
|
35
|
+
|
|
36
|
+
&:focus {
|
|
37
|
+
@include nhsuk-focused-input;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:disabled {
|
|
41
|
+
opacity: 0.5;
|
|
42
|
+
color: inherit;
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
cursor: not-allowed;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:-ms-input-placeholder {
|
|
48
|
+
opacity: 1; // Fixes low contrast of placeholder text in firefox
|
|
49
|
+
color: nhsuk-colour("grey-1");
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&::placeholder {
|
|
53
|
+
opacity: 1; // Fixes low contrast of placeholder text in firefox
|
|
54
|
+
color: nhsuk-colour("grey-1");
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.nhsuk-input::-webkit-outer-spin-button,
|
|
59
|
+
.nhsuk-input::-webkit-inner-spin-button {
|
|
60
|
+
margin: 0;
|
|
61
|
+
-webkit-appearance: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.nhsuk-input[type="number"] {
|
|
65
|
+
-moz-appearance: textfield;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.nhsuk-input--error {
|
|
69
|
+
border-color: $nhsuk-error-colour;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Codes and sequences
|
|
73
|
+
|
|
74
|
+
.nhsuk-input--code {
|
|
75
|
+
font-family: $nhsuk-code-font;
|
|
76
|
+
letter-spacing: 0.1em;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// The ex measurements are based on the number of W's that can fit inside the input
|
|
80
|
+
// Extra space is left on the right hand side to allow for the Safari prefill icon
|
|
81
|
+
// Linear regression estimation based on visual tests: y = 1.76 + 1.81x
|
|
82
|
+
|
|
83
|
+
.nhsuk-input--width-30 {
|
|
84
|
+
max-width: 56ex + 3ex;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.nhsuk-input--width-20 {
|
|
88
|
+
max-width: 38ex + 3ex;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.nhsuk-input--width-10 {
|
|
92
|
+
max-width: 20ex + 3ex;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.nhsuk-input--width-5 {
|
|
96
|
+
max-width: 10.8ex;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.nhsuk-input--width-4 {
|
|
100
|
+
max-width: 9ex;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.nhsuk-input--width-3 {
|
|
104
|
+
max-width: 7.2ex;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.nhsuk-input--width-2 {
|
|
108
|
+
max-width: 5.4ex;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.nhsuk-input-wrapper__prefix,
|
|
112
|
+
.nhsuk-input-wrapper__suffix,
|
|
113
|
+
// Deprecated, to be removed in v11.0
|
|
114
|
+
.nhsuk-input__prefix,
|
|
115
|
+
.nhsuk-input__suffix {
|
|
116
|
+
box-sizing: border-box;
|
|
117
|
+
|
|
118
|
+
// Use flexbox to align text within the prefix and suffix
|
|
119
|
+
display: flex;
|
|
120
|
+
|
|
121
|
+
flex: 0 0 auto;
|
|
122
|
+
align-items: center;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
|
|
125
|
+
min-width: nhsuk-px-to-rem(40px);
|
|
126
|
+
height: nhsuk-px-to-rem(40px);
|
|
127
|
+
padding: nhsuk-px-to-rem(nhsuk-spacing(1));
|
|
128
|
+
|
|
129
|
+
border: $nhsuk-border-width-form-element solid $nhsuk-input-border-colour;
|
|
130
|
+
|
|
131
|
+
background-color: nhsuk-colour("grey-4");
|
|
132
|
+
|
|
133
|
+
text-align: center;
|
|
134
|
+
white-space: nowrap;
|
|
135
|
+
// Emphasise non-editable status of prefixes and suffixes
|
|
136
|
+
cursor: default;
|
|
137
|
+
|
|
138
|
+
@include nhsuk-font($size: 19);
|
|
139
|
+
|
|
140
|
+
// Split prefix/suffix onto separate lines on narrow screens
|
|
141
|
+
@include nhsuk-media-query($until: mobile) {
|
|
142
|
+
display: block;
|
|
143
|
+
height: 100%;
|
|
144
|
+
white-space: normal;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.nhsuk-input-wrapper__prefix,
|
|
149
|
+
// Deprecated, to be removed in v11.0
|
|
150
|
+
.nhsuk-input__prefix {
|
|
151
|
+
@include nhsuk-media-query($until: mobile) {
|
|
152
|
+
border-bottom: 0;
|
|
153
|
+
|
|
154
|
+
// Remove top margin when preceded by a prefix
|
|
155
|
+
+ .nhsuk-input {
|
|
156
|
+
margin-top: 0;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@include nhsuk-media-query($from: mobile) {
|
|
161
|
+
border-right: 0;
|
|
162
|
+
|
|
163
|
+
// Remove left margin when preceded by a prefix
|
|
164
|
+
+ .nhsuk-input {
|
|
165
|
+
margin-left: 0;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// Split prefix/suffix onto separate lines on narrow screens
|
|
171
|
+
.nhsuk-input-wrapper__suffix,
|
|
172
|
+
// Deprecated, to be removed in v11.0
|
|
173
|
+
.nhsuk-input__suffix {
|
|
174
|
+
@include nhsuk-media-query($until: mobile) {
|
|
175
|
+
border-top: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@include nhsuk-media-query($from: mobile) {
|
|
179
|
+
border-left: 0;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/*# sourceMappingURL=_index.scss.map */
|
data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/inset-text/_index.scss
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@use "../../core/settings" as *;
|
|
2
|
+
@use "../../core/tools" as *;
|
|
3
|
+
@use "../../core/helpers" as *;
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// Inset text component
|
|
7
|
+
///
|
|
8
|
+
/// 1. Removes top margin from first element and bottom margin from last,
|
|
9
|
+
/// to ensure correct spacing within the component.
|
|
10
|
+
/// 2. Restricts the width of the text to optimise the line length for
|
|
11
|
+
/// readability.
|
|
12
|
+
///
|
|
13
|
+
/// @group components/inset-text
|
|
14
|
+
////
|
|
15
|
+
|
|
16
|
+
@include nhsuk-exports("nhsuk/components/inset-text") {
|
|
17
|
+
.nhsuk-inset-text {
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
border-left: $nhsuk-border-width-inset-text solid $nhsuk-brand-colour;
|
|
20
|
+
|
|
21
|
+
@include nhsuk-reading-width; // [2]
|
|
22
|
+
@include nhsuk-top-and-bottom; // [1]
|
|
23
|
+
|
|
24
|
+
@include nhsuk-responsive-margin(7, "bottom");
|
|
25
|
+
@include nhsuk-responsive-margin(7, "top");
|
|
26
|
+
@include nhsuk-responsive-padding(4);
|
|
27
|
+
|
|
28
|
+
@include nhsuk-media-query($media-type: print) {
|
|
29
|
+
border-color: $nhsuk-print-text-colour;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/*# sourceMappingURL=_index.scss.map */
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@use "../../core/settings" as *;
|
|
2
|
+
@use "../../core/tools" as *;
|
|
3
|
+
|
|
4
|
+
////
|
|
5
|
+
/// Label component
|
|
6
|
+
///
|
|
7
|
+
/// @group components/label
|
|
8
|
+
////
|
|
9
|
+
|
|
10
|
+
@include nhsuk-exports("nhsuk/components/label") {
|
|
11
|
+
.nhsuk-label {
|
|
12
|
+
display: block;
|
|
13
|
+
margin-bottom: nhsuk-spacing(1);
|
|
14
|
+
|
|
15
|
+
@include nhsuk-font($size: 19);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Modifiers that make labels look more like their equivalent headings
|
|
19
|
+
.nhsuk-label--xl,
|
|
20
|
+
.nhsuk-label--l,
|
|
21
|
+
.nhsuk-label--m {
|
|
22
|
+
margin-bottom: nhsuk-spacing(3);
|
|
23
|
+
@include nhsuk-typography-weight-bold;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.nhsuk-label--xl {
|
|
27
|
+
@include nhsuk-font-size($size: 48);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.nhsuk-label--l {
|
|
31
|
+
@include nhsuk-font-size($size: 36);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.nhsuk-label--m {
|
|
35
|
+
@include nhsuk-font-size($size: 26);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.nhsuk-label--s {
|
|
39
|
+
@include nhsuk-typography-weight-bold;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// When the label is nested inside a heading, override the heading so that it
|
|
43
|
+
// does not have a margin. Effectively we want to be able to treat the heading
|
|
44
|
+
// as if it is not there.
|
|
45
|
+
//
|
|
46
|
+
// This breaks BEM conventions because it exists as a parent of the 'block',
|
|
47
|
+
// so we can't really consider an element.
|
|
48
|
+
.nhsuk-label-wrapper {
|
|
49
|
+
margin: 0;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/*# sourceMappingURL=_index.scss.map */
|