defra_ruby_template 3.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +20 -0
- data/README.md +71 -0
- data/Rakefile +50 -0
- data/app/views/layouts/defra_ruby_template.html.erb +83 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/defra_ruby_template.gemspec +24 -0
- data/lib/defra_ruby_template.rb +23 -0
- data/lib/defra_ruby_template/version.rb +3 -0
- data/node_modules/govuk-frontend/README.md +91 -0
- data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +14 -0
- data/node_modules/govuk-frontend/govuk/_base.scss +3 -0
- data/node_modules/govuk-frontend/govuk/all-ie8.scss +6 -0
- data/node_modules/govuk-frontend/govuk/all.js +2616 -0
- data/node_modules/govuk-frontend/govuk/all.scss +9 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/bold-affa96571d-v2.woff +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/bold-b542beb274-v2.woff2 +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/light-94a07e06a1-v2.woff2 +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/light-f591b13f7d-v2.woff +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/favicon.ico +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-152x152.png +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-167x167.png +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-180x180.png +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-apple-touch-icon.png +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-crest-2x.png +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-crest.png +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-logotype-crown.png +0 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-mask-icon.svg +7 -0
- data/node_modules/govuk-frontend/govuk/assets/images/govuk-opengraph-image.png +0 -0
- data/node_modules/govuk-frontend/govuk/common.js +39 -0
- data/node_modules/govuk-frontend/govuk/components/_all.scss +33 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/_accordion.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +197 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +1011 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/fixtures.json +250 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/macro-options.json +76 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/accordion/template.njk +27 -0
- data/node_modules/govuk-frontend/govuk/components/back-link/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +99 -0
- data/node_modules/govuk-frontend/govuk/components/back-link/fixtures.json +62 -0
- data/node_modules/govuk-frontend/govuk/components/back-link/macro-options.json +32 -0
- data/node_modules/govuk-frontend/govuk/components/back-link/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/back-link/template.njk +2 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +138 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/fixtures.json +193 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/macro-options.json +52 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/breadcrumbs/template.njk +24 -0
- data/node_modules/govuk-frontend/govuk/components/button/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/button/_button.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/button/_index.scss +288 -0
- data/node_modules/govuk-frontend/govuk/components/button/button.js +724 -0
- data/node_modules/govuk-frontend/govuk/components/button/fixtures.json +318 -0
- data/node_modules/govuk-frontend/govuk/components/button/macro-options.json +74 -0
- data/node_modules/govuk-frontend/govuk/components/button/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/button/template.njk +60 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/_character-count.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +25 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +1194 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/fixtures.json +240 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +111 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/template.njk +37 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +320 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +1192 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/fixtures.json +1189 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json +161 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/template.njk +119 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/_index.scss +51 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +443 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +132 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/template.njk +73 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/_date-input.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/_index.scss +26 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/fixtures.json +549 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +117 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/date-input/template.njk +97 -0
- data/node_modules/govuk-frontend/govuk/components/details/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/details/_details.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/details/_index.scss +87 -0
- data/node_modules/govuk-frontend/govuk/components/details/details.js +828 -0
- data/node_modules/govuk-frontend/govuk/components/details/fixtures.json +103 -0
- data/node_modules/govuk-frontend/govuk/components/details/implementation.md +43 -0
- data/node_modules/govuk-frontend/govuk/components/details/macro-options.json +50 -0
- data/node_modules/govuk-frontend/govuk/components/details/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/details/template.njk +10 -0
- data/node_modules/govuk-frontend/govuk/components/error-message/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/error-message/_error-message.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/error-message/_index.scss +11 -0
- data/node_modules/govuk-frontend/govuk/components/error-message/fixtures.json +77 -0
- data/node_modules/govuk-frontend/govuk/components/error-message/macro-options.json +38 -0
- data/node_modules/govuk-frontend/govuk/components/error-message/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/error-message/template.njk +6 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/_error-summary.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/_index.scss +43 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js +853 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/fixtures.json +242 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/macro-options.json +70 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/error-summary/template.njk +25 -0
- data/node_modules/govuk-frontend/govuk/components/fieldset/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/fieldset/_index.scss +64 -0
- data/node_modules/govuk-frontend/govuk/components/fieldset/fixtures.json +103 -0
- data/node_modules/govuk-frontend/govuk/components/fieldset/macro-options.json +70 -0
- data/node_modules/govuk-frontend/govuk/components/fieldset/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/fieldset/template.njk +22 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/_file-upload.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +49 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/fixtures.json +198 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/macro-options.json +73 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/template.njk +44 -0
- data/node_modules/govuk-frontend/govuk/components/footer/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/footer/_footer.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +241 -0
- data/node_modules/govuk-frontend/govuk/components/footer/fixtures.json +501 -0
- data/node_modules/govuk-frontend/govuk/components/footer/macro-options.json +118 -0
- data/node_modules/govuk-frontend/govuk/components/footer/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/footer/template.njk +87 -0
- data/node_modules/govuk-frontend/govuk/components/header/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/header/_header.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/header/_index.scss +331 -0
- data/node_modules/govuk-frontend/govuk/components/header/fixtures.json +378 -0
- data/node_modules/govuk-frontend/govuk/components/header/header.js +1066 -0
- data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +106 -0
- data/node_modules/govuk-frontend/govuk/components/header/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/header/template.njk +79 -0
- data/node_modules/govuk-frontend/govuk/components/hint/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/hint/_hint.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +44 -0
- data/node_modules/govuk-frontend/govuk/components/hint/fixtures.json +59 -0
- data/node_modules/govuk-frontend/govuk/components/hint/macro-options.json +32 -0
- data/node_modules/govuk-frontend/govuk/components/hint/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/hint/template.njk +4 -0
- data/node_modules/govuk-frontend/govuk/components/input/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/input/_index.scss +191 -0
- data/node_modules/govuk-frontend/govuk/components/input/_input.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/input/fixtures.json +628 -0
- data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +167 -0
- data/node_modules/govuk-frontend/govuk/components/input/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/input/template.njk +65 -0
- data/node_modules/govuk-frontend/govuk/components/inset-text/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/inset-text/_index.scss +24 -0
- data/node_modules/govuk-frontend/govuk/components/inset-text/_inset-text.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/inset-text/fixtures.json +58 -0
- data/node_modules/govuk-frontend/govuk/components/inset-text/macro-options.json +32 -0
- data/node_modules/govuk-frontend/govuk/components/inset-text/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/inset-text/template.njk +4 -0
- data/node_modules/govuk-frontend/govuk/components/label/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/label/_index.scss +41 -0
- data/node_modules/govuk-frontend/govuk/components/label/_label.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/label/fixtures.json +84 -0
- data/node_modules/govuk-frontend/govuk/components/label/macro-options.json +38 -0
- data/node_modules/govuk-frontend/govuk/components/label/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/label/template.njk +15 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/_index.scss +89 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/fixtures.json +212 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/macro-options.json +68 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +61 -0
- data/node_modules/govuk-frontend/govuk/components/notification-banner/template.njk +47 -0
- data/node_modules/govuk-frontend/govuk/components/panel/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/panel/_index.scss +44 -0
- data/node_modules/govuk-frontend/govuk/components/panel/_panel.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/panel/fixtures.json +91 -0
- data/node_modules/govuk-frontend/govuk/components/panel/macro-options.json +44 -0
- data/node_modules/govuk-frontend/govuk/components/panel/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/panel/template.njk +13 -0
- data/node_modules/govuk-frontend/govuk/components/phase-banner/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/phase-banner/_index.scss +27 -0
- data/node_modules/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/phase-banner/fixtures.json +76 -0
- data/node_modules/govuk-frontend/govuk/components/phase-banner/macro-options.json +33 -0
- data/node_modules/govuk-frontend/govuk/components/phase-banner/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/phase-banner/template.njk +15 -0
- data/node_modules/govuk-frontend/govuk/components/radios/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +342 -0
- data/node_modules/govuk-frontend/govuk/components/radios/_radios.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/radios/fixtures.json +1183 -0
- data/node_modules/govuk-frontend/govuk/components/radios/macro-options.json +143 -0
- data/node_modules/govuk-frontend/govuk/components/radios/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/radios/radios.js +1148 -0
- data/node_modules/govuk-frontend/govuk/components/radios/template.njk +116 -0
- data/node_modules/govuk-frontend/govuk/components/select/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/select/_index.scss +49 -0
- data/node_modules/govuk-frontend/govuk/components/select/_select.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/select/fixtures.json +327 -0
- data/node_modules/govuk-frontend/govuk/components/select/macro-options.json +105 -0
- data/node_modules/govuk-frontend/govuk/components/select/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/select/template.njk +51 -0
- data/node_modules/govuk-frontend/govuk/components/skip-link/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +36 -0
- data/node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/skip-link/fixtures.json +84 -0
- data/node_modules/govuk-frontend/govuk/components/skip-link/macro-options.json +32 -0
- data/node_modules/govuk-frontend/govuk/components/skip-link/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/skip-link/template.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/summary-list/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +145 -0
- data/node_modules/govuk-frontend/govuk/components/summary-list/_summary-list.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/summary-list/fixtures.json +1084 -0
- data/node_modules/govuk-frontend/govuk/components/summary-list/macro-options.json +113 -0
- data/node_modules/govuk-frontend/govuk/components/summary-list/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/summary-list/template.njk +47 -0
- data/node_modules/govuk-frontend/govuk/components/table/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/table/_index.scss +71 -0
- data/node_modules/govuk-frontend/govuk/components/table/_table.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/table/fixtures.json +538 -0
- data/node_modules/govuk-frontend/govuk/components/table/macro-options.json +132 -0
- data/node_modules/govuk-frontend/govuk/components/table/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/table/template.njk +45 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +130 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/fixtures.json +286 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/macro-options.json +84 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js +1347 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/template.njk +32 -0
- data/node_modules/govuk-frontend/govuk/components/tag/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +86 -0
- data/node_modules/govuk-frontend/govuk/components/tag/_tag.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/tag/fixtures.json +131 -0
- data/node_modules/govuk-frontend/govuk/components/tag/macro-options.json +26 -0
- data/node_modules/govuk-frontend/govuk/components/tag/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/tag/template.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +47 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/fixtures.json +250 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/macro-options.json +91 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/template.njk +45 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/README.md +15 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +66 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss +2 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/fixtures.json +73 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/macro-options.json +32 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/macro.njk +3 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/template.njk +9 -0
- data/node_modules/govuk-frontend/govuk/core/_all.scss +6 -0
- data/node_modules/govuk-frontend/govuk/core/_global-styles.scss +25 -0
- data/node_modules/govuk-frontend/govuk/core/_links.scss +41 -0
- data/node_modules/govuk-frontend/govuk/core/_lists.scss +72 -0
- data/node_modules/govuk-frontend/govuk/core/_section-break.scss +62 -0
- data/node_modules/govuk-frontend/govuk/core/_template.scss +36 -0
- data/node_modules/govuk-frontend/govuk/core/_typography.scss +192 -0
- data/node_modules/govuk-frontend/govuk/helpers/_all.scss +12 -0
- data/node_modules/govuk-frontend/govuk/helpers/_clearfix.scss +15 -0
- data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +95 -0
- data/node_modules/govuk-frontend/govuk/helpers/_device-pixels.scss +37 -0
- data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +28 -0
- data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss +41 -0
- data/node_modules/govuk-frontend/govuk/helpers/_grid.scss +61 -0
- data/node_modules/govuk-frontend/govuk/helpers/_links.scss +427 -0
- data/node_modules/govuk-frontend/govuk/helpers/_media-queries.scss +91 -0
- data/node_modules/govuk-frontend/govuk/helpers/_shape-arrow.scss +80 -0
- data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss +153 -0
- data/node_modules/govuk-frontend/govuk/helpers/_typography.scss +207 -0
- data/node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss +84 -0
- data/node_modules/govuk-frontend/govuk/objects/_all.scss +5 -0
- data/node_modules/govuk-frontend/govuk/objects/_button-group.scss +101 -0
- data/node_modules/govuk-frontend/govuk/objects/_form-group.scss +23 -0
- data/node_modules/govuk-frontend/govuk/objects/_grid.scss +24 -0
- data/node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss +68 -0
- data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +88 -0
- data/node_modules/govuk-frontend/govuk/overrides/_all.scss +4 -0
- data/node_modules/govuk-frontend/govuk/overrides/_display.scss +30 -0
- data/node_modules/govuk-frontend/govuk/overrides/_spacing.scss +64 -0
- data/node_modules/govuk-frontend/govuk/overrides/_typography.scss +27 -0
- data/node_modules/govuk-frontend/govuk/overrides/_width.scss +52 -0
- data/node_modules/govuk-frontend/govuk/settings/_all.scss +23 -0
- data/node_modules/govuk-frontend/govuk/settings/_assets.scss +82 -0
- data/node_modules/govuk-frontend/govuk/settings/_colours-applied.scss +155 -0
- data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss +139 -0
- data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss +108 -0
- data/node_modules/govuk-frontend/govuk/settings/_compatibility.scss +74 -0
- data/node_modules/govuk-frontend/govuk/settings/_global-styles.scss +13 -0
- data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +18 -0
- data/node_modules/govuk-frontend/govuk/settings/_links.scss +62 -0
- data/node_modules/govuk-frontend/govuk/settings/_measurements.scss +105 -0
- data/node_modules/govuk-frontend/govuk/settings/_media-queries.scss +23 -0
- data/node_modules/govuk-frontend/govuk/settings/_spacing.scss +80 -0
- data/node_modules/govuk-frontend/govuk/settings/_typography-font-families.scss +32 -0
- data/node_modules/govuk-frontend/govuk/settings/_typography-font.scss +89 -0
- data/node_modules/govuk-frontend/govuk/settings/_typography-responsive.scss +183 -0
- data/node_modules/govuk-frontend/govuk/template.njk +60 -0
- data/node_modules/govuk-frontend/govuk/tools/_all.scss +8 -0
- data/node_modules/govuk-frontend/govuk/tools/_compatibility.scss +36 -0
- data/node_modules/govuk-frontend/govuk/tools/_exports.scss +33 -0
- data/node_modules/govuk-frontend/govuk/tools/_font-url.scss +25 -0
- data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +51 -0
- data/node_modules/govuk-frontend/govuk/tools/_iff.scss +17 -0
- data/node_modules/govuk-frontend/govuk/tools/_image-url.scss +25 -0
- data/node_modules/govuk-frontend/govuk/tools/_px-to-em.scss +20 -0
- data/node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss +20 -0
- data/node_modules/govuk-frontend/govuk/utilities/_all.scss +2 -0
- data/node_modules/govuk-frontend/govuk/utilities/_clearfix.scss +5 -0
- data/node_modules/govuk-frontend/govuk/utilities/_visually-hidden.scss +9 -0
- data/node_modules/govuk-frontend/govuk/vendor/_sass-mq.scss +347 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/DOMTokenList.js +272 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Document.js +34 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element.js +147 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/classList.js +589 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/closest.js +54 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js +31 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/nextElementSibling.js +254 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/previousElementSibling.js +254 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Event.js +504 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Function/prototype/bind.js +252 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Object/defineProperty.js +94 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Window.js +28 -0
- data/node_modules/govuk-frontend/package.json +56 -0
- data/package-lock.json +13 -0
- data/package.json +29 -0
- data/vendor/assets/fonts/bold-affa96571d-v2.woff +0 -0
- data/vendor/assets/fonts/bold-b542beb274-v2.woff2 +0 -0
- data/vendor/assets/fonts/light-94a07e06a1-v2.woff2 +0 -0
- data/vendor/assets/fonts/light-f591b13f7d-v2.woff +0 -0
- data/vendor/assets/images/favicon.ico +0 -0
- data/vendor/assets/images/govuk-apple-touch-icon-152x152.png +0 -0
- data/vendor/assets/images/govuk-apple-touch-icon-167x167.png +0 -0
- data/vendor/assets/images/govuk-apple-touch-icon-180x180.png +0 -0
- data/vendor/assets/images/govuk-apple-touch-icon.png +0 -0
- data/vendor/assets/images/govuk-crest-2x.png +0 -0
- data/vendor/assets/images/govuk-crest.png +0 -0
- data/vendor/assets/images/govuk-logotype-crown.png +0 -0
- data/vendor/assets/images/govuk-mask-icon.svg +7 -0
- data/vendor/assets/images/govuk-opengraph-image.png +0 -0
- data/vendor/assets/javascripts/defra_ruby_template.js +2616 -0
- data/vendor/assets/stylesheets/_base.scss +3 -0
- data/vendor/assets/stylesheets/all-ie8.scss +6 -0
- data/vendor/assets/stylesheets/all.scss +9 -0
- data/vendor/assets/stylesheets/components/_all.scss +33 -0
- data/vendor/assets/stylesheets/components/accordion/_accordion.scss +2 -0
- data/vendor/assets/stylesheets/components/accordion/_index.scss +197 -0
- data/vendor/assets/stylesheets/components/back-link/_back-link.scss +2 -0
- data/vendor/assets/stylesheets/components/back-link/_index.scss +99 -0
- data/vendor/assets/stylesheets/components/breadcrumbs/_breadcrumbs.scss +2 -0
- data/vendor/assets/stylesheets/components/breadcrumbs/_index.scss +138 -0
- data/vendor/assets/stylesheets/components/button/_button.scss +2 -0
- data/vendor/assets/stylesheets/components/button/_index.scss +288 -0
- data/vendor/assets/stylesheets/components/character-count/_character-count.scss +2 -0
- data/vendor/assets/stylesheets/components/character-count/_index.scss +25 -0
- data/vendor/assets/stylesheets/components/checkboxes/_checkboxes.scss +2 -0
- data/vendor/assets/stylesheets/components/checkboxes/_index.scss +320 -0
- data/vendor/assets/stylesheets/components/cookie-banner/_cookie-banner.scss +2 -0
- data/vendor/assets/stylesheets/components/cookie-banner/_index.scss +51 -0
- data/vendor/assets/stylesheets/components/date-input/_date-input.scss +2 -0
- data/vendor/assets/stylesheets/components/date-input/_index.scss +26 -0
- data/vendor/assets/stylesheets/components/details/_details.scss +2 -0
- data/vendor/assets/stylesheets/components/details/_index.scss +87 -0
- data/vendor/assets/stylesheets/components/error-message/_error-message.scss +2 -0
- data/vendor/assets/stylesheets/components/error-message/_index.scss +11 -0
- data/vendor/assets/stylesheets/components/error-summary/_error-summary.scss +2 -0
- data/vendor/assets/stylesheets/components/error-summary/_index.scss +43 -0
- data/vendor/assets/stylesheets/components/fieldset/_fieldset.scss +2 -0
- data/vendor/assets/stylesheets/components/fieldset/_index.scss +64 -0
- data/vendor/assets/stylesheets/components/file-upload/_file-upload.scss +2 -0
- data/vendor/assets/stylesheets/components/file-upload/_index.scss +49 -0
- data/vendor/assets/stylesheets/components/footer/_footer.scss +2 -0
- data/vendor/assets/stylesheets/components/footer/_index.scss +241 -0
- data/vendor/assets/stylesheets/components/header/_header.scss +2 -0
- data/vendor/assets/stylesheets/components/header/_index.scss +331 -0
- data/vendor/assets/stylesheets/components/hint/_hint.scss +2 -0
- data/vendor/assets/stylesheets/components/hint/_index.scss +44 -0
- data/vendor/assets/stylesheets/components/input/_index.scss +191 -0
- data/vendor/assets/stylesheets/components/input/_input.scss +2 -0
- data/vendor/assets/stylesheets/components/inset-text/_index.scss +24 -0
- data/vendor/assets/stylesheets/components/inset-text/_inset-text.scss +2 -0
- data/vendor/assets/stylesheets/components/label/_index.scss +41 -0
- data/vendor/assets/stylesheets/components/label/_label.scss +2 -0
- data/vendor/assets/stylesheets/components/notification-banner/_index.scss +89 -0
- data/vendor/assets/stylesheets/components/notification-banner/_notification-banner.scss +2 -0
- data/vendor/assets/stylesheets/components/panel/_index.scss +44 -0
- data/vendor/assets/stylesheets/components/panel/_panel.scss +2 -0
- data/vendor/assets/stylesheets/components/phase-banner/_index.scss +27 -0
- data/vendor/assets/stylesheets/components/phase-banner/_phase-banner.scss +2 -0
- data/vendor/assets/stylesheets/components/radios/_index.scss +342 -0
- data/vendor/assets/stylesheets/components/radios/_radios.scss +2 -0
- data/vendor/assets/stylesheets/components/select/_index.scss +49 -0
- data/vendor/assets/stylesheets/components/select/_select.scss +2 -0
- data/vendor/assets/stylesheets/components/skip-link/_index.scss +36 -0
- data/vendor/assets/stylesheets/components/skip-link/_skip-link.scss +2 -0
- data/vendor/assets/stylesheets/components/summary-list/_index.scss +145 -0
- data/vendor/assets/stylesheets/components/summary-list/_summary-list.scss +2 -0
- data/vendor/assets/stylesheets/components/table/_index.scss +71 -0
- data/vendor/assets/stylesheets/components/table/_table.scss +2 -0
- data/vendor/assets/stylesheets/components/tabs/_index.scss +130 -0
- data/vendor/assets/stylesheets/components/tabs/_tabs.scss +2 -0
- data/vendor/assets/stylesheets/components/tag/_index.scss +86 -0
- data/vendor/assets/stylesheets/components/tag/_tag.scss +2 -0
- data/vendor/assets/stylesheets/components/textarea/_index.scss +47 -0
- data/vendor/assets/stylesheets/components/textarea/_textarea.scss +2 -0
- data/vendor/assets/stylesheets/components/warning-text/_index.scss +66 -0
- data/vendor/assets/stylesheets/components/warning-text/_warning-text.scss +2 -0
- data/vendor/assets/stylesheets/core/_all.scss +6 -0
- data/vendor/assets/stylesheets/core/_global-styles.scss +25 -0
- data/vendor/assets/stylesheets/core/_links.scss +41 -0
- data/vendor/assets/stylesheets/core/_lists.scss +72 -0
- data/vendor/assets/stylesheets/core/_section-break.scss +62 -0
- data/vendor/assets/stylesheets/core/_template.scss +36 -0
- data/vendor/assets/stylesheets/core/_typography.scss +192 -0
- data/vendor/assets/stylesheets/defra_ruby_template.scss +16 -0
- data/vendor/assets/stylesheets/helpers/_all.scss +12 -0
- data/vendor/assets/stylesheets/helpers/_clearfix.scss +15 -0
- data/vendor/assets/stylesheets/helpers/_colour.scss +95 -0
- data/vendor/assets/stylesheets/helpers/_device-pixels.scss +37 -0
- data/vendor/assets/stylesheets/helpers/_focused.scss +28 -0
- data/vendor/assets/stylesheets/helpers/_font-faces.scss +41 -0
- data/vendor/assets/stylesheets/helpers/_grid.scss +61 -0
- data/vendor/assets/stylesheets/helpers/_links.scss +427 -0
- data/vendor/assets/stylesheets/helpers/_media-queries.scss +91 -0
- data/vendor/assets/stylesheets/helpers/_shape-arrow.scss +80 -0
- data/vendor/assets/stylesheets/helpers/_spacing.scss +153 -0
- data/vendor/assets/stylesheets/helpers/_typography.scss +207 -0
- data/vendor/assets/stylesheets/helpers/_visually-hidden.scss +84 -0
- data/vendor/assets/stylesheets/objects/_all.scss +5 -0
- data/vendor/assets/stylesheets/objects/_button-group.scss +101 -0
- data/vendor/assets/stylesheets/objects/_form-group.scss +23 -0
- data/vendor/assets/stylesheets/objects/_grid.scss +24 -0
- data/vendor/assets/stylesheets/objects/_main-wrapper.scss +68 -0
- data/vendor/assets/stylesheets/objects/_width-container.scss +88 -0
- data/vendor/assets/stylesheets/overrides/_all.scss +4 -0
- data/vendor/assets/stylesheets/overrides/_display.scss +30 -0
- data/vendor/assets/stylesheets/overrides/_spacing.scss +64 -0
- data/vendor/assets/stylesheets/overrides/_typography.scss +27 -0
- data/vendor/assets/stylesheets/overrides/_width.scss +52 -0
- data/vendor/assets/stylesheets/settings/_all.scss +23 -0
- data/vendor/assets/stylesheets/settings/_assets.scss +82 -0
- data/vendor/assets/stylesheets/settings/_colours-applied.scss +155 -0
- data/vendor/assets/stylesheets/settings/_colours-organisations.scss +139 -0
- data/vendor/assets/stylesheets/settings/_colours-palette.scss +108 -0
- data/vendor/assets/stylesheets/settings/_compatibility.scss +74 -0
- data/vendor/assets/stylesheets/settings/_global-styles.scss +13 -0
- data/vendor/assets/stylesheets/settings/_ie8.scss +18 -0
- data/vendor/assets/stylesheets/settings/_links.scss +62 -0
- data/vendor/assets/stylesheets/settings/_measurements.scss +105 -0
- data/vendor/assets/stylesheets/settings/_media-queries.scss +23 -0
- data/vendor/assets/stylesheets/settings/_spacing.scss +80 -0
- data/vendor/assets/stylesheets/settings/_typography-font-families.scss +32 -0
- data/vendor/assets/stylesheets/settings/_typography-font.scss +89 -0
- data/vendor/assets/stylesheets/settings/_typography-responsive.scss +183 -0
- data/vendor/assets/stylesheets/tools/_all.scss +8 -0
- data/vendor/assets/stylesheets/tools/_compatibility.scss +36 -0
- data/vendor/assets/stylesheets/tools/_exports.scss +33 -0
- data/vendor/assets/stylesheets/tools/_font-url.scss +25 -0
- data/vendor/assets/stylesheets/tools/_ie8.scss +51 -0
- data/vendor/assets/stylesheets/tools/_iff.scss +17 -0
- data/vendor/assets/stylesheets/tools/_image-url.scss +25 -0
- data/vendor/assets/stylesheets/tools/_px-to-em.scss +20 -0
- data/vendor/assets/stylesheets/tools/_px-to-rem.scss +20 -0
- data/vendor/assets/stylesheets/utilities/_all.scss +2 -0
- data/vendor/assets/stylesheets/utilities/_clearfix.scss +5 -0
- data/vendor/assets/stylesheets/utilities/_visually-hidden.scss +9 -0
- data/vendor/assets/stylesheets/vendor/_sass-mq.scss +347 -0
- metadata +520 -0
@@ -0,0 +1,331 @@
|
|
1
|
+
@include govuk-exports("govuk/component/header") {
|
2
|
+
|
3
|
+
$govuk-header-background: govuk-colour("black");
|
4
|
+
$govuk-header-border-color: $govuk-brand-colour;
|
5
|
+
$govuk-header-border-width: govuk-spacing(2);
|
6
|
+
$govuk-header-text: govuk-colour("white");
|
7
|
+
$govuk-header-link-active: #1d8feb;
|
8
|
+
$govuk-header-nav-item-border-color: #2e3133;
|
9
|
+
$govuk-header-link-underline-thickness: 3px;
|
10
|
+
|
11
|
+
.govuk-header {
|
12
|
+
@include govuk-font($size: 16);
|
13
|
+
|
14
|
+
border-bottom: govuk-spacing(2) solid govuk-colour("white");
|
15
|
+
color: $govuk-header-text;
|
16
|
+
background: $govuk-header-background;
|
17
|
+
}
|
18
|
+
|
19
|
+
.govuk-header__container--full-width {
|
20
|
+
padding: 0 govuk-spacing(3);
|
21
|
+
border-color: $govuk-header-border-color;
|
22
|
+
|
23
|
+
.govuk-header__menu-button {
|
24
|
+
right: govuk-spacing(3);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.govuk-header__container {
|
29
|
+
@include govuk-clearfix;
|
30
|
+
position: relative;
|
31
|
+
margin-bottom: -$govuk-header-border-width;
|
32
|
+
padding-top: govuk-spacing(2);
|
33
|
+
border-bottom: $govuk-header-border-width solid $govuk-header-border-color;
|
34
|
+
}
|
35
|
+
|
36
|
+
.govuk-header__logotype {
|
37
|
+
display: inline-block;
|
38
|
+
|
39
|
+
// Add a gap after the logo in case it's followed by a product name. This
|
40
|
+
// gets removed later if the logotype is a :last-child.
|
41
|
+
margin-right: govuk-spacing(1);
|
42
|
+
|
43
|
+
// Prevent readability backplate from obscuring underline in Windows High
|
44
|
+
// Contrast Mode
|
45
|
+
@media (forced-colors: active) {
|
46
|
+
forced-color-adjust: none;
|
47
|
+
color: linktext;
|
48
|
+
}
|
49
|
+
|
50
|
+
// Remove the gap after the logo if there's no product name to keep hover
|
51
|
+
// and focus states neat
|
52
|
+
&:last-child {
|
53
|
+
margin-right: 0;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
.govuk-header__logotype-crown {
|
58
|
+
position: relative;
|
59
|
+
top: -1px;
|
60
|
+
margin-right: 1px;
|
61
|
+
fill: currentColor;
|
62
|
+
vertical-align: top;
|
63
|
+
}
|
64
|
+
|
65
|
+
.govuk-header__logotype-crown-fallback-image {
|
66
|
+
width: 36px;
|
67
|
+
height: 32px;
|
68
|
+
border: 0;
|
69
|
+
vertical-align: bottom;
|
70
|
+
}
|
71
|
+
|
72
|
+
.govuk-header__product-name {
|
73
|
+
@include govuk-font($size: 24, $line-height: 1);
|
74
|
+
display: inline-table;
|
75
|
+
}
|
76
|
+
|
77
|
+
.govuk-header__link {
|
78
|
+
// Avoid using the `govuk-link-common` mixin because the links in the header
|
79
|
+
// get a special treatment, because:
|
80
|
+
//
|
81
|
+
// - underlines are only visible on hover
|
82
|
+
// - all links get a 3px underline regardless of text size, as there are
|
83
|
+
// multiple grouped elements close to one another and having slightly
|
84
|
+
// different underline widths looks unbalanced
|
85
|
+
@include govuk-typography-common;
|
86
|
+
@include govuk-link-style-inverse;
|
87
|
+
|
88
|
+
text-decoration: none;
|
89
|
+
|
90
|
+
&:hover {
|
91
|
+
text-decoration: underline;
|
92
|
+
text-decoration-thickness: $govuk-header-link-underline-thickness;
|
93
|
+
|
94
|
+
@if ($govuk-link-underline-offset) {
|
95
|
+
text-underline-offset: $govuk-link-underline-offset;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
&:focus {
|
100
|
+
@include govuk-focused-text;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
.govuk-header__link--homepage {
|
105
|
+
// Font size needs to be set on the link so that the box sizing is correct
|
106
|
+
// in Firefox
|
107
|
+
@include govuk-font($size: false, $weight: bold);
|
108
|
+
|
109
|
+
display: inline-block;
|
110
|
+
margin-right: govuk-spacing(2);
|
111
|
+
font-size: 30px; // We don't have a mixin that produces 30px font size
|
112
|
+
line-height: 1;
|
113
|
+
|
114
|
+
&:link,
|
115
|
+
&:visited {
|
116
|
+
text-decoration: none;
|
117
|
+
}
|
118
|
+
|
119
|
+
&:hover,
|
120
|
+
&:active {
|
121
|
+
// Negate the added border
|
122
|
+
margin-bottom: $govuk-header-link-underline-thickness * -1;
|
123
|
+
// Omitting colour will use default value of currentColor – if we
|
124
|
+
// specified currentColor explicitly IE8 would ignore this rule.
|
125
|
+
border-bottom: $govuk-header-link-underline-thickness solid;
|
126
|
+
}
|
127
|
+
|
128
|
+
// Remove any borders that show when focused and hovered.
|
129
|
+
&:focus {
|
130
|
+
margin-bottom: 0;
|
131
|
+
border-bottom: 0;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
.govuk-header__link--service-name {
|
136
|
+
display: inline-block;
|
137
|
+
margin-bottom: govuk-spacing(2);
|
138
|
+
@include govuk-font($size: 24, $weight: bold);
|
139
|
+
}
|
140
|
+
|
141
|
+
.govuk-header__logo,
|
142
|
+
.govuk-header__content {
|
143
|
+
box-sizing: border-box;
|
144
|
+
}
|
145
|
+
|
146
|
+
.govuk-header__logo {
|
147
|
+
@include govuk-responsive-margin(2, "bottom");
|
148
|
+
padding-right: govuk-spacing(8);
|
149
|
+
|
150
|
+
@include govuk-media-query ($from: desktop) {
|
151
|
+
width: 33.33%;
|
152
|
+
padding-right: $govuk-gutter-half;
|
153
|
+
float: left;
|
154
|
+
vertical-align: top;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
.govuk-header__content {
|
159
|
+
@include govuk-media-query ($from: desktop) {
|
160
|
+
width: 66.66%;
|
161
|
+
padding-left: $govuk-gutter-half;
|
162
|
+
float: left;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
.govuk-header__menu-button {
|
167
|
+
@include govuk-font($size: 16);
|
168
|
+
display: none;
|
169
|
+
position: absolute;
|
170
|
+
top: govuk-spacing(4);
|
171
|
+
right: 0;
|
172
|
+
margin: 0;
|
173
|
+
padding: 0;
|
174
|
+
border: 0;
|
175
|
+
color: govuk-colour("white");
|
176
|
+
background: none;
|
177
|
+
cursor: pointer;
|
178
|
+
|
179
|
+
&:hover {
|
180
|
+
-webkit-text-decoration: solid underline $govuk-header-link-underline-thickness;
|
181
|
+
text-decoration: solid underline $govuk-header-link-underline-thickness;
|
182
|
+
|
183
|
+
@if ($govuk-link-underline-offset) {
|
184
|
+
text-underline-offset: $govuk-link-underline-offset;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
&:focus {
|
189
|
+
@include govuk-focused-text;
|
190
|
+
}
|
191
|
+
|
192
|
+
&:after {
|
193
|
+
@include govuk-shape-arrow($direction: down, $base: 10px, $display: inline-block);
|
194
|
+
content: "";
|
195
|
+
margin-left: govuk-spacing(1);
|
196
|
+
}
|
197
|
+
|
198
|
+
@include govuk-media-query ($from: tablet) {
|
199
|
+
top: govuk-spacing(3);
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
.govuk-header__menu-button--open {
|
204
|
+
&:after {
|
205
|
+
@include govuk-shape-arrow($direction: up, $base: 10px, $display: inline-block);
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
.govuk-header__navigation {
|
210
|
+
@include govuk-responsive-margin(2, "bottom");
|
211
|
+
display: block;
|
212
|
+
margin: 0;
|
213
|
+
padding: 0;
|
214
|
+
list-style: none;
|
215
|
+
}
|
216
|
+
|
217
|
+
.js-enabled {
|
218
|
+
.govuk-header__menu-button {
|
219
|
+
display: block;
|
220
|
+
@include govuk-media-query ($from: desktop) {
|
221
|
+
display: none;
|
222
|
+
}
|
223
|
+
}
|
224
|
+
|
225
|
+
.govuk-header__navigation {
|
226
|
+
display: none;
|
227
|
+
@include govuk-media-query ($from: desktop) {
|
228
|
+
display: block;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
|
232
|
+
.govuk-header__navigation--open {
|
233
|
+
display: block;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|
237
|
+
.govuk-header__navigation--end {
|
238
|
+
@include govuk-media-query ($from: desktop) {
|
239
|
+
margin: 0;
|
240
|
+
padding: govuk-spacing(1) 0;
|
241
|
+
text-align: right;
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
.govuk-header__navigation--no-service-name {
|
246
|
+
padding-top: govuk-spacing(7);
|
247
|
+
}
|
248
|
+
|
249
|
+
.govuk-header__navigation-item {
|
250
|
+
padding: govuk-spacing(2) 0;
|
251
|
+
border-bottom: 1px solid $govuk-header-nav-item-border-color;
|
252
|
+
|
253
|
+
@include govuk-media-query ($from: desktop) {
|
254
|
+
display: inline-block;
|
255
|
+
margin-right: govuk-spacing(3);
|
256
|
+
padding: govuk-spacing(1) 0;
|
257
|
+
border: 0;
|
258
|
+
}
|
259
|
+
|
260
|
+
a {
|
261
|
+
@include govuk-font($size: 16, $weight: bold);
|
262
|
+
white-space: nowrap;
|
263
|
+
}
|
264
|
+
}
|
265
|
+
|
266
|
+
.govuk-header__navigation-item--active {
|
267
|
+
a {
|
268
|
+
&:link,
|
269
|
+
&:hover,
|
270
|
+
&:visited {
|
271
|
+
color: $govuk-header-link-active;
|
272
|
+
}
|
273
|
+
|
274
|
+
// When focussed, the text colour needs to be darker to ensure that colour
|
275
|
+
// contrast is still acceptable
|
276
|
+
&:focus {
|
277
|
+
color: $govuk-focus-text-colour;
|
278
|
+
}
|
279
|
+
}
|
280
|
+
}
|
281
|
+
|
282
|
+
.govuk-header__navigation-item:last-child {
|
283
|
+
margin-right: 0;
|
284
|
+
}
|
285
|
+
|
286
|
+
@include govuk-media-query($media-type: print) {
|
287
|
+
.govuk-header {
|
288
|
+
border-bottom-width: 0;
|
289
|
+
color: govuk-colour("black");
|
290
|
+
background: transparent;
|
291
|
+
}
|
292
|
+
|
293
|
+
// Hide the inverted crown when printing in browsers that don't support SVG.
|
294
|
+
.govuk-header__logotype-crown-fallback-image {
|
295
|
+
display: none;
|
296
|
+
}
|
297
|
+
|
298
|
+
.govuk-header__link {
|
299
|
+
&:link,
|
300
|
+
&:visited {
|
301
|
+
color: govuk-colour("black");
|
302
|
+
}
|
303
|
+
|
304
|
+
// Do not append link href to GOV.UK link when printing (e.g. '(/)')
|
305
|
+
&:after {
|
306
|
+
display: none;
|
307
|
+
}
|
308
|
+
}
|
309
|
+
}
|
310
|
+
|
311
|
+
@if $govuk-use-legacy-font {
|
312
|
+
// Begin adjustments for font baseline offset
|
313
|
+
// These should be removed when the font is updated with the correct baseline
|
314
|
+
.govuk-header__logotype-crown,
|
315
|
+
.govuk-header__logotype-crown-fallback-image {
|
316
|
+
position: relative;
|
317
|
+
top: -4px;
|
318
|
+
vertical-align: middle;
|
319
|
+
}
|
320
|
+
|
321
|
+
.govuk-header {
|
322
|
+
$offset: 3px;
|
323
|
+
padding-top: $offset;
|
324
|
+
}
|
325
|
+
|
326
|
+
.govuk-header__link--homepage {
|
327
|
+
line-height: 30px;
|
328
|
+
}
|
329
|
+
// End adjustments
|
330
|
+
}
|
331
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
@include govuk-exports("govuk/component/hint") {
|
2
|
+
.govuk-hint {
|
3
|
+
@include govuk-font($size: 19);
|
4
|
+
|
5
|
+
display: block;
|
6
|
+
|
7
|
+
margin-bottom: govuk-spacing(3);
|
8
|
+
|
9
|
+
color: $govuk-secondary-text-colour;
|
10
|
+
}
|
11
|
+
|
12
|
+
// Reduces margin-bottom of hint when used after the default label (no class)
|
13
|
+
// or govuk-label--s for better vertical alignment.
|
14
|
+
|
15
|
+
// This adjustment will not work when the label is inside the <h1>, however it
|
16
|
+
// is unlikely that the default or govuk-label--s class would be used in this
|
17
|
+
// case.
|
18
|
+
|
19
|
+
// This adjustment will not work in browsers that do not support :not().
|
20
|
+
// Users with these browsers will see the default size margin (5px larger).
|
21
|
+
|
22
|
+
.govuk-label:not(.govuk-label--m):not(.govuk-label--l):not(.govuk-label--xl) + .govuk-hint {
|
23
|
+
margin-bottom: govuk-spacing(2);
|
24
|
+
}
|
25
|
+
|
26
|
+
// Reduces margin-bottom of hint when used after the default legend (no class)
|
27
|
+
// or govuk-fieldset__legend--s for better vertical alignment.
|
28
|
+
|
29
|
+
// This adjustment will not work when the legend is outside the <h1>, however
|
30
|
+
// it is unlikely that the default or govuk-fieldset__legend--s class would be
|
31
|
+
// used in this case.
|
32
|
+
|
33
|
+
// This adjustment will not work in browsers that do not support :not().
|
34
|
+
// Users with these browsers will see the default size margin (5px larger).
|
35
|
+
|
36
|
+
.govuk-fieldset__legend:not(.govuk-fieldset__legend--m):not(.govuk-fieldset__legend--l):not(.govuk-fieldset__legend--xl) + .govuk-hint {
|
37
|
+
margin-bottom: govuk-spacing(2);
|
38
|
+
}
|
39
|
+
|
40
|
+
// Reduces visual spacing of legend when there is a hint
|
41
|
+
.govuk-fieldset__legend + .govuk-hint {
|
42
|
+
margin-top: -(govuk-spacing(1));
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,191 @@
|
|
1
|
+
@import "../error-message/index";
|
2
|
+
@import "../hint/index";
|
3
|
+
@import "../label/index";
|
4
|
+
|
5
|
+
@include govuk-exports("govuk/component/input") {
|
6
|
+
.govuk-input {
|
7
|
+
@include govuk-font($size: 19);
|
8
|
+
|
9
|
+
box-sizing: border-box;
|
10
|
+
width: 100%;
|
11
|
+
height: 40px;
|
12
|
+
@if $govuk-typography-use-rem {
|
13
|
+
height: govuk-px-to-rem(40px);
|
14
|
+
}
|
15
|
+
margin-top: 0;
|
16
|
+
|
17
|
+
padding: govuk-spacing(1);
|
18
|
+
// setting any background-color makes text invisible when changing colours to dark backgrounds in Firefox (https://bugzilla.mozilla.org/show_bug.cgi?id=1335476)
|
19
|
+
// as background-color and color need to always be set together, color should not be set either
|
20
|
+
border: $govuk-border-width-form-element solid $govuk-input-border-colour;
|
21
|
+
border-radius: 0;
|
22
|
+
|
23
|
+
// Disable inner shadow and remove rounded corners
|
24
|
+
-webkit-appearance: none;
|
25
|
+
-moz-appearance: none;
|
26
|
+
appearance: none;
|
27
|
+
|
28
|
+
&:focus {
|
29
|
+
outline: $govuk-focus-width solid $govuk-focus-colour;
|
30
|
+
// Ensure outline appears outside of the element
|
31
|
+
outline-offset: 0;
|
32
|
+
// Double the border by adding its width again. Use `box-shadow` for this // instead of changing `border-width` - this is for consistency with
|
33
|
+
// components such as textarea where we avoid changing `border-width` as
|
34
|
+
// it will change the element size. Also, `outline` cannot be utilised
|
35
|
+
// here as it is already used for the yellow focus state.
|
36
|
+
box-shadow: inset 0 0 0 $govuk-border-width-form-element;
|
37
|
+
|
38
|
+
@include govuk-if-ie8 {
|
39
|
+
// IE8 doesn't support `box-shadow` so double the border with
|
40
|
+
// `border-width`.
|
41
|
+
border-width: $govuk-border-width-form-element * 2;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.govuk-input::-webkit-outer-spin-button,
|
47
|
+
.govuk-input::-webkit-inner-spin-button {
|
48
|
+
margin: 0;
|
49
|
+
-webkit-appearance: none;
|
50
|
+
}
|
51
|
+
|
52
|
+
.govuk-input[type="number"] {
|
53
|
+
-moz-appearance: textfield;
|
54
|
+
}
|
55
|
+
|
56
|
+
.govuk-input--error {
|
57
|
+
border: $govuk-border-width-form-element-error solid $govuk-error-colour;
|
58
|
+
|
59
|
+
&:focus {
|
60
|
+
border-color: $govuk-input-border-colour;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
// The ex measurements are based on the number of W's that can fit inside the input
|
65
|
+
// Extra space is left on the right hand side to allow for the Safari prefill icon
|
66
|
+
// Linear regression estimation based on visual tests: y = 1.76 + 1.81x
|
67
|
+
|
68
|
+
.govuk-input--width-30 {
|
69
|
+
max-width: 56ex + 3ex;
|
70
|
+
}
|
71
|
+
|
72
|
+
.govuk-input--width-20 {
|
73
|
+
max-width: 38ex + 3ex;
|
74
|
+
}
|
75
|
+
|
76
|
+
.govuk-input--width-10 {
|
77
|
+
max-width: 20ex + 3ex;
|
78
|
+
}
|
79
|
+
|
80
|
+
.govuk-input--width-5 {
|
81
|
+
max-width: 10.8ex;
|
82
|
+
}
|
83
|
+
|
84
|
+
.govuk-input--width-4 {
|
85
|
+
max-width: 9ex;
|
86
|
+
}
|
87
|
+
|
88
|
+
.govuk-input--width-3 {
|
89
|
+
max-width: 7.2ex;
|
90
|
+
}
|
91
|
+
|
92
|
+
.govuk-input--width-2 {
|
93
|
+
max-width: 5.4ex;
|
94
|
+
}
|
95
|
+
|
96
|
+
.govuk-input__wrapper {
|
97
|
+
display: -webkit-box;
|
98
|
+
display: -webkit-flex;
|
99
|
+
display: -ms-flexbox;
|
100
|
+
display: flex;
|
101
|
+
|
102
|
+
.govuk-input {
|
103
|
+
-webkit-box-flex: 0;
|
104
|
+
-webkit-flex: 0 1 auto;
|
105
|
+
-ms-flex: 0 1 auto;
|
106
|
+
flex: 0 1 auto;
|
107
|
+
}
|
108
|
+
|
109
|
+
.govuk-input:focus {
|
110
|
+
// Hack to stop focus style being overlapped by the suffix
|
111
|
+
z-index: 1;
|
112
|
+
}
|
113
|
+
|
114
|
+
// Split prefix/suffix onto separate lines on narrow screens
|
115
|
+
@include govuk-media-query($until: mobile) {
|
116
|
+
display: block;
|
117
|
+
|
118
|
+
.govuk-input {
|
119
|
+
// Set max-width to override potential width override class on the input
|
120
|
+
max-width: 100%;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
.govuk-input__prefix,
|
126
|
+
.govuk-input__suffix {
|
127
|
+
@include govuk-font($size: 19);
|
128
|
+
|
129
|
+
box-sizing: border-box;
|
130
|
+
display: inline-block;
|
131
|
+
min-width: 40px;
|
132
|
+
@if $govuk-typography-use-rem {
|
133
|
+
min-width: govuk-px-to-rem(40px);
|
134
|
+
}
|
135
|
+
height: 40px;
|
136
|
+
@if $govuk-typography-use-rem {
|
137
|
+
height: govuk-px-to-rem(40px);
|
138
|
+
}
|
139
|
+
|
140
|
+
padding: govuk-spacing(1);
|
141
|
+
border: $govuk-border-width-form-element solid $govuk-input-border-colour;
|
142
|
+
background-color: govuk-colour("light-grey", $legacy: "grey-3");
|
143
|
+
|
144
|
+
text-align: center;
|
145
|
+
@include govuk-media-query($until: tablet) {
|
146
|
+
line-height: 1.6;
|
147
|
+
}
|
148
|
+
white-space: nowrap;
|
149
|
+
|
150
|
+
// Emphasise non-editable status of prefixes and suffixes
|
151
|
+
cursor: default;
|
152
|
+
|
153
|
+
-webkit-box-flex: 0;
|
154
|
+
|
155
|
+
-webkit-flex: 0 0 auto;
|
156
|
+
|
157
|
+
-ms-flex: 0 0 auto;
|
158
|
+
|
159
|
+
flex: 0 0 auto;
|
160
|
+
|
161
|
+
// Split prefix/suffix onto separate lines on narrow screens
|
162
|
+
@include govuk-media-query($until: mobile) {
|
163
|
+
display: block;
|
164
|
+
height: 100%;
|
165
|
+
white-space: normal;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
.govuk-input__prefix {
|
170
|
+
@include govuk-media-query($until: mobile) {
|
171
|
+
border-bottom: 0;
|
172
|
+
}
|
173
|
+
@include govuk-media-query($from: mobile) {
|
174
|
+
@include govuk-not-ie8 {
|
175
|
+
border-right: 0;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
// Split prefix/suffix onto separate lines on narrow screens
|
181
|
+
.govuk-input__suffix {
|
182
|
+
@include govuk-media-query($until: mobile) {
|
183
|
+
border-top: 0;
|
184
|
+
}
|
185
|
+
@include govuk-media-query($from: mobile) {
|
186
|
+
@include govuk-not-ie8 {
|
187
|
+
border-left: 0;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|