govuk_fe_assets 0.1.0.pre.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +6 -0
- data/govuk_fe_assets.gemspec +26 -0
- data/lib/govuk_fe_assets.rb +5 -0
- data/lib/govuk_fe_assets/version.rb +3 -0
- data/node_modules/govuk-frontend/README.md +96 -0
- data/node_modules/govuk-frontend/all-ie8.scss +6 -0
- data/node_modules/govuk-frontend/all.js +1720 -0
- data/node_modules/govuk-frontend/all.scss +11 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-a2452cb66f-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-f38c792ac2-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-fb2676462a-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-tabular-357fdfbcc3-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-tabular-784c21afb8-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-tabular-b89238d840-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-2c037cf7e1-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-458f8ea81c-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-f38ad40456-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-tabular-498ea8ffe2-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-tabular-62cc6f0a28-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-tabular-851b10ccdd-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/images/favicon.ico +0 -0
- data/node_modules/govuk-frontend/assets/images/govuk-apple-touch-icon-152x152.png +0 -0
- data/node_modules/govuk-frontend/assets/images/govuk-apple-touch-icon-167x167.png +0 -0
- data/node_modules/govuk-frontend/assets/images/govuk-apple-touch-icon-180x180.png +0 -0
- data/node_modules/govuk-frontend/assets/images/govuk-apple-touch-icon.png +0 -0
- data/node_modules/govuk-frontend/assets/images/govuk-crest-2x.png +0 -0
- data/node_modules/govuk-frontend/assets/images/govuk-crest.png +0 -0
- data/node_modules/govuk-frontend/assets/images/govuk-logotype-crown.png +0 -0
- data/node_modules/govuk-frontend/assets/images/govuk-mask-icon.svg +7 -0
- data/node_modules/govuk-frontend/assets/images/govuk-opengraph-image.png +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-arrow-left.png +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-important.png +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-pointer-2x.png +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-pointer.png +0 -0
- data/node_modules/govuk-frontend/common.js +39 -0
- data/node_modules/govuk-frontend/components/_all.scss +26 -0
- data/node_modules/govuk-frontend/components/back-link/README.md +142 -0
- data/node_modules/govuk-frontend/components/back-link/_back-link.scss +54 -0
- data/node_modules/govuk-frontend/components/back-link/back-link.njk +3 -0
- data/node_modules/govuk-frontend/components/back-link/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/back-link/template.njk +2 -0
- data/node_modules/govuk-frontend/components/breadcrumbs/README.md +335 -0
- data/node_modules/govuk-frontend/components/breadcrumbs/_breadcrumbs.scss +119 -0
- data/node_modules/govuk-frontend/components/breadcrumbs/breadcrumbs.njk +14 -0
- data/node_modules/govuk-frontend/components/breadcrumbs/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/breadcrumbs/template.njk +13 -0
- data/node_modules/govuk-frontend/components/button/README.md +319 -0
- data/node_modules/govuk-frontend/components/button/_button.scss +185 -0
- data/node_modules/govuk-frontend/components/button/button.js +548 -0
- data/node_modules/govuk-frontend/components/button/button.njk +3 -0
- data/node_modules/govuk-frontend/components/button/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/button/template.njk +35 -0
- data/node_modules/govuk-frontend/components/checkboxes/README.md +782 -0
- data/node_modules/govuk-frontend/components/checkboxes/_checkboxes.scss +151 -0
- data/node_modules/govuk-frontend/components/checkboxes/checkboxes.js +730 -0
- data/node_modules/govuk-frontend/components/checkboxes/checkboxes.njk +27 -0
- data/node_modules/govuk-frontend/components/checkboxes/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/checkboxes/template.njk +86 -0
- data/node_modules/govuk-frontend/components/date-input/README.md +640 -0
- data/node_modules/govuk-frontend/components/date-input/_date-input.scss +35 -0
- data/node_modules/govuk-frontend/components/date-input/date-input.njk +23 -0
- data/node_modules/govuk-frontend/components/date-input/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/date-input/template.njk +76 -0
- data/node_modules/govuk-frontend/components/details/README.md +237 -0
- data/node_modules/govuk-frontend/components/details/_details.scss +86 -0
- data/node_modules/govuk-frontend/components/details/details.js +836 -0
- data/node_modules/govuk-frontend/components/details/details.njk +7 -0
- data/node_modules/govuk-frontend/components/details/implementation.md +43 -0
- data/node_modules/govuk-frontend/components/details/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/details/template.njk +10 -0
- data/node_modules/govuk-frontend/components/error-message/README.md +143 -0
- data/node_modules/govuk-frontend/components/error-message/_error-message.scss +15 -0
- data/node_modules/govuk-frontend/components/error-message/error-message.njk +7 -0
- data/node_modules/govuk-frontend/components/error-message/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/error-message/template.njk +3 -0
- data/node_modules/govuk-frontend/components/error-summary/README.md +215 -0
- data/node_modules/govuk-frontend/components/error-summary/_error-summary.scss +68 -0
- data/node_modules/govuk-frontend/components/error-summary/error-summary.js +520 -0
- data/node_modules/govuk-frontend/components/error-summary/error-summary.njk +17 -0
- data/node_modules/govuk-frontend/components/error-summary/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/error-summary/template.njk +25 -0
- data/node_modules/govuk-frontend/components/fieldset/README.md +213 -0
- data/node_modules/govuk-frontend/components/fieldset/_fieldset.scss +58 -0
- data/node_modules/govuk-frontend/components/fieldset/fieldset.njk +13 -0
- data/node_modules/govuk-frontend/components/fieldset/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/fieldset/template.njk +17 -0
- data/node_modules/govuk-frontend/components/file-upload/README.md +332 -0
- data/node_modules/govuk-frontend/components/file-upload/_file-upload.scss +19 -0
- data/node_modules/govuk-frontend/components/file-upload/file-upload.njk +9 -0
- data/node_modules/govuk-frontend/components/file-upload/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/file-upload/template.njk +42 -0
- data/node_modules/govuk-frontend/components/footer/README.md +284 -0
- data/node_modules/govuk-frontend/components/footer/_footer.scss +216 -0
- data/node_modules/govuk-frontend/components/footer/footer.njk +3 -0
- data/node_modules/govuk-frontend/components/footer/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/footer/template.njk +80 -0
- data/node_modules/govuk-frontend/components/header/README.md +524 -0
- data/node_modules/govuk-frontend/components/header/_header.scss +285 -0
- data/node_modules/govuk-frontend/components/header/header.js +717 -0
- data/node_modules/govuk-frontend/components/header/header.njk +3 -0
- data/node_modules/govuk-frontend/components/header/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/header/template.njk +82 -0
- data/node_modules/govuk-frontend/components/hint/README.md +157 -0
- data/node_modules/govuk-frontend/components/hint/_hint.scss +29 -0
- data/node_modules/govuk-frontend/components/hint/hint.njk +7 -0
- data/node_modules/govuk-frontend/components/hint/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/hint/template.njk +4 -0
- data/node_modules/govuk-frontend/components/input/README.md +416 -0
- data/node_modules/govuk-frontend/components/input/_input.scss +62 -0
- data/node_modules/govuk-frontend/components/input/input.njk +9 -0
- data/node_modules/govuk-frontend/components/input/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/input/template.njk +42 -0
- data/node_modules/govuk-frontend/components/inset-text/README.md +157 -0
- data/node_modules/govuk-frontend/components/inset-text/_inset-text.scss +28 -0
- data/node_modules/govuk-frontend/components/inset-text/inset-text.njk +7 -0
- data/node_modules/govuk-frontend/components/inset-text/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/inset-text/template.njk +4 -0
- data/node_modules/govuk-frontend/components/label/README.md +193 -0
- data/node_modules/govuk-frontend/components/label/_label.scss +45 -0
- data/node_modules/govuk-frontend/components/label/label.njk +6 -0
- data/node_modules/govuk-frontend/components/label/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/label/template.njk +15 -0
- data/node_modules/govuk-frontend/components/panel/README.md +151 -0
- data/node_modules/govuk-frontend/components/panel/_panel.scss +42 -0
- data/node_modules/govuk-frontend/components/panel/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/panel/panel.njk +7 -0
- data/node_modules/govuk-frontend/components/panel/template.njk +12 -0
- data/node_modules/govuk-frontend/components/phase-banner/README.md +152 -0
- data/node_modules/govuk-frontend/components/phase-banner/_phase-banner.scss +31 -0
- data/node_modules/govuk-frontend/components/phase-banner/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/phase-banner/phase-banner.njk +7 -0
- data/node_modules/govuk-frontend/components/phase-banner/template.njk +17 -0
- data/node_modules/govuk-frontend/components/radios/README.md +686 -0
- data/node_modules/govuk-frontend/components/radios/_radios.scss +157 -0
- data/node_modules/govuk-frontend/components/radios/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/radios/radios.js +730 -0
- data/node_modules/govuk-frontend/components/radios/radios.njk +27 -0
- data/node_modules/govuk-frontend/components/radios/template.njk +85 -0
- data/node_modules/govuk-frontend/components/select/README.md +387 -0
- data/node_modules/govuk-frontend/components/select/_select.scss +35 -0
- data/node_modules/govuk-frontend/components/select/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/select/select.njk +24 -0
- data/node_modules/govuk-frontend/components/select/template.njk +44 -0
- data/node_modules/govuk-frontend/components/skip-link/README.md +142 -0
- data/node_modules/govuk-frontend/components/skip-link/_skip-link.scss +15 -0
- data/node_modules/govuk-frontend/components/skip-link/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/skip-link/skip-link.njk +3 -0
- data/node_modules/govuk-frontend/components/skip-link/template.njk +3 -0
- data/node_modules/govuk-frontend/components/table/README.md +585 -0
- data/node_modules/govuk-frontend/components/table/_table.scss +50 -0
- data/node_modules/govuk-frontend/components/table/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/table/table.njk +45 -0
- data/node_modules/govuk-frontend/components/table/template.njk +39 -0
- data/node_modules/govuk-frontend/components/tabs/README.md +375 -0
- data/node_modules/govuk-frontend/components/tabs/_tabs.scss +120 -0
- data/node_modules/govuk-frontend/components/tabs/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/tabs/tabs.js +1302 -0
- data/node_modules/govuk-frontend/components/tabs/tabs.njk +3 -0
- data/node_modules/govuk-frontend/components/tabs/template.njk +29 -0
- data/node_modules/govuk-frontend/components/tag/README.md +150 -0
- data/node_modules/govuk-frontend/components/tag/_tag.scss +23 -0
- data/node_modules/govuk-frontend/components/tag/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/tag/tag.njk +7 -0
- data/node_modules/govuk-frontend/components/tag/template.njk +3 -0
- data/node_modules/govuk-frontend/components/textarea/README.md +350 -0
- data/node_modules/govuk-frontend/components/textarea/_textarea.scss +31 -0
- data/node_modules/govuk-frontend/components/textarea/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/textarea/template.njk +41 -0
- data/node_modules/govuk-frontend/components/textarea/textarea.njk +11 -0
- data/node_modules/govuk-frontend/components/warning-text/README.md +148 -0
- data/node_modules/govuk-frontend/components/warning-text/_warning-text.scss +50 -0
- data/node_modules/govuk-frontend/components/warning-text/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/warning-text/template.njk +9 -0
- data/node_modules/govuk-frontend/components/warning-text/warning-text.njk +9 -0
- data/node_modules/govuk-frontend/core/_all.scss +6 -0
- data/node_modules/govuk-frontend/core/_global-styles.scss +19 -0
- data/node_modules/govuk-frontend/core/_links.scss +40 -0
- data/node_modules/govuk-frontend/core/_lists.scss +63 -0
- data/node_modules/govuk-frontend/core/_section-break.scss +56 -0
- data/node_modules/govuk-frontend/core/_template.scss +16 -0
- data/node_modules/govuk-frontend/core/_typography.scss +186 -0
- data/node_modules/govuk-frontend/helpers/_all.scss +12 -0
- data/node_modules/govuk-frontend/helpers/_clearfix.scss +15 -0
- data/node_modules/govuk-frontend/helpers/_colour.scss +51 -0
- data/node_modules/govuk-frontend/helpers/_device-pixels.scss +38 -0
- data/node_modules/govuk-frontend/helpers/_focusable.scss +34 -0
- data/node_modules/govuk-frontend/helpers/_font-faces.scss +67 -0
- data/node_modules/govuk-frontend/helpers/_grid.scss +100 -0
- data/node_modules/govuk-frontend/helpers/_links.scss +149 -0
- data/node_modules/govuk-frontend/helpers/_media-queries.scss +95 -0
- data/node_modules/govuk-frontend/helpers/_shape-arrow.scss +80 -0
- data/node_modules/govuk-frontend/helpers/_spacing.scss +152 -0
- data/node_modules/govuk-frontend/helpers/_typography.scss +153 -0
- data/node_modules/govuk-frontend/helpers/_visually-hidden.scss +76 -0
- data/node_modules/govuk-frontend/objects/_all.scss +4 -0
- data/node_modules/govuk-frontend/objects/_form-group.scss +21 -0
- data/node_modules/govuk-frontend/objects/_grid.scss +10 -0
- data/node_modules/govuk-frontend/objects/_main-wrapper.scss +37 -0
- data/node_modules/govuk-frontend/objects/_width-container.scss +28 -0
- data/node_modules/govuk-frontend/overrides/_all.scss +4 -0
- data/node_modules/govuk-frontend/overrides/_display.scss +14 -0
- data/node_modules/govuk-frontend/overrides/_spacing.scss +58 -0
- data/node_modules/govuk-frontend/overrides/_typography.scss +21 -0
- data/node_modules/govuk-frontend/overrides/_width.scss +41 -0
- data/node_modules/govuk-frontend/package.json +50 -0
- data/node_modules/govuk-frontend/settings/_all.scss +21 -0
- data/node_modules/govuk-frontend/settings/_assets.scss +82 -0
- data/node_modules/govuk-frontend/settings/_colours-applied.scss +130 -0
- data/node_modules/govuk-frontend/settings/_colours-organisations.scss +136 -0
- data/node_modules/govuk-frontend/settings/_colours-palette.scss +37 -0
- data/node_modules/govuk-frontend/settings/_compatibility.scss +51 -0
- data/node_modules/govuk-frontend/settings/_global-styles.scss +13 -0
- data/node_modules/govuk-frontend/settings/_ie8.scss +18 -0
- data/node_modules/govuk-frontend/settings/_measurements.scss +85 -0
- data/node_modules/govuk-frontend/settings/_media-queries.scss +23 -0
- data/node_modules/govuk-frontend/settings/_spacing.scss +80 -0
- data/node_modules/govuk-frontend/settings/_typography-font-families.scss +22 -0
- data/node_modules/govuk-frontend/settings/_typography-font.scss +48 -0
- data/node_modules/govuk-frontend/settings/_typography-responsive.scss +138 -0
- data/node_modules/govuk-frontend/template.njk +56 -0
- data/node_modules/govuk-frontend/tools/_all.scss +7 -0
- data/node_modules/govuk-frontend/tools/_compatibility.scss +36 -0
- data/node_modules/govuk-frontend/tools/_exports.scss +33 -0
- data/node_modules/govuk-frontend/tools/_font-url.scss +28 -0
- data/node_modules/govuk-frontend/tools/_ie8.scss +51 -0
- data/node_modules/govuk-frontend/tools/_iff.scss +15 -0
- data/node_modules/govuk-frontend/tools/_image-url.scss +28 -0
- data/node_modules/govuk-frontend/tools/_px-to-em.scss +20 -0
- data/node_modules/govuk-frontend/utilities/_all.scss +2 -0
- data/node_modules/govuk-frontend/utilities/_clearfix.scss +5 -0
- data/node_modules/govuk-frontend/utilities/_visually-hidden.scss +9 -0
- data/node_modules/govuk-frontend/vendor/_sass-mq.scss +351 -0
- data/node_modules/govuk-frontend/vendor/polyfills/DOMTokenList.js +272 -0
- data/node_modules/govuk-frontend/vendor/polyfills/Document.js +34 -0
- data/node_modules/govuk-frontend/vendor/polyfills/Element.js +147 -0
- data/node_modules/govuk-frontend/vendor/polyfills/Element/prototype/classList.js +449 -0
- data/node_modules/govuk-frontend/vendor/polyfills/Event.js +504 -0
- data/node_modules/govuk-frontend/vendor/polyfills/Function/prototype/bind.js +252 -0
- data/node_modules/govuk-frontend/vendor/polyfills/Object/defineProperty.js +94 -0
- data/node_modules/govuk-frontend/vendor/polyfills/Window.js +28 -0
- data/package-lock.json +10 -0
- data/package.json +5 -0
- metadata +334 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
////
|
2
|
+
/// Compatibility with legacy repos (govuk_elements, govuk_frontend_tookkit and
|
3
|
+
/// govuk_template) settings
|
4
|
+
///
|
5
|
+
/// We default these settings to `true` so that if they are missed we opt for a
|
6
|
+
/// mild performance hit over a potential broken experience for the end-user.
|
7
|
+
///
|
8
|
+
/// @group settings/compatibility
|
9
|
+
////
|
10
|
+
|
11
|
+
|
12
|
+
/// Compatibility Mode: alphagov/govuk_frontend_toolkit
|
13
|
+
///
|
14
|
+
/// True if used in a project that also includes alphagov/govuk_frontend_toolkit.
|
15
|
+
///
|
16
|
+
/// @type Boolean
|
17
|
+
/// @access public
|
18
|
+
|
19
|
+
$govuk-compatibility-govukfrontendtoolkit: true !default;
|
20
|
+
|
21
|
+
/// Compatibility Mode: alphagov/govuk_template
|
22
|
+
///
|
23
|
+
/// True if used in a project that also includes alphagov/govuk_template.
|
24
|
+
///
|
25
|
+
/// @type Boolean
|
26
|
+
/// @access public
|
27
|
+
|
28
|
+
$govuk-compatibility-govuktemplate: true !default;
|
29
|
+
|
30
|
+
/// Compatibility Mode: alphagov/govuk_elements
|
31
|
+
///
|
32
|
+
/// True if used in a project that also includes alphagov/govuk_elements.
|
33
|
+
///
|
34
|
+
/// @type Boolean
|
35
|
+
/// @access public
|
36
|
+
|
37
|
+
$govuk-compatibility-govukelements: true !default;
|
38
|
+
|
39
|
+
/// Compatibility Product Map
|
40
|
+
///
|
41
|
+
/// Maps product names to their settings that we can use to lookup states from
|
42
|
+
/// within the `@govuk-compatibility` mixin.
|
43
|
+
///
|
44
|
+
/// @type Map
|
45
|
+
/// @access private
|
46
|
+
|
47
|
+
$_govuk-compatibility: (
|
48
|
+
govuk_frontend_toolkit: $govuk-compatibility-govukfrontendtoolkit,
|
49
|
+
govuk_template: $govuk-compatibility-govuktemplate,
|
50
|
+
govuk_elements: $govuk-compatibility-govukelements,
|
51
|
+
);
|
@@ -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/ie8
|
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,85 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/measurements
|
3
|
+
////
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
// =========================================================
|
8
|
+
// Page layout
|
9
|
+
// =========================================================
|
10
|
+
|
11
|
+
/// Width of main container
|
12
|
+
///
|
13
|
+
/// @type Number
|
14
|
+
/// @access public
|
15
|
+
|
16
|
+
$govuk-page-width: 960px !default;
|
17
|
+
|
18
|
+
/// Width of gutter between grid columns
|
19
|
+
///
|
20
|
+
/// @type Number
|
21
|
+
/// @access public
|
22
|
+
|
23
|
+
$govuk-gutter: 30px !default;
|
24
|
+
|
25
|
+
/// Width of half the gutter between grid columns
|
26
|
+
///
|
27
|
+
/// @type Number
|
28
|
+
/// @access public
|
29
|
+
|
30
|
+
$govuk-gutter-half: $govuk-gutter / 2;
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
// =========================================================
|
35
|
+
// Borders
|
36
|
+
// =========================================================
|
37
|
+
|
38
|
+
/// Standard border width
|
39
|
+
///
|
40
|
+
/// @type Number
|
41
|
+
/// @access public
|
42
|
+
|
43
|
+
$govuk-border-width: 5px !default;
|
44
|
+
|
45
|
+
/// Wide border width
|
46
|
+
///
|
47
|
+
/// @type Number
|
48
|
+
/// @access public
|
49
|
+
|
50
|
+
$govuk-border-width-wide: 10px !default;
|
51
|
+
|
52
|
+
/// Border width on mobile
|
53
|
+
///
|
54
|
+
/// @type Number
|
55
|
+
/// @access public
|
56
|
+
|
57
|
+
$govuk-border-width-mobile: 4px !default;
|
58
|
+
|
59
|
+
/// Form control border width
|
60
|
+
///
|
61
|
+
/// @type Number
|
62
|
+
/// @access public
|
63
|
+
|
64
|
+
$govuk-border-width-form-element: 2px !default;
|
65
|
+
|
66
|
+
/// Form control border width when in error state
|
67
|
+
///
|
68
|
+
/// @type Number
|
69
|
+
/// @access public
|
70
|
+
|
71
|
+
$govuk-border-width-form-element-error: 4px !default;
|
72
|
+
|
73
|
+
/// Form group border width when in error state
|
74
|
+
///
|
75
|
+
/// @type Number
|
76
|
+
/// @access public
|
77
|
+
|
78
|
+
$govuk-border-width-form-group-error: $govuk-border-width !default;
|
79
|
+
|
80
|
+
/// Border width of focus outline
|
81
|
+
///
|
82
|
+
/// @type Number
|
83
|
+
/// @access public
|
84
|
+
|
85
|
+
$govuk-focus-width: 3px !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;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/typography
|
3
|
+
////
|
4
|
+
|
5
|
+
/// List of font families to use if using NTA (the default font 'stack' for
|
6
|
+
/// GOV.UK)
|
7
|
+
///
|
8
|
+
/// @type List
|
9
|
+
/// @access public
|
10
|
+
|
11
|
+
$govuk-font-family-nta: "nta", Arial, sans-serif;
|
12
|
+
|
13
|
+
/// List of font families to use if using the 'tabular numbers' subset of NTA
|
14
|
+
/// (the default font 'stack' for GOV.UK)
|
15
|
+
///
|
16
|
+
/// Because ntatabularnumbers only includes the digits 0-10, all other glyphs
|
17
|
+
/// will 'fall-through' the stack to NTA.
|
18
|
+
///
|
19
|
+
/// @type List
|
20
|
+
/// @access public
|
21
|
+
|
22
|
+
$govuk-font-family-nta-tabular: "ntatabularnumbers", $govuk-font-family-nta;
|
@@ -0,0 +1,48 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/typography
|
3
|
+
////
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
// =========================================================
|
8
|
+
// Font families
|
9
|
+
// =========================================================
|
10
|
+
|
11
|
+
/// Font families to use for all typography on screen media
|
12
|
+
///
|
13
|
+
/// @type List
|
14
|
+
/// @access public
|
15
|
+
|
16
|
+
$govuk-font-family: $govuk-font-family-nta !default;
|
17
|
+
|
18
|
+
/// Font families to use when displaying tabular numbers
|
19
|
+
///
|
20
|
+
/// @type List
|
21
|
+
/// @access public
|
22
|
+
|
23
|
+
$govuk-font-family-tabular: $govuk-font-family-nta-tabular !default;
|
24
|
+
|
25
|
+
/// Font families to use for print media
|
26
|
+
///
|
27
|
+
/// @type List
|
28
|
+
/// @access public
|
29
|
+
|
30
|
+
$govuk-font-family-print: sans-serif !default;
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
// =========================================================
|
35
|
+
// Font weights
|
36
|
+
// =========================================================
|
37
|
+
|
38
|
+
/// Font weight for regular typography
|
39
|
+
///
|
40
|
+
/// @type Number
|
41
|
+
/// @access public
|
42
|
+
$govuk-font-weight-regular: 400 !default;
|
43
|
+
|
44
|
+
/// Font weight for bold typography
|
45
|
+
///
|
46
|
+
/// @type Number
|
47
|
+
/// @access public
|
48
|
+
$govuk-font-weight-bold: 700 !default;
|
@@ -0,0 +1,138 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/typography
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Responsive typography font map
|
6
|
+
///
|
7
|
+
/// This is used to generate responsive typography that adapts according to the
|
8
|
+
/// breakpoints.
|
9
|
+
///
|
10
|
+
/// Font size and font weight can be defined for each breakpoint. You can define
|
11
|
+
/// different behaviour on tablet and desktop. The 'null' breakpoint is for
|
12
|
+
/// mobile.
|
13
|
+
///
|
14
|
+
/// You can also specify a separate font size and line height for print media.
|
15
|
+
///
|
16
|
+
/// @type Map
|
17
|
+
///
|
18
|
+
/// @prop {Number} $point.$breakpoint.font-size - Font size for `$point` at `$breakpoint`
|
19
|
+
/// @prop {Number} $point.$breakpoint.line-height - Line height for `$point` at `$breakpoint`
|
20
|
+
/// @prop {Number} $point.print.font-size - Font size for `$point` when printing
|
21
|
+
/// @prop {Number} $point.print.line-height - Line height for `$point` when printing
|
22
|
+
///
|
23
|
+
/// @access public
|
24
|
+
|
25
|
+
$govuk-typography-scale: (
|
26
|
+
80: (
|
27
|
+
null: (
|
28
|
+
font-size: 53px,
|
29
|
+
line-height: 55px
|
30
|
+
),
|
31
|
+
tablet: (
|
32
|
+
font-size: 80px,
|
33
|
+
line-height: 80px
|
34
|
+
),
|
35
|
+
print: (
|
36
|
+
font-size: 53pt,
|
37
|
+
line-height: 1.1
|
38
|
+
)
|
39
|
+
),
|
40
|
+
48: (
|
41
|
+
null: (
|
42
|
+
font-size: 32px,
|
43
|
+
line-height: 35px
|
44
|
+
),
|
45
|
+
tablet: (
|
46
|
+
font-size: 48px,
|
47
|
+
line-height: 50px
|
48
|
+
),
|
49
|
+
print: (
|
50
|
+
font-size: 32pt,
|
51
|
+
line-height: 1.15
|
52
|
+
)
|
53
|
+
),
|
54
|
+
36: (
|
55
|
+
null: (
|
56
|
+
font-size: 24px,
|
57
|
+
line-height: 25px
|
58
|
+
),
|
59
|
+
tablet: (
|
60
|
+
font-size: 36px,
|
61
|
+
line-height: 40px
|
62
|
+
),
|
63
|
+
print: (
|
64
|
+
font-size: 24pt,
|
65
|
+
line-height: 1.05
|
66
|
+
)
|
67
|
+
),
|
68
|
+
27: (
|
69
|
+
null: (
|
70
|
+
font-size: 18px,
|
71
|
+
line-height: 20px
|
72
|
+
),
|
73
|
+
tablet: (
|
74
|
+
font-size: 27px,
|
75
|
+
line-height: 30px
|
76
|
+
),
|
77
|
+
print: (
|
78
|
+
font-size: 18pt,
|
79
|
+
line-height: 1.15
|
80
|
+
)
|
81
|
+
),
|
82
|
+
24: (
|
83
|
+
null: (
|
84
|
+
font-size: 18px,
|
85
|
+
line-height: 20px
|
86
|
+
),
|
87
|
+
tablet: (
|
88
|
+
font-size: 24px,
|
89
|
+
line-height: 30px
|
90
|
+
),
|
91
|
+
print: (
|
92
|
+
font-size: 18pt,
|
93
|
+
line-height: 1.15
|
94
|
+
)
|
95
|
+
),
|
96
|
+
19: (
|
97
|
+
null: (
|
98
|
+
font-size: 16px,
|
99
|
+
line-height: 20px
|
100
|
+
),
|
101
|
+
tablet: (
|
102
|
+
font-size: 19px,
|
103
|
+
line-height: 25px
|
104
|
+
),
|
105
|
+
print: (
|
106
|
+
font-size: 14pt,
|
107
|
+
line-height: 1.15
|
108
|
+
)
|
109
|
+
),
|
110
|
+
16: (
|
111
|
+
null: (
|
112
|
+
font-size: 14px,
|
113
|
+
line-height: 16px
|
114
|
+
),
|
115
|
+
tablet: (
|
116
|
+
font-size: 16px,
|
117
|
+
line-height: 20px
|
118
|
+
),
|
119
|
+
print: (
|
120
|
+
font-size: 14pt,
|
121
|
+
line-height: 1.2
|
122
|
+
)
|
123
|
+
),
|
124
|
+
14: (
|
125
|
+
null: (
|
126
|
+
font-size: 12px,
|
127
|
+
line-height: 15px
|
128
|
+
),
|
129
|
+
tablet: (
|
130
|
+
font-size: 14px,
|
131
|
+
line-height: 20px
|
132
|
+
),
|
133
|
+
print: (
|
134
|
+
font-size: 12pt,
|
135
|
+
line-height: 1.2
|
136
|
+
)
|
137
|
+
)
|
138
|
+
) !default;
|