dxw_govuk_frontend_rails 2.9.0.pre.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +33 -0
- data/.circleci/setup-rubygems.sh +3 -0
- data/.gitignore +9 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +91 -0
- data/Rakefile +50 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/dxw_govuk_frontend_rails.gemspec +27 -0
- data/lib/dxw_govuk_frontend_rails/version.rb +3 -0
- data/lib/dxw_govuk_frontend_rails.rb +12 -0
- data/package-lock.json +13 -0
- data/package.json +26 -0
- data/vendor/assets/fonts/bold-a2452cb66f-v1.woff2 +0 -0
- data/vendor/assets/fonts/bold-f38c792ac2-v1.woff +0 -0
- data/vendor/assets/fonts/bold-fb2676462a-v1.eot +0 -0
- data/vendor/assets/fonts/bold-tabular-357fdfbcc3-v1.eot +0 -0
- data/vendor/assets/fonts/bold-tabular-784c21afb8-v1.woff +0 -0
- data/vendor/assets/fonts/bold-tabular-b89238d840-v1.woff2 +0 -0
- data/vendor/assets/fonts/light-2c037cf7e1-v1.eot +0 -0
- data/vendor/assets/fonts/light-458f8ea81c-v1.woff +0 -0
- data/vendor/assets/fonts/light-f38ad40456-v1.woff2 +0 -0
- data/vendor/assets/fonts/light-tabular-498ea8ffe2-v1.eot +0 -0
- data/vendor/assets/fonts/light-tabular-62cc6f0a28-v1.woff +0 -0
- data/vendor/assets/fonts/light-tabular-851b10ccdd-v1.woff2 +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/images/icon-arrow-left.png +0 -0
- data/vendor/assets/images/icon-important.png +0 -0
- data/vendor/assets/images/icon-pointer-2x.png +0 -0
- data/vendor/assets/images/icon-pointer.png +0 -0
- data/vendor/assets/javascripts/govuk_frontend_rails.js +2358 -0
- data/vendor/assets/stylesheets/all-ie8.scss +6 -0
- data/vendor/assets/stylesheets/all.scss +11 -0
- data/vendor/assets/stylesheets/components/_all.scss +29 -0
- data/vendor/assets/stylesheets/components/accordion/_accordion.scss +188 -0
- data/vendor/assets/stylesheets/components/back-link/_back-link.scss +54 -0
- data/vendor/assets/stylesheets/components/breadcrumbs/_breadcrumbs.scss +119 -0
- data/vendor/assets/stylesheets/components/button/_button.scss +180 -0
- data/vendor/assets/stylesheets/components/character-count/_character-count.scss +31 -0
- data/vendor/assets/stylesheets/components/checkboxes/_checkboxes.scss +161 -0
- data/vendor/assets/stylesheets/components/date-input/_date-input.scss +30 -0
- data/vendor/assets/stylesheets/components/details/_details.scss +89 -0
- data/vendor/assets/stylesheets/components/error-message/_error-message.scss +15 -0
- data/vendor/assets/stylesheets/components/error-summary/_error-summary.scss +72 -0
- data/vendor/assets/stylesheets/components/fieldset/_fieldset.scss +60 -0
- data/vendor/assets/stylesheets/components/file-upload/_file-upload.scss +19 -0
- data/vendor/assets/stylesheets/components/footer/_footer.scss +233 -0
- data/vendor/assets/stylesheets/components/header/_header.scss +304 -0
- data/vendor/assets/stylesheets/components/hint/_hint.scss +50 -0
- data/vendor/assets/stylesheets/components/input/_input.scss +77 -0
- data/vendor/assets/stylesheets/components/inset-text/_inset-text.scss +28 -0
- data/vendor/assets/stylesheets/components/label/_label.scss +45 -0
- data/vendor/assets/stylesheets/components/panel/_panel.scss +44 -0
- data/vendor/assets/stylesheets/components/phase-banner/_phase-banner.scss +31 -0
- data/vendor/assets/stylesheets/components/radios/_radios.scss +187 -0
- data/vendor/assets/stylesheets/components/select/_select.scss +32 -0
- data/vendor/assets/stylesheets/components/skip-link/_skip-link.scss +26 -0
- data/vendor/assets/stylesheets/components/summary-list/_summary-list.scss +123 -0
- data/vendor/assets/stylesheets/components/table/_table.scss +53 -0
- data/vendor/assets/stylesheets/components/tabs/_tabs.scss +130 -0
- data/vendor/assets/stylesheets/components/tag/_tag.scss +33 -0
- data/vendor/assets/stylesheets/components/textarea/_textarea.scss +32 -0
- data/vendor/assets/stylesheets/components/warning-text/_warning-text.scss +59 -0
- data/vendor/assets/stylesheets/core/_all.scss +6 -0
- data/vendor/assets/stylesheets/core/_global-styles.scss +23 -0
- data/vendor/assets/stylesheets/core/_links.scss +31 -0
- data/vendor/assets/stylesheets/core/_lists.scss +58 -0
- data/vendor/assets/stylesheets/core/_section-break.scss +60 -0
- data/vendor/assets/stylesheets/core/_template.scss +35 -0
- data/vendor/assets/stylesheets/core/_typography.scss +190 -0
- data/vendor/assets/stylesheets/govuk-frontend-rails.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 +51 -0
- data/vendor/assets/stylesheets/helpers/_device-pixels.scss +38 -0
- data/vendor/assets/stylesheets/helpers/_focusable.scss +34 -0
- data/vendor/assets/stylesheets/helpers/_font-faces.scss +67 -0
- data/vendor/assets/stylesheets/helpers/_grid.scss +107 -0
- data/vendor/assets/stylesheets/helpers/_links.scss +200 -0
- data/vendor/assets/stylesheets/helpers/_media-queries.scss +95 -0
- data/vendor/assets/stylesheets/helpers/_shape-arrow.scss +80 -0
- data/vendor/assets/stylesheets/helpers/_spacing.scss +152 -0
- data/vendor/assets/stylesheets/helpers/_typography.scss +188 -0
- data/vendor/assets/stylesheets/helpers/_visually-hidden.scss +82 -0
- data/vendor/assets/stylesheets/objects/_all.scss +4 -0
- data/vendor/assets/stylesheets/objects/_form-group.scss +25 -0
- data/vendor/assets/stylesheets/objects/_grid.scss +27 -0
- data/vendor/assets/stylesheets/objects/_main-wrapper.scss +53 -0
- data/vendor/assets/stylesheets/objects/_width-container.scss +63 -0
- data/vendor/assets/stylesheets/overrides/_all.scss +4 -0
- data/vendor/assets/stylesheets/overrides/_display.scss +18 -0
- data/vendor/assets/stylesheets/overrides/_spacing.scss +62 -0
- data/vendor/assets/stylesheets/overrides/_typography.scss +25 -0
- data/vendor/assets/stylesheets/overrides/_width.scss +49 -0
- data/vendor/assets/stylesheets/settings/_all.scss +21 -0
- data/vendor/assets/stylesheets/settings/_assets.scss +82 -0
- data/vendor/assets/stylesheets/settings/_colours-applied.scss +140 -0
- data/vendor/assets/stylesheets/settings/_colours-organisations.scss +136 -0
- data/vendor/assets/stylesheets/settings/_colours-palette.scss +37 -0
- data/vendor/assets/stylesheets/settings/_compatibility.scss +51 -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/_measurements.scss +99 -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 +22 -0
- data/vendor/assets/stylesheets/settings/_typography-font.scss +60 -0
- data/vendor/assets/stylesheets/settings/_typography-responsive.scss +180 -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 +28 -0
- data/vendor/assets/stylesheets/tools/_ie8.scss +51 -0
- data/vendor/assets/stylesheets/tools/_iff.scss +15 -0
- data/vendor/assets/stylesheets/tools/_image-url.scss +28 -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 +10 -0
- data/vendor/assets/stylesheets/vendor/_sass-mq.scss +351 -0
- metadata +204 -0
@@ -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,140 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/colours
|
3
|
+
////
|
4
|
+
|
5
|
+
@import "../helpers/colour";
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
// =========================================================
|
10
|
+
// Generic
|
11
|
+
// =========================================================
|
12
|
+
|
13
|
+
/// Brand colour
|
14
|
+
///
|
15
|
+
/// @type Colour
|
16
|
+
/// @access public
|
17
|
+
|
18
|
+
$govuk-brand-colour: govuk-colour("blue") !default;
|
19
|
+
|
20
|
+
/// Text colour
|
21
|
+
///
|
22
|
+
/// @type Colour
|
23
|
+
/// @access public
|
24
|
+
|
25
|
+
$govuk-text-colour: govuk-colour("black") !default;
|
26
|
+
|
27
|
+
/// Canvas background colour
|
28
|
+
///
|
29
|
+
/// Used by the footer component and template to give the illusion of a long footer.
|
30
|
+
///
|
31
|
+
/// @type Colour
|
32
|
+
/// @access public
|
33
|
+
|
34
|
+
$govuk-canvas-background-colour: govuk-colour("grey-3") !default;
|
35
|
+
|
36
|
+
/// Body background colour
|
37
|
+
///
|
38
|
+
/// @type Colour
|
39
|
+
/// @access public
|
40
|
+
|
41
|
+
$govuk-body-background-colour: govuk-colour("white") !default;
|
42
|
+
|
43
|
+
/// Text colour for print media
|
44
|
+
///
|
45
|
+
/// Use 'true black' to avoid printers using colour ink to print body text
|
46
|
+
///
|
47
|
+
/// @type Colour
|
48
|
+
/// @access public
|
49
|
+
|
50
|
+
$govuk-print-text-colour: #000000 !default;
|
51
|
+
|
52
|
+
/// Secondary text colour
|
53
|
+
///
|
54
|
+
/// Used for 'muted' text, help text, etc.
|
55
|
+
///
|
56
|
+
/// @type Colour
|
57
|
+
/// @access public
|
58
|
+
|
59
|
+
$govuk-secondary-text-colour: govuk-colour("grey-1") !default;
|
60
|
+
|
61
|
+
/// Focus colour
|
62
|
+
///
|
63
|
+
/// Used for outline (and background, where appropriate) when interactive
|
64
|
+
/// elements (links, form controls) have keyboard focus.
|
65
|
+
///
|
66
|
+
/// @type Colour
|
67
|
+
/// @access public
|
68
|
+
|
69
|
+
$govuk-focus-colour: govuk-colour("yellow") !default;
|
70
|
+
|
71
|
+
/// Focused text colour
|
72
|
+
///
|
73
|
+
/// Ensure that the contrast between the text and background colour passes
|
74
|
+
/// WCAG Level AA contrast requirements.
|
75
|
+
///
|
76
|
+
/// @type Colour
|
77
|
+
/// @access public
|
78
|
+
|
79
|
+
$govuk-focus-text-colour: govuk-colour("black") !default;
|
80
|
+
|
81
|
+
/// Error colour
|
82
|
+
///
|
83
|
+
/// Used to highlight error messages and form controls in an error state
|
84
|
+
///
|
85
|
+
/// @type Colour
|
86
|
+
/// @access public
|
87
|
+
|
88
|
+
$govuk-error-colour: govuk-colour("red") !default;
|
89
|
+
|
90
|
+
/// Border colour
|
91
|
+
///
|
92
|
+
/// Used for borders, separators, rules, keylines etc.
|
93
|
+
///
|
94
|
+
/// @type Colour
|
95
|
+
/// @access public
|
96
|
+
|
97
|
+
$govuk-border-colour: govuk-colour("grey-2") !default;
|
98
|
+
|
99
|
+
/// Input border colour
|
100
|
+
///
|
101
|
+
/// Used for form inputs and controls
|
102
|
+
///
|
103
|
+
/// @type Colour
|
104
|
+
/// @access public
|
105
|
+
|
106
|
+
$govuk-input-border-colour: govuk-colour("black") !default;
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
// =============================================================================
|
111
|
+
// Links
|
112
|
+
// =============================================================================
|
113
|
+
|
114
|
+
/// Link colour
|
115
|
+
///
|
116
|
+
/// @type Colour
|
117
|
+
/// @access public
|
118
|
+
|
119
|
+
$govuk-link-colour: govuk-colour("blue") !default;
|
120
|
+
|
121
|
+
/// Visited link colour
|
122
|
+
///
|
123
|
+
/// @type Colour
|
124
|
+
/// @access public
|
125
|
+
|
126
|
+
$govuk-link-visited-colour: #4c2c92 !default;
|
127
|
+
|
128
|
+
/// Link hover colour
|
129
|
+
///
|
130
|
+
/// @type Colour
|
131
|
+
/// @access public
|
132
|
+
|
133
|
+
$govuk-link-hover-colour: govuk-colour("light-blue") !default;
|
134
|
+
|
135
|
+
/// Active link colour
|
136
|
+
///
|
137
|
+
/// @type Colour
|
138
|
+
/// @access public
|
139
|
+
|
140
|
+
$govuk-link-active-colour: govuk-colour("light-blue") !default;
|
@@ -0,0 +1,136 @@
|
|
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: #00857e,
|
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-office": (
|
74
|
+
colour: #003e74,
|
75
|
+
colour-websafe: #406e97
|
76
|
+
),
|
77
|
+
"government-equalities-office": (
|
78
|
+
colour: #9325b2
|
79
|
+
),
|
80
|
+
"hm-government": (
|
81
|
+
colour: #0076c0,
|
82
|
+
colour-websafe: #347da4
|
83
|
+
),
|
84
|
+
"hm-revenue-customs": (
|
85
|
+
colour: #009390,
|
86
|
+
colour-websafe: #008670
|
87
|
+
),
|
88
|
+
"hm-treasury": (
|
89
|
+
colour: #af292e,
|
90
|
+
colour-websafe: #832322
|
91
|
+
),
|
92
|
+
"home-office": (
|
93
|
+
colour: #9325b2,
|
94
|
+
colour-websafe: #9440b2
|
95
|
+
),
|
96
|
+
"ministry-of-defence": (
|
97
|
+
colour: #4d2942,
|
98
|
+
colour-websafe: #5a5c92
|
99
|
+
),
|
100
|
+
"ministry-of-justice": (
|
101
|
+
colour: #231f20,
|
102
|
+
colour-websafe: #5a5c92
|
103
|
+
),
|
104
|
+
"northern-ireland-office": (
|
105
|
+
colour: #002663,
|
106
|
+
colour-websafe: #3e598c
|
107
|
+
),
|
108
|
+
"office-of-the-advocate-general-for-scotland": (
|
109
|
+
colour: #002663,
|
110
|
+
colour-websafe: #005ea5
|
111
|
+
),
|
112
|
+
"office-of-the-leader-of-the-house-of-commons": (
|
113
|
+
colour: #317023,
|
114
|
+
colour-websafe: #005f8f
|
115
|
+
),
|
116
|
+
"office-of-the-leader-of-the-house-of-lords": (
|
117
|
+
colour: #9c132e,
|
118
|
+
colour-websafe: #c2395d
|
119
|
+
),
|
120
|
+
"scotland-office": (
|
121
|
+
colour: #002663,
|
122
|
+
colour-websafe: #405c8a
|
123
|
+
),
|
124
|
+
"uk-export-finance": (
|
125
|
+
colour: #005747,
|
126
|
+
colour-websafe: #005ea5
|
127
|
+
),
|
128
|
+
"uk-trade-investment": (
|
129
|
+
colour: #c80651,
|
130
|
+
colour-websafe: #005ea5
|
131
|
+
),
|
132
|
+
"wales-office": (
|
133
|
+
colour: #a33038,
|
134
|
+
colour-websafe: #7a242a
|
135
|
+
)
|
136
|
+
) !default;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
////
|
2
|
+
/// @group settings/colours
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Colour palette
|
6
|
+
///
|
7
|
+
/// @type Map
|
8
|
+
///
|
9
|
+
/// @prop $colour - Representation for the given $colour, where $colour is the
|
10
|
+
/// friendly name for the colour (e.g. "red": #ff0000);
|
11
|
+
///
|
12
|
+
/// @access public
|
13
|
+
|
14
|
+
$govuk-colours: (
|
15
|
+
"purple": #2e358b,
|
16
|
+
"light-purple": #6f72af,
|
17
|
+
"bright-purple": #912b88,
|
18
|
+
"pink": #d53880,
|
19
|
+
"light-pink": #f499be,
|
20
|
+
"red": #b10e1e,
|
21
|
+
"bright-red": #df3034,
|
22
|
+
"orange": #f47738,
|
23
|
+
"brown": #b58840,
|
24
|
+
"yellow": #ffbf47,
|
25
|
+
"light-green": #85994b,
|
26
|
+
"green": #006435,
|
27
|
+
"turquoise": #28a197,
|
28
|
+
"light-blue": #2b8cc4,
|
29
|
+
"blue": #005ea5,
|
30
|
+
|
31
|
+
"black": #0b0c0c,
|
32
|
+
"grey-1": #6f777b,
|
33
|
+
"grey-2": #bfc1c3,
|
34
|
+
"grey-3": #dee0e2,
|
35
|
+
"grey-4": #f8f8f8,
|
36
|
+
"white": #ffffff
|
37
|
+
) !default;
|
@@ -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: false !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: false !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: false !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,99 @@
|
|
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
|
+
/// Map of grid column widths
|
19
|
+
///
|
20
|
+
/// @type Map
|
21
|
+
/// @access public
|
22
|
+
|
23
|
+
$govuk-grid-widths: (
|
24
|
+
one-quarter: 25%,
|
25
|
+
one-third: 33.3333%,
|
26
|
+
one-half: 50%,
|
27
|
+
two-thirds: 66.6666%,
|
28
|
+
three-quarters: 75%,
|
29
|
+
full: 100%
|
30
|
+
) !default;
|
31
|
+
|
32
|
+
/// Width of gutter between grid columns
|
33
|
+
///
|
34
|
+
/// @type Number
|
35
|
+
/// @access public
|
36
|
+
|
37
|
+
$govuk-gutter: 30px !default;
|
38
|
+
|
39
|
+
/// Width of half the gutter between grid columns
|
40
|
+
///
|
41
|
+
/// @type Number
|
42
|
+
/// @access public
|
43
|
+
|
44
|
+
$govuk-gutter-half: $govuk-gutter / 2;
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
// =========================================================
|
49
|
+
// Borders
|
50
|
+
// =========================================================
|
51
|
+
|
52
|
+
/// Standard border width
|
53
|
+
///
|
54
|
+
/// @type Number
|
55
|
+
/// @access public
|
56
|
+
|
57
|
+
$govuk-border-width: 5px !default;
|
58
|
+
|
59
|
+
/// Wide border width
|
60
|
+
///
|
61
|
+
/// @type Number
|
62
|
+
/// @access public
|
63
|
+
|
64
|
+
$govuk-border-width-wide: 10px !default;
|
65
|
+
|
66
|
+
/// Border width on mobile
|
67
|
+
///
|
68
|
+
/// @type Number
|
69
|
+
/// @access public
|
70
|
+
|
71
|
+
$govuk-border-width-mobile: 4px !default;
|
72
|
+
|
73
|
+
/// Form control border width
|
74
|
+
///
|
75
|
+
/// @type Number
|
76
|
+
/// @access public
|
77
|
+
|
78
|
+
$govuk-border-width-form-element: 2px !default;
|
79
|
+
|
80
|
+
/// Form control border width when in error state
|
81
|
+
///
|
82
|
+
/// @type Number
|
83
|
+
/// @access public
|
84
|
+
|
85
|
+
$govuk-border-width-form-element-error: 4px !default;
|
86
|
+
|
87
|
+
/// Form group border width when in error state
|
88
|
+
///
|
89
|
+
/// @type Number
|
90
|
+
/// @access public
|
91
|
+
|
92
|
+
$govuk-border-width-form-group-error: $govuk-border-width !default;
|
93
|
+
|
94
|
+
/// Border width of focus outline
|
95
|
+
///
|
96
|
+
/// @type Number
|
97
|
+
/// @access public
|
98
|
+
|
99
|
+
$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;
|