govuk_publishing_components 27.10.4 → 27.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/analytics/explicit-cross-domain-links.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +1 -0
- data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +6 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +246 -113
- data/app/assets/stylesheets/govuk_publishing_components/components/_single-page-notification-button.scss +30 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_prefixed-transform.scss +5 -0
- data/app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss +9 -0
- data/app/models/govuk_publishing_components/shared_accessibility_criteria.rb +17 -0
- data/app/views/govuk_publishing_components/components/_input.html.erb +35 -22
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +31 -43
- data/app/views/govuk_publishing_components/components/_metadata.html.erb +2 -0
- data/app/views/govuk_publishing_components/components/_search.html.erb +2 -1
- data/app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb +23 -0
- data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb +4 -5
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +0 -6
- data/app/views/govuk_publishing_components/components/docs/input.yml +10 -0
- data/app/views/govuk_publishing_components/components/docs/metadata.yml +7 -0
- data/app/views/govuk_publishing_components/components/docs/single_page_notification_button.yml +32 -0
- data/app/views/govuk_publishing_components/components/search/_search_icon.html.erb +5 -5
- data/config/locales/ar.yml +0 -3
- data/config/locales/az.yml +0 -3
- data/config/locales/be.yml +0 -3
- data/config/locales/bg.yml +0 -3
- data/config/locales/bn.yml +0 -3
- data/config/locales/cs.yml +0 -3
- data/config/locales/cy.yml +0 -3
- data/config/locales/da.yml +0 -3
- data/config/locales/de.yml +0 -3
- data/config/locales/dr.yml +0 -3
- data/config/locales/el.yml +0 -3
- data/config/locales/en.yml +8 -9
- data/config/locales/es-419.yml +0 -3
- data/config/locales/es.yml +0 -3
- data/config/locales/et.yml +0 -3
- data/config/locales/fa.yml +0 -3
- data/config/locales/fi.yml +0 -3
- data/config/locales/fr.yml +0 -3
- data/config/locales/gd.yml +0 -3
- data/config/locales/gu.yml +0 -3
- data/config/locales/he.yml +0 -3
- data/config/locales/hi.yml +0 -3
- data/config/locales/hr.yml +0 -3
- data/config/locales/hu.yml +0 -3
- data/config/locales/hy.yml +0 -3
- data/config/locales/id.yml +0 -3
- data/config/locales/is.yml +0 -3
- data/config/locales/it.yml +0 -3
- data/config/locales/ja.yml +0 -3
- data/config/locales/ka.yml +0 -3
- data/config/locales/kk.yml +0 -3
- data/config/locales/ko.yml +0 -3
- data/config/locales/lt.yml +0 -3
- data/config/locales/lv.yml +0 -3
- data/config/locales/ms.yml +0 -3
- data/config/locales/mt.yml +0 -3
- data/config/locales/nl.yml +0 -3
- data/config/locales/no.yml +0 -3
- data/config/locales/pa-pk.yml +0 -3
- data/config/locales/pa.yml +0 -3
- data/config/locales/pl.yml +0 -3
- data/config/locales/ps.yml +0 -3
- data/config/locales/pt.yml +0 -3
- data/config/locales/ro.yml +0 -3
- data/config/locales/ru.yml +0 -3
- data/config/locales/si.yml +0 -3
- data/config/locales/sk.yml +0 -3
- data/config/locales/sl.yml +0 -3
- data/config/locales/so.yml +0 -3
- data/config/locales/sq.yml +0 -3
- data/config/locales/sr.yml +0 -3
- data/config/locales/sv.yml +0 -3
- data/config/locales/sw.yml +0 -3
- data/config/locales/ta.yml +0 -3
- data/config/locales/th.yml +0 -3
- data/config/locales/tk.yml +0 -3
- data/config/locales/tr.yml +0 -3
- data/config/locales/uk.yml +0 -3
- data/config/locales/ur.yml +0 -3
- data/config/locales/uz.yml +0 -3
- data/config/locales/vi.yml +0 -3
- data/config/locales/zh-hk.yml +0 -3
- data/config/locales/zh-tw.yml +0 -3
- data/config/locales/zh.yml +0 -3
- data/lib/govuk_publishing_components/presenters/button_helper.rb +1 -0
- data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +15 -4
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/lib/govuk_publishing_components.rb +0 -1
- data/node_modules/govuk-frontend/govuk/components/accordion/macro-options.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/back-link/macro-options.json +3 -3
- data/node_modules/govuk-frontend/govuk/components/button/_index.scss +3 -4
- data/node_modules/govuk-frontend/govuk/components/button/fixtures.json +9 -0
- data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +6 -6
- data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +14 -0
- data/node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json +8 -8
- data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +5 -5
- data/node_modules/govuk-frontend/govuk/components/details/_index.scss +2 -1
- data/node_modules/govuk-frontend/govuk/components/details/macro-options.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/error-message/macro-options.json +3 -3
- data/node_modules/govuk-frontend/govuk/components/fieldset/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +1 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/macro-options.json +4 -4
- data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +3 -0
- data/node_modules/govuk-frontend/govuk/components/footer/macro-options.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/header/macro-options.json +6 -6
- data/node_modules/govuk-frontend/govuk/components/hint/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +7 -7
- data/node_modules/govuk-frontend/govuk/components/inset-text/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/label/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/panel/_index.scss +13 -1
- data/node_modules/govuk-frontend/govuk/components/panel/macro-options.json +1 -1
- data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +14 -0
- data/node_modules/govuk-frontend/govuk/components/radios/macro-options.json +8 -8
- data/node_modules/govuk-frontend/govuk/components/select/macro-options.json +3 -3
- data/node_modules/govuk-frontend/govuk/components/summary-list/fixtures.json +2 -2
- data/node_modules/govuk-frontend/govuk/components/summary-list/macro-options.json +7 -7
- data/node_modules/govuk-frontend/govuk/components/tabs/macro-options.json +4 -4
- data/node_modules/govuk-frontend/govuk/components/textarea/macro-options.json +5 -5
- data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +2 -2
- data/node_modules/govuk-frontend/govuk/helpers/_spacing.scss +22 -4
- data/node_modules/govuk-frontend/govuk/overrides/_all.scss +1 -0
- data/node_modules/govuk-frontend/govuk/overrides/_text-align.scss +20 -0
- data/node_modules/govuk-frontend/package.json +1 -1
- metadata +7 -18
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_summary.scss +0 -27
- data/lib/govuk_publishing_components/presenters/brexit_cta_helper.rb +0 -33
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "mixins/prefixed-transform";
|
|
2
|
+
|
|
1
3
|
/// Set grid row or column value using the fraction unit.
|
|
2
4
|
///
|
|
3
5
|
/// @param {Integer} $number - number of fractions that the grid row or column
|
|
@@ -46,6 +48,10 @@
|
|
|
46
48
|
grid-template-columns: fractions($columns);
|
|
47
49
|
-ms-grid-rows: fractions($rows);
|
|
48
50
|
grid-template-rows: fractions($rows);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@mixin columns-children($items, $columns, $selector: "*") {
|
|
54
|
+
$rows: ceil($items / $columns);
|
|
49
55
|
|
|
50
56
|
// Internet Explorer 10-11 require each element to be placed in the grid -
|
|
51
57
|
// the `grid-auto-flow` property isn't supported. This means that both the
|
|
@@ -94,19 +100,21 @@
|
|
|
94
100
|
|
|
95
101
|
$icon-size: 20px;
|
|
96
102
|
$chevron-indent-spacing: 7px;
|
|
103
|
+
$black-bar-height: 50px;
|
|
104
|
+
$search-width-or-height: $black-bar-height;
|
|
97
105
|
|
|
98
106
|
@mixin chevron($colour, $update: false) {
|
|
99
107
|
@if ($update == true) {
|
|
100
108
|
border-bottom-color: $colour;
|
|
101
109
|
border-right-color: $colour;
|
|
102
110
|
} @else {
|
|
103
|
-
|
|
104
|
-
border-
|
|
111
|
+
@include prefixed-transform($rotate: 45deg, $translateY: -35%);
|
|
112
|
+
border-bottom: 2px solid $colour;
|
|
113
|
+
border-right: 2px solid $colour;
|
|
105
114
|
content: " ";
|
|
106
115
|
display: inline-block;
|
|
107
116
|
height: 8px;
|
|
108
117
|
margin: 0 8px 0 2px;
|
|
109
|
-
transform: translateY(-35%) rotate(45deg);
|
|
110
118
|
vertical-align: middle;
|
|
111
119
|
width: 8px;
|
|
112
120
|
}
|
|
@@ -126,10 +134,10 @@ $chevron-indent-spacing: 7px;
|
|
|
126
134
|
background: none;
|
|
127
135
|
bottom: 0;
|
|
128
136
|
content: " ";
|
|
129
|
-
height:
|
|
130
|
-
left: govuk-spacing(
|
|
137
|
+
height: 3px;
|
|
138
|
+
left: govuk-spacing(3);
|
|
131
139
|
position: absolute;
|
|
132
|
-
right: govuk-spacing(
|
|
140
|
+
right: govuk-spacing(3);
|
|
133
141
|
top: auto;
|
|
134
142
|
}
|
|
135
143
|
|
|
@@ -161,7 +169,7 @@ $chevron-indent-spacing: 7px;
|
|
|
161
169
|
position: relative;
|
|
162
170
|
|
|
163
171
|
.lte-ie8 & {
|
|
164
|
-
height:
|
|
172
|
+
height: $black-bar-height;
|
|
165
173
|
}
|
|
166
174
|
|
|
167
175
|
[hidden] {
|
|
@@ -179,8 +187,8 @@ $chevron-indent-spacing: 7px;
|
|
|
179
187
|
|
|
180
188
|
.gem-c-layout-super-navigation-header__header-logo {
|
|
181
189
|
height: govuk-spacing(6);
|
|
182
|
-
padding-bottom: govuk-spacing(
|
|
183
|
-
padding-top: govuk-spacing(
|
|
190
|
+
padding-bottom: govuk-spacing(2);
|
|
191
|
+
padding-top: govuk-spacing(2);
|
|
184
192
|
|
|
185
193
|
@include govuk-media-query($from: "desktop") {
|
|
186
194
|
display: block;
|
|
@@ -224,24 +232,18 @@ $chevron-indent-spacing: 7px;
|
|
|
224
232
|
@include govuk-media-query($from: "desktop") {
|
|
225
233
|
display: inline-block;
|
|
226
234
|
}
|
|
227
|
-
|
|
228
|
-
.js-module-initialised & {
|
|
229
|
-
padding: 0 0 govuk-spacing(9) 0;
|
|
230
|
-
|
|
231
|
-
@include govuk-media-query($from: "desktop") {
|
|
232
|
-
padding: 0;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
.gem-c-layout-super-navigation-header__navigation-item,
|
|
238
238
|
.gem-c-layout-super-navigation-header__search-item {
|
|
239
239
|
display: block;
|
|
240
|
-
margin: 0
|
|
240
|
+
margin: 0;
|
|
241
|
+
padding: govuk-spacing(2) govuk-spacing(3);
|
|
241
242
|
position: relative;
|
|
242
243
|
|
|
243
244
|
@include govuk-media-query($from: "tablet") {
|
|
244
245
|
margin: 0 govuk-spacing(6);
|
|
246
|
+
padding: govuk-spacing(2) 0;
|
|
245
247
|
}
|
|
246
248
|
|
|
247
249
|
@include govuk-media-query($from: "desktop") {
|
|
@@ -257,8 +259,15 @@ $chevron-indent-spacing: 7px;
|
|
|
257
259
|
.gem-c-layout-super-navigation-header__navigation-item {
|
|
258
260
|
border-bottom: 1px solid $govuk-border-colour;
|
|
259
261
|
|
|
262
|
+
.js-module-initialised & {
|
|
263
|
+
&:last-child {
|
|
264
|
+
border-bottom: none;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
260
268
|
@include govuk-media-query($from: "desktop") {
|
|
261
269
|
border-bottom: 0;
|
|
270
|
+
padding: 0;
|
|
262
271
|
}
|
|
263
272
|
}
|
|
264
273
|
|
|
@@ -322,7 +331,7 @@ $chevron-indent-spacing: 7px;
|
|
|
322
331
|
// stylelint-enable max-nesting-depth
|
|
323
332
|
|
|
324
333
|
height: govuk-spacing(4);
|
|
325
|
-
padding: govuk-spacing(
|
|
334
|
+
padding: govuk-spacing(3);
|
|
326
335
|
position: relative;
|
|
327
336
|
|
|
328
337
|
&:before {
|
|
@@ -339,28 +348,40 @@ $chevron-indent-spacing: 7px;
|
|
|
339
348
|
|
|
340
349
|
// stylelint-disable max-nesting-depth
|
|
341
350
|
@include focus-and-focus-visible {
|
|
342
|
-
|
|
343
|
-
|
|
351
|
+
&,
|
|
352
|
+
&:hover {
|
|
353
|
+
box-shadow: none;
|
|
354
|
+
color: $govuk-focus-text-colour;
|
|
344
355
|
|
|
345
|
-
|
|
346
|
-
|
|
356
|
+
&:after {
|
|
357
|
+
background: $govuk-focus-text-colour;
|
|
358
|
+
}
|
|
347
359
|
}
|
|
348
360
|
}
|
|
349
361
|
|
|
350
362
|
@include focus-not-focus-visible {
|
|
351
363
|
&,
|
|
352
364
|
&:hover {
|
|
353
|
-
color: govuk-colour("white");
|
|
354
365
|
text-decoration: none;
|
|
355
366
|
}
|
|
356
|
-
}
|
|
357
|
-
// stylelint-enable max-nesting-depth
|
|
358
367
|
|
|
359
|
-
|
|
368
|
+
& {
|
|
369
|
+
color: govuk-colour("white");
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
&:hover {
|
|
373
|
+
color: govuk-colour("mid-grey");
|
|
374
|
+
|
|
375
|
+
&:after {
|
|
376
|
+
background: govuk-colour("mid-grey");
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
360
380
|
&:after {
|
|
361
381
|
background: none;
|
|
362
382
|
}
|
|
363
383
|
}
|
|
384
|
+
// stylelint-enable max-nesting-depth
|
|
364
385
|
|
|
365
386
|
&:after {
|
|
366
387
|
@include pseudo-underline;
|
|
@@ -419,8 +440,8 @@ $chevron-indent-spacing: 7px;
|
|
|
419
440
|
@if $govuk-typography-use-rem {
|
|
420
441
|
font-size: govuk-px-to-rem(16px);
|
|
421
442
|
}
|
|
422
|
-
height:
|
|
423
|
-
padding: govuk-spacing(
|
|
443
|
+
height: $black-bar-height;
|
|
444
|
+
padding: govuk-spacing(3);
|
|
424
445
|
position: relative;
|
|
425
446
|
text-decoration: none;
|
|
426
447
|
|
|
@@ -459,7 +480,7 @@ $chevron-indent-spacing: 7px;
|
|
|
459
480
|
&.gem-c-layout-super-navigation-header__open-button {
|
|
460
481
|
@include focus-not-focus-visible {
|
|
461
482
|
&:before {
|
|
462
|
-
transform: translateY
|
|
483
|
+
@include prefixed-transform($rotate: 225deg, $translateY: 1px);
|
|
463
484
|
}
|
|
464
485
|
}
|
|
465
486
|
|
|
@@ -505,7 +526,7 @@ $chevron-indent-spacing: 7px;
|
|
|
505
526
|
background: $govuk-brand-colour;
|
|
506
527
|
|
|
507
528
|
&:hover {
|
|
508
|
-
background:
|
|
529
|
+
background: govuk-colour("black");
|
|
509
530
|
|
|
510
531
|
&:before {
|
|
511
532
|
left: 0;
|
|
@@ -520,6 +541,30 @@ $chevron-indent-spacing: 7px;
|
|
|
520
541
|
content: none;
|
|
521
542
|
}
|
|
522
543
|
}
|
|
544
|
+
|
|
545
|
+
&:after {
|
|
546
|
+
left: 0;
|
|
547
|
+
right: 0;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
@include focus-not-focus-visible {
|
|
551
|
+
background: $govuk-link-colour;
|
|
552
|
+
|
|
553
|
+
&:hover {
|
|
554
|
+
background: govuk-colour("black");
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
@include focus-and-focus-visible {
|
|
559
|
+
&:hover {
|
|
560
|
+
background: $govuk-focus-colour;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
&:after,
|
|
564
|
+
&:hover:after {
|
|
565
|
+
background: $govuk-focus-colour;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
523
568
|
}
|
|
524
569
|
}
|
|
525
570
|
}
|
|
@@ -556,38 +601,40 @@ $chevron-indent-spacing: 7px;
|
|
|
556
601
|
|
|
557
602
|
// Styles for top level navigation toggle button.
|
|
558
603
|
.gem-c-layout-super-navigation-header__navigation-top-toggle-button {
|
|
559
|
-
@include govuk-
|
|
604
|
+
@include govuk-link-common;
|
|
605
|
+
@include govuk-link-style-no-visited-state;
|
|
606
|
+
@include govuk-link-style-no-underline;
|
|
607
|
+
|
|
608
|
+
font-size: 16px;
|
|
609
|
+
@if $govuk-typography-use-rem {
|
|
610
|
+
font-size: govuk-px-to-rem(16px);
|
|
611
|
+
}
|
|
612
|
+
font-weight: 700;
|
|
560
613
|
background: govuk-colour("black");
|
|
561
614
|
border: 0;
|
|
562
|
-
border-left: 1px solid govuk-colour("white");
|
|
563
|
-
border-right: 1px solid govuk-colour("white");
|
|
564
615
|
box-sizing: border-box;
|
|
565
616
|
color: govuk-colour("white");
|
|
566
617
|
cursor: pointer;
|
|
567
|
-
height:
|
|
568
|
-
|
|
569
|
-
|
|
618
|
+
height: $black-bar-height;
|
|
619
|
+
padding: 0;
|
|
620
|
+
margin: 0;
|
|
570
621
|
position: absolute;
|
|
571
|
-
right: (
|
|
622
|
+
right: (($search-width-or-height - govuk-spacing(3)) - 1px); // width of the search button (50px) - 15px - 1px to create an overlap between buttons and stop the border appearing to hang off the buttons when they're focused/open
|
|
572
623
|
top: 0;
|
|
573
|
-
|
|
574
|
-
@include govuk-media-query($from: 360px) {
|
|
575
|
-
right: govuk-spacing(9);
|
|
576
|
-
|
|
577
|
-
&:before {
|
|
578
|
-
@include chevron(govuk-colour("white"));
|
|
579
|
-
}
|
|
580
|
-
}
|
|
624
|
+
z-index: 10;
|
|
581
625
|
|
|
582
626
|
@include focus-and-focus-visible {
|
|
583
627
|
@include govuk-focused-text;
|
|
584
|
-
border-color: $govuk-focus-colour;
|
|
585
628
|
box-shadow: none;
|
|
586
|
-
z-index: 10;
|
|
587
629
|
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
630
|
+
.gem-c-layout-super-navigation-header__navigation-top-toggle-button-inner {
|
|
631
|
+
border-color: $govuk-focus-colour;
|
|
632
|
+
color: govuk-colour("black");
|
|
633
|
+
|
|
634
|
+
@include govuk-media-query($from: 360px) {
|
|
635
|
+
&:before {
|
|
636
|
+
@include chevron(govuk-colour("black"), true);
|
|
637
|
+
}
|
|
591
638
|
}
|
|
592
639
|
}
|
|
593
640
|
}
|
|
@@ -596,42 +643,82 @@ $chevron-indent-spacing: 7px;
|
|
|
596
643
|
// See https://www.tpgi.com/focus-visible-and-backwards-compatibility/
|
|
597
644
|
@include focus-not-focus-visible {
|
|
598
645
|
background: none;
|
|
599
|
-
border-color: govuk-colour("white");
|
|
600
646
|
box-shadow: none;
|
|
601
|
-
color: govuk-colour("white");
|
|
602
647
|
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
648
|
+
.gem-c-layout-super-navigation-header__navigation-top-toggle-button-inner {
|
|
649
|
+
border-color: govuk-colour("white");
|
|
650
|
+
color: govuk-colour("white");
|
|
651
|
+
|
|
652
|
+
@include govuk-media-query($from: 360px) {
|
|
653
|
+
&:before {
|
|
654
|
+
@include chevron(govuk-colour("white"), true);
|
|
655
|
+
}
|
|
606
656
|
}
|
|
607
657
|
}
|
|
608
658
|
}
|
|
609
659
|
|
|
660
|
+
&:after {
|
|
661
|
+
@include pseudo-underline;
|
|
662
|
+
}
|
|
663
|
+
|
|
610
664
|
// Open button modifier
|
|
611
665
|
&.gem-c-layout-super-navigation-header__open-button {
|
|
666
|
+
// stylelint-disable max-nesting-depth
|
|
612
667
|
@include focus-and-focus-visible {
|
|
613
668
|
@include govuk-focused-text;
|
|
614
|
-
border-color: $govuk-focus-colour;
|
|
615
669
|
box-shadow: none;
|
|
616
|
-
color: $govuk-focus-colour;
|
|
617
670
|
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
671
|
+
&:after {
|
|
672
|
+
background-color: $govuk-focus-colour;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.gem-c-layout-super-navigation-header__navigation-top-toggle-button-inner {
|
|
676
|
+
color: govuk-colour("black");
|
|
677
|
+
border-color: $govuk-focus-colour;
|
|
678
|
+
|
|
679
|
+
@include govuk-media-query($from: 360px) {
|
|
680
|
+
&:before {
|
|
681
|
+
@include chevron(govuk-colour("black"), true);
|
|
682
|
+
@include prefixed-transform($rotate: 225deg, $translateY: 1px);
|
|
683
|
+
}
|
|
621
684
|
}
|
|
622
685
|
}
|
|
623
686
|
}
|
|
624
687
|
|
|
625
688
|
@include focus-not-focus-visible {
|
|
626
689
|
background: govuk-colour("light-grey");
|
|
627
|
-
color: govuk-colour("light-grey");
|
|
628
690
|
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
691
|
+
&:after {
|
|
692
|
+
background-color: $govuk-link-colour;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.gem-c-layout-super-navigation-header__navigation-top-toggle-button-inner {
|
|
696
|
+
color: $govuk-link-colour;
|
|
697
|
+
border-color: govuk-colour("light-grey");
|
|
698
|
+
|
|
699
|
+
@include govuk-media-query($from: 360px) {
|
|
700
|
+
&:before {
|
|
701
|
+
@include chevron($govuk-link-colour);
|
|
702
|
+
@include prefixed-transform($rotate: 225deg, $translateY: 1px);
|
|
703
|
+
}
|
|
632
704
|
}
|
|
633
705
|
}
|
|
634
706
|
}
|
|
707
|
+
// stylelint-enable max-nesting-depth
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.gem-c-layout-super-navigation-header__navigation-top-toggle-button-inner {
|
|
712
|
+
display: inline-block;
|
|
713
|
+
border-left: 1px solid govuk-colour("white");
|
|
714
|
+
border-right: 1px solid govuk-colour("white");
|
|
715
|
+
margin: 0;
|
|
716
|
+
padding: govuk-spacing(2) govuk-spacing(4);
|
|
717
|
+
|
|
718
|
+
@include govuk-media-query($from: 360px) {
|
|
719
|
+
&:before {
|
|
720
|
+
@include chevron(govuk-colour("white"));
|
|
721
|
+
}
|
|
635
722
|
}
|
|
636
723
|
}
|
|
637
724
|
|
|
@@ -640,20 +727,20 @@ $chevron-indent-spacing: 7px;
|
|
|
640
727
|
@include govuk-font($size: 19, $weight: "bold", $line-height: 20px);
|
|
641
728
|
background: govuk-colour("black");
|
|
642
729
|
border: 0;
|
|
643
|
-
border-left: 1px solid govuk-colour("white");
|
|
644
730
|
color: govuk-colour("white");
|
|
645
731
|
cursor: pointer;
|
|
646
|
-
height:
|
|
647
|
-
padding: govuk-spacing(
|
|
732
|
+
height: $search-width-or-height;
|
|
733
|
+
padding: govuk-spacing(3);
|
|
648
734
|
position: absolute;
|
|
649
735
|
right: (0 - govuk-spacing(3));
|
|
650
736
|
top: 0;
|
|
651
|
-
width:
|
|
737
|
+
width: $search-width-or-height;
|
|
652
738
|
|
|
653
739
|
@include focus-and-focus-visible {
|
|
654
740
|
@include govuk-focused-text;
|
|
655
741
|
border-color: $govuk-focus-colour;
|
|
656
742
|
box-shadow: none;
|
|
743
|
+
z-index: 11;
|
|
657
744
|
}
|
|
658
745
|
|
|
659
746
|
&:focus:not(:focus-visible) {
|
|
@@ -663,14 +750,12 @@ $chevron-indent-spacing: 7px;
|
|
|
663
750
|
color: govuk-colour("white");
|
|
664
751
|
}
|
|
665
752
|
|
|
666
|
-
@include govuk-media-query($from:
|
|
753
|
+
@include govuk-media-query($from: "desktop") {
|
|
667
754
|
right: 0;
|
|
668
|
-
}
|
|
669
755
|
|
|
670
|
-
@include govuk-media-query($from: "desktop") {
|
|
671
756
|
@include focus-not-focus-visible {
|
|
672
757
|
background: $govuk-brand-colour;
|
|
673
|
-
border-bottom: 1px solid govuk-colour("
|
|
758
|
+
border-bottom: 1px solid govuk-colour("dark-blue");
|
|
674
759
|
border-left: none;
|
|
675
760
|
position: relative;
|
|
676
761
|
}
|
|
@@ -718,7 +803,7 @@ $chevron-indent-spacing: 7px;
|
|
|
718
803
|
font-weight: normal;
|
|
719
804
|
left: 0;
|
|
720
805
|
line-height: 22px;
|
|
721
|
-
padding: govuk-spacing(
|
|
806
|
+
padding: govuk-spacing(3) 0;
|
|
722
807
|
pointer-events: none;
|
|
723
808
|
position: absolute;
|
|
724
809
|
right: 0;
|
|
@@ -738,7 +823,6 @@ $chevron-indent-spacing: 7px;
|
|
|
738
823
|
left: 0;
|
|
739
824
|
position: absolute;
|
|
740
825
|
right: 0;
|
|
741
|
-
top: govuk-spacing(9);
|
|
742
826
|
}
|
|
743
827
|
}
|
|
744
828
|
|
|
@@ -754,49 +838,56 @@ $chevron-indent-spacing: 7px;
|
|
|
754
838
|
|
|
755
839
|
// Dropdown menu items.
|
|
756
840
|
.gem-c-layout-super-navigation-header__dropdown-list-item {
|
|
757
|
-
|
|
758
|
-
padding: govuk-spacing(
|
|
841
|
+
box-sizing: border-box;
|
|
842
|
+
padding: 0 0 govuk-spacing(4) 0;
|
|
759
843
|
position: relative;
|
|
760
|
-
|
|
761
|
-
@include govuk-media-query($from: "desktop") {
|
|
762
|
-
margin: 0;
|
|
763
|
-
padding: govuk-spacing(2) 0;
|
|
764
|
-
}
|
|
765
844
|
}
|
|
766
845
|
|
|
767
846
|
// Navigation menu items.
|
|
768
847
|
.gem-c-layout-super-navigation-header__navigation-second-items {
|
|
769
|
-
margin: 0
|
|
770
|
-
padding: govuk-spacing(
|
|
848
|
+
margin: 0;
|
|
849
|
+
padding: govuk-spacing(6) govuk-spacing(4);
|
|
850
|
+
|
|
851
|
+
& > li {
|
|
852
|
+
margin: 0;
|
|
853
|
+
}
|
|
771
854
|
|
|
772
855
|
@include govuk-media-query($from: "desktop") {
|
|
773
|
-
margin
|
|
774
|
-
|
|
775
|
-
padding: govuk-spacing(6) 0 govuk-spacing(8) 0;
|
|
856
|
+
margin: 0 (0 - govuk-spacing(3));
|
|
857
|
+
padding: govuk-spacing(7) 0 govuk-spacing(8) 0;
|
|
776
858
|
|
|
777
859
|
& > li {
|
|
778
|
-
|
|
779
|
-
margin-bottom: 0;
|
|
780
|
-
padding-left: govuk-spacing(3);
|
|
781
|
-
padding-right: govuk-spacing(3);
|
|
860
|
+
margin: 0 govuk-spacing(3);
|
|
782
861
|
}
|
|
783
862
|
}
|
|
784
863
|
}
|
|
785
864
|
|
|
786
865
|
.gem-c-layout-super-navigation-header__navigation-second-items--topics {
|
|
787
866
|
@include govuk-media-query($from: "desktop") {
|
|
788
|
-
@include columns(
|
|
867
|
+
@include columns(17, 2, "li");
|
|
868
|
+
@include columns-children(17, 2, "li");
|
|
789
869
|
}
|
|
790
870
|
}
|
|
791
871
|
|
|
792
872
|
.gem-c-layout-super-navigation-header__navigation-second-items--government-activity {
|
|
793
873
|
@include govuk-media-query($from: "desktop") {
|
|
794
|
-
@include columns(
|
|
795
|
-
|
|
874
|
+
@include columns(6, 2, "li");
|
|
875
|
+
@include columns-children(6, 2, "li");
|
|
876
|
+
padding-bottom: 0;
|
|
877
|
+
|
|
878
|
+
& > li {
|
|
879
|
+
box-sizing: border-box;
|
|
880
|
+
padding-bottom: govuk-spacing(4);
|
|
881
|
+
}
|
|
796
882
|
}
|
|
797
883
|
}
|
|
798
884
|
|
|
799
885
|
.gem-c-layout-super-navigation-header__navigation-second-item-link {
|
|
886
|
+
font-size: 16px;
|
|
887
|
+
@if $govuk-typography-use-rem {
|
|
888
|
+
font-size: govuk-px-to-rem(16px);
|
|
889
|
+
}
|
|
890
|
+
|
|
800
891
|
&:after {
|
|
801
892
|
@include make-selectable-area-bigger;
|
|
802
893
|
}
|
|
@@ -804,47 +895,55 @@ $chevron-indent-spacing: 7px;
|
|
|
804
895
|
@include govuk-media-query($from: "desktop") {
|
|
805
896
|
font-weight: bold;
|
|
806
897
|
padding: 0;
|
|
898
|
+
|
|
899
|
+
&:after {
|
|
900
|
+
content: none;
|
|
901
|
+
}
|
|
807
902
|
}
|
|
808
903
|
}
|
|
809
904
|
|
|
810
905
|
.gem-c-layout-super-navigation-header__navigation-second-item-link--with-description {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
906
|
+
font-size: 16px;
|
|
907
|
+
@if $govuk-typography-use-rem {
|
|
908
|
+
font-size: govuk-px-to-rem(16px);
|
|
909
|
+
}
|
|
910
|
+
font-weight: bold;
|
|
814
911
|
}
|
|
815
912
|
|
|
816
913
|
// Dropdown menu footer links.
|
|
817
|
-
.gem-c-layout-super-navigation-header__navigation-second-footer {
|
|
818
|
-
|
|
914
|
+
.gem-c-layout-super-navigation-header__navigation-second-footer-break {
|
|
915
|
+
@include govuk-media-query($until: "desktop") {
|
|
916
|
+
display: none;
|
|
917
|
+
}
|
|
819
918
|
}
|
|
820
919
|
|
|
821
920
|
.gem-c-layout-super-navigation-header__navigation-second-footer-list {
|
|
822
921
|
list-style: none;
|
|
823
|
-
padding
|
|
824
|
-
padding-top: govuk-spacing(4);
|
|
825
|
-
|
|
826
|
-
@include govuk-grid-column($width: "two-thirds", $float: right, $at: "desktop");
|
|
922
|
+
padding: 0 0 govuk-spacing(8) govuk-spacing(4);
|
|
827
923
|
|
|
828
924
|
@include govuk-media-query($from: "desktop") {
|
|
829
|
-
|
|
925
|
+
@include columns(2, 2, "li");
|
|
926
|
+
@include columns-children(2, 2, "li");
|
|
927
|
+
margin: 0 (0 - govuk-spacing(3));
|
|
928
|
+
padding: govuk-spacing(6) 0 govuk-spacing(7) 0;
|
|
830
929
|
}
|
|
831
930
|
}
|
|
832
931
|
|
|
833
932
|
.gem-c-layout-super-navigation-header__navigation-second-footer-item {
|
|
834
|
-
padding: govuk-spacing(2) 0
|
|
933
|
+
padding: govuk-spacing(2) 0;
|
|
835
934
|
position: relative;
|
|
836
935
|
|
|
837
936
|
@include govuk-media-query($from: "desktop") {
|
|
838
|
-
box-sizing: border-box;
|
|
839
|
-
float: left;
|
|
840
937
|
padding: 0 govuk-spacing(3);
|
|
841
|
-
width: 50%;
|
|
842
938
|
}
|
|
843
939
|
}
|
|
844
940
|
|
|
845
941
|
.gem-c-layout-super-navigation-header__navigation-second-footer-link {
|
|
846
|
-
@include govuk-font($size: 19, $weight: bold);
|
|
847
942
|
display: inline-block;
|
|
943
|
+
font-size: 16px;
|
|
944
|
+
@if $govuk-typography-use-rem {
|
|
945
|
+
font-size: govuk-px-to-rem(16px);
|
|
946
|
+
}
|
|
848
947
|
margin: govuk-spacing(1) 0;
|
|
849
948
|
|
|
850
949
|
&:after {
|
|
@@ -853,11 +952,23 @@ $chevron-indent-spacing: 7px;
|
|
|
853
952
|
|
|
854
953
|
@include govuk-media-query($from: "desktop") {
|
|
855
954
|
display: inline;
|
|
856
|
-
font-weight: bold;
|
|
857
955
|
padding: 0;
|
|
956
|
+
|
|
957
|
+
&:after {
|
|
958
|
+
content: none;
|
|
959
|
+
}
|
|
858
960
|
}
|
|
859
961
|
}
|
|
860
962
|
|
|
963
|
+
.gem-c-layout-super-navigation-header__navigation-second-item-description {
|
|
964
|
+
font-size: 16px;
|
|
965
|
+
@if $govuk-typography-use-rem {
|
|
966
|
+
font-size: govuk-px-to-rem(16px);
|
|
967
|
+
}
|
|
968
|
+
font-weight: normal;
|
|
969
|
+
margin: govuk-spacing(1) 0 0 0;
|
|
970
|
+
}
|
|
971
|
+
|
|
861
972
|
// Search dropdown.
|
|
862
973
|
.gem-c-layout-super-navigation-header__search-items {
|
|
863
974
|
background: govuk-colour("light-grey");
|
|
@@ -883,12 +994,34 @@ $chevron-indent-spacing: 7px;
|
|
|
883
994
|
}
|
|
884
995
|
|
|
885
996
|
// Popular links.
|
|
997
|
+
.gem-c-layout-super-navigation-header__popular-item {
|
|
998
|
+
position: relative;
|
|
999
|
+
padding: govuk-spacing(1) 0;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
886
1002
|
.gem-c-layout-super-navigation-header__popular-link {
|
|
887
|
-
padding: govuk-spacing(2) 0;
|
|
888
1003
|
display: inline-block;
|
|
1004
|
+
font-size: 16px;
|
|
1005
|
+
@if $govuk-typography-use-rem {
|
|
1006
|
+
font-size: govuk-px-to-rem(16px);
|
|
1007
|
+
}
|
|
1008
|
+
padding: 0;
|
|
1009
|
+
|
|
1010
|
+
&:after {
|
|
1011
|
+
@include make-selectable-area-bigger;
|
|
1012
|
+
}
|
|
889
1013
|
|
|
890
1014
|
@include govuk-media-query($from: "desktop") {
|
|
891
|
-
|
|
892
|
-
|
|
1015
|
+
&:after {
|
|
1016
|
+
content: none;
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
// To be used with .govuk-width-container - we only need the margins from
|
|
1022
|
+
// desktop onwards.
|
|
1023
|
+
.gem-c-layout-super-navigation-header__width-container {
|
|
1024
|
+
@include govuk-media-query($until: "desktop") {
|
|
1025
|
+
margin: 0;
|
|
893
1026
|
}
|
|
894
1027
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.gem-c-single-page-notification-button__submit {
|
|
2
|
+
padding: govuk-spacing(2);
|
|
3
|
+
margin: govuk-spacing(0);
|
|
4
|
+
border: 1px solid $govuk-border-colour;
|
|
5
|
+
color: $govuk-link-colour;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
background: none;
|
|
8
|
+
|
|
9
|
+
&:focus {
|
|
10
|
+
@include govuk-focused-text;
|
|
11
|
+
background-color: $govuk-focus-colour;
|
|
12
|
+
border-color: transparent;
|
|
13
|
+
box-shadow: 0 $govuk-focus-width $govuk-text-colour;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
background-color: govuk-colour("light-grey");
|
|
18
|
+
color: $govuk-link-hover-colour;
|
|
19
|
+
|
|
20
|
+
&:focus {
|
|
21
|
+
color: $govuk-text-colour;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.gem-c-single-page-notification-button__icon {
|
|
27
|
+
color: govuk-colour("black");
|
|
28
|
+
vertical-align: top;
|
|
29
|
+
margin-right: govuk-spacing(1);
|
|
30
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
margin-bottom: govuk-spacing(3);
|
|
3
3
|
|
|
4
4
|
@include govuk-media-query($from: tablet) {
|
|
5
|
-
margin-bottom: govuk-spacing(
|
|
5
|
+
margin-bottom: govuk-spacing(7);
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
margin-top: govuk-spacing(3);
|
|
11
11
|
|
|
12
12
|
@include govuk-media-query($from: tablet) {
|
|
13
|
-
margin-top: govuk-spacing(
|
|
13
|
+
margin-top: govuk-spacing(7);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|