defra_ruby_template 5.4.1 → 5.11.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/views/layouts/defra_ruby_template.html.erb +39 -18
- data/lib/defra_ruby_template/version.rb +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +882 -492
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +877 -492
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.mjs +5 -0
- data/node_modules/govuk-frontend/dist/govuk/all.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/all.scss +6 -0
- data/node_modules/govuk-frontend/dist/govuk/all.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-crest.svg +1 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.ico +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.svg +1 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-crest.svg +1 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-180.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-192.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-512.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-mask.svg +1 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-opengraph-image.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/manifest.json +39 -0
- data/node_modules/govuk-frontend/dist/govuk/common/closest-attribute-value.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/configuration.mjs +169 -0
- data/node_modules/govuk-frontend/dist/govuk/common/configuration.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
- data/node_modules/govuk-frontend/dist/govuk/common/index.mjs +20 -83
- data/node_modules/govuk-frontend/dist/govuk/common/index.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/component.mjs +60 -0
- data/node_modules/govuk-frontend/dist/govuk/component.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/_index.scss +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +35 -31
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js +296 -195
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs +295 -194
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs +88 -110
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/fixtures.json +16 -3
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/fixtures.json +25 -15
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/template-with-custom-link.html +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/template.njk +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/fixtures.json +53 -15
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/macro-options.json +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-default.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-inverse.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-collapse-on-mobile.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-last-breadcrumb-as-current-page.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-multiple-levels.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-with-one-level.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template-without-the-home-section.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/template.njk +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js +217 -106
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs +216 -105
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs +9 -22
- data/node_modules/govuk-frontend/dist/govuk/components/button/button.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/button/fixtures.json +38 -0
- data/node_modules/govuk-frontend/dist/govuk/components/button/macro-options.json +2 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +12 -4
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +256 -145
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs +255 -144
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs +29 -34
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/fixtures.json +80 -1
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/macro-options.json +6 -6
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-error.html +12 -0
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template-with-hint-and-error.html +15 -0
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/template.njk +5 -4
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +6 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js +96 -50
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs +95 -49
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs +9 -18
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/checkboxes.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/fixtures.json +88 -1
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/template-small-with-divider-and-none.html +34 -0
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +23 -14
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/fixtures.json +23 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/fixtures.json +27 -0
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/macro-options.json +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +7 -2
- data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/details/fixtures.json +10 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/fixtures.json +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js +238 -127
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs +237 -126
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs +10 -22
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/error-summary.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/fixtures.json +19 -0
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js +218 -107
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs +217 -106
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs +10 -22
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/fixtures.json +4 -0
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss +3 -5
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/fieldset/fixtures.json +18 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +175 -9
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js +744 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs +736 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs +257 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/fixtures.json +220 -16
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/macro-options.json +52 -3
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-direct-media-capture.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-image-files-only.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-allows-multiple-files.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-disabled.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-disabled.html +13 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced-with-error-message-and-hint.html +16 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-enhanced.html +10 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-translated.html +10 -0
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template.njk +42 -5
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +61 -19
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/footer/fixtures.json +34 -0
- data/node_modules/govuk-frontend/dist/govuk/components/footer/macro-options.json +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/footer/template.njk +10 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +223 -21
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/fixtures.json +78 -32
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +90 -43
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +89 -42
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +10 -18
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/header/macro-options.json +31 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-default.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width-with-navigation.html +21 -15
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width.html +21 -15
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-html.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-text-without-link.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-label.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-text.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-navigation-label.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-full-width-border.html +30 -0
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-large-navigation.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-navigation.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-product-name.html +21 -15
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-and-navigation.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-but-no-service-url.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name.html +20 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-st-edwards-crown.html +10 -12
- data/node_modules/govuk-frontend/dist/govuk/components/header/template.njk +11 -41
- data/node_modules/govuk-frontend/dist/govuk/components/hint/fixtures.json +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +7 -4
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/input/fixtures.json +97 -27
- data/node_modules/govuk-frontend/dist/govuk/components/input/macro-options.json +6 -6
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-default.html +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-disabled.html +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-error-and-hint.html +12 -0
- data/node_modules/govuk-frontend/dist/govuk/components/input/template-with-error-message.html +2 -5
- data/node_modules/govuk-frontend/dist/govuk/components/input/template.njk +5 -4
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/fixtures.json +6 -0
- data/node_modules/govuk-frontend/dist/govuk/components/label/fixtures.json +17 -0
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +3 -2
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/fixtures.json +24 -0
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js +238 -127
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs +237 -126
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs +10 -22
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/notification-banner.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +24 -37
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/fixtures.json +15 -0
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/macro-options.json +4 -4
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +13 -9
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/panel/fixtures.json +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +12 -9
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/fixtures.json +27 -2
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/macro-options.json +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js +220 -110
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs +219 -109
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs +12 -25
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template-default.html +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/template.njk +4 -2
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +0 -8
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/fixtures.json +7 -0
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +7 -5
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/fixtures.json +51 -5
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js +96 -50
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs +95 -49
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs +9 -18
- data/node_modules/govuk-frontend/dist/govuk/components/radios/radios.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-small-with-a-divider.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/radios/template-with-a-divider.html +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +5 -5
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/select/fixtures.json +43 -9
- data/node_modules/govuk-frontend/dist/govuk/components/select/macro-options.json +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/select/template-id.html +7 -0
- data/node_modules/govuk-frontend/dist/govuk/components/select/template.njk +6 -4
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/README.md +15 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +187 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss +4 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_service-navigation.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +515 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/macro-options.json +138 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/macro.njk +3 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js +229 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs +221 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs +85 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-default.html +57 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-html-navigation-items.html +49 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-large-navigation.html +153 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-long-service-name.html +20 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-navigation-with-a-current-item.html +58 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-navigation-with-an-active-item.html +58 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-non-link-navigation-items.html +49 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-link.html +20 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-name-and-navigation.html +63 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-name.html +18 -0
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template.njk +103 -0
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +6 -4
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/fixtures.json +9 -0
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js +95 -48
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs +94 -47
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs +15 -23
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/skip-link.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +14 -22
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/fixtures.json +174 -1
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/template-as-a-summary-card-extreme.html +106 -0
- data/node_modules/govuk-frontend/dist/govuk/components/table/fixtures.json +22 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/fixtures.json +15 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js +95 -53
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs +94 -52
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.bundle.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs +15 -28
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/tabs.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +11 -8
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/tag/fixtures.json +14 -0
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +12 -10
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/fixtures.json +44 -0
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-empty-values.html +27 -0
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/template.njk +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/fixtures.json +32 -1
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/macro-options.json +3 -3
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/template.njk +6 -4
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +6 -5
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/fixtures.json +8 -0
- data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs +16 -3
- data/node_modules/govuk-frontend/dist/govuk/errors/index.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +55 -8
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +14 -4
- data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_shape-arrow.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +18 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss +30 -62
- data/node_modules/govuk-frontend/dist/govuk/helpers/_visually-hidden.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/i18n.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/init.mjs +90 -24
- data/node_modules/govuk-frontend/dist/govuk/init.mjs.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/macros/logo.njk +78 -0
- data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss +5 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +5 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +39 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +244 -10
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss +5 -10
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/template.njk +20 -9
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +1 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss.map +1 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss +65 -0
- data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss.map +1 -0
- data/node_modules/govuk-frontend/dist/govuk-prototype-kit/functions.js +25 -0
- data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk-prototype-kit/init.scss.map +1 -1
- data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +8 -1
- data/node_modules/govuk-frontend/package.json +16 -16
- data/spec/spec_helper.rb +98 -0
- data/spec/tasks/assets_spec.rb +53 -0
- data/vendor/assets/assets/fonts/bold-affa96571d-v2.woff +0 -0
- data/vendor/assets/assets/fonts/bold-b542beb274-v2.woff2 +0 -0
- data/vendor/assets/assets/fonts/light-94a07e06a1-v2.woff2 +0 -0
- data/vendor/assets/assets/fonts/light-f591b13f7d-v2.woff +0 -0
- data/vendor/assets/assets/images/favicon.ico +0 -0
- data/vendor/assets/assets/images/favicon.svg +1 -0
- data/vendor/assets/assets/images/govuk-crest.svg +1 -0
- data/vendor/assets/assets/images/govuk-icon-180.png +0 -0
- data/vendor/assets/assets/images/govuk-icon-192.png +0 -0
- data/vendor/assets/assets/images/govuk-icon-512.png +0 -0
- data/vendor/assets/assets/images/govuk-icon-mask.svg +1 -0
- data/vendor/assets/assets/images/govuk-opengraph-image.png +0 -0
- data/vendor/assets/assets/manifest.json +39 -0
- data/vendor/assets/assets/rebrand/images/favicon.ico +0 -0
- data/vendor/assets/assets/rebrand/images/favicon.svg +1 -0
- data/vendor/assets/assets/rebrand/images/govuk-crest.svg +1 -0
- data/vendor/assets/assets/rebrand/images/govuk-icon-180.png +0 -0
- data/vendor/assets/assets/rebrand/images/govuk-icon-192.png +0 -0
- data/vendor/assets/assets/rebrand/images/govuk-icon-512.png +0 -0
- data/vendor/assets/assets/rebrand/images/govuk-icon-mask.svg +1 -0
- data/vendor/assets/assets/rebrand/images/govuk-opengraph-image.png +0 -0
- data/vendor/assets/assets/rebrand/manifest.json +39 -0
- data/vendor/assets/images/govuk-crest.svg +1 -0
- data/vendor/assets/javascripts/defra_ruby_template.js +882 -492
- data/vendor/assets/stylesheets/all.scss +6 -0
- data/vendor/assets/stylesheets/components/_index.scss +1 -0
- data/vendor/assets/stylesheets/components/accordion/_index.scss +35 -31
- data/vendor/assets/stylesheets/components/character-count/_index.scss +12 -4
- data/vendor/assets/stylesheets/components/checkboxes/_index.scss +6 -1
- data/vendor/assets/stylesheets/components/cookie-banner/_index.scss +23 -14
- data/vendor/assets/stylesheets/components/date-input/_index.scss +2 -2
- data/vendor/assets/stylesheets/components/details/_index.scss +7 -2
- data/vendor/assets/stylesheets/components/error-summary/_index.scss +4 -0
- data/vendor/assets/stylesheets/components/fieldset/_index.scss +3 -5
- data/vendor/assets/stylesheets/components/file-upload/_index.scss +175 -9
- data/vendor/assets/stylesheets/components/footer/_index.scss +61 -19
- data/vendor/assets/stylesheets/components/header/_index.scss +223 -21
- data/vendor/assets/stylesheets/components/input/_index.scss +7 -4
- data/vendor/assets/stylesheets/components/notification-banner/_index.scss +3 -2
- data/vendor/assets/stylesheets/components/pagination/_index.scss +24 -37
- data/vendor/assets/stylesheets/components/panel/_index.scss +13 -9
- data/vendor/assets/stylesheets/components/password-input/_index.scss +12 -9
- data/vendor/assets/stylesheets/components/phase-banner/_index.scss +0 -8
- data/vendor/assets/stylesheets/components/radios/_index.scss +7 -5
- data/vendor/assets/stylesheets/components/select/_index.scss +5 -5
- data/vendor/assets/stylesheets/components/service-navigation/_index.scss +187 -0
- data/vendor/assets/stylesheets/components/service-navigation/_service-navigation.scss +4 -0
- data/vendor/assets/stylesheets/components/skip-link/_index.scss +6 -4
- data/vendor/assets/stylesheets/components/summary-list/_index.scss +14 -22
- data/vendor/assets/stylesheets/components/tag/_index.scss +11 -8
- data/vendor/assets/stylesheets/components/task-list/_index.scss +12 -10
- data/vendor/assets/stylesheets/components/textarea/_index.scss +3 -3
- data/vendor/assets/stylesheets/components/warning-text/_index.scss +6 -5
- data/vendor/assets/stylesheets/core/_govuk-frontend-properties.scss +1 -1
- data/vendor/assets/stylesheets/defra_ruby_template.scss +6 -0
- data/vendor/assets/stylesheets/govuk-frontend.min.css +2 -2
- data/vendor/assets/stylesheets/helpers/_colour.scss +55 -8
- data/vendor/assets/stylesheets/helpers/_focused.scss +14 -4
- data/vendor/assets/stylesheets/helpers/_grid.scss +1 -1
- data/vendor/assets/stylesheets/helpers/_links.scss +2 -2
- data/vendor/assets/stylesheets/helpers/_shape-arrow.scss +1 -1
- data/vendor/assets/stylesheets/helpers/_typography.scss +18 -1
- data/vendor/assets/stylesheets/helpers/_visually-hidden.scss +30 -62
- data/vendor/assets/stylesheets/objects/_template.scss +5 -1
- data/vendor/assets/stylesheets/overrides/_typography.scss +5 -1
- data/vendor/assets/stylesheets/settings/_colours-applied.scss +39 -1
- data/vendor/assets/stylesheets/settings/_colours-organisations.scss +244 -10
- data/vendor/assets/stylesheets/settings/_typography-responsive.scss +5 -10
- data/vendor/assets/stylesheets/tools/_index.scss +1 -0
- data/vendor/assets/stylesheets/tools/_rebrand.scss +65 -0
- metadata +100 -24
- data/.github/dependabot.yml +0 -14
- data/.github/workflows/ci.yml +0 -31
- data/.gitignore +0 -8
- data/.rspec +0 -1
- data/.rubocop.yml +0 -3
- data/.ruby-version +0 -1
- data/Gemfile +0 -9
- data/Gemfile.lock +0 -58
- data/defra_ruby_template.gemspec +0 -35
- data/node_modules/.package-lock.json +0 -16
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-crest-2x.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-crest.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-dataset.mjs +0 -18
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-dataset.mjs.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-string.mjs +0 -31
- data/node_modules/govuk-frontend/dist/govuk/common/normalise-string.mjs.map +0 -1
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template-with-value.html +0 -6
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend-component.mjs +0 -16
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend-component.mjs.map +0 -1
- data/package-lock.json +0 -24
- data/package.json +0 -29
@@ -1,23 +1,28 @@
|
|
1
1
|
@include govuk-exports("govuk/component/footer") {
|
2
|
-
$govuk-footer-background: $govuk-
|
3
|
-
$govuk-footer-border: $govuk-border-colour;
|
2
|
+
$govuk-footer-background: $govuk-template-background-colour;
|
4
3
|
$govuk-footer-text: $govuk-text-colour;
|
4
|
+
$govuk-footer-content-border: $govuk-border-colour;
|
5
5
|
|
6
|
-
//
|
7
|
-
$govuk-footer-crest-image-width
|
8
|
-
$govuk-footer-crest-image-height
|
9
|
-
// Half the 2x image so that it fits the regular 1x size.
|
10
|
-
$govuk-footer-crest-image-width: ($govuk-footer-crest-image-width-2x / 2);
|
11
|
-
$govuk-footer-crest-image-height: ($govuk-footer-crest-image-height-2x / 2);
|
6
|
+
// Royal Arms image dimensions
|
7
|
+
$govuk-footer-crest-image-width: 125px;
|
8
|
+
$govuk-footer-crest-image-height: 102px;
|
12
9
|
|
13
10
|
.govuk-footer {
|
14
11
|
@include govuk-font($size: if($govuk-new-typography-scale, 19, 16));
|
15
12
|
@include govuk-responsive-padding(7, "top");
|
16
13
|
@include govuk-responsive-padding(5, "bottom");
|
17
14
|
|
18
|
-
border-top:
|
15
|
+
border-top: 10px solid $govuk-brand-colour;
|
19
16
|
color: $govuk-footer-text;
|
20
|
-
|
17
|
+
@include _govuk-rebrand(
|
18
|
+
"background",
|
19
|
+
$from: $govuk-footer-background,
|
20
|
+
$to: $_govuk-rebrand-template-background-colour
|
21
|
+
);
|
22
|
+
}
|
23
|
+
|
24
|
+
.govuk-footer__crown {
|
25
|
+
margin-bottom: govuk-spacing(5);
|
21
26
|
}
|
22
27
|
|
23
28
|
.govuk-footer__link {
|
@@ -29,7 +34,12 @@
|
|
29
34
|
margin: 0; // Reset `<hr>` default margins
|
30
35
|
@include govuk-responsive-margin(8, "bottom");
|
31
36
|
border: 0; // Reset `<hr>` default borders
|
32
|
-
border-bottom: 1px solid
|
37
|
+
border-bottom: 1px solid;
|
38
|
+
@include _govuk-rebrand(
|
39
|
+
"border-bottom-color",
|
40
|
+
$from: $govuk-footer-content-border,
|
41
|
+
$to: $_govuk-rebrand-border-colour-on-blue-tint-95
|
42
|
+
);
|
33
43
|
}
|
34
44
|
|
35
45
|
.govuk-footer__meta {
|
@@ -67,22 +77,48 @@
|
|
67
77
|
}
|
68
78
|
|
69
79
|
.govuk-footer__licence-description {
|
80
|
+
// This makes the license description reflow under the logo when space gets too narrow
|
70
81
|
display: inline-block;
|
82
|
+
// This prevents the description from having orphans when space is narrow enough
|
83
|
+
// and makes the text reflow more nicely
|
84
|
+
text-wrap: balance;
|
71
85
|
}
|
72
86
|
|
73
|
-
.govuk-footer__copyright-logo {
|
74
|
-
|
75
|
-
|
87
|
+
.govuk-footer__copyright-logo::before {
|
88
|
+
content: "";
|
89
|
+
display: block;
|
90
|
+
width: 100%;
|
76
91
|
padding-top: ($govuk-footer-crest-image-height + govuk-spacing(2));
|
77
|
-
background-image: govuk-image-url("govuk-crest.
|
78
|
-
@include govuk-device-pixel-ratio {
|
79
|
-
background-image: govuk-image-url("govuk-crest-2x.png");
|
80
|
-
}
|
92
|
+
background-image: govuk-image-url("govuk-crest.svg");
|
81
93
|
background-repeat: no-repeat;
|
82
94
|
background-position: 50% 0%;
|
83
95
|
background-size: $govuk-footer-crest-image-width $govuk-footer-crest-image-height;
|
84
96
|
text-align: center;
|
85
97
|
white-space: nowrap;
|
98
|
+
|
99
|
+
// Where possible use the crest as a mask instead. This lets us use
|
100
|
+
// currentColor, increasing the contrast of the image and matching the
|
101
|
+
// user's prefered foreground colour in e.g. forced colors mode.
|
102
|
+
// We test for `mask-position` rather than `mask-image` because of a false
|
103
|
+
// positive in Edge 17.
|
104
|
+
@supports ((-webkit-mask-position: initial) or (mask-position: initial)) {
|
105
|
+
background: currentcolor;
|
106
|
+
-webkit-mask-image: govuk-image-url("govuk-crest.svg");
|
107
|
+
mask-image: govuk-image-url("govuk-crest.svg");
|
108
|
+
-webkit-mask-repeat: no-repeat;
|
109
|
+
mask-repeat: no-repeat;
|
110
|
+
-webkit-mask-position: 50% 0%;
|
111
|
+
mask-position: 50% 0%;
|
112
|
+
-webkit-mask-size: $govuk-footer-crest-image-width $govuk-footer-crest-image-height;
|
113
|
+
mask-size: $govuk-footer-crest-image-width $govuk-footer-crest-image-height;
|
114
|
+
|
115
|
+
// currentcolor doesn't seem to be computed correctly in forced colors
|
116
|
+
// mode so force the background color to match the system link color
|
117
|
+
// (matching the text in the link)
|
118
|
+
@media screen and (forced-colors: active) {
|
119
|
+
background: linktext;
|
120
|
+
}
|
121
|
+
}
|
86
122
|
}
|
87
123
|
|
88
124
|
.govuk-footer__inline-list {
|
@@ -108,7 +144,13 @@
|
|
108
144
|
@include govuk-media-query($until: tablet) {
|
109
145
|
padding-bottom: govuk-spacing(2);
|
110
146
|
}
|
111
|
-
|
147
|
+
|
148
|
+
border-bottom: 1px solid;
|
149
|
+
@include _govuk-rebrand(
|
150
|
+
"border-bottom-color",
|
151
|
+
$from: $govuk-footer-content-border,
|
152
|
+
$to: $_govuk-rebrand-border-colour-on-blue-tint-95
|
153
|
+
);
|
112
154
|
}
|
113
155
|
|
114
156
|
.govuk-footer__navigation {
|
@@ -13,12 +13,31 @@
|
|
13
13
|
$govuk-header-menu-button-height: 24px;
|
14
14
|
$govuk-header-menu-button-width: 80px;
|
15
15
|
|
16
|
+
$govuk-header-rebrand-background: $govuk-brand-colour;
|
17
|
+
$govuk-header-rebrand-logo-bottom-margin: 2px;
|
18
|
+
|
16
19
|
.govuk-header {
|
17
20
|
@include govuk-font($size: 16, $line-height: 1);
|
18
21
|
|
19
|
-
|
22
|
+
// Add a transparent bottom border for forced-colour modes
|
23
|
+
@include _govuk-rebrand(
|
24
|
+
"border-bottom",
|
25
|
+
$from: govuk-spacing(2) solid govuk-colour("white"),
|
26
|
+
$to: 1px solid transparent
|
27
|
+
);
|
28
|
+
@include _govuk-rebrand("background", $from: $govuk-header-background, $to: $govuk-header-rebrand-background);
|
29
|
+
|
20
30
|
color: $govuk-header-text;
|
21
|
-
|
31
|
+
}
|
32
|
+
|
33
|
+
.govuk-header--with-js-navigation {
|
34
|
+
@include govuk-media-query($until: desktop) {
|
35
|
+
.govuk-header__logo {
|
36
|
+
// Protect the absolute positioned menu button from overlapping with the
|
37
|
+
// logo with right padding using the button's width
|
38
|
+
padding-right: $govuk-header-menu-button-width;
|
39
|
+
}
|
40
|
+
}
|
22
41
|
}
|
23
42
|
|
24
43
|
.govuk-header__container--full-width {
|
@@ -36,6 +55,26 @@
|
|
36
55
|
margin-bottom: -$govuk-header-border-width;
|
37
56
|
padding-top: govuk-spacing($govuk-header-vertical-spacing-value);
|
38
57
|
border-bottom: $govuk-header-border-width solid $govuk-header-border-color;
|
58
|
+
|
59
|
+
@include _govuk-rebrand {
|
60
|
+
// Remove the space allocated to the blue bar
|
61
|
+
margin-bottom: 0;
|
62
|
+
|
63
|
+
// Remove padding as the child elements are now responsible for spacing
|
64
|
+
padding-top: 0;
|
65
|
+
|
66
|
+
// Remove the blue bar
|
67
|
+
border-bottom: none;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
// TODO: Remove this when _govuk-rebrand becomes the default
|
72
|
+
.govuk-header--full-width-border {
|
73
|
+
border-bottom-color: $govuk-header-border-color;
|
74
|
+
|
75
|
+
.govuk-header__container {
|
76
|
+
border-bottom-color: transparent;
|
77
|
+
}
|
39
78
|
}
|
40
79
|
|
41
80
|
.govuk-header__logotype {
|
@@ -61,6 +100,36 @@
|
|
61
100
|
&:last-child {
|
62
101
|
margin-right: 0;
|
63
102
|
}
|
103
|
+
|
104
|
+
@include _govuk-rebrand {
|
105
|
+
margin-right: govuk-px-to-rem(7px); // 1 'dot'
|
106
|
+
margin-bottom: $govuk-header-rebrand-logo-bottom-margin;
|
107
|
+
|
108
|
+
// Remove right-margin if there's no product name
|
109
|
+
&:last-child {
|
110
|
+
margin-right: 0;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
// Colour in the Dot
|
116
|
+
.govuk-logo-dot {
|
117
|
+
fill: #00ffe0;
|
118
|
+
|
119
|
+
// Override Dot colour when printing
|
120
|
+
@include govuk-media-query($media-type: print) {
|
121
|
+
fill: currentcolor;
|
122
|
+
}
|
123
|
+
|
124
|
+
// Override Dot colour on forced colours mode
|
125
|
+
@media (forced-colors: active) {
|
126
|
+
fill: currentcolor;
|
127
|
+
}
|
128
|
+
|
129
|
+
// Override Dot colour on focus
|
130
|
+
:focus & {
|
131
|
+
fill: currentcolor;
|
132
|
+
}
|
64
133
|
}
|
65
134
|
|
66
135
|
.govuk-header__product-name {
|
@@ -89,6 +158,40 @@
|
|
89
158
|
margin-top: $product-name-offset-tablet - 0.5px;
|
90
159
|
}
|
91
160
|
}
|
161
|
+
|
162
|
+
@include _govuk-rebrand {
|
163
|
+
// Remove top margin
|
164
|
+
margin-top: 0;
|
165
|
+
|
166
|
+
// Remove 1px from the bottom to account for the font-size being 1px
|
167
|
+
// larger than the logo height.
|
168
|
+
margin-bottom: govuk-px-to-rem(-1px);
|
169
|
+
|
170
|
+
// Magic number font-size that visually aligns with GOV.UK logo.
|
171
|
+
// Also stops reducing the product name size on narrow screens
|
172
|
+
font-size: govuk-px-to-rem(31px);
|
173
|
+
|
174
|
+
// Reduce letter spacing
|
175
|
+
letter-spacing: -0.015em;
|
176
|
+
|
177
|
+
// Prevent forced colour modes from applying a background colour behind
|
178
|
+
// the product name, which cuts off the underline that appears on hover.
|
179
|
+
forced-color-adjust: none;
|
180
|
+
|
181
|
+
@media screen and (forced-colors: active) {
|
182
|
+
color: LinkText;
|
183
|
+
background: transparent;
|
184
|
+
}
|
185
|
+
|
186
|
+
// Remove top margin on the breakpoints too
|
187
|
+
@include govuk-media-query($from: tablet) {
|
188
|
+
margin-top: 0;
|
189
|
+
}
|
190
|
+
|
191
|
+
@include govuk-media-query($from: desktop) {
|
192
|
+
margin-top: 0;
|
193
|
+
}
|
194
|
+
}
|
92
195
|
}
|
93
196
|
|
94
197
|
.govuk-header__link {
|
@@ -126,12 +229,6 @@
|
|
126
229
|
|
127
230
|
@include govuk-media-query($from: desktop) {
|
128
231
|
display: inline;
|
129
|
-
|
130
|
-
&:focus {
|
131
|
-
// Replicate the focus box shadow but without the -2px y-offset of the first yellow shadow
|
132
|
-
// This is to stop the logo getting cut off by the box shadow when focused on above a product name
|
133
|
-
box-shadow: 0 0 $govuk-focus-colour;
|
134
|
-
}
|
135
232
|
}
|
136
233
|
|
137
234
|
&:link,
|
@@ -151,6 +248,23 @@
|
|
151
248
|
margin-bottom: 0;
|
152
249
|
border-bottom: 0;
|
153
250
|
}
|
251
|
+
|
252
|
+
@include _govuk-rebrand {
|
253
|
+
display: inline;
|
254
|
+
|
255
|
+
// Remove word-spacing from within the logo so we can ignore
|
256
|
+
// whitespace characters in the HTML
|
257
|
+
word-spacing: govuk-px-to-rem(-6px);
|
258
|
+
|
259
|
+
// Reset word-spacing for child elements
|
260
|
+
> * {
|
261
|
+
word-spacing: 0;
|
262
|
+
}
|
263
|
+
|
264
|
+
&:not(:focus) {
|
265
|
+
background-color: $govuk-header-rebrand-background;
|
266
|
+
}
|
267
|
+
}
|
154
268
|
}
|
155
269
|
|
156
270
|
.govuk-header__service-name {
|
@@ -158,6 +272,18 @@
|
|
158
272
|
margin-bottom: govuk-spacing(2);
|
159
273
|
@include govuk-font-size($size: 24);
|
160
274
|
@include govuk-typography-weight-bold;
|
275
|
+
|
276
|
+
@include _govuk-rebrand {
|
277
|
+
// Apply margins to internal elements to emulate padding
|
278
|
+
margin-bottom: govuk-spacing(3);
|
279
|
+
|
280
|
+
@include govuk-media-query($from: desktop) {
|
281
|
+
// Magic number to align service name baseline with the GOV.UK logo
|
282
|
+
$service-name-offset: 4px;
|
283
|
+
|
284
|
+
margin: (govuk-spacing(3) + $service-name-offset) 0 (govuk-spacing(3) - $service-name-offset);
|
285
|
+
}
|
286
|
+
}
|
161
287
|
}
|
162
288
|
|
163
289
|
.govuk-header__logo,
|
@@ -167,9 +293,6 @@
|
|
167
293
|
|
168
294
|
.govuk-header__logo {
|
169
295
|
@include govuk-responsive-margin($govuk-header-vertical-spacing-value, "bottom");
|
170
|
-
// Protect the absolute positioned menu button from overlapping with the
|
171
|
-
// logo with right padding using the button's width
|
172
|
-
padding-right: $govuk-header-menu-button-width;
|
173
296
|
|
174
297
|
@include govuk-media-query($from: desktop) {
|
175
298
|
width: 33.33%;
|
@@ -184,6 +307,15 @@
|
|
184
307
|
float: none;
|
185
308
|
}
|
186
309
|
}
|
310
|
+
|
311
|
+
@include _govuk-rebrand {
|
312
|
+
// Apply margins to internal elements to emulate padding
|
313
|
+
margin-bottom: 0;
|
314
|
+
|
315
|
+
// Magic numbers, set padding to vertically centre align the logo
|
316
|
+
padding-top: 16px;
|
317
|
+
padding-bottom: 14px - $govuk-header-rebrand-logo-bottom-margin;
|
318
|
+
}
|
187
319
|
}
|
188
320
|
|
189
321
|
.govuk-header__content {
|
@@ -196,18 +328,9 @@
|
|
196
328
|
|
197
329
|
.govuk-header__menu-button {
|
198
330
|
@include govuk-font($size: 16);
|
199
|
-
position: absolute;
|
200
|
-
// calculate top offset by:
|
201
|
-
// - getting the vertical spacing for the top and the bottom of the header
|
202
|
-
// - adding that to the crown height
|
203
|
-
// - dividing it by 2 so you have the vertical centre of the header
|
204
|
-
// - subtracting half the height of the menu button
|
205
|
-
top: (((govuk-spacing($govuk-header-vertical-spacing-value) * 2) + $govuk-header-crown-height) / 2) -
|
206
|
-
($govuk-header-menu-button-height / 2);
|
207
|
-
right: 0;
|
208
331
|
max-width: $govuk-header-menu-button-width;
|
209
332
|
min-height: $govuk-header-menu-button-height;
|
210
|
-
margin:
|
333
|
+
margin-bottom: govuk-spacing(1);
|
211
334
|
padding: 0;
|
212
335
|
border: 0;
|
213
336
|
color: govuk-colour("white");
|
@@ -238,6 +361,19 @@
|
|
238
361
|
@include govuk-shape-arrow($direction: up, $base: 10px, $display: inline-block);
|
239
362
|
}
|
240
363
|
|
364
|
+
@include govuk-media-query($from: mobile) {
|
365
|
+
position: absolute;
|
366
|
+
// calculate top offset by:
|
367
|
+
// - getting the vertical spacing for the top and the bottom of the header
|
368
|
+
// - adding that to the crown height
|
369
|
+
// - dividing it by 2 so you have the vertical centre of the header
|
370
|
+
// - subtracting half the height of the menu button
|
371
|
+
top: (((govuk-spacing($govuk-header-vertical-spacing-value) * 2) + $govuk-header-crown-height) / 2) -
|
372
|
+
($govuk-header-menu-button-height / 2);
|
373
|
+
right: 0;
|
374
|
+
margin: 0;
|
375
|
+
}
|
376
|
+
|
241
377
|
@include govuk-media-query($from: tablet) {
|
242
378
|
top: govuk-spacing(3);
|
243
379
|
}
|
@@ -253,8 +389,37 @@
|
|
253
389
|
}
|
254
390
|
|
255
391
|
.govuk-header__navigation {
|
392
|
+
@include govuk-media-query($until: mobile) {
|
393
|
+
@include _govuk-rebrand {
|
394
|
+
padding-bottom: govuk-spacing(3);
|
395
|
+
}
|
396
|
+
}
|
397
|
+
|
256
398
|
@include govuk-media-query($from: desktop) {
|
257
399
|
margin-bottom: govuk-spacing(2);
|
400
|
+
|
401
|
+
@include _govuk-rebrand {
|
402
|
+
// Magic number so that the bottom of the nav links aligns with the
|
403
|
+
// baseline of the GOV.UK logo
|
404
|
+
$navigation-offset: 7px;
|
405
|
+
|
406
|
+
// Apply margins to internal elements to emulate padding
|
407
|
+
margin-bottom: 0;
|
408
|
+
padding: (govuk-spacing(3) + $navigation-offset) 0 (govuk-spacing(3) - $navigation-offset);
|
409
|
+
}
|
410
|
+
}
|
411
|
+
}
|
412
|
+
|
413
|
+
.govuk-header__service-name + .govuk-header__navigation {
|
414
|
+
@include _govuk-rebrand {
|
415
|
+
@include govuk-media-query($from: desktop) {
|
416
|
+
// If there's both a service name and navigation,
|
417
|
+
// remove the extra padding between them on desktop
|
418
|
+
padding-top: 0;
|
419
|
+
|
420
|
+
// Restore the full bottom padding as the navigation isn't standalone
|
421
|
+
padding-bottom: govuk-spacing(3);
|
422
|
+
}
|
258
423
|
}
|
259
424
|
}
|
260
425
|
|
@@ -267,6 +432,12 @@
|
|
267
432
|
&[hidden] {
|
268
433
|
display: none;
|
269
434
|
}
|
435
|
+
|
436
|
+
@include _govuk-rebrand {
|
437
|
+
@include govuk-media-query($from: mobile, $until: desktop) {
|
438
|
+
padding-bottom: govuk-spacing(3);
|
439
|
+
}
|
440
|
+
}
|
270
441
|
}
|
271
442
|
|
272
443
|
.govuk-header__navigation--end {
|
@@ -293,14 +464,41 @@
|
|
293
464
|
@include govuk-typography-weight-bold;
|
294
465
|
white-space: nowrap;
|
295
466
|
}
|
467
|
+
|
468
|
+
@include _govuk-rebrand {
|
469
|
+
// Increase top padding of nav items...
|
470
|
+
padding-top: govuk-spacing(3);
|
471
|
+
|
472
|
+
// ...except on desktop
|
473
|
+
@include govuk-media-query($from: desktop) {
|
474
|
+
padding-top: govuk-spacing(1);
|
475
|
+
}
|
476
|
+
|
477
|
+
// Change the dividing line colour between mobile nav items
|
478
|
+
border-bottom-color: govuk-colour("white");
|
479
|
+
|
480
|
+
// Reduce default weight of links so that we can use bold for active ones
|
481
|
+
a {
|
482
|
+
@include govuk-typography-weight-regular;
|
483
|
+
}
|
484
|
+
}
|
296
485
|
}
|
297
486
|
|
298
487
|
.govuk-header__navigation-item--active {
|
299
488
|
a {
|
489
|
+
@include _govuk-rebrand {
|
490
|
+
// Change active links to use bold text instead of changing colour
|
491
|
+
@include govuk-typography-weight-bold;
|
492
|
+
}
|
493
|
+
|
300
494
|
&:link,
|
301
495
|
&:hover,
|
302
496
|
&:visited {
|
303
497
|
color: $govuk-header-link-active;
|
498
|
+
|
499
|
+
@include _govuk-rebrand {
|
500
|
+
color: inherit;
|
501
|
+
}
|
304
502
|
}
|
305
503
|
|
306
504
|
// When printing, use the normal blue as this contrasts better with the
|
@@ -313,6 +511,10 @@
|
|
313
511
|
// contrast is still acceptable
|
314
512
|
&:focus {
|
315
513
|
color: $govuk-focus-text-colour;
|
514
|
+
|
515
|
+
@include _govuk-rebrand {
|
516
|
+
color: $govuk-focus-text-colour;
|
517
|
+
}
|
316
518
|
}
|
317
519
|
}
|
318
520
|
}
|
@@ -11,8 +11,10 @@
|
|
11
11
|
height: govuk-px-to-rem(40px);
|
12
12
|
margin-top: 0;
|
13
13
|
padding: govuk-spacing(1);
|
14
|
-
//
|
15
|
-
//
|
14
|
+
// Setting any background-color makes text invisible when changing colours
|
15
|
+
// to dark backgrounds in Firefox (https://bugzil.la/1335476). As
|
16
|
+
// background-color and color need to always be set together, color should
|
17
|
+
// not be set either
|
16
18
|
border: $govuk-border-width-form-element solid $govuk-input-border-colour;
|
17
19
|
border-radius: 0;
|
18
20
|
|
@@ -24,7 +26,8 @@
|
|
24
26
|
outline: $govuk-focus-width solid $govuk-focus-colour;
|
25
27
|
// Ensure outline appears outside of the element
|
26
28
|
outline-offset: 0;
|
27
|
-
// Double the border by adding its width again. Use `box-shadow` for this
|
29
|
+
// Double the border by adding its width again. Use `box-shadow` for this
|
30
|
+
// instead of changing `border-width` - this is for consistency with
|
28
31
|
// components such as textarea where we avoid changing `border-width` as
|
29
32
|
// it will change the element size. Also, `outline` cannot be utilised
|
30
33
|
// here as it is already used for the yellow focus state.
|
@@ -63,7 +66,7 @@
|
|
63
66
|
}
|
64
67
|
|
65
68
|
// em measurements are based on the point size of the typeface
|
66
|
-
// Extra space is added on the right
|
69
|
+
// Extra space is added on the right to allow for the Safari prefill icon
|
67
70
|
|
68
71
|
.govuk-input--width-30 {
|
69
72
|
max-width: 29.5em;
|
@@ -15,7 +15,8 @@
|
|
15
15
|
.govuk-notification-banner__header {
|
16
16
|
padding: 2px govuk-spacing(3) govuk-spacing(1);
|
17
17
|
|
18
|
-
// Ensures the notification header appears separate to the notification body
|
18
|
+
// Ensures the notification header appears separate to the notification body
|
19
|
+
// text in high contrast mode
|
19
20
|
border-bottom: 1px solid transparent;
|
20
21
|
|
21
22
|
@include govuk-media-query($from: tablet) {
|
@@ -68,7 +69,7 @@
|
|
68
69
|
@include govuk-font-size($size: 24);
|
69
70
|
@include govuk-typography-weight-bold;
|
70
71
|
|
71
|
-
margin: 0 0 govuk-spacing(3)
|
72
|
+
margin: 0 0 govuk-spacing(3);
|
72
73
|
|
73
74
|
padding: 0;
|
74
75
|
}
|
@@ -54,8 +54,8 @@
|
|
54
54
|
.govuk-pagination__next {
|
55
55
|
@include govuk-typography-weight-bold;
|
56
56
|
|
57
|
-
// Use flex to
|
58
|
-
//
|
57
|
+
// Use flex to avoid extra space being introduced when whitespace exists
|
58
|
+
// between the arrow svg and the link text
|
59
59
|
.govuk-pagination__link {
|
60
60
|
display: flex;
|
61
61
|
align-items: center;
|
@@ -96,7 +96,7 @@
|
|
96
96
|
@include govuk-typography-weight-bold;
|
97
97
|
color: $govuk-secondary-text-colour;
|
98
98
|
|
99
|
-
// Remove hover state for ellipsis items as they don't
|
99
|
+
// Remove hover state for ellipsis items as they don't contain links
|
100
100
|
&:hover {
|
101
101
|
background-color: transparent;
|
102
102
|
}
|
@@ -118,8 +118,8 @@
|
|
118
118
|
}
|
119
119
|
}
|
120
120
|
|
121
|
-
// Add link hover decoration to prev/next text if no label present on
|
122
|
-
//
|
121
|
+
// Add link hover decoration to prev/next text if no label present on
|
122
|
+
// prev/next only mode, so that we have a hover state in all cases
|
123
123
|
&:hover,
|
124
124
|
&:active {
|
125
125
|
.govuk-pagination__link-title--decorated {
|
@@ -151,11 +151,10 @@
|
|
151
151
|
@include govuk-typography-weight-regular;
|
152
152
|
@include govuk-link-decoration;
|
153
153
|
display: inline-block;
|
154
|
-
padding-left: govuk-spacing(6);
|
155
154
|
}
|
156
155
|
|
157
156
|
.govuk-pagination__icon {
|
158
|
-
// Set size using rems to make the icon scale with text
|
157
|
+
// Set size using rems to make the icon scale with text
|
159
158
|
width: govuk-px-to-rem(15px);
|
160
159
|
height: govuk-px-to-rem(13px);
|
161
160
|
color: $govuk-secondary-text-colour;
|
@@ -175,23 +174,18 @@
|
|
175
174
|
.govuk-pagination--block {
|
176
175
|
display: block;
|
177
176
|
|
178
|
-
.govuk-pagination__item {
|
179
|
-
padding: govuk-spacing(3);
|
180
|
-
float: none;
|
181
|
-
}
|
182
|
-
|
183
177
|
.govuk-pagination__next,
|
184
178
|
.govuk-pagination__prev {
|
185
179
|
padding-left: 0;
|
186
180
|
float: none;
|
181
|
+
|
182
|
+
.govuk-pagination__link {
|
183
|
+
display: inline-block;
|
184
|
+
}
|
187
185
|
}
|
188
186
|
|
189
187
|
.govuk-pagination__next {
|
190
188
|
padding-right: govuk-spacing(3);
|
191
|
-
|
192
|
-
.govuk-pagination__icon {
|
193
|
-
margin-left: 0;
|
194
|
-
}
|
195
189
|
}
|
196
190
|
|
197
191
|
// Only apply a border between prev and next if both are present
|
@@ -199,41 +193,34 @@
|
|
199
193
|
border-top: 1px solid $govuk-border-colour;
|
200
194
|
}
|
201
195
|
|
202
|
-
//
|
203
|
-
//
|
204
|
-
|
205
|
-
|
206
|
-
display: inline;
|
207
|
-
}
|
208
|
-
|
209
|
-
// Set the after pseudo element to a block which makes the title visually display
|
210
|
-
// as block level whilst programmatically being inline
|
211
|
-
// We do this to get around an NVDA quirk where adjacent block level
|
212
|
-
// elements are always read out separately
|
196
|
+
// Set the after pseudo element to a block which makes the title visually
|
197
|
+
// display as block level whilst programmatically being inline. We do this
|
198
|
+
// to get around an NVDA quirk where adjacent block level elements are
|
199
|
+
// always read out separately
|
213
200
|
.govuk-pagination__link-title::after {
|
214
201
|
content: "";
|
215
202
|
display: block;
|
216
203
|
}
|
217
204
|
|
218
205
|
.govuk-pagination__link {
|
206
|
+
padding-left: govuk-spacing(6);
|
219
207
|
text-align: left;
|
220
208
|
|
221
|
-
&:focus {
|
222
|
-
// apply focus styling to the label within the link as if it were being focused
|
223
|
-
// to get around a display issue with a focusable inline element containing a mixture
|
224
|
-
// of inline and inline-block level elements
|
225
|
-
.govuk-pagination__link-label {
|
226
|
-
@include govuk-focused-text;
|
227
|
-
}
|
228
|
-
}
|
229
|
-
|
230
209
|
&:not(:focus) {
|
231
210
|
text-decoration: none;
|
232
211
|
}
|
233
212
|
}
|
234
213
|
|
235
214
|
.govuk-pagination__icon {
|
236
|
-
|
215
|
+
// This magic number is brought to you by the following equation:
|
216
|
+
// ((lineHeight − arrowHeight) ÷ 2) ÷ fontSize
|
217
|
+
// ((25 − 13) ÷ 2) ÷ 19 = 0.326em
|
218
|
+
//
|
219
|
+
// This could have been done programmatically but we don't have functions
|
220
|
+
// for grabbing the line-height of specific typography sizes just yet.
|
221
|
+
margin-top: 0.326em;
|
222
|
+
margin-left: govuk-spacing(6) * -1;
|
223
|
+
float: left;
|
237
224
|
}
|
238
225
|
}
|
239
226
|
}
|
@@ -14,17 +14,21 @@
|
|
14
14
|
@include govuk-media-query($until: tablet) {
|
15
15
|
padding: govuk-spacing(if($govuk-new-typography-scale, 4, 3)) - $govuk-border-width;
|
16
16
|
|
17
|
-
// This is an if-all-else-fails attempt to stop long words from
|
18
|
-
// on very narrow viewports by forcing them to
|
19
|
-
// overflowing is more likely to happen when
|
20
|
-
// iOS Safari text resize
|
17
|
+
// This is an if-all-else-fails attempt to stop long words from
|
18
|
+
// overflowing the container on very narrow viewports by forcing them to
|
19
|
+
// break and wrap instead. This overflowing is more likely to happen when
|
20
|
+
// user increases text size on a mobile eg. using iOS Safari text resize
|
21
|
+
// controls.
|
21
22
|
//
|
22
|
-
// The overflowing is a particular problem with the panel component since
|
23
|
-
// text: when the text overflows the container, it is
|
24
|
-
// background. When the text in our other
|
25
|
-
//
|
23
|
+
// The overflowing is a particular problem with the panel component since
|
24
|
+
// it uses white text: when the text overflows the container, it is
|
25
|
+
// invisible on the white (page) background. When the text in our other
|
26
|
+
// components overflow, the user might have to scroll horizontally to view
|
27
|
+
// it but the the text remains legible.
|
26
28
|
overflow-wrap: break-word;
|
27
|
-
|
29
|
+
|
30
|
+
// Support IE (autoprefixer doesn't add this as it's not a prefix)
|
31
|
+
word-wrap: break-word;
|
28
32
|
}
|
29
33
|
}
|
30
34
|
|