govuk_publishing_components 21.52.1 → 21.55.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/govuk_publishing_components/action-link--nhs.png +0 -0
  3. data/app/assets/images/govuk_publishing_components/action-link--nhs.svg +1 -0
  4. data/app/assets/images/govuk_publishing_components/action-link-arrow--dark.png +0 -0
  5. data/app/assets/images/govuk_publishing_components/action-link-arrow--simple.png +0 -0
  6. data/app/assets/images/govuk_publishing_components/action-link-arrow.png +0 -0
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +38 -7
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +0 -38
  9. data/app/controllers/govuk_publishing_components/component_guide_controller.rb +34 -22
  10. data/app/views/govuk_publishing_components/components/_action_link.html.erb +23 -3
  11. data/app/views/govuk_publishing_components/components/_contextual_breadcrumbs.html.erb +5 -36
  12. data/app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb +28 -8
  13. data/app/views/govuk_publishing_components/components/docs/action_link.yml +43 -15
  14. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_header.yml +23 -0
  15. data/lib/govuk_publishing_components.rb +1 -0
  16. data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +107 -0
  17. data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb +14 -1
  18. data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_taxons.rb +1 -3
  19. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +40 -19
  20. data/lib/govuk_publishing_components/presenters/machine_readable/faq_page_schema.rb +7 -6
  21. data/lib/govuk_publishing_components/presenters/machine_readable/html_publication_schema.rb +77 -0
  22. data/lib/govuk_publishing_components/presenters/schema_org.rb +24 -16
  23. data/lib/govuk_publishing_components/version.rb +1 -1
  24. data/node_modules/axe-core/CHANGELOG.md +6 -0
  25. data/node_modules/axe-core/axe.js +19 -3
  26. data/node_modules/axe-core/axe.min.js +2 -2
  27. data/node_modules/axe-core/bower.json +1 -1
  28. data/node_modules/axe-core/lib/commons/dom/get-element-stack.js +27 -1
  29. data/node_modules/axe-core/package.json +23 -23
  30. data/node_modules/axe-core/sri-history.json +4 -0
  31. data/node_modules/govuk-frontend/README.md +6 -6
  32. data/node_modules/govuk-frontend/govuk/_base.scss +3 -0
  33. data/node_modules/govuk-frontend/govuk/all.js +1 -1
  34. data/node_modules/govuk-frontend/govuk/all.scss +1 -3
  35. data/node_modules/govuk-frontend/govuk/components/_all.scss +31 -29
  36. data/node_modules/govuk-frontend/govuk/components/accordion/_accordion.scss +2 -208
  37. data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +207 -0
  38. data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +1 -1
  39. data/node_modules/govuk-frontend/govuk/components/back-link/_back-link.scss +2 -65
  40. data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +112 -0
  41. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +2 -118
  42. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +138 -0
  43. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/macro-options.json +6 -0
  44. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/template.njk +12 -1
  45. data/node_modules/govuk-frontend/govuk/components/button/_button.scss +2 -284
  46. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +280 -0
  47. data/node_modules/govuk-frontend/govuk/components/character-count/_character-count.scss +2 -31
  48. data/node_modules/govuk-frontend/govuk/components/character-count/_index.scss +28 -0
  49. data/node_modules/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +2 -308
  50. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +304 -0
  51. data/node_modules/govuk-frontend/govuk/components/date-input/_date-input.scss +2 -30
  52. data/node_modules/govuk-frontend/govuk/components/date-input/_index.scss +26 -0
  53. data/node_modules/govuk-frontend/govuk/components/details/_details.scss +2 -88
  54. data/node_modules/govuk-frontend/govuk/components/details/_index.scss +84 -0
  55. data/node_modules/govuk-frontend/govuk/components/error-message/_error-message.scss +2 -15
  56. data/node_modules/govuk-frontend/govuk/components/error-message/_index.scss +11 -0
  57. data/node_modules/govuk-frontend/govuk/components/error-summary/_error-summary.scss +2 -59
  58. data/node_modules/govuk-frontend/govuk/components/error-summary/_index.scss +55 -0
  59. data/node_modules/govuk-frontend/govuk/components/fieldset/_fieldset.scss +2 -68
  60. data/node_modules/govuk-frontend/govuk/components/fieldset/_index.scss +64 -0
  61. data/node_modules/govuk-frontend/govuk/components/file-upload/_file-upload.scss +2 -81
  62. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +77 -0
  63. data/node_modules/govuk-frontend/govuk/components/footer/_footer.scss +2 -244
  64. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +238 -0
  65. data/node_modules/govuk-frontend/govuk/components/header/_header.scss +2 -318
  66. data/node_modules/govuk-frontend/govuk/components/header/_index.scss +312 -0
  67. data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +7 -1
  68. data/node_modules/govuk-frontend/govuk/components/header/template.njk +2 -2
  69. data/node_modules/govuk-frontend/govuk/components/hint/_hint.scss +2 -50
  70. data/node_modules/govuk-frontend/govuk/components/hint/_index.scss +46 -0
  71. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +99 -0
  72. data/node_modules/govuk-frontend/govuk/components/input/_input.scss +2 -103
  73. data/node_modules/govuk-frontend/govuk/components/inset-text/_index.scss +24 -0
  74. data/node_modules/govuk-frontend/govuk/components/inset-text/_inset-text.scss +2 -28
  75. data/node_modules/govuk-frontend/govuk/components/label/_index.scss +41 -0
  76. data/node_modules/govuk-frontend/govuk/components/label/_label.scss +2 -45
  77. data/node_modules/govuk-frontend/govuk/components/panel/_index.scss +40 -0
  78. data/node_modules/govuk-frontend/govuk/components/panel/_panel.scss +2 -44
  79. data/node_modules/govuk-frontend/govuk/components/phase-banner/_index.scss +27 -0
  80. data/node_modules/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +2 -31
  81. data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +342 -0
  82. data/node_modules/govuk-frontend/govuk/components/radios/_radios.scss +2 -346
  83. data/node_modules/govuk-frontend/govuk/components/select/_index.scss +53 -0
  84. data/node_modules/govuk-frontend/govuk/components/select/_select.scss +2 -57
  85. data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +33 -0
  86. data/node_modules/govuk-frontend/govuk/components/skip-link/_skip-link.scss +2 -37
  87. data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +153 -0
  88. data/node_modules/govuk-frontend/govuk/components/summary-list/_summary-list.scss +2 -157
  89. data/node_modules/govuk-frontend/govuk/components/table/_index.scss +50 -0
  90. data/node_modules/govuk-frontend/govuk/components/table/_table.scss +2 -54
  91. data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +138 -0
  92. data/node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss +2 -142
  93. data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +87 -0
  94. data/node_modules/govuk-frontend/govuk/components/tag/_tag.scss +2 -91
  95. data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +51 -0
  96. data/node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss +2 -55
  97. data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +56 -0
  98. data/node_modules/govuk-frontend/govuk/components/warning-text/_warning-text.scss +2 -60
  99. data/node_modules/govuk-frontend/govuk/core/_global-styles.scss +5 -3
  100. data/node_modules/govuk-frontend/govuk/core/_links.scss +5 -3
  101. data/node_modules/govuk-frontend/govuk/core/_lists.scss +17 -3
  102. data/node_modules/govuk-frontend/govuk/core/_section-break.scss +5 -3
  103. data/node_modules/govuk-frontend/govuk/core/_template.scss +5 -3
  104. data/node_modules/govuk-frontend/govuk/core/_typography.scss +5 -3
  105. data/node_modules/govuk-frontend/govuk/helpers/_clearfix.scss +1 -1
  106. data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +1 -1
  107. data/node_modules/govuk-frontend/govuk/helpers/_grid.scss +2 -1
  108. data/node_modules/govuk-frontend/govuk/helpers/_links.scss +1 -1
  109. data/node_modules/govuk-frontend/govuk/helpers/_media-queries.scss +1 -1
  110. data/node_modules/govuk-frontend/govuk/helpers/_shape-arrow.scss +1 -1
  111. data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss +1 -1
  112. data/node_modules/govuk-frontend/govuk/helpers/_typography.scss +1 -1
  113. data/node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss +1 -1
  114. data/node_modules/govuk-frontend/govuk/objects/_form-group.scss +1 -3
  115. data/node_modules/govuk-frontend/govuk/objects/_grid.scss +1 -3
  116. data/node_modules/govuk-frontend/govuk/objects/_main-wrapper.scss +5 -3
  117. data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +2 -4
  118. data/node_modules/govuk-frontend/govuk/overrides/_display.scss +5 -3
  119. data/node_modules/govuk-frontend/govuk/overrides/_spacing.scss +5 -3
  120. data/node_modules/govuk-frontend/govuk/overrides/_typography.scss +5 -3
  121. data/node_modules/govuk-frontend/govuk/overrides/_width.scss +5 -3
  122. data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +1 -1
  123. data/node_modules/govuk-frontend/govuk/tools/_compatibility.scss +1 -1
  124. data/node_modules/govuk-frontend/govuk/tools/_font-url.scss +1 -1
  125. data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +1 -1
  126. data/node_modules/govuk-frontend/govuk/tools/_image-url.scss +1 -1
  127. data/node_modules/govuk-frontend/govuk/tools/_px-to-em.scss +1 -1
  128. data/node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss +1 -1
  129. data/node_modules/govuk-frontend/package.json +23 -23
  130. data/node_modules/jquery/package.json +2 -2
  131. metadata +50 -2
@@ -1,318 +1,2 @@
1
- @import "../../settings/all";
2
- @import "../../tools/all";
3
- @import "../../helpers/all";
4
-
5
- @import "../../helpers/typography";
6
-
7
- @include govuk-exports("govuk/component/header") {
8
-
9
- $govuk-header-background: govuk-colour("black");
10
- $govuk-header-border-color: $govuk-brand-colour;
11
- $govuk-header-border-width: govuk-spacing(2);
12
- $govuk-header-text: govuk-colour("white");
13
- $govuk-header-link: govuk-colour("white");
14
- $govuk-header-link-hover: govuk-colour("white");
15
- $govuk-header-link-active: #1d8feb;
16
- $govuk-header-nav-item-border-color: #2e3133;
17
-
18
- .govuk-header {
19
- @include govuk-font($size: 16);
20
-
21
- border-bottom: govuk-spacing(2) solid govuk-colour("white");
22
- color: $govuk-header-text;
23
- background: $govuk-header-background;
24
-
25
- }
26
-
27
- .govuk-header__container--full-width {
28
- padding: 0 govuk-spacing(3);
29
- border-color: $govuk-header-border-color;
30
-
31
- .govuk-header__menu-button {
32
- right: govuk-spacing(3);
33
- }
34
- }
35
-
36
- .govuk-header__container {
37
- @include govuk-clearfix;
38
- position: relative;
39
- margin-bottom: -$govuk-header-border-width;
40
- padding-top: govuk-spacing(2);
41
- border-bottom: $govuk-header-border-width solid $govuk-header-border-color;
42
- }
43
-
44
- .govuk-header__logotype {
45
- display: inline-block;
46
- margin-right: govuk-spacing(1);
47
- }
48
-
49
- .govuk-header__logotype-crown {
50
- position: relative;
51
- top: -1px;
52
- margin-right: 1px;
53
- fill: currentColor;
54
- vertical-align: top;
55
- }
56
-
57
- .govuk-header__logotype-crown-fallback-image {
58
- width: 36px;
59
- height: 32px;
60
- border: 0;
61
- vertical-align: middle;
62
- }
63
-
64
- .govuk-header__product-name {
65
- @include govuk-font($size: 24, $line-height: 1);
66
- display: inline-table;
67
- padding-right: govuk-spacing(2);
68
- }
69
-
70
- .govuk-header__link {
71
- text-decoration: none;
72
-
73
- &:link,
74
- &:visited {
75
- color: $govuk-header-link;
76
- }
77
-
78
- &:hover {
79
- text-decoration: underline;
80
- }
81
-
82
- &:focus {
83
- @include govuk-focused-text;
84
- }
85
-
86
- // alphagov/govuk_template includes a specific a:link:focus selector
87
- // designed to make unvisited links a slightly darker blue when focussed, so
88
- // we need to override the text colour for that combination of selectors.
89
- @include govuk-compatibility(govuk_template) {
90
- &:link:focus {
91
- @include govuk-text-colour;
92
- }
93
- }
94
- }
95
-
96
- .govuk-header__link--homepage {
97
- // Font size needs to be set on the link so that the box sizing is correct
98
- // in Firefox
99
- @include govuk-font($size: false, $weight: bold);
100
-
101
- display: inline-block;
102
- font-size: 30px; // We don't have a mixin that produces 30px font size
103
- line-height: 1;
104
-
105
- &:link,
106
- &:visited {
107
- text-decoration: none;
108
- }
109
-
110
- &:hover,
111
- &:active {
112
- // Negate the added border
113
- margin-bottom: -1px;
114
- // Omitting colour will use default value of currentColor – if we
115
- // specified currentColor explicitly IE8 would ignore this rule.
116
- border-bottom: 1px solid;
117
- }
118
-
119
- // Remove any borders that show when focused and hovered.
120
- &:focus {
121
- margin-bottom: 0;
122
- border-bottom: 0;
123
- }
124
- }
125
-
126
- .govuk-header__link--service-name {
127
- display: inline-block;
128
- margin-bottom: govuk-spacing(2);
129
- @include govuk-font($size: 24, $weight: bold);
130
- }
131
-
132
- .govuk-header__logo,
133
- .govuk-header__content {
134
- box-sizing: border-box;
135
- }
136
-
137
- .govuk-header__logo {
138
- @include govuk-responsive-margin(2, "bottom");
139
- padding-right: govuk-spacing(8);
140
-
141
- @include govuk-media-query ($from: desktop) {
142
- width: 33.33%;
143
- padding-right: $govuk-gutter-half;
144
- float: left;
145
- vertical-align: top;
146
- }
147
- }
148
-
149
- .govuk-header__content {
150
- @include govuk-media-query ($from: desktop) {
151
- width: 66.66%;
152
- padding-left: $govuk-gutter-half;
153
- float: left;
154
- }
155
- }
156
-
157
- .govuk-header__menu-button {
158
- @include govuk-font($size: 16);
159
- display: none;
160
- position: absolute;
161
- top: govuk-spacing(4);
162
- right: 0;
163
- margin: 0;
164
- padding: 0;
165
- border: 0;
166
- color: $govuk-header-link;
167
- background: none;
168
-
169
- &:hover {
170
- text-decoration: underline;
171
- }
172
-
173
- &:focus {
174
- @include govuk-focused-text;
175
- }
176
-
177
- &::after {
178
- @include govuk-shape-arrow($direction: down, $base: 10px, $display: inline-block);
179
- content: "";
180
- margin-left: govuk-spacing(1);
181
- }
182
-
183
- @include govuk-media-query ($from: tablet) {
184
- top: govuk-spacing(3);
185
- }
186
- }
187
-
188
- .govuk-header__menu-button--open {
189
- &::after {
190
- @include govuk-shape-arrow($direction: up, $base: 10px, $display: inline-block);
191
- }
192
- }
193
-
194
- .govuk-header__navigation {
195
- @include govuk-responsive-margin(2, "bottom");
196
- display: block;
197
- margin: 0;
198
- padding: 0;
199
- list-style: none;
200
- }
201
-
202
- .js-enabled {
203
- .govuk-header__menu-button {
204
- display: block;
205
- @include govuk-media-query ($from: desktop) {
206
- display: none;
207
- }
208
- }
209
-
210
- .govuk-header__navigation {
211
- display: none;
212
- @include govuk-media-query ($from: desktop) {
213
- display: block;
214
- }
215
- }
216
-
217
- .govuk-header__navigation--open {
218
- display: block;
219
- }
220
- }
221
-
222
-
223
- .govuk-header__navigation--end {
224
- @include govuk-media-query ($from: desktop) {
225
- margin: 0;
226
- padding: govuk-spacing(1) 0;
227
- text-align: right;
228
- }
229
- }
230
-
231
- .govuk-header__navigation--no-service-name {
232
- padding-top: govuk-spacing(7);
233
- }
234
-
235
- .govuk-header__navigation-item {
236
- padding: govuk-spacing(2) 0;
237
- border-bottom: 1px solid $govuk-header-nav-item-border-color;
238
-
239
- @include govuk-media-query ($from: desktop) {
240
- display: inline-block;
241
- margin-right: govuk-spacing(3);
242
- padding: govuk-spacing(1) 0;
243
- border: 0;
244
- }
245
-
246
- a {
247
- @include govuk-font($size: 16, $weight: bold);
248
- white-space: nowrap;
249
- }
250
- }
251
-
252
- .govuk-header__navigation-item--active {
253
- a {
254
- &:link,
255
- &:hover,
256
- &:visited {
257
- color: $govuk-header-link-active;
258
- }
259
-
260
- // When focussed, the text colour needs to be darker to ensure that colour
261
- // contrast is still acceptable
262
- &:focus {
263
- color: $govuk-focus-text-colour;
264
- }
265
- }
266
- }
267
-
268
- .govuk-header__navigation-item:last-child {
269
- margin-right: 0;
270
- }
271
-
272
- @include govuk-media-query($media-type: print) {
273
- .govuk-header {
274
- border-bottom-width: 0;
275
- color: govuk-colour("black");
276
- background: transparent;
277
- }
278
-
279
- // Hide the inverted crown when printing in browsers that don't support SVG.
280
- .govuk-header__logotype-crown-fallback-image {
281
- display: none;
282
- }
283
-
284
- .govuk-header__link {
285
- &:link,
286
- &:visited {
287
- color: govuk-colour("black");
288
- }
289
-
290
- // Do not append link href to GOV.UK link when printing (e.g. '(/)')
291
- &:after {
292
- display: none;
293
- }
294
- }
295
- }
296
-
297
- @if $govuk-use-legacy-font {
298
- // Begin adjustments for font baseline offset
299
- // These should be removed when the font is updated with the correct baseline
300
- .govuk-header__logotype-crown,
301
- .govuk-header__logotype-crown-fallback-image {
302
- position: relative;
303
- top: -4px;
304
- vertical-align: middle;
305
- }
306
-
307
- .govuk-header {
308
- $offset: 3px;
309
- padding-top: $offset;
310
- }
311
-
312
- .govuk-header__link--homepage {
313
- line-height: 30px;
314
- }
315
- // End adjustments
316
- }
317
-
318
- }
1
+ @import "../../base";
2
+ @import "./index";
@@ -0,0 +1,312 @@
1
+ @include govuk-exports("govuk/component/header") {
2
+
3
+ $govuk-header-background: govuk-colour("black");
4
+ $govuk-header-border-color: $govuk-brand-colour;
5
+ $govuk-header-border-width: govuk-spacing(2);
6
+ $govuk-header-text: govuk-colour("white");
7
+ $govuk-header-link: govuk-colour("white");
8
+ $govuk-header-link-hover: govuk-colour("white");
9
+ $govuk-header-link-active: #1d8feb;
10
+ $govuk-header-nav-item-border-color: #2e3133;
11
+
12
+ .govuk-header {
13
+ @include govuk-font($size: 16);
14
+
15
+ border-bottom: govuk-spacing(2) solid govuk-colour("white");
16
+ color: $govuk-header-text;
17
+ background: $govuk-header-background;
18
+
19
+ }
20
+
21
+ .govuk-header__container--full-width {
22
+ padding: 0 govuk-spacing(3);
23
+ border-color: $govuk-header-border-color;
24
+
25
+ .govuk-header__menu-button {
26
+ right: govuk-spacing(3);
27
+ }
28
+ }
29
+
30
+ .govuk-header__container {
31
+ @include govuk-clearfix;
32
+ position: relative;
33
+ margin-bottom: -$govuk-header-border-width;
34
+ padding-top: govuk-spacing(2);
35
+ border-bottom: $govuk-header-border-width solid $govuk-header-border-color;
36
+ }
37
+
38
+ .govuk-header__logotype {
39
+ display: inline-block;
40
+ margin-right: govuk-spacing(1);
41
+ }
42
+
43
+ .govuk-header__logotype-crown {
44
+ position: relative;
45
+ top: -1px;
46
+ margin-right: 1px;
47
+ fill: currentColor;
48
+ vertical-align: top;
49
+ }
50
+
51
+ .govuk-header__logotype-crown-fallback-image {
52
+ width: 36px;
53
+ height: 32px;
54
+ border: 0;
55
+ vertical-align: middle;
56
+ }
57
+
58
+ .govuk-header__product-name {
59
+ @include govuk-font($size: 24, $line-height: 1);
60
+ display: inline-table;
61
+ padding-right: govuk-spacing(2);
62
+ }
63
+
64
+ .govuk-header__link {
65
+ text-decoration: none;
66
+
67
+ &:link,
68
+ &:visited {
69
+ color: $govuk-header-link;
70
+ }
71
+
72
+ &:hover {
73
+ text-decoration: underline;
74
+ }
75
+
76
+ &:focus {
77
+ @include govuk-focused-text;
78
+ }
79
+
80
+ // alphagov/govuk_template includes a specific a:link:focus selector
81
+ // designed to make unvisited links a slightly darker blue when focussed, so
82
+ // we need to override the text colour for that combination of selectors.
83
+ @include govuk-compatibility(govuk_template) {
84
+ &:link:focus {
85
+ @include govuk-text-colour;
86
+ }
87
+ }
88
+ }
89
+
90
+ .govuk-header__link--homepage {
91
+ // Font size needs to be set on the link so that the box sizing is correct
92
+ // in Firefox
93
+ @include govuk-font($size: false, $weight: bold);
94
+
95
+ display: inline-block;
96
+ font-size: 30px; // We don't have a mixin that produces 30px font size
97
+ line-height: 1;
98
+
99
+ &:link,
100
+ &:visited {
101
+ text-decoration: none;
102
+ }
103
+
104
+ &:hover,
105
+ &:active {
106
+ // Negate the added border
107
+ margin-bottom: -1px;
108
+ // Omitting colour will use default value of currentColor – if we
109
+ // specified currentColor explicitly IE8 would ignore this rule.
110
+ border-bottom: 1px solid;
111
+ }
112
+
113
+ // Remove any borders that show when focused and hovered.
114
+ &:focus {
115
+ margin-bottom: 0;
116
+ border-bottom: 0;
117
+ }
118
+ }
119
+
120
+ .govuk-header__link--service-name {
121
+ display: inline-block;
122
+ margin-bottom: govuk-spacing(2);
123
+ @include govuk-font($size: 24, $weight: bold);
124
+ }
125
+
126
+ .govuk-header__logo,
127
+ .govuk-header__content {
128
+ box-sizing: border-box;
129
+ }
130
+
131
+ .govuk-header__logo {
132
+ @include govuk-responsive-margin(2, "bottom");
133
+ padding-right: govuk-spacing(8);
134
+
135
+ @include govuk-media-query ($from: desktop) {
136
+ width: 33.33%;
137
+ padding-right: $govuk-gutter-half;
138
+ float: left;
139
+ vertical-align: top;
140
+ }
141
+ }
142
+
143
+ .govuk-header__content {
144
+ @include govuk-media-query ($from: desktop) {
145
+ width: 66.66%;
146
+ padding-left: $govuk-gutter-half;
147
+ float: left;
148
+ }
149
+ }
150
+
151
+ .govuk-header__menu-button {
152
+ @include govuk-font($size: 16);
153
+ display: none;
154
+ position: absolute;
155
+ top: govuk-spacing(4);
156
+ right: 0;
157
+ margin: 0;
158
+ padding: 0;
159
+ border: 0;
160
+ color: $govuk-header-link;
161
+ background: none;
162
+
163
+ &:hover {
164
+ text-decoration: underline;
165
+ }
166
+
167
+ &:focus {
168
+ @include govuk-focused-text;
169
+ }
170
+
171
+ &::after {
172
+ @include govuk-shape-arrow($direction: down, $base: 10px, $display: inline-block);
173
+ content: "";
174
+ margin-left: govuk-spacing(1);
175
+ }
176
+
177
+ @include govuk-media-query ($from: tablet) {
178
+ top: govuk-spacing(3);
179
+ }
180
+ }
181
+
182
+ .govuk-header__menu-button--open {
183
+ &::after {
184
+ @include govuk-shape-arrow($direction: up, $base: 10px, $display: inline-block);
185
+ }
186
+ }
187
+
188
+ .govuk-header__navigation {
189
+ @include govuk-responsive-margin(2, "bottom");
190
+ display: block;
191
+ margin: 0;
192
+ padding: 0;
193
+ list-style: none;
194
+ }
195
+
196
+ .js-enabled {
197
+ .govuk-header__menu-button {
198
+ display: block;
199
+ @include govuk-media-query ($from: desktop) {
200
+ display: none;
201
+ }
202
+ }
203
+
204
+ .govuk-header__navigation {
205
+ display: none;
206
+ @include govuk-media-query ($from: desktop) {
207
+ display: block;
208
+ }
209
+ }
210
+
211
+ .govuk-header__navigation--open {
212
+ display: block;
213
+ }
214
+ }
215
+
216
+
217
+ .govuk-header__navigation--end {
218
+ @include govuk-media-query ($from: desktop) {
219
+ margin: 0;
220
+ padding: govuk-spacing(1) 0;
221
+ text-align: right;
222
+ }
223
+ }
224
+
225
+ .govuk-header__navigation--no-service-name {
226
+ padding-top: govuk-spacing(7);
227
+ }
228
+
229
+ .govuk-header__navigation-item {
230
+ padding: govuk-spacing(2) 0;
231
+ border-bottom: 1px solid $govuk-header-nav-item-border-color;
232
+
233
+ @include govuk-media-query ($from: desktop) {
234
+ display: inline-block;
235
+ margin-right: govuk-spacing(3);
236
+ padding: govuk-spacing(1) 0;
237
+ border: 0;
238
+ }
239
+
240
+ a {
241
+ @include govuk-font($size: 16, $weight: bold);
242
+ white-space: nowrap;
243
+ }
244
+ }
245
+
246
+ .govuk-header__navigation-item--active {
247
+ a {
248
+ &:link,
249
+ &:hover,
250
+ &:visited {
251
+ color: $govuk-header-link-active;
252
+ }
253
+
254
+ // When focussed, the text colour needs to be darker to ensure that colour
255
+ // contrast is still acceptable
256
+ &:focus {
257
+ color: $govuk-focus-text-colour;
258
+ }
259
+ }
260
+ }
261
+
262
+ .govuk-header__navigation-item:last-child {
263
+ margin-right: 0;
264
+ }
265
+
266
+ @include govuk-media-query($media-type: print) {
267
+ .govuk-header {
268
+ border-bottom-width: 0;
269
+ color: govuk-colour("black");
270
+ background: transparent;
271
+ }
272
+
273
+ // Hide the inverted crown when printing in browsers that don't support SVG.
274
+ .govuk-header__logotype-crown-fallback-image {
275
+ display: none;
276
+ }
277
+
278
+ .govuk-header__link {
279
+ &:link,
280
+ &:visited {
281
+ color: govuk-colour("black");
282
+ }
283
+
284
+ // Do not append link href to GOV.UK link when printing (e.g. '(/)')
285
+ &:after {
286
+ display: none;
287
+ }
288
+ }
289
+ }
290
+
291
+ @if $govuk-use-legacy-font {
292
+ // Begin adjustments for font baseline offset
293
+ // These should be removed when the font is updated with the correct baseline
294
+ .govuk-header__logotype-crown,
295
+ .govuk-header__logotype-crown-fallback-image {
296
+ position: relative;
297
+ top: -4px;
298
+ vertical-align: middle;
299
+ }
300
+
301
+ .govuk-header {
302
+ $offset: 3px;
303
+ padding-top: $offset;
304
+ }
305
+
306
+ .govuk-header__link--homepage {
307
+ line-height: 30px;
308
+ }
309
+ // End adjustments
310
+ }
311
+
312
+ }