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,108 @@
|
|
1
|
+
@import "compatibility";
|
2
|
+
|
3
|
+
// stylelint-disable value-list-max-empty-lines -- allow empty lines in lists
|
4
|
+
// in this file to allow grouping
|
5
|
+
|
6
|
+
////
|
7
|
+
/// @group settings/colours
|
8
|
+
////
|
9
|
+
|
10
|
+
/// Use 'legacy' colour palette
|
11
|
+
///
|
12
|
+
/// Whether or not to use the colour palette from GOV.UK Elements / Frontend
|
13
|
+
/// Toolkit, for teams that are migrating to GOV.UK Frontend and may be using
|
14
|
+
/// components from both places in a single application.
|
15
|
+
///
|
16
|
+
/// @type Boolean
|
17
|
+
/// @access public
|
18
|
+
|
19
|
+
$govuk-use-legacy-palette: if(
|
20
|
+
(
|
21
|
+
$govuk-compatibility-govukfrontendtoolkit or
|
22
|
+
$govuk-compatibility-govuktemplate or
|
23
|
+
$govuk-compatibility-govukelements
|
24
|
+
),
|
25
|
+
true,
|
26
|
+
false
|
27
|
+
) !default;
|
28
|
+
|
29
|
+
/// Modern colour palette
|
30
|
+
///
|
31
|
+
/// This exists only because you cannot easily set a !default variable
|
32
|
+
/// conditionally (thanks to the way scope works in Sass) so we set
|
33
|
+
/// `$govuk-colour-palette` using the `if` function.
|
34
|
+
///
|
35
|
+
/// @access private
|
36
|
+
|
37
|
+
$_govuk-colour-palette-modern: (
|
38
|
+
"red": #d4351c,
|
39
|
+
"yellow": #ffdd00,
|
40
|
+
"green": #00703c,
|
41
|
+
"blue": #1d70b8,
|
42
|
+
"dark-blue": #003078,
|
43
|
+
"light-blue": #5694ca,
|
44
|
+
"purple": #4c2c92,
|
45
|
+
|
46
|
+
"black": #0b0c0c,
|
47
|
+
"dark-grey": #505a5f,
|
48
|
+
"mid-grey": #b1b4b6,
|
49
|
+
"light-grey": #f3f2f1,
|
50
|
+
"white": #ffffff,
|
51
|
+
|
52
|
+
"light-purple": #6f72af,
|
53
|
+
"bright-purple": #912b88,
|
54
|
+
"pink": #d53880,
|
55
|
+
"light-pink": #f499be,
|
56
|
+
"orange": #f47738,
|
57
|
+
"brown": #b58840,
|
58
|
+
"light-green": #85994b,
|
59
|
+
"turquoise": #28a197
|
60
|
+
);
|
61
|
+
|
62
|
+
/// Legacy colour palette
|
63
|
+
///
|
64
|
+
/// This exists only because you cannot easily set a !default variable
|
65
|
+
/// conditionally (thanks to the way scope works in Sass) so we set
|
66
|
+
/// `$govuk-colour-palette` using the `if` function.
|
67
|
+
///
|
68
|
+
/// @access private
|
69
|
+
|
70
|
+
$_govuk-colour-palette-legacy: (
|
71
|
+
"purple": #2e358b,
|
72
|
+
"light-purple": #6f72af,
|
73
|
+
"bright-purple": #912b88,
|
74
|
+
"pink": #d53880,
|
75
|
+
"light-pink": #f499be,
|
76
|
+
"red": #b10e1e,
|
77
|
+
"bright-red": #df3034,
|
78
|
+
"orange": #f47738,
|
79
|
+
"brown": #b58840,
|
80
|
+
"yellow": #ffbf47,
|
81
|
+
"light-green": #85994b,
|
82
|
+
"green": #006435,
|
83
|
+
"turquoise": #28a197,
|
84
|
+
"light-blue": #2b8cc4,
|
85
|
+
"blue": #005ea5,
|
86
|
+
|
87
|
+
"black": #0b0c0c,
|
88
|
+
"grey-1": #6f777b,
|
89
|
+
"grey-2": #bfc1c3,
|
90
|
+
"grey-3": #dee0e2,
|
91
|
+
"grey-4": #f8f8f8,
|
92
|
+
"white": #ffffff
|
93
|
+
);
|
94
|
+
|
95
|
+
/// Colour palette
|
96
|
+
///
|
97
|
+
/// @type Map
|
98
|
+
///
|
99
|
+
/// @prop $colour - Representation for the given $colour, where $colour is the
|
100
|
+
/// friendly name for the colour (e.g. "red": #ff0000);
|
101
|
+
///
|
102
|
+
/// @access public
|
103
|
+
|
104
|
+
$govuk-colours: if(
|
105
|
+
$govuk-use-legacy-palette,
|
106
|
+
$_govuk-colour-palette-legacy,
|
107
|
+
$_govuk-colour-palette-modern
|
108
|
+
) !default;
|
@@ -0,0 +1,74 @@
|
|
1
|
+
////
|
2
|
+
/// 'Compatibility Mode'
|
3
|
+
///
|
4
|
+
/// Enabling these flags improves compatibility if you are using GOV.UK Frontend
|
5
|
+
/// in an application that also uses govuk_elements, govuk_frontend_toolkit or
|
6
|
+
/// govuk_template (the 'legacy repos').
|
7
|
+
///
|
8
|
+
/// Enabling any of these settings will, by default:
|
9
|
+
///
|
10
|
+
/// - switch GOV.UK Frontend to using the same colour palette as the legacy
|
11
|
+
/// repos, by setting `$govuk-use-legacy-palette` to true.
|
12
|
+
///
|
13
|
+
/// - prevent GOV.UK Frontend from using rem for font sizing, by setting
|
14
|
+
/// `$govuk-typography-use-rem` to false.
|
15
|
+
///
|
16
|
+
/// @group settings/compatibility
|
17
|
+
////
|
18
|
+
|
19
|
+
/// Compatibility Mode: alphagov/govuk_frontend_toolkit
|
20
|
+
///
|
21
|
+
/// Set this to true if you are also including alphagov/govuk_frontend_toolkit
|
22
|
+
/// in your application.
|
23
|
+
///
|
24
|
+
/// @type Boolean
|
25
|
+
/// @access public
|
26
|
+
|
27
|
+
$govuk-compatibility-govukfrontendtoolkit: false !default;
|
28
|
+
|
29
|
+
/// Compatibility Mode: alphagov/govuk_template
|
30
|
+
///
|
31
|
+
/// Enabling this will:
|
32
|
+
///
|
33
|
+
/// - prevent GOV.UK Frontend from including the New Transport typeface, as
|
34
|
+
/// it'll use the version of New Transport included with GOV.UK Template.
|
35
|
+
///
|
36
|
+
/// - alter some of the CSS outputted by GOV.UK Frontend to 'counter'
|
37
|
+
/// specific CSS rules in GOV.UK Template.
|
38
|
+
///
|
39
|
+
/// Set this to true if you are also including alphagov/govuk_template in your
|
40
|
+
/// application.
|
41
|
+
///
|
42
|
+
/// @type Boolean
|
43
|
+
/// @access public
|
44
|
+
|
45
|
+
$govuk-compatibility-govuktemplate: false !default;
|
46
|
+
|
47
|
+
/// Compatibility Mode: alphagov/govuk_elements
|
48
|
+
///
|
49
|
+
/// Enabling this will:
|
50
|
+
///
|
51
|
+
/// - alter some of the CSS outputted by GOV.UK Frontend to 'counter'
|
52
|
+
/// specific CSS rules in GOV.UK Elements.
|
53
|
+
///
|
54
|
+
/// Set this to true if you are also including alphagov/govuk_elements in your
|
55
|
+
/// application.
|
56
|
+
///
|
57
|
+
/// @type Boolean
|
58
|
+
/// @access public
|
59
|
+
|
60
|
+
$govuk-compatibility-govukelements: false !default;
|
61
|
+
|
62
|
+
/// Compatibility Product Map
|
63
|
+
///
|
64
|
+
/// Maps product names to their settings that we can use to lookup states from
|
65
|
+
/// within the `@govuk-compatibility` mixin.
|
66
|
+
///
|
67
|
+
/// @type Map
|
68
|
+
/// @access private
|
69
|
+
|
70
|
+
$_govuk-compatibility: (
|
71
|
+
govuk_frontend_toolkit: $govuk-compatibility-govukfrontendtoolkit,
|
72
|
+
govuk_template: $govuk-compatibility-govuktemplate,
|
73
|
+
govuk_elements: $govuk-compatibility-govukelements,
|
74
|
+
);
|
@@ -0,0 +1,13 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/global-styles
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Include 'global' styles
|
6
|
+
///
|
7
|
+
/// Whether to style paragraphs (`<p>`) and links (`<a>`) without explicitly
|
8
|
+
/// having to apply the `govuk-body` and `govuk-link` classes.
|
9
|
+
///
|
10
|
+
/// @type Boolean
|
11
|
+
/// @access public
|
12
|
+
|
13
|
+
$govuk-global-styles: false !default;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/internet-explorer-8
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Whether the stylesheet being built is targeting Internet Explorer 8.
|
6
|
+
///
|
7
|
+
/// @type Boolean
|
8
|
+
/// @access public
|
9
|
+
|
10
|
+
$govuk-is-ie8: false !default;
|
11
|
+
|
12
|
+
/// The name of the breakpoint to use as the target when rasterizing media
|
13
|
+
/// queries
|
14
|
+
///
|
15
|
+
/// @type String
|
16
|
+
/// @access public
|
17
|
+
|
18
|
+
$govuk-ie8-breakpoint: desktop !default;
|
@@ -0,0 +1,62 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/links
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Enable new link styles
|
6
|
+
///
|
7
|
+
/// If enabled, the link styles will change. Underlines will:
|
8
|
+
///
|
9
|
+
/// - be consistently thinner and a bit further away from the link text
|
10
|
+
/// - have a clearer hover state, where the underline gets thicker to make the
|
11
|
+
/// link stand out to users
|
12
|
+
///
|
13
|
+
/// You should only enable the new link styles if both:
|
14
|
+
///
|
15
|
+
/// - you've made sure your whole service will use the new style consistently
|
16
|
+
/// - you do not have links in a multi-column CSS layout - there's [a Chromium
|
17
|
+
/// bug that affects links](https://github.com/alphagov/govuk-frontend/issues/2204)
|
18
|
+
///
|
19
|
+
/// @type Boolean
|
20
|
+
/// @access public
|
21
|
+
|
22
|
+
$govuk-new-link-styles: false !default;
|
23
|
+
|
24
|
+
/// Thickness of link underlines
|
25
|
+
///
|
26
|
+
/// The default will be either:
|
27
|
+
///
|
28
|
+
/// - 1px
|
29
|
+
/// - 0.0625rem, if it's thicker than 1px because the user has changed the text
|
30
|
+
/// size in their browser
|
31
|
+
///
|
32
|
+
/// Set this variable to `false` to avoid setting a thickness.
|
33
|
+
///
|
34
|
+
/// @type Number
|
35
|
+
/// @access public
|
36
|
+
|
37
|
+
$govuk-link-underline-thickness: unquote("max(1px, .0625rem)") !default;
|
38
|
+
|
39
|
+
/// Offset of link underlines from text baseline
|
40
|
+
///
|
41
|
+
/// Set this variable to `false` to avoid setting an offset.
|
42
|
+
///
|
43
|
+
/// @type Number
|
44
|
+
/// @access public
|
45
|
+
|
46
|
+
$govuk-link-underline-offset: .1em !default;
|
47
|
+
|
48
|
+
/// Thickness of link underlines in hover state
|
49
|
+
///
|
50
|
+
/// The default for each link will be the thickest of the following:
|
51
|
+
///
|
52
|
+
/// - 3px
|
53
|
+
/// - 0.1875rem, if it's thicker than 3px because the user has changed the text
|
54
|
+
/// size in their browser
|
55
|
+
/// - 0.12em (relative to the link's text size)
|
56
|
+
///
|
57
|
+
/// Set this variable to `false` to avoid setting a thickness.
|
58
|
+
///
|
59
|
+
/// @type Number
|
60
|
+
/// @access public
|
61
|
+
|
62
|
+
$govuk-link-hover-underline-thickness: unquote("max(3px, .1875rem, .12em)") !default;
|
@@ -0,0 +1,105 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/measurements
|
3
|
+
////
|
4
|
+
|
5
|
+
// =========================================================
|
6
|
+
// Page layout
|
7
|
+
// =========================================================
|
8
|
+
|
9
|
+
/// Width of main container
|
10
|
+
///
|
11
|
+
/// @type Number
|
12
|
+
/// @access public
|
13
|
+
|
14
|
+
$govuk-page-width: 960px !default;
|
15
|
+
|
16
|
+
/// Map of grid column widths
|
17
|
+
///
|
18
|
+
/// @type Map
|
19
|
+
/// @access public
|
20
|
+
|
21
|
+
$govuk-grid-widths: (
|
22
|
+
one-quarter: 25%,
|
23
|
+
one-third: 33.3333%,
|
24
|
+
one-half: 50%,
|
25
|
+
two-thirds: 66.6666%,
|
26
|
+
three-quarters: 75%,
|
27
|
+
full: 100%
|
28
|
+
) !default;
|
29
|
+
|
30
|
+
/// Width of gutter between grid columns
|
31
|
+
///
|
32
|
+
/// @type Number
|
33
|
+
/// @access public
|
34
|
+
|
35
|
+
$govuk-gutter: 30px !default;
|
36
|
+
|
37
|
+
/// Width of half the gutter between grid columns
|
38
|
+
///
|
39
|
+
/// @type Number
|
40
|
+
/// @access public
|
41
|
+
|
42
|
+
$govuk-gutter-half: $govuk-gutter / 2;
|
43
|
+
|
44
|
+
// =========================================================
|
45
|
+
// Borders
|
46
|
+
// =========================================================
|
47
|
+
|
48
|
+
/// Standard border width
|
49
|
+
///
|
50
|
+
/// @type Number
|
51
|
+
/// @access public
|
52
|
+
|
53
|
+
$govuk-border-width: 5px !default;
|
54
|
+
|
55
|
+
/// Wide border width
|
56
|
+
///
|
57
|
+
/// @type Number
|
58
|
+
/// @access public
|
59
|
+
|
60
|
+
$govuk-border-width-wide: 10px !default;
|
61
|
+
|
62
|
+
/// Narrow border width
|
63
|
+
///
|
64
|
+
/// @type Number
|
65
|
+
/// @access public
|
66
|
+
|
67
|
+
$govuk-border-width-narrow: 4px !default;
|
68
|
+
|
69
|
+
/// Form control border width
|
70
|
+
///
|
71
|
+
/// @type Number
|
72
|
+
/// @access public
|
73
|
+
|
74
|
+
$govuk-border-width-form-element: 2px !default;
|
75
|
+
|
76
|
+
/// Form control border width when in error state
|
77
|
+
///
|
78
|
+
/// @type Number
|
79
|
+
/// @access public
|
80
|
+
/// @deprecated Use $govuk-border-width-form-element instead. There should be no
|
81
|
+
/// difference in thickness for inputs in the error state, in order to
|
82
|
+
/// maintain a distinct focus state.
|
83
|
+
|
84
|
+
$govuk-border-width-form-element-error: 2px !default;
|
85
|
+
|
86
|
+
/// Form group border width when in error state
|
87
|
+
///
|
88
|
+
/// @type Number
|
89
|
+
/// @access public
|
90
|
+
|
91
|
+
$govuk-border-width-form-group-error: $govuk-border-width !default;
|
92
|
+
|
93
|
+
/// Border width of focus outline
|
94
|
+
///
|
95
|
+
/// @type Number
|
96
|
+
/// @access public
|
97
|
+
|
98
|
+
$govuk-focus-width: 3px !default;
|
99
|
+
|
100
|
+
/// Hover width for form controls with a hover state
|
101
|
+
///
|
102
|
+
/// @type Number
|
103
|
+
/// @access public
|
104
|
+
|
105
|
+
$govuk-hover-width: 10px !default;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/media-queries
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Breakpoint definitions
|
6
|
+
///
|
7
|
+
/// @type Map
|
8
|
+
/// @access public
|
9
|
+
|
10
|
+
$govuk-breakpoints: (
|
11
|
+
mobile: 320px,
|
12
|
+
tablet: 641px,
|
13
|
+
desktop: 769px
|
14
|
+
) !default;
|
15
|
+
|
16
|
+
/// Show active breakpoint in top-right corner.
|
17
|
+
///
|
18
|
+
/// Only use this during local development.
|
19
|
+
///
|
20
|
+
/// @type Boolean
|
21
|
+
/// @access public
|
22
|
+
|
23
|
+
$govuk-show-breakpoints: false !default;
|
@@ -0,0 +1,80 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/spacing
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Single point spacing variables. Access using `govuk-spacing()`
|
6
|
+
/// (see `helpers/spacing`).
|
7
|
+
///
|
8
|
+
/// @type Map
|
9
|
+
/// @access private
|
10
|
+
|
11
|
+
$govuk-spacing-points: (
|
12
|
+
0: 0,
|
13
|
+
1: 5px,
|
14
|
+
2: 10px,
|
15
|
+
3: 15px,
|
16
|
+
4: 20px,
|
17
|
+
5: 25px,
|
18
|
+
6: 30px,
|
19
|
+
7: 40px,
|
20
|
+
8: 50px,
|
21
|
+
9: 60px
|
22
|
+
) !default;
|
23
|
+
|
24
|
+
/// Responsive spacing maps
|
25
|
+
///
|
26
|
+
/// These definitions are used to generate responsive spacing that adapts
|
27
|
+
/// according to the breakpoints (see 'helpers/spacing'). These maps should be
|
28
|
+
/// used wherever possible to standardise responsive spacing.
|
29
|
+
///
|
30
|
+
/// You can define different behaviour on tablet and desktop. The 'null'
|
31
|
+
/// breakpoint is for mobile.
|
32
|
+
///
|
33
|
+
/// Access responsive spacing with `govuk-responsive-margin` or
|
34
|
+
/// `govuk-responsive-padding` mixins (see `helpers/spacing`).
|
35
|
+
///
|
36
|
+
/// @type Map
|
37
|
+
/// @access private
|
38
|
+
|
39
|
+
$govuk-spacing-responsive-scale: (
|
40
|
+
0: (
|
41
|
+
null: 0,
|
42
|
+
tablet: 0
|
43
|
+
),
|
44
|
+
1: (
|
45
|
+
null: 5px,
|
46
|
+
tablet: 5px
|
47
|
+
),
|
48
|
+
2: (
|
49
|
+
null: 10px,
|
50
|
+
tablet: 10px
|
51
|
+
),
|
52
|
+
3: (
|
53
|
+
null: 15px,
|
54
|
+
tablet: 15px
|
55
|
+
),
|
56
|
+
4: (
|
57
|
+
null: 15px,
|
58
|
+
tablet: 20px
|
59
|
+
),
|
60
|
+
5: (
|
61
|
+
null: 15px,
|
62
|
+
tablet: 25px
|
63
|
+
),
|
64
|
+
6: (
|
65
|
+
null: 20px,
|
66
|
+
tablet: 30px
|
67
|
+
),
|
68
|
+
7: (
|
69
|
+
null: 25px,
|
70
|
+
tablet: 40px
|
71
|
+
),
|
72
|
+
8: (
|
73
|
+
null: 30px,
|
74
|
+
tablet: 50px
|
75
|
+
),
|
76
|
+
9: (
|
77
|
+
null: 40px,
|
78
|
+
tablet: 60px
|
79
|
+
)
|
80
|
+
) !default;
|