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,28 @@
|
|
1
|
+
////
|
2
|
+
/// @group helpers/accessibility
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Focused text
|
6
|
+
///
|
7
|
+
/// Provides an outline to clearly indicate when the target element is focused.
|
8
|
+
/// Used for interactive text-based elements.
|
9
|
+
///
|
10
|
+
/// @access public
|
11
|
+
|
12
|
+
@mixin govuk-focused-text {
|
13
|
+
// When colours are overridden, for example when users have a dark mode,
|
14
|
+
// backgrounds and box-shadows disappear, so we need to ensure there's a
|
15
|
+
// transparent outline which will be set to a visible colour.
|
16
|
+
|
17
|
+
// Since Internet Explorer 8 does not support box-shadow, we want to force the
|
18
|
+
// user-agent outlines
|
19
|
+
@include govuk-not-ie8 {
|
20
|
+
outline: $govuk-focus-width solid transparent;
|
21
|
+
}
|
22
|
+
color: $govuk-focus-text-colour;
|
23
|
+
background-color: $govuk-focus-colour;
|
24
|
+
box-shadow: 0 -2px $govuk-focus-colour, 0 4px $govuk-focus-text-colour;
|
25
|
+
// When link is focussed, hide the default underline since the
|
26
|
+
// box shadow adds the "underline"
|
27
|
+
text-decoration: none;
|
28
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
////
|
2
|
+
/// @group helpers
|
3
|
+
////
|
4
|
+
|
5
|
+
@import "../tools/exports";
|
6
|
+
|
7
|
+
/// Font Face - GDS Transport
|
8
|
+
///
|
9
|
+
/// Outputs the font-face declaration for GDS Transport at the root of the CSS document
|
10
|
+
/// the first time it is called.
|
11
|
+
///
|
12
|
+
/// @access private
|
13
|
+
|
14
|
+
@mixin _govuk-font-face-gds-transport {
|
15
|
+
@include govuk-not-ie8 { // In IE8, which cannot render WOFF format, we fall back to system fonts
|
16
|
+
@include govuk-exports("govuk/helpers/font-faces") {
|
17
|
+
@at-root {
|
18
|
+
/*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */ /* stylelint-disable-line scss/comment-no-loud */
|
19
|
+
@font-face {
|
20
|
+
font-family: "GDS Transport";
|
21
|
+
font-style: normal;
|
22
|
+
font-weight: normal;
|
23
|
+
src:
|
24
|
+
govuk-font-url("light-94a07e06a1-v2.woff2") format("woff2"),
|
25
|
+
govuk-font-url("light-f591b13f7d-v2.woff") format("woff");
|
26
|
+
font-display: fallback;
|
27
|
+
}
|
28
|
+
|
29
|
+
@font-face {
|
30
|
+
font-family: "GDS Transport";
|
31
|
+
font-style: normal;
|
32
|
+
font-weight: bold;
|
33
|
+
src:
|
34
|
+
govuk-font-url("bold-b542beb274-v2.woff2") format("woff2"),
|
35
|
+
govuk-font-url("bold-affa96571d-v2.woff") format("woff");
|
36
|
+
font-display: fallback;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
////
|
2
|
+
/// @group helpers/layout
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Grid width percentage
|
6
|
+
///
|
7
|
+
/// @param {String} $key - Name of grid width (e.g. two-thirds)
|
8
|
+
/// @return {Number} Percentage width
|
9
|
+
/// @throw if `$key` is not a valid grid width
|
10
|
+
/// @access public
|
11
|
+
|
12
|
+
@function govuk-grid-width($key) {
|
13
|
+
@if map-has-key($govuk-grid-widths, $key) {
|
14
|
+
@return map-get($govuk-grid-widths, $key);
|
15
|
+
}
|
16
|
+
|
17
|
+
@error "Unknown grid width `#{$key}`";
|
18
|
+
}
|
19
|
+
|
20
|
+
/// Generate grid column styles
|
21
|
+
///
|
22
|
+
/// Creates a grid column with standard gutter between the columns.
|
23
|
+
///
|
24
|
+
/// Grid widths are defined in the `$govuk-grid-widths` map.
|
25
|
+
///
|
26
|
+
/// By default the column width changes from 100% to specified width at the
|
27
|
+
/// 'tablet' breakpoint, but other breakpoints can be specified using the `$at`
|
28
|
+
/// parameter.
|
29
|
+
///
|
30
|
+
/// @param {String} $width [full] name of a grid width from $govuk-grid-widths
|
31
|
+
/// @param {String} $float [left] left | right
|
32
|
+
/// @param {String} $at [tablet] - mobile | tablet | desktop | any custom breakpoint
|
33
|
+
///
|
34
|
+
/// @example scss - Default
|
35
|
+
/// .govuk-grid-column-two-thirds {
|
36
|
+
/// @include govuk-grid-column(two-thirds)
|
37
|
+
/// }
|
38
|
+
///
|
39
|
+
/// @example scss - Customising the breakpoint where width percentage is applied
|
40
|
+
/// .govuk-grid-column-one-half-at-desktop {
|
41
|
+
/// @include govuk-grid-column(one-half, $at: desktop);
|
42
|
+
/// }
|
43
|
+
///
|
44
|
+
/// @example scss - Customising the float direction
|
45
|
+
/// .govuk-grid-column-one-half-right {
|
46
|
+
/// @include govuk-grid-column(two-thirds, $float: right);
|
47
|
+
/// }
|
48
|
+
///
|
49
|
+
/// @access public
|
50
|
+
|
51
|
+
@mixin govuk-grid-column($width: full, $float: left, $at: tablet) {
|
52
|
+
box-sizing: border-box;
|
53
|
+
@if $at != desktop {
|
54
|
+
width: 100%;
|
55
|
+
}
|
56
|
+
padding: 0 $govuk-gutter-half;
|
57
|
+
@include govuk-media-query($from: $at) {
|
58
|
+
width: govuk-grid-width($width);
|
59
|
+
float: $float;
|
60
|
+
}
|
61
|
+
}
|
@@ -0,0 +1,427 @@
|
|
1
|
+
////
|
2
|
+
/// @group helpers/links
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Common link styles
|
6
|
+
///
|
7
|
+
/// Provides the typography and focus state, regardless of link style.
|
8
|
+
///
|
9
|
+
/// @access public
|
10
|
+
|
11
|
+
@mixin govuk-link-common {
|
12
|
+
@include govuk-typography-common;
|
13
|
+
@include govuk-link-decoration;
|
14
|
+
|
15
|
+
&:hover {
|
16
|
+
@include govuk-link-hover-decoration;
|
17
|
+
}
|
18
|
+
|
19
|
+
&:focus {
|
20
|
+
@include govuk-focused-text;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
/// Link decoration
|
25
|
+
///
|
26
|
+
/// Provides the text decoration for links, including thickness and underline
|
27
|
+
/// offset. Use this mixin only if you cannot use the `govuk-link-common` mixin.
|
28
|
+
///
|
29
|
+
/// @access public
|
30
|
+
@mixin govuk-link-decoration {
|
31
|
+
text-decoration: underline;
|
32
|
+
|
33
|
+
@if ($govuk-new-link-styles) {
|
34
|
+
@if ($govuk-link-underline-thickness) {
|
35
|
+
text-decoration-thickness: $govuk-link-underline-thickness;
|
36
|
+
}
|
37
|
+
|
38
|
+
@if ($govuk-link-underline-offset) {
|
39
|
+
text-underline-offset: $govuk-link-underline-offset;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
/// Link hover decoration
|
45
|
+
///
|
46
|
+
/// Provides the text decoration for links in their hover state, for you to use
|
47
|
+
/// within a `:hover` pseudo-selector. Use this mixin only if you cannot use the
|
48
|
+
/// `govuk-link-common` mixin.
|
49
|
+
///
|
50
|
+
/// @access public
|
51
|
+
|
52
|
+
@mixin govuk-link-hover-decoration {
|
53
|
+
@if ($govuk-new-link-styles and $govuk-link-hover-underline-thickness) {
|
54
|
+
text-decoration-thickness: $govuk-link-hover-underline-thickness;
|
55
|
+
// Disable ink skipping on underlines on hover. Browsers haven't
|
56
|
+
// standardised on this part of the spec yet, so set both properties
|
57
|
+
-webkit-text-decoration-skip-ink: none;
|
58
|
+
text-decoration-skip-ink: none; // Chromium, Firefox
|
59
|
+
-webkit-text-decoration-skip: none;
|
60
|
+
text-decoration-skip: none; // Safari
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
/// Default link styles
|
65
|
+
///
|
66
|
+
/// Makes links use the default unvisited, visited, hover and active colours.
|
67
|
+
///
|
68
|
+
/// If you use this mixin in a component, you must also include the
|
69
|
+
/// `govuk-link-common` mixin to get the correct focus and hover states.
|
70
|
+
///
|
71
|
+
/// @example scss
|
72
|
+
/// .govuk-component__link {
|
73
|
+
/// @include govuk-link-common;
|
74
|
+
/// @include govuk-link-style-default;
|
75
|
+
/// }
|
76
|
+
///
|
77
|
+
/// @access public
|
78
|
+
|
79
|
+
@mixin govuk-link-style-default {
|
80
|
+
&:link {
|
81
|
+
color: $govuk-link-colour;
|
82
|
+
}
|
83
|
+
|
84
|
+
&:visited {
|
85
|
+
color: $govuk-link-visited-colour;
|
86
|
+
}
|
87
|
+
|
88
|
+
&:hover {
|
89
|
+
color: $govuk-link-hover-colour;
|
90
|
+
}
|
91
|
+
|
92
|
+
&:active {
|
93
|
+
color: $govuk-link-active-colour;
|
94
|
+
}
|
95
|
+
|
96
|
+
// When focussed, the text colour needs to be darker to ensure that colour
|
97
|
+
// contrast is still acceptable
|
98
|
+
&:focus {
|
99
|
+
color: $govuk-focus-text-colour;
|
100
|
+
}
|
101
|
+
|
102
|
+
// alphagov/govuk_template includes a specific a:link:focus selector
|
103
|
+
// designed to make unvisited link s a slightly darker blue when focussed, so
|
104
|
+
// we need to override the text colour for that combination of selectors so
|
105
|
+
// so that unvisited links styled as buttons do not end up with dark blue
|
106
|
+
// text when focussed.
|
107
|
+
@include govuk-compatibility(govuk_template) {
|
108
|
+
&:link:focus {
|
109
|
+
color: $govuk-focus-text-colour;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
/// Error link styles
|
115
|
+
///
|
116
|
+
/// Makes links use the error colour. The link will darken if it's active or a
|
117
|
+
/// user hovers their cursor over it.
|
118
|
+
///
|
119
|
+
/// If you use this mixin in a component, you must also include the
|
120
|
+
/// `govuk-link-common` mixin to get the correct focus and hover states.
|
121
|
+
///
|
122
|
+
/// @example scss
|
123
|
+
/// .govuk-component__link {
|
124
|
+
/// @include govuk-link-common;
|
125
|
+
/// @include govuk-link-style-error;
|
126
|
+
/// }
|
127
|
+
///
|
128
|
+
/// @access public
|
129
|
+
|
130
|
+
@mixin govuk-link-style-error {
|
131
|
+
&:link,
|
132
|
+
&:visited {
|
133
|
+
color: $govuk-error-colour;
|
134
|
+
}
|
135
|
+
|
136
|
+
&:hover {
|
137
|
+
color: scale-color($govuk-error-colour, $lightness: -30%);
|
138
|
+
}
|
139
|
+
|
140
|
+
&:active {
|
141
|
+
color: $govuk-error-colour;
|
142
|
+
}
|
143
|
+
|
144
|
+
// When focussed, the text colour needs to be darker to ensure that colour
|
145
|
+
// contrast is still acceptable
|
146
|
+
&:focus {
|
147
|
+
color: $govuk-focus-text-colour;
|
148
|
+
}
|
149
|
+
|
150
|
+
// alphagov/govuk_template includes a specific a:link:focus selector
|
151
|
+
// designed to make unvisited link s a slightly darker blue when focussed, so
|
152
|
+
// we need to override the text colour for that combination of selectors so
|
153
|
+
// so that unvisited links styled as buttons do not end up with dark blue
|
154
|
+
// text when focussed.
|
155
|
+
@include govuk-compatibility(govuk_template) {
|
156
|
+
&:link:focus {
|
157
|
+
color: $govuk-focus-text-colour;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
/// Success link styles
|
163
|
+
///
|
164
|
+
/// Makes links use the success colour. The link will darken if it's active or a
|
165
|
+
/// user hovers their cursor over it.
|
166
|
+
///
|
167
|
+
/// If you use this mixin in a component, you must also include the
|
168
|
+
/// `govuk-link-common` mixin to get the correct focus and hover states.
|
169
|
+
///
|
170
|
+
/// @example scss
|
171
|
+
/// .govuk-component__link {
|
172
|
+
/// @include govuk-link-common;
|
173
|
+
/// @include govuk-link-style-success;
|
174
|
+
/// }
|
175
|
+
///
|
176
|
+
/// @access public
|
177
|
+
|
178
|
+
@mixin govuk-link-style-success {
|
179
|
+
&:link,
|
180
|
+
&:visited {
|
181
|
+
color: $govuk-success-colour;
|
182
|
+
}
|
183
|
+
|
184
|
+
&:hover {
|
185
|
+
color: scale-color($govuk-success-colour, $lightness: -30%);
|
186
|
+
}
|
187
|
+
|
188
|
+
&:active {
|
189
|
+
color: $govuk-success-colour;
|
190
|
+
}
|
191
|
+
|
192
|
+
// When focussed, the text colour needs to be darker to ensure that colour
|
193
|
+
// contrast is still acceptable
|
194
|
+
&:focus {
|
195
|
+
color: $govuk-focus-text-colour;
|
196
|
+
}
|
197
|
+
|
198
|
+
// alphagov/govuk_template includes a specific a:link:focus selector
|
199
|
+
// designed to make unvisited link s a slightly darker blue when focussed, so
|
200
|
+
// we need to override the text colour for that combination of selectors so
|
201
|
+
// so that unvisited links styled as buttons do not end up with dark blue
|
202
|
+
// text when focussed.
|
203
|
+
@include govuk-compatibility(govuk_template) {
|
204
|
+
&:link:focus {
|
205
|
+
color: $govuk-focus-text-colour;
|
206
|
+
}
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
/// Muted link styles
|
211
|
+
///
|
212
|
+
/// Makes links use the secondary text colour. The link will darken if it's
|
213
|
+
/// active or a user hovers their cursor over it.
|
214
|
+
///
|
215
|
+
/// If you use this mixin in a component, you must also include the
|
216
|
+
/// `govuk-link-common` mixin to get the correct focus and hover states.
|
217
|
+
///
|
218
|
+
/// @example scss
|
219
|
+
/// .govuk-component__link {
|
220
|
+
/// @include govuk-link-common;
|
221
|
+
/// @include govuk-link-style-muted;
|
222
|
+
/// }
|
223
|
+
///
|
224
|
+
/// @access public
|
225
|
+
|
226
|
+
@mixin govuk-link-style-muted {
|
227
|
+
&:link,
|
228
|
+
&:visited {
|
229
|
+
color: $govuk-secondary-text-colour;
|
230
|
+
}
|
231
|
+
|
232
|
+
&:hover,
|
233
|
+
&:active {
|
234
|
+
color: $govuk-text-colour;
|
235
|
+
}
|
236
|
+
|
237
|
+
// When focussed, the text colour needs to be darker to ensure that colour
|
238
|
+
// contrast is still acceptable
|
239
|
+
&:focus {
|
240
|
+
color: $govuk-focus-text-colour;
|
241
|
+
}
|
242
|
+
|
243
|
+
// alphagov/govuk_template includes a specific a:link:focus selector designed
|
244
|
+
// to make unvisited links a slightly darker blue when focussed, so we need to
|
245
|
+
// override the text colour for that combination of selectors.
|
246
|
+
@include govuk-compatibility(govuk_template) {
|
247
|
+
&:link:focus {
|
248
|
+
@include govuk-text-colour;
|
249
|
+
}
|
250
|
+
}
|
251
|
+
}
|
252
|
+
|
253
|
+
/// Text link styles
|
254
|
+
///
|
255
|
+
/// Makes links use the primary text colour, in all states. Use this mixin for
|
256
|
+
/// navigation components, such as breadcrumbs or the back link.
|
257
|
+
///
|
258
|
+
/// If you use this mixin in a component, you must also include the
|
259
|
+
/// `govuk-link-common` mixin to get the correct focus and hover states.
|
260
|
+
///
|
261
|
+
/// @example scss
|
262
|
+
/// .govuk-component__link {
|
263
|
+
/// @include govuk-link-common;
|
264
|
+
/// @include govuk-link-style-text;
|
265
|
+
/// }
|
266
|
+
///
|
267
|
+
/// @access public
|
268
|
+
|
269
|
+
@mixin govuk-link-style-text {
|
270
|
+
&:link,
|
271
|
+
&:visited {
|
272
|
+
@include govuk-text-colour;
|
273
|
+
}
|
274
|
+
|
275
|
+
// Force a colour change on hover to work around a bug in Safari
|
276
|
+
// https://bugs.webkit.org/show_bug.cgi?id=224483
|
277
|
+
&:hover {
|
278
|
+
color: rgba($govuk-text-colour, .99);
|
279
|
+
}
|
280
|
+
|
281
|
+
&:active,
|
282
|
+
&:focus {
|
283
|
+
@include govuk-text-colour;
|
284
|
+
}
|
285
|
+
|
286
|
+
// alphagov/govuk_template includes a specific a:link:focus selector designed
|
287
|
+
// to make unvisited links a slightly darker blue when focussed, so we need to
|
288
|
+
// override the text colour for that combination of selectors.
|
289
|
+
@include govuk-compatibility(govuk_template) {
|
290
|
+
&:link:focus {
|
291
|
+
@include govuk-text-colour;
|
292
|
+
}
|
293
|
+
}
|
294
|
+
}
|
295
|
+
|
296
|
+
/// Inverse link styles
|
297
|
+
///
|
298
|
+
/// Makes links white, in all states. Use this mixin if you're displaying links
|
299
|
+
/// against a dark background.
|
300
|
+
///
|
301
|
+
/// If you use this mixin in a component, you must also include the
|
302
|
+
/// `govuk-link-common` mixin to get the correct focus and hover states.
|
303
|
+
///
|
304
|
+
/// @example scss
|
305
|
+
/// .govuk-component__link {
|
306
|
+
/// @include govuk-link-common;
|
307
|
+
/// @include govuk-link-style-inverse;
|
308
|
+
/// }
|
309
|
+
///
|
310
|
+
/// @access public
|
311
|
+
|
312
|
+
@mixin govuk-link-style-inverse {
|
313
|
+
&:link,
|
314
|
+
&:visited {
|
315
|
+
color: govuk-colour("white");
|
316
|
+
}
|
317
|
+
|
318
|
+
// Force a colour change on hover to work around a bug in Safari
|
319
|
+
// https://bugs.webkit.org/show_bug.cgi?id=224483
|
320
|
+
&:hover,
|
321
|
+
&:active {
|
322
|
+
color: rgba(govuk-colour("white"), .99);
|
323
|
+
}
|
324
|
+
|
325
|
+
&:focus {
|
326
|
+
color: $govuk-focus-text-colour;
|
327
|
+
}
|
328
|
+
|
329
|
+
// alphagov/govuk_template includes a specific a:link:focus selector designed
|
330
|
+
// to make unvisited links a slightly darker blue when focussed, so we need to
|
331
|
+
// override the text colour for that combination of selectors.
|
332
|
+
@include govuk-compatibility(govuk_template) {
|
333
|
+
&:link:focus {
|
334
|
+
color: $govuk-focus-text-colour;
|
335
|
+
}
|
336
|
+
}
|
337
|
+
}
|
338
|
+
|
339
|
+
/// Default link styles, without a visited state
|
340
|
+
///
|
341
|
+
/// Makes links use the default unvisited, hover and active colours, with no
|
342
|
+
/// distinct visited state.
|
343
|
+
///
|
344
|
+
/// Use this mixin when it's not helpful to distinguish between visited and
|
345
|
+
/// non-visited links. For example, when you link to pages with
|
346
|
+
/// frequently-changing content, such as the dashboard for an admin interface.
|
347
|
+
///
|
348
|
+
/// If you use this mixin in a component, you must also include the
|
349
|
+
/// `govuk-link-common` mixin to get the correct focus and hover states.
|
350
|
+
///
|
351
|
+
/// @example scss
|
352
|
+
/// .govuk-component__link {
|
353
|
+
/// @include govuk-link-common;
|
354
|
+
/// @include govuk-link-style-no-visited-state;
|
355
|
+
/// }
|
356
|
+
///
|
357
|
+
/// @access public
|
358
|
+
|
359
|
+
@mixin govuk-link-style-no-visited-state {
|
360
|
+
&:link {
|
361
|
+
color: $govuk-link-colour;
|
362
|
+
}
|
363
|
+
|
364
|
+
&:visited {
|
365
|
+
color: $govuk-link-colour;
|
366
|
+
}
|
367
|
+
|
368
|
+
&:hover {
|
369
|
+
color: $govuk-link-hover-colour;
|
370
|
+
}
|
371
|
+
|
372
|
+
&:active {
|
373
|
+
color: $govuk-link-active-colour;
|
374
|
+
}
|
375
|
+
|
376
|
+
// When focussed, the text colour needs to be darker to ensure that colour
|
377
|
+
// contrast is still acceptable
|
378
|
+
&:focus {
|
379
|
+
color: $govuk-focus-text-colour;
|
380
|
+
}
|
381
|
+
}
|
382
|
+
|
383
|
+
/// Remove underline from links
|
384
|
+
///
|
385
|
+
/// Remove underlines from links unless the link is active or a user hovers
|
386
|
+
/// their cursor over it. This has no effect in Internet Explorer 8 (IE8),
|
387
|
+
/// because IE8 does not support `:not`.
|
388
|
+
///
|
389
|
+
/// @example scss
|
390
|
+
/// .govuk-component__link {
|
391
|
+
/// @include govuk-link-common;
|
392
|
+
/// @include govuk-link-style-default;
|
393
|
+
/// @include govuk-link-style-no-underline;
|
394
|
+
/// }
|
395
|
+
///
|
396
|
+
/// @access public
|
397
|
+
|
398
|
+
@mixin govuk-link-style-no-underline {
|
399
|
+
&:not(:hover):not(:active) {
|
400
|
+
text-decoration: none;
|
401
|
+
}
|
402
|
+
}
|
403
|
+
|
404
|
+
/// Include link destination when printing the page
|
405
|
+
///
|
406
|
+
/// If the user prints the page, add the destination URL after the link text, if
|
407
|
+
/// the URL starts with `/`, `http://` or `https://`.
|
408
|
+
///
|
409
|
+
/// @access public
|
410
|
+
|
411
|
+
@mixin govuk-link-print-friendly {
|
412
|
+
@include govuk-media-query($media-type: print) {
|
413
|
+
&[href^="/"],
|
414
|
+
&[href^="http://"],
|
415
|
+
&[href^="https://"] {
|
416
|
+
&:after {
|
417
|
+
content: " (" attr(href) ")";
|
418
|
+
font-size: 90%;
|
419
|
+
|
420
|
+
// Because the URLs may be very long, ensure that they may be broken
|
421
|
+
// at arbitrary points if there are no otherwise acceptable break
|
422
|
+
// points in the line
|
423
|
+
word-wrap: break-word;
|
424
|
+
}
|
425
|
+
}
|
426
|
+
}
|
427
|
+
}
|