govuk_publishing_components 24.18.5 → 24.21.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +59 -91
  3. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +71 -0
  4. data/app/assets/javascripts/govuk_publishing_components/lib/trigger-event.js +13 -2
  5. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +2 -0
  6. data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +1 -0
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +7 -9
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +16 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +0 -4
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +125 -0
  11. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +9 -0
  12. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-super-navigation-header.scss +3 -0
  13. data/app/views/govuk_publishing_components/component_guide/index.html.erb +1 -1
  14. data/app/views/govuk_publishing_components/components/_document_list.html.erb +3 -3
  15. data/app/views/govuk_publishing_components/components/_govspeak.html.erb +2 -0
  16. data/app/views/govuk_publishing_components/components/_intervention.html.erb +15 -0
  17. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +19 -13
  18. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +121 -0
  19. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +9 -0
  20. data/app/views/govuk_publishing_components/components/docs/intervention.yml +24 -0
  21. data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +4 -0
  22. data/app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml +22 -0
  23. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +3 -4
  24. data/config/initializers/assets.rb +0 -1
  25. data/config/locales/ar.yml +8 -0
  26. data/config/locales/az.yml +8 -0
  27. data/config/locales/be.yml +8 -0
  28. data/config/locales/bg.yml +8 -0
  29. data/config/locales/bn.yml +8 -0
  30. data/config/locales/cs.yml +8 -0
  31. data/config/locales/cy.yml +8 -0
  32. data/config/locales/da.yml +8 -0
  33. data/config/locales/de.yml +8 -0
  34. data/config/locales/dr.yml +8 -0
  35. data/config/locales/el.yml +8 -0
  36. data/config/locales/en.yml +89 -0
  37. data/config/locales/es-419.yml +8 -0
  38. data/config/locales/es.yml +8 -0
  39. data/config/locales/et.yml +8 -0
  40. data/config/locales/fa.yml +8 -0
  41. data/config/locales/fi.yml +8 -0
  42. data/config/locales/fr.yml +8 -0
  43. data/config/locales/gd.yml +8 -0
  44. data/config/locales/gu.yml +8 -0
  45. data/config/locales/he.yml +8 -0
  46. data/config/locales/hi.yml +8 -0
  47. data/config/locales/hr.yml +8 -0
  48. data/config/locales/hu.yml +8 -0
  49. data/config/locales/hy.yml +8 -0
  50. data/config/locales/id.yml +8 -0
  51. data/config/locales/is.yml +8 -0
  52. data/config/locales/it.yml +8 -0
  53. data/config/locales/ja.yml +8 -0
  54. data/config/locales/ka.yml +8 -0
  55. data/config/locales/kk.yml +8 -0
  56. data/config/locales/ko.yml +8 -0
  57. data/config/locales/lt.yml +8 -0
  58. data/config/locales/lv.yml +8 -0
  59. data/config/locales/ms.yml +8 -0
  60. data/config/locales/mt.yml +8 -0
  61. data/config/locales/nl.yml +8 -0
  62. data/config/locales/no.yml +8 -0
  63. data/config/locales/pa-pk.yml +8 -0
  64. data/config/locales/pa.yml +8 -0
  65. data/config/locales/pl.yml +8 -0
  66. data/config/locales/ps.yml +8 -0
  67. data/config/locales/pt.yml +8 -0
  68. data/config/locales/ro.yml +8 -0
  69. data/config/locales/ru.yml +8 -0
  70. data/config/locales/si.yml +8 -0
  71. data/config/locales/sk.yml +8 -0
  72. data/config/locales/sl.yml +8 -0
  73. data/config/locales/so.yml +8 -0
  74. data/config/locales/sq.yml +8 -0
  75. data/config/locales/sr.yml +8 -0
  76. data/config/locales/sv.yml +8 -0
  77. data/config/locales/sw.yml +8 -0
  78. data/config/locales/ta.yml +8 -0
  79. data/config/locales/th.yml +8 -0
  80. data/config/locales/tk.yml +8 -0
  81. data/config/locales/tr.yml +8 -0
  82. data/config/locales/uk.yml +8 -0
  83. data/config/locales/ur.yml +8 -0
  84. data/config/locales/uz.yml +8 -0
  85. data/config/locales/vi.yml +8 -0
  86. data/config/locales/zh-hk.yml +8 -0
  87. data/config/locales/zh-tw.yml +8 -0
  88. data/config/locales/zh.yml +8 -0
  89. data/lib/govuk_publishing_components/app_helpers/environment.rb +3 -8
  90. data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb +32 -11
  91. data/lib/govuk_publishing_components/presenters/meta_tags.rb +11 -4
  92. data/lib/govuk_publishing_components/version.rb +1 -1
  93. metadata +10 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0dd119f435f1a28904b9dcdb3606a673ce104affaf5ae042da92d0a0baed59f
4
- data.tar.gz: b8812490fbe415509399aafe027c44e73a1d6792462a1d36454ce8fc58c57790
3
+ metadata.gz: 44ddb25e4dea29d5e7be3b46f3285066ee9b4b4d82fb32adef948fe0c9c6689a
4
+ data.tar.gz: abf6448ae9381da77edba07cdda15ccc2228485cfbdf53812946920fa51a7fa5
5
5
  SHA512:
6
- metadata.gz: aca12277c18d9a05932d9b88d86a7c7e009a6fccc27740dd938165c19518b882b7b073b133215302e07930540f15af881e33fca4ee43fa4cf5ce09e9f53456f2
7
- data.tar.gz: e0a26bacdc1cc6bc26a8e9392cff1ed1173c4af095d02fce45fba908cd520ccf23f41cdf49c9b3d3c37dca77a03f2b331050f98eda781418c91379f2e9fd1683
6
+ metadata.gz: a8f8b390856e99383a5d93254437de57a229a8d55774f751a2b1f0bd915ceed8122edf440d4ee6f9687d10aaeedac04e0c0f4cc6ef8bcc501ccd8b401c69beb9
7
+ data.tar.gz: 6d5c6d8e570e8ad75d92dab36f9d3af804c63060bfbbb19eb3a7307f2f5f61ab713477743247f5805784578093dec65a19ba58e2e04b60783472718abbc4ecb1
@@ -5,21 +5,17 @@
5
5
 
6
6
  window.GOVUK = window.GOVUK || {}
7
7
 
8
+ var percentages = [
9
+ ['Percent', 20],
10
+ ['Percent', 40],
11
+ ['Percent', 60],
12
+ ['Percent', 80],
13
+ ['Percent', 100]
14
+ ]
15
+
8
16
  var CONFIG = {
9
- '/brexit': [
10
- ['Percent', 20],
11
- ['Percent', 40],
12
- ['Percent', 60],
13
- ['Percent', 80],
14
- ['Percent', 100]
15
- ],
16
- '/guidance/coronavirus-covid-19-information-for-the-public': [
17
- ['Percent', 20],
18
- ['Percent', 40],
19
- ['Percent', 60],
20
- ['Percent', 80],
21
- ['Percent', 100]
22
- ],
17
+ '/brexit': percentages,
18
+ '/guidance/coronavirus-covid-19-information-for-the-public': percentages,
23
19
  '/government/publications/the-essential-trustee-what-you-need-to-know-cc3/the-essential-trustee-what-you-need-to-know-what-you-need-to-do': [
24
20
  ['Heading', '1. About this guidance'],
25
21
  ['Heading', '2. Trustees’ duties at a glance'],
@@ -151,89 +147,61 @@
151
147
  '/wood-packaging-import-export': [
152
148
  ['Heading', 'Export solid wood packaging']
153
149
  ],
154
- '/guidance/answers-to-the-most-common-topics-asked-about-by-the-public-for-the-coronavirus-press-conference': [
155
- ['Percent', 20],
156
- ['Percent', 40],
157
- ['Percent', 60],
158
- ['Percent', 80],
159
- ['Percent', 100]
160
- ],
161
- '/coronavirus': [
162
- ['Percent', 20],
163
- ['Percent', 40],
164
- ['Percent', 60],
165
- ['Percent', 80],
166
- ['Percent', 100]
167
- ],
168
- '/coronavirus/education-and-childcare': [
169
- ['Percent', 20],
170
- ['Percent', 40],
171
- ['Percent', 60],
172
- ['Percent', 80],
173
- ['Percent', 100]
174
- ],
175
- '/coronavirus/worker-support': [
176
- ['Percent', 20],
177
- ['Percent', 40],
178
- ['Percent', 60],
179
- ['Percent', 80],
180
- ['Percent', 100]
181
- ],
182
- '/coronavirus/business-support': [
183
- ['Percent', 20],
184
- ['Percent', 40],
185
- ['Percent', 60],
186
- ['Percent', 80],
187
- ['Percent', 100]
188
- ],
189
- '/get-coronavirus-test': [
190
- ['Percent', 20],
191
- ['Percent', 40],
192
- ['Percent', 60],
193
- ['Percent', 80],
194
- ['Percent', 100]
195
- ],
150
+ '/guidance/answers-to-the-most-common-topics-asked-about-by-the-public-for-the-coronavirus-press-conference': percentages,
151
+ '/coronavirus': percentages,
152
+ '/coronavirus/education-and-childcare': percentages,
153
+ '/coronavirus/worker-support': percentages,
154
+ '/coronavirus/business-support': percentages,
155
+ '/get-coronavirus-test': percentages,
196
156
  '/next-steps-for-your-business/results': [
197
157
  ['Heading', 'Things you need to do next'],
198
158
  ['Heading', 'Rules to follow'],
199
159
  ['Heading', 'Good to know'],
200
160
  ['Heading', 'Change your answers']
201
161
  ],
202
- '/guidance/brexit-guidance-for-businesses': [
203
- ['Percent', 20],
204
- ['Percent', 40],
205
- ['Percent', 60],
206
- ['Percent', 80],
207
- ['Percent', 100]
208
- ],
209
- '/guidance/brexit-guidance-for-businesses.cy': [
210
- ['Percent', 20],
211
- ['Percent', 40],
212
- ['Percent', 60],
213
- ['Percent', 80],
214
- ['Percent', 100]
215
- ],
216
- '/guidance/brexit-guidance-for-individuals-and-families': [
217
- ['Percent', 20],
218
- ['Percent', 40],
219
- ['Percent', 60],
220
- ['Percent', 80],
221
- ['Percent', 100]
222
- ],
223
- '/guidance/brexit-guidance-for-individuals-and-families.cy': [
224
- ['Percent', 20],
225
- ['Percent', 40],
226
- ['Percent', 60],
227
- ['Percent', 80],
228
- ['Percent', 100]
229
- ],
230
- '/guidance/import-and-export-goods-using-preference-agreements': [
231
- ['Percent', 20],
232
- ['Percent', 40],
233
- ['Percent', 60],
234
- ['Percent', 80],
235
- ['Percent', 100]
236
- ]
162
+ '/guidance/brexit-guidance-for-businesses': percentages,
163
+ '/guidance/brexit-guidance-for-businesses.cy': percentages,
164
+ '/guidance/brexit-guidance-for-individuals-and-families': percentages,
165
+ '/guidance/brexit-guidance-for-individuals-and-families.cy': percentages,
166
+ '/guidance/import-and-export-goods-using-preference-agreements': percentages,
167
+ '/guidance/red-amber-and-green-list-rules-for-entering-england': [
168
+ ['Heading', 'Stay up-to-date'],
169
+ ['Heading', 'Red list of countries and territories'],
170
+ ['Heading', 'Amber list of countries and territories'],
171
+ ['Heading', 'Amber list rules if you are fully UK vaccinated'],
172
+ ['Heading', 'Amber list rules if you are not fully UK vaccinated'],
173
+ ['Heading', 'Green list countries and territories'],
174
+ ['Heading', 'Green list rules'],
175
+ ['Heading', 'Ireland, the UK, the Channel Islands and the Isle of Man'],
176
+ ['Heading', 'Transit stops in amber or red list countries'],
177
+ ['Heading', 'Job and medical exemptions'],
178
+ ['Heading', 'Travelling abroad from England'],
179
+ ['Heading', 'Demonstrating your COVID-19 vaccination status when travelling abroad'],
180
+ ['Heading', 'Foreign, Commonwealth & Development Office travel advice']
181
+ ],
182
+ '/guidance/travel-abroad-from-england-during-coronavirus-covid-19': [
183
+ ['Heading', 'Before you travel abroad'],
184
+ ['Heading', '1. Check the rules for the country you’re going to'],
185
+ ['Heading', '2. Find out what you need to do when you return'],
186
+ ['Heading', '3. Book any COVID-19 tests or quarantine hotel packages you need for your return'],
187
+ ['Heading', 'Before you return'],
188
+ ['Heading', 'After you return'],
189
+ ['Heading', 'Travelling with children'],
190
+ ['Heading', 'Ireland, the UK, the Channel Islands and the Isle of Man'],
191
+ ['Heading', 'Exemptions for work, medical or compassionate reasons']
192
+ ],
193
+ '/guidance/travel-to-england-from-another-country-during-coronavirus-covid-19': [
194
+ ['Heading', 'Before you travel'],
195
+ ['Heading', '1. Check the rules for the country you’re coming from or have travelled through'],
196
+ ['Heading', '2. Book any COVID-19 tests or quarantine hotel packages you need for your arrival'],
197
+ ['Heading', '3. Get tested and complete documents'],
198
+ ['Heading', 'When you arrive in England'],
199
+ ['Heading', 'Leaving England'],
200
+ ['Heading', 'Travelling with children'],
201
+ ['Heading', 'Ireland, the UK, the Channel Islands and the Isle of Man'],
202
+ ['Heading', 'Exemptions for work, medical or compassionate reasons']
203
+ ],
204
+ '/find-travel-test-provider': percentages
237
205
  }
238
206
 
239
207
  function ScrollTracker (sitewideConfig) {
@@ -0,0 +1,71 @@
1
+ //= require govuk/vendor/polyfills/Element/prototype/classList.js
2
+
3
+ window.GOVUK = window.GOVUK || {}
4
+ window.GOVUK.Modules = window.GOVUK.Modules || {};
5
+
6
+ (function (Modules) {
7
+ function SuperNavigationToggle ($module) {
8
+ this.$module = $module
9
+
10
+ this.showMenuText = $module.getAttribute('data-text-for-show-menu')
11
+ this.hideMenuText = $module.getAttribute('data-text-for-hide-menu')
12
+ this.buttonText = $module.getAttribute('data-text-for-button')
13
+
14
+ this.$button = this.setupButton($module)
15
+
16
+ this.$menu = document.getElementById(this.$button.getAttribute('aria-controls'))
17
+
18
+ this.syncStatus()
19
+ }
20
+
21
+ SuperNavigationToggle.prototype.setupButton = function (target) {
22
+ var menuHeading = target.getAttribute('aria-labelledby')
23
+ var adjacentTo = target.querySelector('#' + menuHeading)
24
+ var buttonText = document.createTextNode(this.buttonText)
25
+
26
+ var button = document.createElement('button')
27
+ button.type = 'button'
28
+ button.className = 'govuk-header__menu-button gem-c-layout-super-navigation-header__menu-button'
29
+ button.setAttribute('aria-controls', 'super-navigation-menu')
30
+ button.setAttribute('aria-label', this.showMenuText)
31
+ button.setAttribute('aria-expanded', false)
32
+
33
+ button.appendChild(buttonText)
34
+ adjacentTo.insertAdjacentElement('beforebegin', button)
35
+
36
+ return button
37
+ }
38
+
39
+ SuperNavigationToggle.prototype.syncStatus = function () {
40
+ this.status = this.$button.getAttribute('aria-expanded') === 'true' ? 'open' : 'closed'
41
+ }
42
+
43
+ SuperNavigationToggle.prototype.closeMenu = function () {
44
+ this.$menu.classList.remove('gem-c-layout-super-navigation-header__items--open')
45
+
46
+ this.$button.classList.remove('govuk-header__menu-button--open')
47
+ this.$button.setAttribute('aria-expanded', false)
48
+ this.$button.setAttribute('aria-label', this.showMenuText)
49
+ }
50
+
51
+ SuperNavigationToggle.prototype.openMenu = function () {
52
+ this.$menu.classList.add('gem-c-layout-super-navigation-header__items--open')
53
+
54
+ this.$button.classList.add('govuk-header__menu-button--open')
55
+ this.$button.setAttribute('aria-expanded', true)
56
+ this.$button.setAttribute('aria-label', this.hideMenuText)
57
+ }
58
+
59
+ SuperNavigationToggle.prototype.handleToggle = function () {
60
+ if (this.status === 'open') this.closeMenu()
61
+ if (this.status === 'closed') this.openMenu()
62
+
63
+ this.syncStatus()
64
+ }
65
+
66
+ SuperNavigationToggle.prototype.init = function () {
67
+ this.$button.addEventListener('click', this.handleToggle.bind(this))
68
+ }
69
+
70
+ Modules.SuperNavigationToggle = SuperNavigationToggle
71
+ })(window.GOVUK.Modules)
@@ -4,9 +4,16 @@
4
4
 
5
5
  window.GOVUK.triggerEvent = function (element, eventName, parameters) {
6
6
  var params = parameters || {}
7
- params.bubbles = true
8
- params.cancelable = true
9
7
  var event
8
+ var keyCode = params.keyCode
9
+
10
+ if (!Object.prototype.hasOwnProperty.call(params, 'bubbles')) {
11
+ params.bubbles = true
12
+ }
13
+
14
+ if (!Object.prototype.hasOwnProperty.call(params, 'cancelable')) {
15
+ params.cancelable = true
16
+ }
10
17
 
11
18
  if (typeof window.CustomEvent === 'function') {
12
19
  event = new window.CustomEvent(eventName, params)
@@ -15,6 +22,10 @@
15
22
  event.initCustomEvent(eventName, params.bubbles, params.cancelable, params.detail)
16
23
  }
17
24
 
25
+ if (keyCode) {
26
+ event.keyCode = keyCode
27
+ }
28
+
18
29
  element.dispatchEvent(event)
19
30
  }
20
31
  }(window))
@@ -42,12 +42,14 @@ $govuk-new-link-styles: true;
42
42
  @import "components/image-card";
43
43
  @import "components/input";
44
44
  @import "components/inset-text";
45
+ @import "components/intervention";
45
46
  @import "components/inverse-header";
46
47
  @import "components/label";
47
48
  @import "components/layout-footer";
48
49
  @import "components/layout-for-admin";
49
50
  @import "components/layout-for-public";
50
51
  @import "components/layout-header";
52
+ @import "components/layout-super-navigation-header";
51
53
  @import "components/lead-paragraph";
52
54
  @import "components/metadata";
53
55
  @import "components/modal-dialogue";
@@ -8,6 +8,7 @@
8
8
  @import "components/print/contents-list";
9
9
  @import "components/print/govspeak-html-publication";
10
10
  @import "components/print/govspeak";
11
+ @import "components/print/layout-super-navigation-header";
11
12
  @import "components/print/step-by-step-nav-header";
12
13
  @import "components/print/step-by-step-nav";
13
14
  @import "components/print/textarea";
@@ -6,7 +6,6 @@
6
6
  }
7
7
 
8
8
  .gem-c-document-list__item {
9
- overflow: hidden;
10
9
  margin-bottom: govuk-spacing(5);
11
10
  padding-top: govuk-spacing(2);
12
11
  border-top: 1px solid $govuk-border-colour;
@@ -18,11 +17,6 @@
18
17
  display: inline-block;
19
18
  }
20
19
 
21
- .gem-c-document-list__item-link {
22
- @include govuk-link-common;
23
- @include govuk-link-style-default;
24
- }
25
-
26
20
  .gem-c-document-list--no-underline {
27
21
  .gem-c-document-list__item-title {
28
22
  text-decoration: none;
@@ -156,18 +150,22 @@
156
150
  }
157
151
 
158
152
  .gem-c-document-list-child__link {
159
- @include govuk-link-common;
160
- @include govuk-link-style-default;
161
153
  text-decoration: none;
162
154
 
163
155
  &:hover {
164
156
  text-decoration: underline;
157
+ text-underline-offset: .1em;
158
+ @include govuk-link-hover-decoration;
159
+ }
160
+
161
+ &:focus {
162
+ text-decoration: none;
165
163
  }
166
164
  }
167
165
 
168
166
  .gem-c-document-list-child__description {
169
167
  @include govuk-text-colour;
170
- margin-top: 0;
168
+ margin-top: govuk-spacing(1);
171
169
  margin-bottom: govuk-spacing(1);
172
170
 
173
171
  @include govuk-media-query($until: tablet) {
@@ -0,0 +1,16 @@
1
+ .gem-c-intervention {
2
+ @include govuk-text-colour;
3
+ @include govuk-responsive-padding(4);
4
+ @include govuk-responsive-margin(4, "bottom");
5
+ background-color: govuk-colour("light-grey", $legacy: "grey-4");
6
+ }
7
+
8
+ .gem-c-intervention__title {
9
+ @include govuk-font(24, $weight: bold);
10
+ margin-top: 0;
11
+ @include govuk-responsive-margin(4, "bottom");
12
+ }
13
+
14
+ .gem-c-intervention__paragraph {
15
+ @include govuk-font(19);
16
+ }
@@ -106,10 +106,6 @@
106
106
  vertical-align: middle;
107
107
  }
108
108
 
109
- .gem-c-header__logotype-crown {
110
- top: -2px;
111
- }
112
-
113
109
  .gem-c-header__product-name {
114
110
  display: none;
115
111
 
@@ -0,0 +1,125 @@
1
+ $search-icon-size: 20px;
2
+
3
+ .gem-c-layout-super-navigation-header {
4
+ background: govuk-colour("black");
5
+ position: relative;
6
+ }
7
+
8
+ .gem-c-layout-super-navigation-header__header-logo {
9
+ height: govuk-spacing(6);
10
+ padding-top: govuk-spacing(3);
11
+ padding-bottom: govuk-spacing(3);
12
+
13
+ @include govuk-media-query($from: "desktop") {
14
+ display: block;
15
+ float: left;
16
+ }
17
+ }
18
+
19
+ .gem-c-layout-super-navigation-header__content {
20
+ @include govuk-media-query($from: "desktop") {
21
+ display: block;
22
+ float: right;
23
+ }
24
+ }
25
+
26
+ .gem-c-layout-super-navigation-header__items {
27
+ list-style: none;
28
+ margin: 0;
29
+ padding: 0 0 govuk-spacing(1) 0;
30
+
31
+ @include govuk-media-query($from: "desktop") {
32
+ padding: 0;
33
+ }
34
+ }
35
+
36
+ .gem-c-layout-super-navigation-header__item {
37
+ margin-right: 0;
38
+ padding: govuk-spacing(1) 0;
39
+
40
+ @include govuk-media-query($from: "desktop") {
41
+ float: left;
42
+ padding: 0;
43
+ }
44
+ }
45
+
46
+ .gem-c-layout-super-navigation-header__item-link {
47
+ display: block;
48
+ padding: govuk-spacing(3) 0;
49
+ position: relative;
50
+
51
+ @include govuk-media-query($from: "desktop") {
52
+ padding: govuk-spacing(4);
53
+ width: auto;
54
+ }
55
+
56
+ &:focus {
57
+ z-index: 1;
58
+ }
59
+ }
60
+
61
+ // Special search link
62
+ .gem-c-layout-super-navigation-header__item--search {
63
+ border-bottom: 0;
64
+ }
65
+
66
+ .gem-c-layout-super-navigation-header__item-link--search {
67
+ @include govuk-media-query($from: "desktop") {
68
+ background-color: $govuk-link-colour;
69
+ display: inherit;
70
+ width: govuk-spacing(4);
71
+
72
+ &:hover {
73
+ background-color: $govuk-link-hover-colour;
74
+ }
75
+
76
+ &:focus {
77
+ background-color: $govuk-focus-colour;
78
+ }
79
+ }
80
+ }
81
+
82
+ .gem-c-layout-super-navigation-header__item-link-text--search {
83
+ @include govuk-media-query($from: "desktop") {
84
+ @include govuk-visually-hidden;
85
+ }
86
+ }
87
+
88
+ .gem-c-layout-super-navigation-header__item-link-icon--search {
89
+ display: none;
90
+
91
+ @include govuk-media-query($from: "desktop") {
92
+ display: block;
93
+ height: $search-icon-size;
94
+ width: $search-icon-size;
95
+ }
96
+ }
97
+
98
+ .gem-c-layout-super-navigation-header__menu-button {
99
+ @include govuk-font($size: 19, $weight: bold, $line-height: 20px);
100
+ border-left: 1px solid govuk-colour("mid-grey");
101
+ border-right: 1px solid govuk-colour("mid-grey");
102
+ padding: govuk-spacing(4);
103
+ top: 0;
104
+
105
+ &:focus {
106
+ border-left-color: $govuk-focus-colour;
107
+ border-right-color: $govuk-focus-colour;
108
+ }
109
+ }
110
+
111
+ .js-enabled .gem-c-layout-super-navigation-header__items {
112
+ display: none;
113
+
114
+ @include govuk-media-query($from: "desktop") {
115
+ display: block;
116
+ }
117
+ }
118
+
119
+ .js-enabled .gem-c-layout-super-navigation-header__items--open {
120
+ display: block;
121
+ }
122
+
123
+ .gem-c-layout-super-navigation-header__dropdown-menu {
124
+ display: none;
125
+ }