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,27 @@
|
|
1
|
+
@if not mixin-exists("govuk-exports") {
|
2
|
+
@warn "Importing items from the overrides layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
|
3
|
+
}
|
4
|
+
|
5
|
+
@import "../base";
|
6
|
+
|
7
|
+
@include govuk-exports("govuk/overrides/typography") {
|
8
|
+
// Font size and line height
|
9
|
+
|
10
|
+
// Generate typography override classes for each responsive font map in the
|
11
|
+
// typography scale eg .govuk-\!-font-size-80
|
12
|
+
@each $size in map-keys($govuk-typography-scale) {
|
13
|
+
.govuk-\!-font-size-#{$size} {
|
14
|
+
@include govuk-typography-responsive($size, $important: true);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
// Weights
|
19
|
+
|
20
|
+
.govuk-\!-font-weight-regular {
|
21
|
+
@include govuk-typography-weight-regular($important: true);
|
22
|
+
}
|
23
|
+
|
24
|
+
.govuk-\!-font-weight-bold {
|
25
|
+
@include govuk-typography-weight-bold($important: true);
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
@if not mixin-exists("govuk-exports") {
|
2
|
+
@warn "Importing items from the overrides layer without first importing `base` is deprecated, and will no longer work as of GOV.UK Frontend v4.0.";
|
3
|
+
}
|
4
|
+
|
5
|
+
@import "../base";
|
6
|
+
|
7
|
+
// stylelint-disable declaration-no-important
|
8
|
+
@include govuk-exports("govuk/overrides/width") {
|
9
|
+
.govuk-\!-width-full {
|
10
|
+
width: 100% !important;
|
11
|
+
}
|
12
|
+
|
13
|
+
.govuk-\!-width-three-quarters {
|
14
|
+
width: 100% !important;
|
15
|
+
|
16
|
+
@include govuk-media-query($from: tablet) {
|
17
|
+
width: 75% !important;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.govuk-\!-width-two-thirds {
|
22
|
+
width: 100% !important;
|
23
|
+
|
24
|
+
@include govuk-media-query($from: tablet) {
|
25
|
+
width: 66.66% !important;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
.govuk-\!-width-one-half {
|
30
|
+
width: 100% !important;
|
31
|
+
|
32
|
+
@include govuk-media-query($from: tablet) {
|
33
|
+
width: 50% !important;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.govuk-\!-width-one-third {
|
38
|
+
width: 100% !important;
|
39
|
+
|
40
|
+
@include govuk-media-query($from: tablet) {
|
41
|
+
width: 33.33% !important;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.govuk-\!-width-one-quarter {
|
46
|
+
width: 100% !important;
|
47
|
+
|
48
|
+
@include govuk-media-query($from: tablet) {
|
49
|
+
width: 25% !important;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// The order we import settings in is important, as some settings files rely on
|
2
|
+
// others
|
3
|
+
|
4
|
+
@import "assets";
|
5
|
+
|
6
|
+
@import "compatibility";
|
7
|
+
@import "global-styles";
|
8
|
+
@import "ie8";
|
9
|
+
|
10
|
+
@import "media-queries";
|
11
|
+
|
12
|
+
@import "colours-palette";
|
13
|
+
@import "colours-organisations";
|
14
|
+
@import "colours-applied";
|
15
|
+
|
16
|
+
@import "spacing";
|
17
|
+
@import "measurements";
|
18
|
+
|
19
|
+
@import "typography-font-families";
|
20
|
+
@import "typography-font";
|
21
|
+
@import "typography-responsive";
|
22
|
+
|
23
|
+
@import "links";
|
@@ -0,0 +1,82 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/assets
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Path to the assets directory, with trailing slash.
|
6
|
+
///
|
7
|
+
/// This is the directory where the images and fonts subdirectories live. You
|
8
|
+
/// will need to make this directory available via your application – see the
|
9
|
+
/// README for details.
|
10
|
+
///
|
11
|
+
/// @type String
|
12
|
+
/// @access public
|
13
|
+
|
14
|
+
$govuk-assets-path: "/assets/" !default;
|
15
|
+
|
16
|
+
/// Path to the images folder, with trailing slash.
|
17
|
+
///
|
18
|
+
/// @type String
|
19
|
+
/// @access public
|
20
|
+
|
21
|
+
$govuk-images-path: "#{$govuk-assets-path}images/" !default;
|
22
|
+
|
23
|
+
/// Path to the fonts folder, with trailing slash.
|
24
|
+
///
|
25
|
+
/// @type String
|
26
|
+
/// @access public
|
27
|
+
|
28
|
+
$govuk-fonts-path: "#{$govuk-assets-path}fonts/" !default;
|
29
|
+
|
30
|
+
/// Custom image URL function
|
31
|
+
///
|
32
|
+
/// If the built-in image URL helper does not meet your needs, you can specify
|
33
|
+
/// the name of a custom handler – either built in or by writing your own
|
34
|
+
/// function.
|
35
|
+
///
|
36
|
+
/// If you are writing your own handler, ensure that it returns a string wrapped
|
37
|
+
/// with `url()`
|
38
|
+
///
|
39
|
+
/// @type String
|
40
|
+
///
|
41
|
+
/// @example scss - Rails asset handling
|
42
|
+
/// $govuk-image-url-function: 'image-url';
|
43
|
+
///
|
44
|
+
/// @example scss - Custom asset handling
|
45
|
+
///
|
46
|
+
/// @function my-url-handler($filename) {
|
47
|
+
/// // Some custom URL handling
|
48
|
+
/// @return url('example.jpg');
|
49
|
+
/// }
|
50
|
+
///
|
51
|
+
/// $govuk-image-url-function: 'my-url-handler';
|
52
|
+
///
|
53
|
+
/// @access public
|
54
|
+
|
55
|
+
$govuk-image-url-function: false !default;
|
56
|
+
|
57
|
+
/// Custom font URL function
|
58
|
+
///
|
59
|
+
/// If the built-in font URL helper does not meet your needs, you can specify
|
60
|
+
/// the name of a custom handler – either built in or by writing your own
|
61
|
+
/// function.
|
62
|
+
///
|
63
|
+
/// If you are writing your own handler, ensure that it returns a string wrapped
|
64
|
+
/// with `url()`
|
65
|
+
///
|
66
|
+
/// @type String
|
67
|
+
///
|
68
|
+
/// @example scss - Rails asset handling
|
69
|
+
/// $govuk-font-url-function: 'font-url';
|
70
|
+
///
|
71
|
+
/// @example scss - Custom asset handling
|
72
|
+
///
|
73
|
+
/// @function my-url-handler($filename) {
|
74
|
+
/// // Some custom URL handling
|
75
|
+
/// @return url('example.woff');
|
76
|
+
/// }
|
77
|
+
///
|
78
|
+
/// $govuk-font-url-function: 'my-url-handler';
|
79
|
+
///
|
80
|
+
/// @access public
|
81
|
+
|
82
|
+
$govuk-font-url-function: false !default;
|
@@ -0,0 +1,155 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/colours
|
3
|
+
////
|
4
|
+
|
5
|
+
@import "../helpers/colour";
|
6
|
+
|
7
|
+
// =========================================================
|
8
|
+
// Generic
|
9
|
+
// =========================================================
|
10
|
+
|
11
|
+
/// Brand colour
|
12
|
+
///
|
13
|
+
/// @type Colour
|
14
|
+
/// @access public
|
15
|
+
|
16
|
+
$govuk-brand-colour: govuk-colour("blue") !default;
|
17
|
+
|
18
|
+
/// Text colour
|
19
|
+
///
|
20
|
+
/// @type Colour
|
21
|
+
/// @access public
|
22
|
+
|
23
|
+
$govuk-text-colour: govuk-colour("black") !default;
|
24
|
+
|
25
|
+
/// Canvas background colour
|
26
|
+
///
|
27
|
+
/// Used by the footer component and template to give the illusion of a long
|
28
|
+
/// footer.
|
29
|
+
///
|
30
|
+
/// @type Colour
|
31
|
+
/// @access public
|
32
|
+
|
33
|
+
$govuk-canvas-background-colour: govuk-colour("light-grey", $legacy: "grey-3") !default;
|
34
|
+
|
35
|
+
/// Body background colour
|
36
|
+
///
|
37
|
+
/// @type Colour
|
38
|
+
/// @access public
|
39
|
+
|
40
|
+
$govuk-body-background-colour: govuk-colour("white") !default;
|
41
|
+
|
42
|
+
/// Text colour for print media
|
43
|
+
///
|
44
|
+
/// Use 'true black' to avoid printers using colour ink to print body text
|
45
|
+
///
|
46
|
+
/// @type Colour
|
47
|
+
/// @access public
|
48
|
+
|
49
|
+
$govuk-print-text-colour: #000000 !default;
|
50
|
+
|
51
|
+
/// Secondary text colour
|
52
|
+
///
|
53
|
+
/// Used in for example 'muted' text and help text.
|
54
|
+
///
|
55
|
+
/// @type Colour
|
56
|
+
/// @access public
|
57
|
+
|
58
|
+
$govuk-secondary-text-colour: govuk-colour("dark-grey", $legacy: "grey-1") !default;
|
59
|
+
|
60
|
+
/// Focus colour
|
61
|
+
///
|
62
|
+
/// Used for outline (and background, where appropriate) when interactive
|
63
|
+
/// elements (links, form controls) have keyboard focus.
|
64
|
+
///
|
65
|
+
/// @type Colour
|
66
|
+
/// @access public
|
67
|
+
|
68
|
+
$govuk-focus-colour: govuk-colour("yellow") !default;
|
69
|
+
|
70
|
+
/// Focused text colour
|
71
|
+
///
|
72
|
+
/// Ensure that the contrast between the text and background colour passes
|
73
|
+
/// WCAG Level AA contrast requirements.
|
74
|
+
///
|
75
|
+
/// @type Colour
|
76
|
+
/// @access public
|
77
|
+
|
78
|
+
$govuk-focus-text-colour: govuk-colour("black") !default;
|
79
|
+
|
80
|
+
/// Error colour
|
81
|
+
///
|
82
|
+
/// Used to highlight error messages and form controls in an error state
|
83
|
+
///
|
84
|
+
/// @type Colour
|
85
|
+
/// @access public
|
86
|
+
|
87
|
+
$govuk-error-colour: govuk-colour("red") !default;
|
88
|
+
|
89
|
+
/// Success colour
|
90
|
+
///
|
91
|
+
/// Used to highlight success messages and banners
|
92
|
+
///
|
93
|
+
/// @type Colour
|
94
|
+
/// @access public
|
95
|
+
|
96
|
+
$govuk-success-colour: govuk-colour("green") !default;
|
97
|
+
|
98
|
+
/// Border colour
|
99
|
+
///
|
100
|
+
/// Used in for example borders, separators, rules and keylines.
|
101
|
+
///
|
102
|
+
/// @type Colour
|
103
|
+
/// @access public
|
104
|
+
|
105
|
+
$govuk-border-colour: govuk-colour("mid-grey", $legacy: "grey-2");
|
106
|
+
|
107
|
+
/// Input border colour
|
108
|
+
///
|
109
|
+
/// Used for form inputs and controls
|
110
|
+
///
|
111
|
+
/// @type Colour
|
112
|
+
/// @access public
|
113
|
+
|
114
|
+
$govuk-input-border-colour: govuk-colour("black") !default;
|
115
|
+
|
116
|
+
/// Input hover colour
|
117
|
+
///
|
118
|
+
/// Used for hover states on form controls
|
119
|
+
///
|
120
|
+
/// @type Colour
|
121
|
+
/// @access public
|
122
|
+
|
123
|
+
$govuk-hover-colour: govuk-colour("mid-grey", $legacy: "grey-3");
|
124
|
+
|
125
|
+
// =============================================================================
|
126
|
+
// Links
|
127
|
+
// =============================================================================
|
128
|
+
|
129
|
+
/// Link colour
|
130
|
+
///
|
131
|
+
/// @type Colour
|
132
|
+
/// @access public
|
133
|
+
|
134
|
+
$govuk-link-colour: govuk-colour("blue") !default;
|
135
|
+
|
136
|
+
/// Visited link colour
|
137
|
+
///
|
138
|
+
/// @type Colour
|
139
|
+
/// @access public
|
140
|
+
|
141
|
+
$govuk-link-visited-colour: govuk-colour("purple", $legacy: #4c2c92) !default;
|
142
|
+
|
143
|
+
/// Link hover colour
|
144
|
+
///
|
145
|
+
/// @type Colour
|
146
|
+
/// @access public
|
147
|
+
|
148
|
+
$govuk-link-hover-colour: govuk-colour("dark-blue", $legacy: "light-blue") !default;
|
149
|
+
|
150
|
+
/// Active link colour
|
151
|
+
///
|
152
|
+
/// @type Colour
|
153
|
+
/// @access public
|
154
|
+
|
155
|
+
$govuk-link-active-colour: govuk-colour("black", $legacy: "light-blue") !default;
|
@@ -0,0 +1,139 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/colours
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Organisation colours
|
6
|
+
///
|
7
|
+
/// @type Map
|
8
|
+
///
|
9
|
+
/// @prop $organisation.colour - Colour for the given `$organisation`
|
10
|
+
/// @prop $organisation.colour-websafe - Websafe colour for the given
|
11
|
+
/// `$organisation`. We use `websafe` to mean strong enough contrast against
|
12
|
+
/// white to be used for copy and meet the AAA (large text) and AA (smaller
|
13
|
+
/// copy) WCAG guidelines.
|
14
|
+
///
|
15
|
+
/// @access public
|
16
|
+
|
17
|
+
$govuk-colours-organisations: (
|
18
|
+
"attorney-generals-office": (
|
19
|
+
colour: #9f1888,
|
20
|
+
colour-websafe: #a03a88
|
21
|
+
),
|
22
|
+
"cabinet-office": (
|
23
|
+
colour: #005abb,
|
24
|
+
colour-websafe: #347da4
|
25
|
+
),
|
26
|
+
"civil-service": (
|
27
|
+
colour: #af292e
|
28
|
+
),
|
29
|
+
"department-for-business-innovation-skills": (
|
30
|
+
colour: #003479,
|
31
|
+
colour-websafe: #347da4
|
32
|
+
),
|
33
|
+
"department-for-communities-and-local-government": (
|
34
|
+
colour: #009999,
|
35
|
+
colour-websafe: #37836e
|
36
|
+
),
|
37
|
+
"department-for-culture-media-sport": (
|
38
|
+
colour: #d40072,
|
39
|
+
colour-websafe: #a03155
|
40
|
+
),
|
41
|
+
"department-for-education": (
|
42
|
+
colour: #003a69,
|
43
|
+
colour-websafe: #347ca9
|
44
|
+
),
|
45
|
+
"department-for-environment-food-rural-affairs": (
|
46
|
+
colour: #00a33b,
|
47
|
+
colour-websafe: #008938
|
48
|
+
),
|
49
|
+
"department-for-international-development": (
|
50
|
+
colour: #002878,
|
51
|
+
colour-websafe: #405e9a
|
52
|
+
),
|
53
|
+
"department-for-international-trade": (
|
54
|
+
colour: #cf102d,
|
55
|
+
colour-websafe: #005ea5
|
56
|
+
),
|
57
|
+
"department-for-transport": (
|
58
|
+
colour: #006c56,
|
59
|
+
colour-websafe: #398373
|
60
|
+
),
|
61
|
+
"department-for-work-pensions": (
|
62
|
+
colour: #00beb7,
|
63
|
+
colour-websafe: #37807b
|
64
|
+
),
|
65
|
+
"department-of-energy-climate-change": (
|
66
|
+
colour: #009ddb,
|
67
|
+
colour-websafe: #2b7cac
|
68
|
+
),
|
69
|
+
"department-of-health": (
|
70
|
+
colour: #00ad93,
|
71
|
+
colour-websafe: #39836e
|
72
|
+
),
|
73
|
+
"foreign-commonwealth-development-office": (
|
74
|
+
colour: #012169
|
75
|
+
),
|
76
|
+
"foreign-commonwealth-office": (
|
77
|
+
colour: #003e74,
|
78
|
+
colour-websafe: #406e97
|
79
|
+
),
|
80
|
+
"government-equalities-office": (
|
81
|
+
colour: #9325b2
|
82
|
+
),
|
83
|
+
"hm-government": (
|
84
|
+
colour: #0076c0,
|
85
|
+
colour-websafe: #347da4
|
86
|
+
),
|
87
|
+
"hm-revenue-customs": (
|
88
|
+
colour: #009390,
|
89
|
+
colour-websafe: #008670
|
90
|
+
),
|
91
|
+
"hm-treasury": (
|
92
|
+
colour: #af292e,
|
93
|
+
colour-websafe: #832322
|
94
|
+
),
|
95
|
+
"home-office": (
|
96
|
+
colour: #9325b2,
|
97
|
+
colour-websafe: #9440b2
|
98
|
+
),
|
99
|
+
"ministry-of-defence": (
|
100
|
+
colour: #4d2942,
|
101
|
+
colour-websafe: #5a5c92
|
102
|
+
),
|
103
|
+
"ministry-of-justice": (
|
104
|
+
colour: #231f20,
|
105
|
+
colour-websafe: #5a5c92
|
106
|
+
),
|
107
|
+
"northern-ireland-office": (
|
108
|
+
colour: #002663,
|
109
|
+
colour-websafe: #3e598c
|
110
|
+
),
|
111
|
+
"office-of-the-advocate-general-for-scotland": (
|
112
|
+
colour: #002663,
|
113
|
+
colour-websafe: #005ea5
|
114
|
+
),
|
115
|
+
"office-of-the-leader-of-the-house-of-commons": (
|
116
|
+
colour: #317023,
|
117
|
+
colour-websafe: #005f8f
|
118
|
+
),
|
119
|
+
"office-of-the-leader-of-the-house-of-lords": (
|
120
|
+
colour: #9c132e,
|
121
|
+
colour-websafe: #c2395d
|
122
|
+
),
|
123
|
+
"scotland-office": (
|
124
|
+
colour: #002663,
|
125
|
+
colour-websafe: #405c8a
|
126
|
+
),
|
127
|
+
"uk-export-finance": (
|
128
|
+
colour: #005747,
|
129
|
+
colour-websafe: #005ea5
|
130
|
+
),
|
131
|
+
"uk-trade-investment": (
|
132
|
+
colour: #c80651,
|
133
|
+
colour-websafe: #005ea5
|
134
|
+
),
|
135
|
+
"wales-office": (
|
136
|
+
colour: #a33038,
|
137
|
+
colour-websafe: #7a242a
|
138
|
+
)
|
139
|
+
) !default;
|