design_system 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/components/_index.scss +36 -20
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/action-link/_action-link.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/action-link/_index.scss +84 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/back-link/_back-link.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/back-link/_index.scss +56 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/breadcrumb/_breadcrumb.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/breadcrumb/_index.scss +103 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/button/_button.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/button/_index.scss +207 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/card/_card.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/card/_index.scss +526 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/character-count/_character-count.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/character-count/_index.scss +54 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/checkboxes/_checkboxes.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/checkboxes/_index.scss +337 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/contents-list/_contents-list.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/contents-list/_index.scss +32 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/date-input/_date-input.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/date-input/_index.scss +40 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/details/_details.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/details/_index.scss +374 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/do-dont-list/_do-dont-list.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/do-dont-list/_index.scss +37 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-message/_error-message.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-message/_index.scss +22 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-summary/_error-summary.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/error-summary/_index.scss +75 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/fieldset/_fieldset.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/fieldset/_index.scss +81 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/file-upload/_file-upload.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/file-upload/_index.scss +251 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/footer/_footer.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/footer/_index.scss +64 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/header/_header.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/header/_index.scss +783 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hero/_hero.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hero/_index.scss +205 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hint/_hint.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/hint/_index.scss +53 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/images/_images.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/images/_index.scss +53 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/input/_index.scss +184 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/input/_input.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/inset-text/_index.scss +34 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/inset-text/_inset-text.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/label/_index.scss +53 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/label/_label.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/notification-banner/_index.scss +100 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/notification-banner/_notification-banner.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/pagination/_index.scss +261 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/pagination/_pagination.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/panel/_index.scss +99 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/panel/_panel.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/password-input/_index.scss +37 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/password-input/_password-input.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/radios/_index.scss +354 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/radios/_radios.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/select/_index.scss +63 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/select/_select.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/skip-link/_index.scss +48 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/skip-link/_skip-link.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/summary-list/_index.scss +215 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/summary-list/_summary-list.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tables/_index.scss +205 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tables/_tables.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tabs/_index.scss +138 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tabs/_tabs.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tag/_index.scss +101 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/tag/_tag.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/task-list/_index.scss +111 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/task-list/_task-list.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/textarea/_index.scss +52 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/textarea/_textarea.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/warning-callout/_index.scss +22 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/components/warning-callout/_warning-callout.scss +3 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/_index.scss +4 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/_nhsuk-frontend-properties.scss +28 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/all.scss +3 -1
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_forms.scss +4 -2
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_index.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_links.scss +3 -2
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/elements/_page.scss +66 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/elements/_table.scss +6 -5
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/generic/_box-sizing.scss +2 -4
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/generic/_font-face.scss +29 -15
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/generic/_index.scss +2 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/helpers/_colour.scss +106 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/helpers/_index.scss +7 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_button-group.scss +124 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_form-group.scss +47 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/objects/_grid.scss +5 -3
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/objects/_index.scss +4 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_input-wrapper.scss +81 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_main-wrapper.scss +66 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/objects/_width-container.scss +98 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_all.scss +3 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_breakpoints.scss +35 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours-applied.scss +326 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours-deprecated.scss +116 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours-palette.scss +41 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_colours.scss +12 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/settings/_globals.scss +214 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_index.scss +5 -1
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_spacing.scss +3 -3
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_typography.scss +15 -34
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/settings/_warnings.scss +11 -5
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/styles/_icons.scss +45 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_index.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_lists.scss +15 -10
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_section-break.scss +4 -2
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/styles/_typography.scss +34 -39
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_all.scss +3 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_buttons.scss +85 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_exports.scss +1 -11
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_focused.scss +134 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_functions.scss +81 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_grid.scss +74 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_index.scss +5 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_links.scss +234 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_mixins.scss +168 -118
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_sass-mq.scss +9 -11
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_shape-arrow.scss +14 -20
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_shape-chevron.scss +65 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_shape-dash.scss +31 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_spacing.scss +25 -14
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/tools/_typography.scss +71 -25
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_clearfix.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_display.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_float.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_grid-widths.scss +19 -20
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_index.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_link-nowrap.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_list-border.scss +6 -2
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_reading-width.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_spacing.scss +6 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_text-align.scss +2 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/utilities/_typography.scss +52 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_visually-hidden.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/utilities/_widths.scss +2 -0
- data/app/assets/stylesheets/design_system/{nhsuk-frontend-9.6.4 → nhsuk-frontend-10.3.1}/core/vendor/sass-mq.scss +4 -2
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/index.scss +4 -0
- data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/nhsuk.scss +3 -0
- data/app/assets/stylesheets/design_system/nhsuk.scss +2 -2
- data/app/helpers/design_system_helper.rb +4 -0
- data/app/views/layouts/govuk/application.html.erb +1 -0
- data/app/views/layouts/nhsuk/application.html.erb +52 -59
- data/app/views/nhsuk/_navigation.html.erb +9 -13
- data/lib/design_system/engine.rb +1 -1
- data/lib/design_system/generic/builders/action_link.rb +17 -0
- data/lib/design_system/generic/builders/elements/backlink.rb +30 -0
- data/lib/design_system/generic/builders/fixed_elements.rb +4 -0
- data/lib/design_system/generic/builders/link.rb +9 -0
- data/lib/design_system/generic/builders/notification.rb +2 -0
- data/lib/design_system/generic/builders/pagination_renderer.rb +4 -9
- data/lib/design_system/govuk/builders/action_link.rb +17 -0
- data/lib/design_system/govuk/form_builder.rb +6 -2
- data/lib/design_system/govuk/test_helpers/form_builder_testable.rb +14 -0
- data/lib/design_system/nhsuk/builders/action_link.rb +30 -0
- data/lib/design_system/nhsuk/builders/elements/breadcrumbs.rb +12 -16
- data/lib/design_system/nhsuk/builders/notification.rb +0 -7
- data/lib/design_system/version.rb +1 -1
- data/lib/tasks/nhsuk.rake +10 -5
- data/public/design_system/static/{nhsuk-frontend-9.6.4/favicons → nhsuk-frontend-10.3.1/images}/favicon.ico +0 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/images/favicon.svg +4 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-180.png +0 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-192.png +0 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-512.png +0 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-icon-mask.svg +3 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/images/nhsuk-opengraph-image.png +0 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/manifest.json +39 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/nhsuk-frontend.min.js +1 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/nhsuk-frontend.min.js.map +1 -0
- data/public/design_system/static/nhsuk-frontend-10.3.1/nhsuk.js +7 -0
- metadata +159 -161
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/action-link/_action-link.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/action-link/_index.scss +0 -73
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/back-link/_back-link.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/back-link/_index.scss +0 -66
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/breadcrumb/_breadcrumb.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/breadcrumb/_index.scss +0 -138
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/button/_button.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/button/_index.scss +0 -257
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/card/_card.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/card/_index.scss +0 -321
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/character-count/_character-count.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/character-count/_index.scss +0 -19
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/checkboxes/_checkboxes.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/checkboxes/_index.scss +0 -155
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/contents-list/_contents-list.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/contents-list/_index.scss +0 -40
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/date-input/_date-input.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/date-input/_index.scss +0 -29
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/details/_details.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/details/_index.scss +0 -211
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/do-dont-list/_do-dont-list.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/do-dont-list/_index.scss +0 -23
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-message/_error-message.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-message/_index.scss +0 -17
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-summary/_error-summary.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/error-summary/_index.scss +0 -72
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/fieldset/_fieldset.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/fieldset/_index.scss +0 -65
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/footer/_footer.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/footer/_index.scss +0 -87
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-base.scss +0 -495
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-organisation.scss +0 -126
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-service.scss +0 -60
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-transactional.scss +0 -61
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header-white.scss +0 -117
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_header.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/header/_index.scss +0 -5
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hero/_hero.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hero/_index.scss +0 -187
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hint/_hint.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/hint/_index.scss +0 -51
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/images/_images.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/images/_index.scss +0 -48
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/input/_index.scss +0 -149
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/input/_input.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/inset-text/_index.scss +0 -28
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/inset-text/_inset-text.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/label/_index.scss +0 -53
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/label/_label.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/pagination/_index.scss +0 -95
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/pagination/_pagination.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/panel/_index.scss +0 -57
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/panel/_panel.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/radios/_index.scss +0 -180
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/radios/_radios.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/select/_index.scss +0 -44
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/select/_select.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/skip-link/_index.scss +0 -34
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/skip-link/_skip-link.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/summary-list/_index.scss +0 -183
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/summary-list/_summary-list.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tables/_index.scss +0 -181
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tables/_tables.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tabs/_index.scss +0 -120
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tabs/_tabs.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tag/_index.scss +0 -92
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/tag/_tag.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/task-list/_index.scss +0 -101
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/task-list/_task-list.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/textarea/_index.scss +0 -30
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/textarea/_textarea.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/warning-callout/_index.scss +0 -19
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/components/warning-callout/_warning-callout.scss +0 -1
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/elements/_page.scss +0 -43
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_form-group.scss +0 -25
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_main-wrapper.scss +0 -96
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/objects/_width-container.scss +0 -63
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_breakpoints.scss +0 -18
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_colours.scss +0 -188
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/settings/_globals.scss +0 -82
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/styles/_icons.scss +0 -105
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_focused.scss +0 -86
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_functions.scss +0 -45
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_grid.scss +0 -138
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_ifff.scss +0 -19
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/tools/_links.scss +0 -184
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/core/utilities/_typography.scss +0 -72
- data/app/assets/stylesheets/design_system/nhsuk-frontend-9.6.4/nhsuk.scss +0 -1
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/apple-touch-icon-180x180.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/apple-touch-icon.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon-192x192.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/favicon.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/largetile-310x310.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/mediumtile-144x144.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/mediumtile-150x150.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/smalltile-70x70.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/favicons/widetile-310x150.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-arrow-left.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-arrow-right-circle.svg +0 -4
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-arrow-right.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-chevron-left.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-chevron-right.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-close.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-cross.svg +0 -4
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-emdash-small.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-emdash.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-minus.svg +0 -4
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-plus.svg +0 -4
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-search.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/icons/icon-tick.svg +0 -3
- data/public/design_system/static/nhsuk-frontend-9.6.4/logos/logo-nhs.svg +0 -5
- data/public/design_system/static/nhsuk-frontend-9.6.4/logos/nhs-logo.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/logos/open-graph.png +0 -0
- data/public/design_system/static/nhsuk-frontend-9.6.4/nhsuk.js +0 -4
- data/public/design_system/static/nhsuk-frontend-9.6.4/nhsuk.min.js +0 -1
- /data/public/design_system/static/{design_system-0.11.0 → design_system-0.12.0}/design_system.js +0 -0
data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/tools/_shape-chevron.scss
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "sass:string";
|
|
3
|
+
@use "../settings" as *;
|
|
4
|
+
@use "functions" as *;
|
|
5
|
+
|
|
6
|
+
////
|
|
7
|
+
/// Shape chevron
|
|
8
|
+
///
|
|
9
|
+
/// @group tools
|
|
10
|
+
////
|
|
11
|
+
|
|
12
|
+
/// Chevron mixin
|
|
13
|
+
///
|
|
14
|
+
/// Generate chevron by using a box with borders on two sides, then rotating it.
|
|
15
|
+
///
|
|
16
|
+
/// @param {String} $direction - Direction for chevron: up, right, down, left
|
|
17
|
+
/// @param {Colour} $colour - Colour of chevron
|
|
18
|
+
/// @param {Number} $font-size [16] - Font size to base chevron size on
|
|
19
|
+
/// @param {String} $display [block] - CSS display property of the arrow
|
|
20
|
+
|
|
21
|
+
@mixin nhsuk-shape-chevron($direction, $colour, $font-size: 16, $display: block) {
|
|
22
|
+
$outline-width: nhsuk-em($nhsuk-chevron-border, $font-size);
|
|
23
|
+
$box-size: nhsuk-em(math.div($font-size, 2), $font-size);
|
|
24
|
+
$size: nhsuk-em(nhsuk-chevron-size($font-size));
|
|
25
|
+
display: $display;
|
|
26
|
+
|
|
27
|
+
width: $box-size;
|
|
28
|
+
height: $box-size;
|
|
29
|
+
|
|
30
|
+
-webkit-clip-path: polygon(100% 100%, 100% 0, 0 0);
|
|
31
|
+
|
|
32
|
+
clip-path: polygon(100% 100%, 100% 0, 0 0);
|
|
33
|
+
|
|
34
|
+
border-radius: $outline-width;
|
|
35
|
+
|
|
36
|
+
// Safari renders a hairline gap if we use borders, so use an inset outline
|
|
37
|
+
// instead. Because outlines are added to all sides of a box, we hide the
|
|
38
|
+
// outline on the two other two sides using clip-path.
|
|
39
|
+
outline: $outline-width solid currentcolor;
|
|
40
|
+
outline-offset: -$outline-width;
|
|
41
|
+
|
|
42
|
+
color: $colour;
|
|
43
|
+
|
|
44
|
+
@if $direction == "up" {
|
|
45
|
+
transform: translateY($outline-width) rotate(-45deg);
|
|
46
|
+
} @else if $direction == "right" {
|
|
47
|
+
transform: translateX(-$size + $outline-width) rotate(45deg);
|
|
48
|
+
} @else if $direction == "down" {
|
|
49
|
+
transform: translateY(-$size + $outline-width) rotate(135deg);
|
|
50
|
+
} @else if $direction == "left" {
|
|
51
|
+
transform: translateX($outline-width) rotate(225deg);
|
|
52
|
+
} @else {
|
|
53
|
+
@error "Invalid arrow direction: expected `up`, `right`, `down` or `left`, got `#{$direction}`";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@supports (outline-width: string.unquote("max(0px)")) {
|
|
57
|
+
// Ensure that the chevron outline never gets smaller than 2px
|
|
58
|
+
outline-width: string.unquote("max(#{$nhsuk-chevron-border}, #{$outline-width})");
|
|
59
|
+
|
|
60
|
+
// Ensure that the chevron never gets smaller than 16px
|
|
61
|
+
font-size: string.unquote("max(#{$font-size * 1px}, 1em)");
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/*# sourceMappingURL=_shape-chevron.scss.map */
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use "../settings" as *;
|
|
2
|
+
@use "../tools/spacing" as *;
|
|
3
|
+
@use "../helpers/colour" as *;
|
|
4
|
+
@use "functions" as *;
|
|
5
|
+
|
|
6
|
+
////
|
|
7
|
+
/// Dash mixin
|
|
8
|
+
///
|
|
9
|
+
/// @group tools
|
|
10
|
+
////
|
|
11
|
+
|
|
12
|
+
@mixin nhsuk-shape-dash() {
|
|
13
|
+
position: relative;
|
|
14
|
+
padding: 0 0 0 nhsuk-spacing(4);
|
|
15
|
+
|
|
16
|
+
&::before {
|
|
17
|
+
content: "";
|
|
18
|
+
|
|
19
|
+
display: block;
|
|
20
|
+
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: nhsuk-em(12, 16);
|
|
23
|
+
left: 0;
|
|
24
|
+
|
|
25
|
+
width: nhsuk-spacing(3);
|
|
26
|
+
|
|
27
|
+
border-top: 1px solid nhsuk-colour("grey-2");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/*# sourceMappingURL=_shape-dash.scss.map */
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
// stylelint-disable declaration-no-important
|
|
2
|
+
|
|
1
3
|
@use "sass:map";
|
|
2
4
|
@use "sass:math";
|
|
3
5
|
@use "sass:meta";
|
|
4
6
|
@use "../settings" as *;
|
|
5
|
-
@use "ifff" as *;
|
|
6
7
|
@use "sass-mq" as *;
|
|
7
8
|
|
|
8
9
|
////
|
|
@@ -55,7 +56,12 @@
|
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
$value: map.get($nhsuk-spacing-points, $spacing-point);
|
|
58
|
-
|
|
59
|
+
|
|
60
|
+
@if $is-negative {
|
|
61
|
+
@return $value * -1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@return $value;
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
/// Responsive spacing
|
|
@@ -111,27 +117,34 @@
|
|
|
111
117
|
+ "#{$actual-map-type}. Make sure you are using a map to set the responsive spacing in `_settings/spacing.scss`)";
|
|
112
118
|
}
|
|
113
119
|
|
|
120
|
+
// [2]
|
|
114
121
|
@each $breakpoint, $breakpoint-value in $scale-map {
|
|
115
|
-
// [2]
|
|
116
|
-
|
|
117
122
|
@if $adjustment {
|
|
118
|
-
|
|
123
|
+
@if not math.compatible($breakpoint-value, $adjustment) {
|
|
124
|
+
$breakpoint-value: calc($breakpoint-value + $adjustment);
|
|
125
|
+
} @else {
|
|
126
|
+
$breakpoint-value: $breakpoint-value + $adjustment;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@if $important == true {
|
|
131
|
+
$breakpoint-value: $breakpoint-value !important;
|
|
119
132
|
}
|
|
120
133
|
|
|
121
134
|
& {
|
|
135
|
+
// [3]
|
|
122
136
|
@if not $breakpoint {
|
|
123
|
-
// [3]
|
|
124
137
|
@if $direction == all {
|
|
125
|
-
#{$property}: $breakpoint-value
|
|
138
|
+
#{$property}: $breakpoint-value;
|
|
126
139
|
} @else {
|
|
127
|
-
#{$property}-#{$direction}: $breakpoint-value
|
|
140
|
+
#{$property}-#{$direction}: $breakpoint-value;
|
|
128
141
|
}
|
|
129
142
|
} @else {
|
|
130
143
|
@include nhsuk-media-query($from: $breakpoint) {
|
|
131
144
|
@if $direction == all {
|
|
132
|
-
#{$property}: $breakpoint-value
|
|
145
|
+
#{$property}: $breakpoint-value;
|
|
133
146
|
} @else {
|
|
134
|
-
#{$property}-#{$direction}: $breakpoint-value
|
|
147
|
+
#{$property}-#{$direction}: $breakpoint-value;
|
|
135
148
|
}
|
|
136
149
|
}
|
|
137
150
|
}
|
|
@@ -145,8 +158,6 @@
|
|
|
145
158
|
/// spacing scale, which defines different spacing values at different
|
|
146
159
|
/// breakpoints. Wrapper for the `nhsuk-responsive-spacing` mixin.
|
|
147
160
|
///
|
|
148
|
-
/// @see {mixin} nhsuk-responsive-spacing
|
|
149
|
-
///
|
|
150
161
|
/// @param {Number} $responsive-spacing-point - Point on the responsive spacing
|
|
151
162
|
/// scale, corresponds to a map of breakpoints and spacing values
|
|
152
163
|
/// @param {String} $direction [all] - Direction to add spacing to
|
|
@@ -171,8 +182,6 @@
|
|
|
171
182
|
/// spacing scale, which defines different spacing values at different
|
|
172
183
|
/// breakpoints. Wrapper for the `nhsuk-responsive-spacing` mixin.
|
|
173
184
|
///
|
|
174
|
-
/// @see {mixin} nhsuk-responsive-spacing
|
|
175
|
-
///
|
|
176
185
|
/// @param {Number} $responsive-spacing-point - Point on the responsive spacing
|
|
177
186
|
/// scale, corresponds to a map of breakpoints and spacing values
|
|
178
187
|
/// @param {String} $direction [all] - Direction to add spacing to
|
|
@@ -190,3 +199,5 @@
|
|
|
190
199
|
@mixin nhsuk-responsive-padding($responsive-spacing-point, $direction: "all", $important: false, $adjustment: false) {
|
|
191
200
|
@include nhsuk-responsive-spacing($responsive-spacing-point, "padding", $direction, $important, $adjustment);
|
|
192
201
|
}
|
|
202
|
+
|
|
203
|
+
/*# sourceMappingURL=_spacing.scss.map */
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
// stylelint-disable declaration-no-important
|
|
2
|
+
|
|
1
3
|
@use "sass:map";
|
|
2
4
|
@use "sass:math";
|
|
3
5
|
@use "sass:string";
|
|
4
6
|
@use "../settings" as *;
|
|
5
7
|
@use "functions" as *;
|
|
6
|
-
@use "ifff" as *;
|
|
7
8
|
@use "sass-mq" as *;
|
|
8
9
|
|
|
9
10
|
////
|
|
@@ -21,21 +22,35 @@
|
|
|
21
22
|
///
|
|
22
23
|
/// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)
|
|
23
24
|
|
|
24
|
-
@mixin nhsuk-text-
|
|
25
|
-
color: $nhsuk-text-
|
|
25
|
+
@mixin nhsuk-text-colour {
|
|
26
|
+
color: $nhsuk-text-colour;
|
|
26
27
|
|
|
27
28
|
@include nhsuk-media-query($media-type: print) {
|
|
28
|
-
color: $nhsuk-print-text-
|
|
29
|
+
color: $nhsuk-print-text-colour;
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
/// Text colour (deprecated)
|
|
34
|
+
///
|
|
35
|
+
/// @alias nhsuk-text-colour
|
|
36
|
+
/// @deprecated To be removed in v11.0, replaced by nhsuk-text-colour
|
|
37
|
+
|
|
38
|
+
@mixin nhsuk-text-color {
|
|
39
|
+
@include nhsuk-warning("color-to-colour", "nhsuk-text-color is deprecated. Use nhsuk-text-colour instead.");
|
|
40
|
+
@include nhsuk-text-colour;
|
|
41
|
+
}
|
|
42
|
+
|
|
32
43
|
/// Normal font weight
|
|
33
44
|
///
|
|
34
45
|
/// @param {Boolean} $important [false] - Whether to mark declarations as
|
|
35
46
|
/// `!important`. Generally Used to create override classes.
|
|
36
47
|
|
|
37
48
|
@mixin nhsuk-typography-weight-normal($important: false) {
|
|
38
|
-
|
|
49
|
+
@if $important == true {
|
|
50
|
+
font-weight: $nhsuk-font-weight-normal !important;
|
|
51
|
+
} @else {
|
|
52
|
+
font-weight: $nhsuk-font-weight-normal;
|
|
53
|
+
}
|
|
39
54
|
}
|
|
40
55
|
|
|
41
56
|
/// Bold font weight
|
|
@@ -44,7 +59,11 @@
|
|
|
44
59
|
/// `!important`. Generally Used to create override classes.
|
|
45
60
|
|
|
46
61
|
@mixin nhsuk-typography-weight-bold($important: false) {
|
|
47
|
-
|
|
62
|
+
@if $important == true {
|
|
63
|
+
font-weight: $nhsuk-font-weight-bold !important;
|
|
64
|
+
} @else {
|
|
65
|
+
font-weight: $nhsuk-font-weight-bold;
|
|
66
|
+
}
|
|
48
67
|
}
|
|
49
68
|
|
|
50
69
|
/// Word break helper
|
|
@@ -56,31 +75,52 @@
|
|
|
56
75
|
/// `!important`. Generally used to create override classes.
|
|
57
76
|
|
|
58
77
|
@mixin nhsuk-text-break-word($important: false) {
|
|
59
|
-
|
|
60
|
-
|
|
78
|
+
$properties: (
|
|
79
|
+
// IE 11 and Edge 16–17 only support the non-standard `word-wrap` property
|
|
80
|
+
"word-wrap": break-word,
|
|
81
|
+
|
|
82
|
+
// All other browsers support `overflow-wrap`
|
|
83
|
+
"overflow-wrap": break-word
|
|
84
|
+
);
|
|
61
85
|
|
|
62
|
-
//
|
|
63
|
-
|
|
86
|
+
// Workaround to avoid deprecated `if()` function
|
|
87
|
+
@each $property, $value in $properties {
|
|
88
|
+
@if $important == true {
|
|
89
|
+
#{$property}: $value !important;
|
|
90
|
+
} @else {
|
|
91
|
+
#{$property}: $value;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
64
94
|
}
|
|
65
95
|
|
|
66
96
|
/// Line height
|
|
67
97
|
///
|
|
68
98
|
///
|
|
69
99
|
/// Convert line-heights specified in pixels into a relative value, unless
|
|
70
|
-
/// they are already unit-less (and thus already treated as relative values)
|
|
71
|
-
/// or the units do not match the units used for the font size.
|
|
100
|
+
/// they are already unit-less (and thus already treated as relative values),
|
|
101
|
+
/// in rems, or the units do not match the units used for the font size.
|
|
72
102
|
///
|
|
73
103
|
/// @param {Number} $line-height Line height
|
|
74
104
|
/// @param {Number} $font-size Font size
|
|
75
105
|
/// @return {Number} The line height as either a relative value or unmodified
|
|
76
106
|
|
|
77
107
|
@function nhsuk-line-height($line-height, $font-size) {
|
|
78
|
-
@if not math.is-unitless($line-height)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
108
|
+
@if not math.is-unitless($line-height) {
|
|
109
|
+
@if math.compatible($line-height, 1rem) and math.compatible($font-size, 1px) {
|
|
110
|
+
$line-height: math.div($line-height, 1rem) * $nhsuk-root-font-size;
|
|
111
|
+
|
|
112
|
+
@if math.is-unitless($font-size) {
|
|
113
|
+
$font-size: $font-size * 1px;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@if math.compatible($line-height, 1px) and math.compatible($font-size, 1rem) {
|
|
118
|
+
$font-size: math.div($font-size, 1rem) * $nhsuk-root-font-size;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@if math.unit($line-height) == math.unit($font-size) {
|
|
122
|
+
$line-height: math.div($line-height, $font-size);
|
|
123
|
+
}
|
|
84
124
|
}
|
|
85
125
|
|
|
86
126
|
@return $line-height;
|
|
@@ -169,24 +209,29 @@
|
|
|
169
209
|
// $calculated-line-height is a separate variable from $line-height,
|
|
170
210
|
// as otherwise the value would get redefined with each loop and
|
|
171
211
|
// eventually break nhsuk-line-height.
|
|
172
|
-
|
|
212
|
+
$calculated-line-height: $line-height;
|
|
213
|
+
@if $line-height == false {
|
|
214
|
+
$calculated-line-height: map.get($breakpoint-map, "line-height");
|
|
215
|
+
}
|
|
216
|
+
|
|
173
217
|
// We continue to call the param $line-height to stay consistent with the
|
|
174
218
|
// naming with nhsuk-font.
|
|
175
219
|
$calculated-line-height: nhsuk-line-height(
|
|
176
|
-
$line-height:
|
|
220
|
+
$line-height: $calculated-line-height,
|
|
177
221
|
$font-size: $font-size
|
|
178
222
|
);
|
|
179
223
|
|
|
180
224
|
// Mark rules as !important if $important is true - this will result in
|
|
181
225
|
// these variables becoming strings, so this needs to happen *after* they
|
|
182
226
|
// are used in calculations
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
227
|
+
@if $important == true {
|
|
228
|
+
$font-size: $font-size !important;
|
|
229
|
+
$font-size-rem: $font-size-rem !important;
|
|
230
|
+
$calculated-line-height: $calculated-line-height !important;
|
|
231
|
+
}
|
|
186
232
|
|
|
187
233
|
& {
|
|
188
234
|
@if not $breakpoint {
|
|
189
|
-
font-size: $font-size;
|
|
190
235
|
font-size: $font-size-rem;
|
|
191
236
|
line-height: $calculated-line-height;
|
|
192
237
|
} @else if $breakpoint == "print" {
|
|
@@ -196,7 +241,6 @@
|
|
|
196
241
|
}
|
|
197
242
|
} @else {
|
|
198
243
|
@include nhsuk-media-query($from: $breakpoint) {
|
|
199
|
-
font-size: $font-size;
|
|
200
244
|
font-size: $font-size-rem;
|
|
201
245
|
line-height: $calculated-line-height;
|
|
202
246
|
}
|
|
@@ -257,3 +301,5 @@
|
|
|
257
301
|
@include nhsuk-font-size($size, $line-height);
|
|
258
302
|
}
|
|
259
303
|
}
|
|
304
|
+
|
|
305
|
+
/*# sourceMappingURL=_typography.scss.map */
|
|
@@ -21,77 +21,76 @@
|
|
|
21
21
|
// stylelint-disable declaration-no-important
|
|
22
22
|
|
|
23
23
|
.nhsuk-u-one-half {
|
|
24
|
-
float: left;
|
|
25
24
|
width: math.percentage(math.div(1, 2)) !important;
|
|
25
|
+
float: left;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.nhsuk-u-one-third {
|
|
29
|
-
float: left;
|
|
30
29
|
width: math.percentage(math.div(1, 3)) !important;
|
|
30
|
+
float: left;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.nhsuk-u-two-thirds {
|
|
34
|
-
float: left;
|
|
35
34
|
width: math.percentage(math.div(2, 3)) !important;
|
|
35
|
+
float: left;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.nhsuk-u-one-quarter {
|
|
39
|
-
float: left;
|
|
40
39
|
width: math.percentage(math.div(1, 4)) !important;
|
|
40
|
+
float: left;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.nhsuk-u-three-quarters {
|
|
44
|
-
float: left;
|
|
45
44
|
width: math.percentage(math.div(3, 4)) !important;
|
|
45
|
+
float: left;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
///
|
|
56
|
-
/// @example html
|
|
57
|
-
/// <div class="nhsuk-u-one-half-tablet"></div>
|
|
48
|
+
// Force grid widths on screen sizes on tablet
|
|
49
|
+
// and above
|
|
50
|
+
//
|
|
51
|
+
// By default all grid elements will go to 100% width
|
|
52
|
+
// on every screen size, these utilities can force
|
|
53
|
+
// custom widths on screen sizes on tablet
|
|
54
|
+
// and above
|
|
58
55
|
|
|
59
56
|
.nhsuk-u-one-half-tablet {
|
|
60
57
|
width: 100% !important;
|
|
61
58
|
@include nhsuk-media-query($from: tablet) {
|
|
62
|
-
float: left;
|
|
63
59
|
width: math.percentage(math.div(1, 2)) !important;
|
|
60
|
+
float: left;
|
|
64
61
|
}
|
|
65
62
|
}
|
|
66
63
|
|
|
67
64
|
.nhsuk-u-one-third-tablet {
|
|
68
65
|
width: 100% !important;
|
|
69
66
|
@include nhsuk-media-query($from: tablet) {
|
|
70
|
-
float: left;
|
|
71
67
|
width: math.percentage(math.div(1, 3)) !important;
|
|
68
|
+
float: left;
|
|
72
69
|
}
|
|
73
70
|
}
|
|
74
71
|
|
|
75
72
|
.nhsuk-u-two-thirds-tablet {
|
|
76
73
|
width: 100% !important;
|
|
77
74
|
@include nhsuk-media-query($from: tablet) {
|
|
78
|
-
float: left;
|
|
79
75
|
width: math.percentage(math.div(2, 3)) !important;
|
|
76
|
+
float: left;
|
|
80
77
|
}
|
|
81
78
|
}
|
|
82
79
|
|
|
83
80
|
.nhsuk-u-one-quarter-tablet {
|
|
84
81
|
width: 100% !important;
|
|
85
82
|
@include nhsuk-media-query($from: tablet) {
|
|
86
|
-
float: left;
|
|
87
83
|
width: math.percentage(math.div(1, 4)) !important;
|
|
84
|
+
float: left;
|
|
88
85
|
}
|
|
89
86
|
}
|
|
90
87
|
|
|
91
88
|
.nhsuk-u-three-quarters-tablet {
|
|
92
89
|
width: 100% !important;
|
|
93
90
|
@include nhsuk-media-query($from: tablet) {
|
|
94
|
-
float: left;
|
|
95
91
|
width: math.percentage(math.div(3, 4)) !important;
|
|
92
|
+
float: left;
|
|
96
93
|
}
|
|
97
94
|
}
|
|
95
|
+
|
|
96
|
+
/*# sourceMappingURL=_grid-widths.scss.map */
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
@use "../settings" as *;
|
|
2
|
+
@use "../tools/functions" as *;
|
|
3
|
+
@use "../helpers" as *;
|
|
2
4
|
|
|
3
5
|
////
|
|
4
6
|
/// List border
|
|
@@ -15,6 +17,8 @@
|
|
|
15
17
|
////
|
|
16
18
|
|
|
17
19
|
.nhsuk-list--border li {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
padding: nhsuk-px-to-rem(8px) 0 nhsuk-px-to-rem(16px);
|
|
21
|
+
border-bottom: 1px solid $nhsuk-border-colour;
|
|
20
22
|
}
|
|
23
|
+
|
|
24
|
+
/*# sourceMappingURL=_list-border.scss.map */
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
/// Directions for spacing
|
|
14
14
|
///
|
|
15
15
|
/// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)
|
|
16
|
+
///
|
|
17
|
+
/// @access private
|
|
16
18
|
|
|
17
19
|
$_spacing-directions: ("top", "right", "bottom", "left") !default;
|
|
18
20
|
|
|
@@ -34,6 +36,7 @@ $_spacing-directions: ("top", "right", "bottom", "left") !default;
|
|
|
34
36
|
/// }
|
|
35
37
|
/// }
|
|
36
38
|
///
|
|
39
|
+
/// @access private
|
|
37
40
|
|
|
38
41
|
@mixin _nhsuk-generate-responsive-spacing-overrides($property) {
|
|
39
42
|
// For each point in the spacing scale (defined in settings), create an
|
|
@@ -64,6 +67,7 @@ $_spacing-directions: ("top", "right", "bottom", "left") !default;
|
|
|
64
67
|
/// margin: 24px !important;
|
|
65
68
|
/// }
|
|
66
69
|
///
|
|
70
|
+
/// @access private
|
|
67
71
|
|
|
68
72
|
@mixin _nhsuk-generate-static-spacing-overrides($property) {
|
|
69
73
|
@each $spacing-point in map.keys($nhsuk-spacing-points) {
|
|
@@ -86,3 +90,5 @@ $_spacing-directions: ("top", "right", "bottom", "left") !default;
|
|
|
86
90
|
@include _nhsuk-generate-static-spacing-overrides("margin");
|
|
87
91
|
@include _nhsuk-generate-static-spacing-overrides("padding");
|
|
88
92
|
}
|
|
93
|
+
|
|
94
|
+
/*# sourceMappingURL=_spacing.scss.map */
|
data/app/assets/stylesheets/design_system/nhsuk-frontend-10.3.1/core/utilities/_typography.scss
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../settings" as *;
|
|
3
|
+
@use "../tools" as *;
|
|
4
|
+
|
|
5
|
+
////
|
|
6
|
+
/// Typography
|
|
7
|
+
///
|
|
8
|
+
/// @group utilities
|
|
9
|
+
////
|
|
10
|
+
|
|
11
|
+
// Font size and line height
|
|
12
|
+
|
|
13
|
+
// Generate typography override classes for each responsive font map in the
|
|
14
|
+
// typography scale eg .nhsuk-u-font-size-48
|
|
15
|
+
// nhsuk-u-font-size-24 is deprecated
|
|
16
|
+
@each $size, $font-map in $nhsuk-typography-scale {
|
|
17
|
+
.nhsuk-u-font-size-#{$size} {
|
|
18
|
+
$font-map: map.get($nhsuk-typography-scale, $size);
|
|
19
|
+
|
|
20
|
+
// Add underscore to deprecated typography scale keys
|
|
21
|
+
@if map.has-key($font-map, "deprecation") {
|
|
22
|
+
$size: _#{$size};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@include nhsuk-font-size($size, $important: true);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Weights
|
|
30
|
+
|
|
31
|
+
.nhsuk-u-font-weight-normal {
|
|
32
|
+
@include nhsuk-typography-weight-normal($important: true);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.nhsuk-u-font-weight-bold {
|
|
36
|
+
@include nhsuk-typography-weight-bold($important: true);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Typography helpers
|
|
40
|
+
|
|
41
|
+
.nhsuk-u-text-break-word {
|
|
42
|
+
@include nhsuk-text-break-word($important: true);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Colours
|
|
46
|
+
|
|
47
|
+
.nhsuk-u-secondary-text-colour {
|
|
48
|
+
// stylelint-disable-next-line declaration-no-important
|
|
49
|
+
color: $nhsuk-secondary-text-colour !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/*# sourceMappingURL=_typography.scss.map */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use "../settings
|
|
1
|
+
@use "../settings" as *;
|
|
2
2
|
|
|
3
3
|
// mq() v6.0.0
|
|
4
4
|
// sass-mq/sass-mq
|
|
@@ -304,7 +304,7 @@ $mq-media-type: all !default;
|
|
|
304
304
|
// Loop through the breakpoints that should be shown
|
|
305
305
|
@each $show-breakpoint in $show-breakpoints {
|
|
306
306
|
$width: get-breakpoint-width($show-breakpoint, $breakpoints);
|
|
307
|
-
@include mq($show-breakpoint, $breakpoints: $breakpoints) {
|
|
307
|
+
@include mq($show-breakpoint, $breakpoints: $breakpoints, $silence-warning: true) {
|
|
308
308
|
content: "#{$show-breakpoint} ≥ #{$width} (#{px2em($width)})";
|
|
309
309
|
}
|
|
310
310
|
}
|
|
@@ -314,3 +314,5 @@ $mq-media-type: all !default;
|
|
|
314
314
|
@if list.length($mq-show-breakpoints) > 0 {
|
|
315
315
|
@include show-breakpoints;
|
|
316
316
|
}
|
|
317
|
+
|
|
318
|
+
/*# sourceMappingURL=sass-mq.scss.map */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Using the NHSUK frontend.
|
|
2
|
-
@use 'nhsuk-frontend-
|
|
3
|
-
@use 'nhsuk-frontend-
|
|
2
|
+
@use 'nhsuk-frontend-10.3.1/core';
|
|
3
|
+
@use 'nhsuk-frontend-10.3.1/components';
|
|
4
4
|
|
|
5
5
|
// Use extreme caution when making any design system level style changes or additions here.
|