govuk_publishing_components 24.18.4 → 24.21.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.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +59 -77
  3. data/app/assets/javascripts/govuk_publishing_components/components/details.js +6 -4
  4. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +71 -0
  5. data/app/assets/javascripts/govuk_publishing_components/lib/trigger-event.js +13 -2
  6. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +2 -0
  7. data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +1 -0
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +5 -3
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +7 -9
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +16 -0
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +0 -4
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +125 -0
  13. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +9 -0
  14. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-super-navigation-header.scss +3 -0
  15. data/app/views/govuk_publishing_components/component_guide/index.html.erb +1 -1
  16. data/app/views/govuk_publishing_components/components/_details.html.erb +7 -4
  17. data/app/views/govuk_publishing_components/components/_document_list.html.erb +3 -3
  18. data/app/views/govuk_publishing_components/components/_govspeak.html.erb +2 -0
  19. data/app/views/govuk_publishing_components/components/_intervention.html.erb +15 -0
  20. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +19 -13
  21. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +121 -0
  22. data/app/views/govuk_publishing_components/components/docs/details.yml +1 -1
  23. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +9 -0
  24. data/app/views/govuk_publishing_components/components/docs/intervention.yml +24 -0
  25. data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +4 -0
  26. data/app/views/govuk_publishing_components/components/docs/layout_header.yml +4 -1
  27. data/app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml +22 -0
  28. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +3 -4
  29. data/config/initializers/assets.rb +0 -1
  30. data/config/locales/ar.yml +8 -0
  31. data/config/locales/az.yml +8 -0
  32. data/config/locales/be.yml +8 -0
  33. data/config/locales/bg.yml +8 -0
  34. data/config/locales/bn.yml +8 -0
  35. data/config/locales/cs.yml +8 -0
  36. data/config/locales/cy.yml +8 -0
  37. data/config/locales/da.yml +8 -0
  38. data/config/locales/de.yml +8 -0
  39. data/config/locales/dr.yml +8 -0
  40. data/config/locales/el.yml +8 -0
  41. data/config/locales/en.yml +89 -0
  42. data/config/locales/es-419.yml +8 -0
  43. data/config/locales/es.yml +8 -0
  44. data/config/locales/et.yml +8 -0
  45. data/config/locales/fa.yml +8 -0
  46. data/config/locales/fi.yml +8 -0
  47. data/config/locales/fr.yml +8 -0
  48. data/config/locales/gd.yml +8 -0
  49. data/config/locales/gu.yml +8 -0
  50. data/config/locales/he.yml +8 -0
  51. data/config/locales/hi.yml +8 -0
  52. data/config/locales/hr.yml +8 -0
  53. data/config/locales/hu.yml +8 -0
  54. data/config/locales/hy.yml +8 -0
  55. data/config/locales/id.yml +8 -0
  56. data/config/locales/is.yml +8 -0
  57. data/config/locales/it.yml +8 -0
  58. data/config/locales/ja.yml +8 -0
  59. data/config/locales/ka.yml +8 -0
  60. data/config/locales/kk.yml +8 -0
  61. data/config/locales/ko.yml +8 -0
  62. data/config/locales/lt.yml +8 -0
  63. data/config/locales/lv.yml +8 -0
  64. data/config/locales/ms.yml +8 -0
  65. data/config/locales/mt.yml +8 -0
  66. data/config/locales/nl.yml +8 -0
  67. data/config/locales/no.yml +8 -0
  68. data/config/locales/pa-pk.yml +8 -0
  69. data/config/locales/pa.yml +8 -0
  70. data/config/locales/pl.yml +8 -0
  71. data/config/locales/ps.yml +8 -0
  72. data/config/locales/pt.yml +8 -0
  73. data/config/locales/ro.yml +8 -0
  74. data/config/locales/ru.yml +8 -0
  75. data/config/locales/si.yml +8 -0
  76. data/config/locales/sk.yml +8 -0
  77. data/config/locales/sl.yml +8 -0
  78. data/config/locales/so.yml +8 -0
  79. data/config/locales/sq.yml +8 -0
  80. data/config/locales/sr.yml +8 -0
  81. data/config/locales/sv.yml +8 -0
  82. data/config/locales/sw.yml +8 -0
  83. data/config/locales/ta.yml +8 -0
  84. data/config/locales/th.yml +8 -0
  85. data/config/locales/tk.yml +8 -0
  86. data/config/locales/tr.yml +8 -0
  87. data/config/locales/uk.yml +8 -0
  88. data/config/locales/ur.yml +8 -0
  89. data/config/locales/uz.yml +8 -0
  90. data/config/locales/vi.yml +8 -0
  91. data/config/locales/zh-hk.yml +8 -0
  92. data/config/locales/zh-tw.yml +8 -0
  93. data/config/locales/zh.yml +8 -0
  94. data/lib/govuk_publishing_components/app_helpers/environment.rb +3 -8
  95. data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_priority.rb +30 -11
  96. data/lib/govuk_publishing_components/presenters/meta_tags.rb +11 -4
  97. data/lib/govuk_publishing_components/version.rb +1 -1
  98. metadata +10 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 356af78d76ad3c161339e6c908f64e22aa8ce6da250fa1389ec2d5095d28c906
4
- data.tar.gz: e820884ca39a8533a260ae07b824bee43d3d0616e4434f70e8d8a5212ec5f693
3
+ metadata.gz: e658a82fdcc66d27c4e76f3fcfc8743612d80ca4f4b98493db30bc650ba5175c
4
+ data.tar.gz: 65fa6a0bd681467c70a64a106b39933c4275cf716c1e961e6397912d43f32a50
5
5
  SHA512:
6
- metadata.gz: 115b6017568f069bece6086533f4e24e03af451682b59323924e96fe5996dc6c9e6f7597226571adba3fcba0df5798f85d8cfbd55f3ecaeaa49ac570946876af
7
- data.tar.gz: 10f2ba6089990b0703e6cc4bc37aa3fc9e689560d8dfa9c193bf60aac1bc8536693e5f67a1501fdd836a408ad41d2ea3f191a640271425a27148bd8e1df54baf
6
+ metadata.gz: cd7c02f1d17a3a72a5e74d70e1cad6b66d9ed2b48c8ab3d123a2397bb8062024084ffc650030a24742d556285f7e21b0474814e233a90554e29b5163a3cbd9c3
7
+ data.tar.gz: '0890b578800c9eb7649ad5450b0f8cc94c1d2838947f3ce151932ee129c501599eb2072df826c63cbfdfc16fefa4c21e4712c719d8f1187b397c64d66cc3b0b5'
@@ -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,75 +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-individuals-and-families': [
210
- ['Percent', 20],
211
- ['Percent', 40],
212
- ['Percent', 60],
213
- ['Percent', 80],
214
- ['Percent', 100]
215
- ],
216
- '/guidance/import-and-export-goods-using-preference-agreements': [
217
- ['Percent', 20],
218
- ['Percent', 40],
219
- ['Percent', 60],
220
- ['Percent', 80],
221
- ['Percent', 100]
222
- ]
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
223
205
  }
224
206
 
225
207
  function ScrollTracker (sitewideConfig) {
@@ -7,24 +7,26 @@ window.GOVUK.Modules.GovukDetails = window.GOVUKFrontend;
7
7
  (function (Modules) {
8
8
  function GemDetails ($module) {
9
9
  this.$module = $module
10
- this.customTrackLabel = this.$module.getAttribute('data-track-label')
10
+ this.$summary = this.$module.querySelector('.govuk-details__summary')
11
+
12
+ this.customTrackLabel = this.$summary.getAttribute('data-track-label')
11
13
  this.detailsClick = this.$module.querySelector('[data-details-track-click]')
12
14
  }
13
15
 
14
16
  GemDetails.prototype.init = function () {
15
17
  if (this.customTrackLabel) { // If a custom label has been provided, we can simply call the tracking module
16
18
  var trackDetails = new window.GOVUK.Modules.GemTrackClick()
17
- trackDetails.start($(this.$module))
19
+ trackDetails.start($(this.$summary))
18
20
  } else if (this.detailsClick) { // If no custom label is set, we use the open/close status as the label
19
21
  this.detailsClick.addEventListener('click', function (event) {
20
- this.trackDefault(this.$module)
22
+ this.trackDefault(this.$summary)
21
23
  }.bind(this))
22
24
  }
23
25
  }
24
26
 
25
27
  GemDetails.prototype.trackDefault = function (element) {
26
28
  if (window.GOVUK.analytics && window.GOVUK.analytics.trackEvent) {
27
- var componentStatus = (element.getAttribute('open') == null) ? 'open' : 'closed'
29
+ var componentStatus = (this.$module.getAttribute('open') == null) ? 'open' : 'closed'
28
30
  var trackCategory = element.getAttribute('data-track-category')
29
31
  var trackAction = element.getAttribute('data-track-action')
30
32
  var trackOptions = element.getAttribute('data-track-options')
@@ -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";
@@ -151,11 +151,11 @@
151
151
 
152
152
  &:before {
153
153
  height: 30px;
154
- width: 35px;
154
+ width: 30px;
155
155
  background-image: image-url("govuk_publishing_components/action-link-arrow--brexit.svg");
156
156
  background-repeat: no-repeat;
157
- background-size: 25px auto;
158
- background-position: 0 0;
157
+ background-size: 18px auto;
158
+ background-position: 0 2px;
159
159
  }
160
160
 
161
161
  @include govuk-media-query($until: tablet) {
@@ -166,7 +166,9 @@
166
166
  margin-bottom: govuk-spacing(2);
167
167
 
168
168
  &:before {
169
+ width: 35px;
169
170
  background-position: 0 4px;
171
+ background-size: 25px auto;
170
172
  }
171
173
  }
172
174
  }
@@ -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
+ }