govuk_publishing_components 24.19.0 → 25.0.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 (109) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics.js +2 -0
  3. data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +59 -91
  4. data/app/assets/javascripts/govuk_publishing_components/{lib → analytics}/track-click.js +0 -0
  5. data/app/assets/javascripts/govuk_publishing_components/{lib/select.js → analytics/track-select-change.js} +0 -0
  6. data/app/assets/javascripts/govuk_publishing_components/components/intervention.js +16 -0
  7. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +71 -0
  8. data/app/assets/javascripts/govuk_publishing_components/lib/trigger-event.js +13 -2
  9. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +1 -0
  11. data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +0 -1
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +7 -9
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +12 -10
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +125 -0
  15. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +9 -0
  16. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-super-navigation-header.scss +3 -0
  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 +26 -8
  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/_radio.html.erb +2 -3
  23. data/app/views/govuk_publishing_components/components/_title.html.erb +1 -4
  24. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +9 -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_super_navigation_header.yml +22 -0
  27. data/app/views/govuk_publishing_components/components/docs/radio.yml +4 -15
  28. data/app/views/govuk_publishing_components/components/docs/title.yml +0 -12
  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 +87 -1
  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/presenters/content_breadcrumbs_based_on_priority.rb +32 -11
  95. data/lib/govuk_publishing_components/presenters/meta_tags.rb +11 -4
  96. data/lib/govuk_publishing_components/version.rb +1 -1
  97. metadata +10 -16
  98. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_px-to-em.scss +0 -12
  99. data/app/assets/stylesheets/govuk_publishing_components/components/print/_attachment.scss +0 -2
  100. data/app/assets/stylesheets/govuk_publishing_components/components/print/_back-link.scss +0 -2
  101. data/app/assets/stylesheets/govuk_publishing_components/components/print/_feedback.scss +0 -2
  102. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-footer.scss +0 -2
  103. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-header.scss +0 -2
  104. data/app/assets/stylesheets/govuk_publishing_components/components/print/_metadata.scss +0 -2
  105. data/app/assets/stylesheets/govuk_publishing_components/components/print/_search.scss +0 -2
  106. data/app/assets/stylesheets/govuk_publishing_components/components/print/_share-links.scss +0 -2
  107. data/app/assets/stylesheets/govuk_publishing_components/components/print/_skip-link.scss +0 -2
  108. data/app/assets/stylesheets/govuk_publishing_components/components/print/_subscription-links.scss +0 -2
  109. data/app/assets/stylesheets/govuk_publishing_components/components/print/_translation-nav.scss +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ccd720a9e54c8d5037c7d3878adf5ed2ba18b876f632447d451f1ca8a0ffd6e
4
- data.tar.gz: a13272a73cbdcd36bfd42c312da9d568a89ed705cb27c923d424f91c6d163769
3
+ metadata.gz: 4930037fb8d76aa6cf75218fbed6498b61d7c2cc6ff88510a3dce4e149b3fee0
4
+ data.tar.gz: 206843c301aa7361c39e7453b2e944eb119c3ecbbb81c5b274978c8117439073
5
5
  SHA512:
6
- metadata.gz: f2405f9f3a73b35945f495505b4e88485aa00698eff3f2e8afbbd1e6e5c800542335b93f02758014a03537ad7936ea8e882459f0d791a8355c47c410c306234c
7
- data.tar.gz: 3d8d34f91ea142e1597d87a939c6db2e69bb81780506b58ffe34e0cbb56eb3df425b66cedb1d00e1a00848ebc64c7ace9fab1809728ebfa7bab9ca880d18d9a7
6
+ metadata.gz: 5ed7f1b00624cf90d8f1f75dfd7351968f358b4c9be1f3ec3c1f8715d315772ad6e9fcd3adb020cc01a87cd058992f4492bcbddd7677af74e5b378fe7ea037e1
7
+ data.tar.gz: 73fb36e36733e1b6652276c309e161979255976a913863a77d5245385180fb1daf0ed154d5edbfeb98711304ef307daf5b3df85b0aacabe3b1cb04720ac62dc9
@@ -15,3 +15,5 @@
15
15
  //= require ./analytics/init
16
16
  //= require ./analytics/scroll-tracker
17
17
  //= require ./analytics/explicit-cross-domain-links
18
+ //= require ./analytics/track-click
19
+ //= require ./analytics/track-select-change
@@ -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,16 @@
1
+ window.GOVUK = window.GOVUK || {}
2
+ window.GOVUK.Modules = window.GOVUK.Modules || {};
3
+
4
+ (function (Modules) {
5
+ function Intervention ($module) {
6
+ this.$module = $module
7
+ }
8
+
9
+ Intervention.prototype.init = function () {
10
+ if (window.GOVUK.analytics && window.GOVUK.analytics.trackEvent) {
11
+ window.GOVUK.analytics.trackEvent('interventionBanner', 'interventionShown')
12
+ }
13
+ }
14
+
15
+ Modules.Intervention = Intervention
16
+ })(window.GOVUK.Modules)
@@ -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))
@@ -49,6 +49,7 @@ $govuk-new-link-styles: true;
49
49
  @import "components/layout-for-admin";
50
50
  @import "components/layout-for-public";
51
51
  @import "components/layout-header";
52
+ @import "components/layout-super-navigation-header";
52
53
  @import "components/lead-paragraph";
53
54
  @import "components/metadata";
54
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";
@@ -8,7 +8,6 @@
8
8
 
9
9
  @import "govuk_publishing_components/components/helpers/brand-colours";
10
10
  @import "govuk_publishing_components/components/helpers/link";
11
- @import "govuk_publishing_components/components/helpers/px-to-em";
12
11
  @import "govuk_publishing_components/components/mixins/govuk-template-link-focus-override";
13
12
  @import "govuk_publishing_components/components/mixins/media-down";
14
13
  @import "govuk_publishing_components/components/mixins/margins";
@@ -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) {
@@ -1,16 +1,18 @@
1
1
  .gem-c-intervention {
2
2
  @include govuk-text-colour;
3
- @include govuk-responsive-padding(4);
4
- @include govuk-responsive-margin(4, "bottom");
3
+ @include govuk-responsive-padding(6, "left");
4
+ @include govuk-responsive-padding(6, "right");
5
+ @include govuk-responsive-padding(4, "top");
6
+ @include govuk-responsive-padding(4, "bottom");
7
+ @include govuk-responsive-margin(6, "bottom");
5
8
  background-color: govuk-colour("light-grey", $legacy: "grey-4");
6
- }
7
9
 
8
- .gem-c-intervention__title {
9
- @include govuk-font(24, $weight: bold);
10
- margin-top: 0;
11
- @include govuk-responsive-margin(4, "bottom");
12
- }
10
+ .gem-c-intervention__title {
11
+ @include govuk-responsive-margin(0);
12
+ @include govuk-responsive-padding(4, "bottom");
13
+ }
13
14
 
14
- .gem-c-intervention__paragraph {
15
- @include govuk-font(19);
15
+ .govuk-body:last-of-type {
16
+ @include govuk-responsive-margin(0, "bottom");
17
+ }
16
18
  }
@@ -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
+ }