govuk_publishing_components 21.59.0 → 21.61.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -6
- data/app/assets/javascripts/component_guide/accessibility-test.js +21 -21
- data/app/assets/javascripts/component_guide/filter-components.js +19 -19
- data/app/assets/javascripts/component_guide/visual-regression.js +38 -37
- data/app/assets/javascripts/govuk_publishing_components/components/checkboxes.js +102 -73
- data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +4 -4
- data/app/assets/javascripts/govuk_publishing_components/ie.js +2 -0
- data/app/assets/javascripts/govuk_publishing_components/lib/auto-track-event.js +31 -0
- data/app/assets/javascripts/govuk_publishing_components/lib/cookie-functions.js +24 -24
- data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +17 -17
- data/app/assets/javascripts/govuk_publishing_components/vendor/html5shiv-printshiv.js +4 -0
- data/app/assets/javascripts/govuk_publishing_components/vendor/json2.js +487 -0
- data/app/assets/stylesheets/component_guide/application.scss +19 -15
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +0 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +1 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +4 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +3 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +5 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +8 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +87 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +4 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +46 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +0 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +1 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +8 -12
- data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +21 -24
- data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +4 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak.scss +2 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav-header.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss +2 -10
- data/app/controllers/govuk_publishing_components/audit_controller.rb +2 -2
- data/app/controllers/govuk_publishing_components/component_guide_controller.rb +2 -2
- data/app/models/govuk_publishing_components/audit_applications.rb +45 -27
- data/app/models/govuk_publishing_components/audit_comparer.rb +77 -51
- data/app/models/govuk_publishing_components/audit_components.rb +25 -6
- data/app/models/govuk_publishing_components/component_example.rb +4 -0
- data/app/views/govuk_publishing_components/audit/show.html.erb +227 -190
- data/app/views/govuk_publishing_components/component_guide/component_doc/_component.html.erb +1 -0
- data/app/views/govuk_publishing_components/component_guide/index.html.erb +3 -1
- data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_image_card.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +32 -21
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +76 -0
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +39 -51
- data/app/views/govuk_publishing_components/components/_machine_readable_metadata.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_radio.html.erb +13 -5
- data/app/views/govuk_publishing_components/components/_search.html.erb +10 -5
- data/app/views/govuk_publishing_components/components/_share_links.html.erb +9 -9
- data/app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/docs/checkboxes.yml +4 -0
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +45 -0
- data/app/views/govuk_publishing_components/components/docs/heading.yml +6 -3
- data/app/views/govuk_publishing_components/components/docs/image_card.yml +13 -1
- data/app/views/govuk_publishing_components/components/docs/layout_footer.yml +17 -0
- data/app/views/govuk_publishing_components/components/docs/layout_for_admin.yml +5 -1
- data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +29 -0
- data/app/views/govuk_publishing_components/components/docs/layout_header.yml +34 -0
- data/app/views/govuk_publishing_components/components/docs/radio.yml +4 -0
- data/app/views/govuk_publishing_components/components/docs/search.yml +6 -0
- data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +23 -0
- data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +17 -0
- data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +9 -0
- data/config/initializers/assets.rb +8 -0
- data/lib/govuk_publishing_components.rb +1 -0
- data/lib/govuk_publishing_components/presenters/checkboxes_helper.rb +15 -7
- data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb +1 -0
- data/lib/govuk_publishing_components/presenters/heading_helper.rb +21 -1
- data/lib/govuk_publishing_components/presenters/image_card_helper.rb +3 -2
- data/lib/govuk_publishing_components/presenters/public_layout_helper.rb +380 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/package.json +145 -220
- data/node_modules/govuk-frontend/govuk/all.js +160 -57
- data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +0 -4
- data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +16 -8
- data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +6 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/template.njk +1 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +6 -5
- data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +68 -21
- data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +0 -27
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +0 -3
- data/node_modules/govuk-frontend/govuk/components/footer/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/components/header/template.njk +1 -1
- data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +2 -2
- data/node_modules/govuk-frontend/govuk/components/hint/template.njk +2 -2
- data/node_modules/govuk-frontend/govuk/components/input/_index.scss +0 -3
- data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +6 -0
- data/node_modules/govuk-frontend/govuk/components/input/template.njk +1 -0
- data/node_modules/govuk-frontend/govuk/components/radios/radios.js +76 -28
- data/node_modules/govuk-frontend/govuk/components/select/_index.scss +0 -3
- data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +1 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +0 -3
- data/node_modules/govuk-frontend/govuk/components/textarea/macro-options.json +6 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/template.njk +1 -0
- data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +4 -2
- data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +1 -1
- data/node_modules/govuk-frontend/govuk/settings/_colours-applied.scss +2 -2
- data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss +33 -33
- data/node_modules/govuk-frontend/govuk/settings/_measurements.scss +4 -1
- data/node_modules/govuk-frontend/package.json +14 -81
- data/node_modules/jquery/package.json +44 -116
- metadata +34 -66
- data/Rakefile +0 -37
@@ -125,6 +125,10 @@ $gem-guide-border-width: 1px;
|
|
125
125
|
background-color: govuk-colour("blue");
|
126
126
|
}
|
127
127
|
|
128
|
+
&.black-background {
|
129
|
+
background-color: govuk-colour("black");
|
130
|
+
}
|
131
|
+
|
128
132
|
&.component-output {
|
129
133
|
padding: 0;
|
130
134
|
}
|
@@ -214,10 +218,10 @@ $gem-guide-border-width: 1px;
|
|
214
218
|
@include govuk-text-colour;
|
215
219
|
@include govuk-font($size: 24, $weight: bold);
|
216
220
|
margin: $govuk-gutter-half 0;
|
221
|
+
}
|
217
222
|
|
218
|
-
|
219
|
-
|
220
|
-
}
|
223
|
+
.example-title small {
|
224
|
+
@include govuk-font($size: 16, $weight: bold);
|
221
225
|
}
|
222
226
|
}
|
223
227
|
}
|
@@ -232,16 +236,14 @@ html {
|
|
232
236
|
}
|
233
237
|
|
234
238
|
.hide-header-and-footer {
|
235
|
-
//
|
236
|
-
// sass-lint:disable no-ids
|
239
|
+
// stylelint-disable selector-max-id
|
237
240
|
#global-header,
|
238
241
|
#global-header-bar,
|
239
242
|
#global-breadcrumb,
|
240
243
|
#footer {
|
241
244
|
display: none;
|
242
245
|
}
|
243
|
-
//
|
244
|
-
// scss-lint:enable IdSelector
|
246
|
+
// stylelint-enable selector-max-id
|
245
247
|
}
|
246
248
|
|
247
249
|
.component-guide-preview-page {
|
@@ -261,14 +263,12 @@ html {
|
|
261
263
|
}
|
262
264
|
|
263
265
|
// Hide survey banner
|
264
|
-
//
|
265
|
-
// sass-lint:disable no-ids
|
266
|
+
// stylelint-disable selector-max-id
|
266
267
|
#user-satisfaction-survey-container,
|
267
268
|
#global-cookie-message {
|
268
269
|
display: none;
|
269
270
|
}
|
270
|
-
//
|
271
|
-
// scss-lint:enable IdSelector
|
271
|
+
// stylelint-enable selector-max-id
|
272
272
|
|
273
273
|
// Rouge syntax highlighting
|
274
274
|
// Based on https://github.com/alphagov/tech-docs-template/blob/master/template/source/stylesheets/palette/_syntax-highlighting.scss
|
@@ -294,7 +294,6 @@ $code-0f: #c92424; // Deprecated, Opening/Closing Embedded Language Tags e.g. <?
|
|
294
294
|
$code-insert-bg: #def8ca;
|
295
295
|
$code-delete-bg: #fadddd;
|
296
296
|
|
297
|
-
// sass-lint:disable no-empty-rulesets
|
298
297
|
.component-highlight {
|
299
298
|
|
300
299
|
// Map Rouge / Pygments Tokens to work with 'Base 16' themes
|
@@ -391,7 +390,7 @@ $code-delete-bg: #fadddd;
|
|
391
390
|
// Literals
|
392
391
|
//
|
393
392
|
|
394
|
-
.l
|
393
|
+
.l { // Literal
|
395
394
|
color: $code-09;
|
396
395
|
}
|
397
396
|
|
@@ -491,10 +490,9 @@ $code-delete-bg: #fadddd;
|
|
491
490
|
font-weight: bold;
|
492
491
|
}
|
493
492
|
}
|
494
|
-
// sass-lint:enable no-empty-rulesets
|
495
493
|
|
496
494
|
// Specific for this Gem, optimized for erb render statements
|
497
|
-
.component-highlight {
|
495
|
+
.component-highlight { // stylelint-disable-line no-duplicate-selectors
|
498
496
|
.s2 {
|
499
497
|
color: $code-08;
|
500
498
|
}
|
@@ -503,3 +501,9 @@ $code-delete-bg: #fadddd;
|
|
503
501
|
color: $code-09;
|
504
502
|
}
|
505
503
|
}
|
504
|
+
|
505
|
+
.sticky-table-header {
|
506
|
+
position: sticky;
|
507
|
+
top: 0;
|
508
|
+
background: govuk-colour("white");
|
509
|
+
}
|
@@ -44,6 +44,7 @@
|
|
44
44
|
@import "components/label";
|
45
45
|
@import "components/layout-footer";
|
46
46
|
@import "components/layout-for-admin";
|
47
|
+
@import "components/layout-for-public";
|
47
48
|
@import "components/layout-header";
|
48
49
|
@import "components/lead-paragraph";
|
49
50
|
@import "components/metadata";
|
@@ -6,10 +6,8 @@
|
|
6
6
|
display: table-cell;
|
7
7
|
width: 50px;
|
8
8
|
height: 45px;
|
9
|
-
// sass-lint:disable no-duplicate-properties
|
10
9
|
background: image-url("govuk_publishing_components/action-link-arrow.png");
|
11
10
|
background: image-url("govuk_publishing_components/action-link-arrow.svg"), linear-gradient(transparent, transparent);
|
12
|
-
// sass-lint:enable no-duplicate-properties
|
13
11
|
background-repeat: no-repeat;
|
14
12
|
background-position: 0 50%;
|
15
13
|
background-size: 37px auto;
|
@@ -103,10 +101,8 @@
|
|
103
101
|
&:before {
|
104
102
|
width: 30px;
|
105
103
|
height: 30px;
|
106
|
-
// sass-lint:disable no-duplicate-properties
|
107
104
|
background: image-url("govuk_publishing_components/action-link-arrow--simple.png");
|
108
105
|
background: image-url("govuk_publishing_components/action-link-arrow--simple.svg"), linear-gradient(transparent, transparent);
|
109
|
-
// sass-lint:enable no-duplicate-properties
|
110
106
|
background-repeat: no-repeat;
|
111
107
|
background-size: 25px auto;
|
112
108
|
background-position: 0 2px;
|
@@ -119,10 +115,8 @@
|
|
119
115
|
|
120
116
|
.gem-c-action-link--dark-icon {
|
121
117
|
&:before {
|
122
|
-
// sass-lint:disable no-duplicate-properties
|
123
118
|
background: image-url("govuk_publishing_components/action-link-arrow--dark.png");
|
124
119
|
background: image-url("govuk_publishing_components/action-link-arrow--dark.svg"), linear-gradient(transparent, transparent);
|
125
|
-
// sass-lint:enable no-duplicate-properties
|
126
120
|
}
|
127
121
|
}
|
128
122
|
|
@@ -151,10 +145,8 @@
|
|
151
145
|
&:before {
|
152
146
|
width: 80px;
|
153
147
|
height: 70px;
|
154
|
-
// sass-lint:disable no-duplicate-properties
|
155
148
|
background: image-url("govuk_publishing_components/action-link--nhs.png");
|
156
149
|
background: image-url("govuk_publishing_components/action-link--nhs.svg"), linear-gradient(transparent, transparent);
|
157
|
-
// sass-lint:enable no-duplicate-properties
|
158
150
|
background-repeat: no-repeat;
|
159
151
|
background-size: 85% auto;
|
160
152
|
background-position: 0 50%;
|
@@ -27,7 +27,6 @@ $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
|
|
27
27
|
}
|
28
28
|
|
29
29
|
.gem-c-cookie-banner__button {
|
30
|
-
|
31
30
|
&.govuk-grid-column-one-half-from-desktop {
|
32
31
|
padding: 0;
|
33
32
|
}
|
@@ -40,7 +39,6 @@ $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
|
|
40
39
|
@include govuk-media-query($until: desktop) {
|
41
40
|
margin-bottom: govuk-spacing(4);
|
42
41
|
}
|
43
|
-
|
44
42
|
}
|
45
43
|
}
|
46
44
|
|
@@ -53,13 +51,11 @@ $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
|
|
53
51
|
display: inline-block;
|
54
52
|
}
|
55
53
|
|
56
|
-
|
57
54
|
.gem-c-cookie-banner__confirmation {
|
58
55
|
display: none;
|
59
56
|
position: relative;
|
60
57
|
padding: govuk-spacing(1);
|
61
58
|
|
62
|
-
|
63
59
|
// This element is focused using JavaScript so that it's being read out by screen readers
|
64
60
|
// for this reason we don't want to show the default outline or emphasise it visually using `govuk-focused-text`
|
65
61
|
&:focus {
|
@@ -126,8 +122,7 @@ $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
|
|
126
122
|
}
|
127
123
|
|
128
124
|
// Override the styles from govuk_template
|
129
|
-
//
|
130
|
-
// sass-lint:disable no-ids
|
125
|
+
// stylelint-disable selector-max-id
|
131
126
|
.gem-c-cookie-banner#global-cookie-message {
|
132
127
|
background-color: $govuk-cookie-banner-background;
|
133
128
|
padding: govuk-spacing(4) 0;
|
@@ -155,5 +150,3 @@ $govuk-cookie-banner-background: govuk-colour("light-grey", "grey-4");
|
|
155
150
|
}
|
156
151
|
}
|
157
152
|
}
|
158
|
-
// sass-lint:enable no-ids
|
159
|
-
// scss-lint:enable IdSelector
|
data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
// stylelint-disable max-nesting-depth
|
2
|
+
|
1
3
|
// Override govspeak styles with HTML publication specific ones
|
2
4
|
.gem-c-govspeak-html-publication {
|
3
5
|
margin-bottom: govuk-spacing(6) * 1.5;
|
@@ -59,12 +61,10 @@
|
|
59
61
|
}
|
60
62
|
}
|
61
63
|
|
62
|
-
//
|
63
|
-
// sass-lint:disable no-qualifying-elements
|
64
|
+
// stylelint-disable selector-no-qualifying-type
|
64
65
|
// this class will only be for tables and is to distinguish from a bare `table`
|
65
66
|
// the row classes below should not be applied to anything else but `tr`s
|
66
67
|
table.financial-data {
|
67
|
-
|
68
68
|
.numeric {
|
69
69
|
text-align: right;
|
70
70
|
@include govuk-font(14, $weight: regular, $tabular: true);
|
@@ -134,7 +134,6 @@
|
|
134
134
|
background-color: govuk-colour("light-grey", $legacy: "grey-3");
|
135
135
|
}
|
136
136
|
}
|
137
|
-
//
|
138
|
-
// scss-lint:enable QualifyingElement
|
137
|
+
// stylelint-enable selector-no-qualifying-type
|
139
138
|
}
|
140
139
|
}
|
@@ -1,15 +1,10 @@
|
|
1
1
|
.gem-c-heading {
|
2
|
-
@include govuk-text-colour;
|
3
|
-
@include govuk-font(27, $weight: bold);
|
4
2
|
margin: 0;
|
5
3
|
}
|
6
4
|
|
7
|
-
.gem-c-heading--font-size-
|
8
|
-
@include govuk-
|
9
|
-
|
10
|
-
|
11
|
-
.gem-c-heading--font-size-19 {
|
12
|
-
@include govuk-font(19, $weight: bold);
|
5
|
+
.gem-c-heading--font-size-27 {
|
6
|
+
@include govuk-text-colour;
|
7
|
+
@include govuk-font(27, $weight: bold);
|
13
8
|
}
|
14
9
|
|
15
10
|
// special case for publications and consultations pages
|
@@ -11,16 +11,13 @@
|
|
11
11
|
color: govuk-colour("white");
|
12
12
|
}
|
13
13
|
|
14
|
-
|
15
|
-
.gem-c-inverse-header {
|
14
|
+
.gem-c-inverse-header .gem-c-inverse-header__supplement,
|
15
|
+
.gem-c-inverse-header .publication-header__last-changed {
|
16
16
|
// This publication-header class is injected on publication pages, really
|
17
17
|
// it should be a component class or be a component in it's own right.
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
color: govuk-colour("white");
|
22
|
-
margin: 0;
|
23
|
-
}
|
18
|
+
@include govuk-font($size: 16, $line-height: 1.5);
|
19
|
+
color: govuk-colour("white");
|
20
|
+
margin: 0;
|
24
21
|
}
|
25
22
|
|
26
23
|
.gem-c-inverse-header--full-width {
|
@@ -1,3 +1,5 @@
|
|
1
|
+
@import "govuk_publishing_components/components/search";
|
2
|
+
@import "govuk_publishing_components/components/skip-link";
|
1
3
|
@import "govuk/components/header/header";
|
2
4
|
@import "govuk/components/tag/tag";
|
3
5
|
|
@@ -18,8 +20,80 @@
|
|
18
20
|
border-bottom-color: govuk-colour("dark-grey", $legacy: "grey-1");
|
19
21
|
}
|
20
22
|
|
23
|
+
.gem-c-layout-header--no-bottom-border,
|
24
|
+
.gem-c-layout-header--no-bottom-border .govuk-header__container {
|
25
|
+
margin-bottom: 0;
|
26
|
+
border-bottom: 0;
|
27
|
+
|
28
|
+
@include govuk-media-query($until: tablet) {
|
29
|
+
padding-bottom: govuk-spacing(1);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.gem-c-layout-header--search-left {
|
34
|
+
.gem-c-header__menu-button {
|
35
|
+
margin-top: - govuk-spacing(7);
|
36
|
+
left: 0;
|
37
|
+
}
|
38
|
+
|
39
|
+
.gem-c-header__nav-wrapper {
|
40
|
+
position: relative;
|
41
|
+
padding-left: 0;
|
42
|
+
}
|
43
|
+
|
44
|
+
.govuk-header__navigation--end {
|
45
|
+
padding-top: 0;
|
46
|
+
text-align: left;
|
47
|
+
}
|
48
|
+
|
49
|
+
.gem-c-layout-header__search {
|
50
|
+
margin-bottom: govuk-spacing(2);
|
51
|
+
padding-bottom: govuk-spacing(5);
|
52
|
+
}
|
53
|
+
|
54
|
+
.gem-c-header__content {
|
55
|
+
position: relative;
|
56
|
+
width: 100%;
|
57
|
+
padding-bottom: govuk-spacing(2);
|
58
|
+
}
|
59
|
+
|
60
|
+
@include govuk-media-query($from: desktop) {
|
61
|
+
.gem-c-layout-header__search {
|
62
|
+
padding-bottom: govuk-spacing(1);
|
63
|
+
}
|
64
|
+
|
65
|
+
.govuk-header__navigation-item {
|
66
|
+
padding: 0 0 govuk-spacing(1) 0;
|
67
|
+
}
|
68
|
+
|
69
|
+
.gem-c-header__logo {
|
70
|
+
margin-top: 0;
|
71
|
+
}
|
72
|
+
|
73
|
+
.gem-c-header__content {
|
74
|
+
@include govuk-grid-column(two-thirds);
|
75
|
+
padding-left: govuk-spacing(6);
|
76
|
+
padding-right: govuk-spacing(1);
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
.gem-c-layout-header__logo,
|
82
|
+
.gem-c-layout-header__search {
|
83
|
+
padding: 0;
|
84
|
+
|
85
|
+
@include govuk-media-query($until: "tablet") {
|
86
|
+
margin-bottom: govuk-spacing(3);
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
21
90
|
.gem-c-header__logo {
|
22
|
-
|
91
|
+
margin-top: govuk-spacing(1);
|
92
|
+
margin-bottom: govuk-spacing(3);
|
93
|
+
|
94
|
+
@include govuk-media-query($from: desktop) {
|
95
|
+
white-space: nowrap;
|
96
|
+
}
|
23
97
|
}
|
24
98
|
|
25
99
|
.gem-c-header__content {
|
@@ -68,3 +142,15 @@
|
|
68
142
|
display: none;
|
69
143
|
}
|
70
144
|
}
|
145
|
+
|
146
|
+
.gem-c-layout-header__search-form {
|
147
|
+
display: none;
|
148
|
+
|
149
|
+
&.js-visible {
|
150
|
+
display: block;
|
151
|
+
}
|
152
|
+
|
153
|
+
@include govuk-media-query($from: tablet) {
|
154
|
+
display: block;
|
155
|
+
}
|
156
|
+
}
|
@@ -24,7 +24,7 @@
|
|
24
24
|
margin-bottom: govuk-spacing(2);
|
25
25
|
}
|
26
26
|
|
27
|
-
.gem-c-related-navigation__main-heading
|
27
|
+
.gem-c-related-navigation__main-heading + .gem-c-related-navigation__sub-heading {
|
28
28
|
border-top: 0;
|
29
29
|
padding-top: 0;
|
30
30
|
}
|
@@ -62,7 +62,7 @@
|
|
62
62
|
|
63
63
|
.js-enabled & {
|
64
64
|
display: inline-block;
|
65
|
-
|
65
|
+
}
|
66
66
|
}
|
67
67
|
|
68
68
|
.gem-c-related-navigation__section-link {
|