govuk_publishing_components 24.10.0 → 24.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/analytics/pii.js +1 -1
  3. data/app/assets/javascripts/govuk_publishing_components/analytics/scroll-tracker.js +6 -248
  4. data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +1 -1
  5. data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +1 -0
  6. data/app/assets/javascripts/govuk_publishing_components/components/feedback.js +142 -104
  7. data/app/assets/javascripts/govuk_publishing_components/components/reorderable-list.js +1 -1
  8. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +2 -2
  9. data/app/assets/javascripts/govuk_publishing_components/lib/trigger-event.js +18 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +0 -11
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +1 -0
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +15 -18
  13. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss +27 -24
  14. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +1 -1
  15. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -0
  16. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +1 -0
  17. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +1 -0
  18. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -0
  19. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +1 -0
  20. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +1 -0
  21. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_form-download.scss +19 -16
  22. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_fraction.scss +1 -0
  23. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +30 -27
  24. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -0
  25. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +1 -0
  26. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -0
  27. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +26 -21
  28. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -0
  29. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_steps.scss +19 -16
  30. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_summary.scss +21 -18
  31. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +1 -0
  32. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +1 -0
  33. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -0
  34. data/app/assets/stylesheets/govuk_publishing_components/components/print/_attachment.scss +2 -3
  35. data/app/assets/stylesheets/govuk_publishing_components/components/print/_back-link.scss +2 -3
  36. data/app/assets/stylesheets/govuk_publishing_components/components/print/_button.scss +0 -4
  37. data/app/assets/stylesheets/govuk_publishing_components/components/print/_feedback.scss +2 -3
  38. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-footer.scss +2 -6
  39. data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-header.scss +2 -3
  40. data/app/assets/stylesheets/govuk_publishing_components/components/print/_metadata.scss +2 -6
  41. data/app/assets/stylesheets/govuk_publishing_components/components/print/_search.scss +2 -3
  42. data/app/assets/stylesheets/govuk_publishing_components/components/print/_share-links.scss +2 -3
  43. data/app/assets/stylesheets/govuk_publishing_components/components/print/_skip-link.scss +2 -3
  44. data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav-header.scss +0 -4
  45. data/app/assets/stylesheets/govuk_publishing_components/components/print/_subscription-links.scss +2 -3
  46. data/app/assets/stylesheets/govuk_publishing_components/components/print/_translation-nav.scss +2 -3
  47. data/app/views/govuk_publishing_components/components/_attachment.html.erb +1 -1
  48. data/app/views/govuk_publishing_components/components/_back_link.html.erb +1 -1
  49. data/app/views/govuk_publishing_components/components/_button.html.erb +1 -1
  50. data/app/views/govuk_publishing_components/components/_feedback.html.erb +1 -1
  51. data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +7 -7
  52. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +5 -3
  53. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +1 -1
  54. data/app/views/govuk_publishing_components/components/_machine_readable_metadata.html.erb +1 -1
  55. data/app/views/govuk_publishing_components/components/_metadata.html.erb +9 -8
  56. data/app/views/govuk_publishing_components/components/_phase_banner.html.erb +1 -5
  57. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +1 -1
  58. data/app/views/govuk_publishing_components/components/_print_link.html.erb +1 -1
  59. data/app/views/govuk_publishing_components/components/_radio.html.erb +6 -11
  60. data/app/views/govuk_publishing_components/components/_search.html.erb +1 -1
  61. data/app/views/govuk_publishing_components/components/_share_links.html.erb +1 -1
  62. data/app/views/govuk_publishing_components/components/_skip_link.html.erb +1 -1
  63. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +6 -6
  64. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +1 -1
  65. data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +2 -2
  66. data/app/views/govuk_publishing_components/components/_success_alert.html.erb +1 -1
  67. data/app/views/govuk_publishing_components/components/_translation_nav.html.erb +1 -1
  68. data/app/views/govuk_publishing_components/components/docs/feedback.yml +2 -0
  69. data/app/views/govuk_publishing_components/components/docs/phase_banner.yml +2 -2
  70. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +2 -2
  71. data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +4 -4
  72. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +2 -2
  73. data/config/locales/ar.yml +123 -0
  74. data/config/locales/az.yml +123 -0
  75. data/config/locales/be.yml +123 -0
  76. data/config/locales/bg.yml +123 -0
  77. data/config/locales/bn.yml +123 -0
  78. data/config/locales/cs.yml +123 -0
  79. data/config/locales/cy.yml +115 -6
  80. data/config/locales/da.yml +123 -0
  81. data/config/locales/de.yml +123 -0
  82. data/config/locales/dr.yml +123 -0
  83. data/config/locales/el.yml +123 -0
  84. data/config/locales/en.yml +111 -103
  85. data/config/locales/es-419.yml +123 -0
  86. data/config/locales/es.yml +123 -0
  87. data/config/locales/et.yml +120 -0
  88. data/config/locales/fa.yml +123 -0
  89. data/config/locales/fi.yml +123 -0
  90. data/config/locales/fr.yml +120 -0
  91. data/config/locales/gd.yml +123 -0
  92. data/config/locales/gu.yml +123 -0
  93. data/config/locales/he.yml +123 -0
  94. data/config/locales/hi.yml +123 -0
  95. data/config/locales/hr.yml +123 -0
  96. data/config/locales/hu.yml +123 -0
  97. data/config/locales/hy.yml +123 -0
  98. data/config/locales/id.yml +123 -0
  99. data/config/locales/is.yml +123 -0
  100. data/config/locales/it.yml +123 -0
  101. data/config/locales/ja.yml +123 -0
  102. data/config/locales/ka.yml +123 -0
  103. data/config/locales/kk.yml +123 -0
  104. data/config/locales/ko.yml +123 -0
  105. data/config/locales/lt.yml +123 -0
  106. data/config/locales/lv.yml +123 -0
  107. data/config/locales/ms.yml +123 -0
  108. data/config/locales/mt.yml +123 -0
  109. data/config/locales/nl.yml +123 -0
  110. data/config/locales/no.yml +124 -1
  111. data/config/locales/pa-pk.yml +123 -0
  112. data/config/locales/pa.yml +123 -0
  113. data/config/locales/pl.yml +123 -0
  114. data/config/locales/ps.yml +123 -0
  115. data/config/locales/pt.yml +123 -0
  116. data/config/locales/ro.yml +123 -0
  117. data/config/locales/ru.yml +123 -0
  118. data/config/locales/si.yml +123 -0
  119. data/config/locales/sk.yml +123 -0
  120. data/config/locales/sl.yml +123 -0
  121. data/config/locales/so.yml +123 -0
  122. data/config/locales/sq.yml +123 -0
  123. data/config/locales/sr.yml +123 -0
  124. data/config/locales/sv.yml +123 -0
  125. data/config/locales/sw.yml +123 -0
  126. data/config/locales/ta.yml +123 -0
  127. data/config/locales/th.yml +123 -0
  128. data/config/locales/tk.yml +123 -0
  129. data/config/locales/tr.yml +123 -0
  130. data/config/locales/uk.yml +123 -0
  131. data/config/locales/ur.yml +123 -0
  132. data/config/locales/uz.yml +123 -0
  133. data/config/locales/vi.yml +123 -0
  134. data/config/locales/zh-hk.yml +123 -0
  135. data/config/locales/zh-tw.yml +123 -0
  136. data/config/locales/zh.yml +123 -0
  137. data/lib/govuk_publishing_components/presenters/breadcrumb_selector.rb +5 -0
  138. data/lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_taxons.rb +1 -2
  139. data/lib/govuk_publishing_components/presenters/content_item.rb +4 -0
  140. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +4 -0
  141. data/lib/govuk_publishing_components/presenters/machine_readable/page.rb +4 -0
  142. data/lib/govuk_publishing_components/version.rb +1 -1
  143. data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +7 -16
  144. data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +4 -15
  145. data/node_modules/govuk-frontend/govuk/components/character-count/macro-options.json +1 -1
  146. data/node_modules/govuk-frontend/govuk/components/checkboxes/macro-options.json +3 -3
  147. data/node_modules/govuk-frontend/govuk/components/cookie-banner/README.md +15 -0
  148. data/node_modules/govuk-frontend/govuk/components/cookie-banner/fixtures.json +40 -22
  149. data/node_modules/govuk-frontend/govuk/components/cookie-banner/macro-options.json +6 -6
  150. data/node_modules/govuk-frontend/govuk/components/cookie-banner/template.njk +15 -5
  151. data/node_modules/govuk-frontend/govuk/components/date-input/macro-options.json +2 -2
  152. data/node_modules/govuk-frontend/govuk/components/details/_index.scss +5 -1
  153. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +13 -14
  154. data/node_modules/govuk-frontend/govuk/components/file-upload/macro-options.json +1 -1
  155. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +14 -19
  156. data/node_modules/govuk-frontend/govuk/components/header/_index.scss +39 -21
  157. data/node_modules/govuk-frontend/govuk/components/input/macro-options.json +1 -1
  158. data/node_modules/govuk-frontend/govuk/components/phase-banner/_index.scss +1 -1
  159. data/node_modules/govuk-frontend/govuk/components/radios/macro-options.json +3 -3
  160. data/node_modules/govuk-frontend/govuk/components/select/macro-options.json +1 -1
  161. data/node_modules/govuk-frontend/govuk/components/skip-link/_index.scss +1 -1
  162. data/node_modules/govuk-frontend/govuk/components/tabs/_index.scss +1 -6
  163. data/node_modules/govuk-frontend/govuk/components/textarea/macro-options.json +1 -1
  164. data/node_modules/govuk-frontend/govuk/components/warning-text/_index.scss +10 -0
  165. data/node_modules/govuk-frontend/govuk/core/_links.scss +8 -0
  166. data/node_modules/govuk-frontend/govuk/helpers/_links.scss +153 -38
  167. data/node_modules/govuk-frontend/govuk/settings/_all.scss +2 -0
  168. data/node_modules/govuk-frontend/govuk/settings/_links.scss +62 -0
  169. data/node_modules/govuk-frontend/package.json +1 -1
  170. metadata +20 -3
@@ -98,7 +98,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
98
98
  event = new window.CustomEvent(eventName, params)
99
99
  } else {
100
100
  event = document.createEvent('CustomEvent')
101
- event.initCustomEvent(eventName, params.bubbles, params.cancelable)
101
+ event.initCustomEvent(eventName, params.bubbles, params.cancelable, null)
102
102
  }
103
103
 
104
104
  element.dispatchEvent(event)
@@ -74,7 +74,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
74
74
 
75
75
  Gemstepnav.prototype.addShowHideAllButton = function () {
76
76
  var showall = document.createElement('div')
77
- showall.className = 'gem-c-step-nav__controls'
77
+ showall.className = 'gem-c-step-nav__controls govuk-!-display-none-print'
78
78
  showall.innerHTML = '<button aria-expanded="false" class="gem-c-step-nav__button gem-c-step-nav__button--controls js-step-controls-button">' +
79
79
  '<span class="gem-c-step-nav__button-text gem-c-step-nav__button-text--all js-step-controls-button-text">' + this.$module.actions.showAllText + '</span>' +
80
80
  '<span class="gem-c-step-nav__chevron js-step-controls-button-icon">' + this.$module.downChevronSvg + '</span>' +
@@ -98,7 +98,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
98
98
  var commaSpan = document.createElement('span')
99
99
  var thisSectionSpan = document.createElement('span')
100
100
 
101
- showHideSpan.className = 'gem-c-step-nav__toggle-link js-toggle-link'
101
+ showHideSpan.className = 'gem-c-step-nav__toggle-link js-toggle-link govuk-!-display-none-print'
102
102
  showHideSpanText.className = 'gem-c-step-nav__button-text js-toggle-link-text'
103
103
  showHideSpanIcon.className = 'gem-c-step-nav__chevron js-toggle-link-icon'
104
104
  commaSpan.className = 'govuk-visually-hidden'
@@ -0,0 +1,18 @@
1
+ (function (root) {
2
+ 'use strict'
3
+ window.GOVUK = window.GOVUK || {}
4
+
5
+ window.GOVUK.triggerEvent = function (element, eventName) {
6
+ var params = { bubbles: true, cancelable: true }
7
+ var event
8
+
9
+ if (typeof window.CustomEvent === 'function') {
10
+ event = new window.CustomEvent(eventName, params)
11
+ } else {
12
+ event = document.createEvent('CustomEvent')
13
+ event.initCustomEvent(eventName, params.bubbles, params.cancelable, null)
14
+ }
15
+
16
+ element.dispatchEvent(event)
17
+ }
18
+ }(window))
@@ -4,22 +4,11 @@
4
4
  @import "govuk_frontend_support";
5
5
 
6
6
  @import "components/print/accordion";
7
- @import "components/print/attachment";
8
- @import "components/print/back-link";
9
7
  @import "components/print/button";
10
8
  @import "components/print/contents-list";
11
- @import "components/print/feedback";
12
9
  @import "components/print/govspeak-html-publication";
13
10
  @import "components/print/govspeak";
14
- @import "components/print/layout-header";
15
- @import "components/print/layout-footer";
16
- @import "components/print/metadata";
17
- @import "components/print/search";
18
- @import "components/print/share-links";
19
- @import "components/print/skip-link";
20
11
  @import "components/print/step-by-step-nav-header";
21
12
  @import "components/print/step-by-step-nav";
22
- @import "components/print/subscription-links";
23
13
  @import "components/print/textarea";
24
14
  @import "components/print/title";
25
- @import "components/print/translation-nav";
@@ -21,6 +21,7 @@
21
21
  @import "govspeak/typography";
22
22
  @import "govspeak/warning-callout";
23
23
 
24
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
24
25
  .gem-c-govspeak {
25
26
  &.direction-rtl {
26
27
  direction: rtl;
@@ -7,6 +7,11 @@
7
7
  a {
8
8
  @include govuk-link-common;
9
9
  @include govuk-link-style-default;
10
+ font-weight: bold;
11
+ }
12
+
13
+ .gem-c-metadata__definition-link {
14
+ font-weight: normal;
10
15
  }
11
16
  }
12
17
 
@@ -29,17 +34,19 @@
29
34
  }
30
35
  }
31
36
 
37
+ .gem-c-metadata__term,
38
+ .gem-c-metadata__definition {
39
+ line-height: 1.4;
40
+ }
41
+
32
42
  .gem-c-metadata__term {
33
43
  margin-top: .5em;
34
- line-height: 1.4;
35
44
 
36
45
  @include govuk-media-query($from: tablet) {
37
46
  box-sizing: border-box;
38
47
  float: left;
39
48
  clear: left;
40
- width: 30%;
41
- max-width: 11em;
42
- padding-right: govuk-spacing(2);
49
+ padding-right: govuk-spacing(1);
43
50
  margin-top: 0;
44
51
  }
45
52
  }
@@ -49,31 +56,21 @@
49
56
  clear: right;
50
57
 
51
58
  @include govuk-media-query($from: tablet) {
52
- padding-left: govuk-spacing(2);
59
+ padding-left: govuk-spacing(1);
53
60
  padding-right: 0;
54
61
  }
55
62
  }
56
63
 
57
64
  .gem-c-metadata__definition {
58
65
  margin: 0;
59
- line-height: 1.4;
60
66
 
61
67
  @include govuk-media-query($from: tablet) {
62
- float: left;
63
- width: 70%;
68
+ &:not(:last-of-type) {
69
+ margin-bottom: govuk-spacing(1);
70
+ }
64
71
  }
65
72
  }
66
73
 
67
- .gem-c-metadata__definition-link {
68
- text-decoration: none;
69
- }
70
-
71
- .gem-c-metadata__definition-link:focus,
72
- .gem-c-metadata__definition-link:active,
73
- .gem-c-metadata__definition-link:hover {
74
- text-decoration: underline;
75
- }
76
-
77
74
  .gem-c-metadata.direction-rtl .gem-c-metadata__definition {
78
75
  float: right;
79
76
  }
@@ -1,33 +1,36 @@
1
1
  $info-background: #d5e8f3;
2
2
  $high-alert-border: #cc0000;
3
3
 
4
- .gem-c-govspeak .advisory {
5
- background-image: image-url("govuk_publishing_components/icon-important.svg");
6
- background-repeat: no-repeat;
7
- background-size: 30px 30px;
8
- background-position: 98% center;
9
- background-color: $info-background;
10
- line-height: 1.3em;
11
- margin: 0 -1em 1em;
12
- padding: govuk-spacing(3) govuk-spacing(8) govuk-spacing(3) govuk-spacing(3);
13
- text-align: left;
4
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
5
+ .gem-c-govspeak {
6
+ .advisory {
7
+ background-image: image-url("govuk_publishing_components/icon-important.svg");
8
+ background-repeat: no-repeat;
9
+ background-size: 30px 30px;
10
+ background-position: 98% center;
11
+ background-color: $info-background;
12
+ line-height: 1.3em;
13
+ margin: 0 -1em 1em;
14
+ padding: govuk-spacing(3) govuk-spacing(8) govuk-spacing(3) govuk-spacing(3);
15
+ text-align: left;
14
16
 
15
- p {
16
- margin: 0 .75em 0 0;
17
- min-height: 1.75em;
18
- padding-right: 3em;
19
- }
17
+ p {
18
+ margin: 0 .75em 0 0;
19
+ min-height: 1.75em;
20
+ padding-right: 3em;
21
+ }
20
22
 
21
- strong {
22
- font-weight: 400;
23
- }
23
+ strong {
24
+ font-weight: 400;
25
+ }
24
26
 
25
- &.high-alert {
26
- background-color: govuk-colour("light-grey", $legacy: "grey-3");
27
- border: 1px solid $high-alert-border;
28
- }
27
+ &.high-alert {
28
+ background-color: govuk-colour("light-grey", $legacy: "grey-3");
29
+ border: 1px solid $high-alert-border;
30
+ }
29
31
 
30
- @include govuk-media-query($until: tablet) {
31
- margin: 0 0 1em;
32
+ @include govuk-media-query($until: tablet) {
33
+ margin: 0 0 1em;
34
+ }
32
35
  }
33
36
  }
@@ -7,8 +7,8 @@
7
7
 
8
8
  // stylelint-disable max-nesting-depth
9
9
 
10
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
10
11
  .gem-c-govspeak {
11
-
12
12
  // Scope attachment and attachment-link component styles to gem-c-govspeak
13
13
  @import "../attachment-link";
14
14
  @import "../attachment";
@@ -1,4 +1,5 @@
1
1
  // stylelint-disable scss/at-extend-no-missing-placeholder
2
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
2
3
  .gem-c-govspeak {
3
4
  @import "govuk/components/button/button";
4
5
 
@@ -6,6 +6,7 @@
6
6
  // - alphagov/whitehall: ✔︎
7
7
  // - alphagov/govspeak: ✔︎
8
8
 
9
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
9
10
  .gem-c-govspeak {
10
11
  .call-to-action {
11
12
  margin: 2em 0;
@@ -11,6 +11,7 @@
11
11
 
12
12
  // stylelint-disable max-nesting-depth
13
13
 
14
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
14
15
  .gem-c-govspeak {
15
16
  // DEFAULT CHART STYLES
16
17
 
@@ -7,6 +7,7 @@
7
7
 
8
8
  // stylelint-disable max-nesting-depth
9
9
 
10
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
10
11
  .gem-c-govspeak {
11
12
  // .address is used by the `$A` markdown pattern
12
13
  .address,
@@ -5,6 +5,7 @@
5
5
  // - alphagov/whitehall: ✔︎
6
6
  // - alphagov/govspeak: ✔︎
7
7
 
8
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
8
9
  .gem-c-govspeak {
9
10
  .example {
10
11
  border-left: 10px solid govuk-colour("mid-grey", $legacy: "grey-3");
@@ -11,6 +11,7 @@
11
11
 
12
12
  // stylelint-disable max-nesting-depth
13
13
 
14
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
14
15
  .gem-c-govspeak {
15
16
  .footnotes {
16
17
  border-top: 1px solid govuk-colour("mid-grey", $legacy: "grey-2");
@@ -1,21 +1,24 @@
1
- .gem-c-govspeak .form-download {
2
- padding: .25em 0;
1
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
2
+ .gem-c-govspeak {
3
+ .form-download {
4
+ padding: .25em 0;
3
5
 
4
- @include govuk-media-query($until: tablet) {
5
- margin: 1em 0 1.5em;
6
- }
6
+ @include govuk-media-query($until: tablet) {
7
+ margin: 1em 0 1.5em;
8
+ }
7
9
 
8
- p {
9
- padding-right: 3em;
10
- }
10
+ p {
11
+ padding-right: 3em;
12
+ }
11
13
 
12
- a {
13
- display: block;
14
- font-weight: 600;
15
- background-image: image-url("govuk_publishing_components/icon-file-download.svg");
16
- background-repeat: no-repeat;
17
- background-size: 40px 40px;
18
- min-height: 2.5em;
19
- padding: 0 0 0 50px;
14
+ a {
15
+ display: block;
16
+ font-weight: 600;
17
+ background-image: image-url("govuk_publishing_components/icon-file-download.svg");
18
+ background-repeat: no-repeat;
19
+ background-size: 40px 40px;
20
+ min-height: 2.5em;
21
+ padding: 0 0 0 50px;
22
+ }
20
23
  }
21
24
  }
@@ -6,6 +6,7 @@
6
6
  // - alphagov/whitehall: ✔︎
7
7
  // - alphagov/govspeak: ✘
8
8
 
9
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
9
10
  .gem-c-govspeak {
10
11
  .fraction {
11
12
  sup,
@@ -3,41 +3,44 @@
3
3
  $highlight-answer-bg-color: govuk-colour("green");
4
4
  $highlight-answer-color: govuk-colour("white");
5
5
 
6
- .gem-c-govspeak .highlight-answer {
7
- background-color: $highlight-answer-bg-color;
8
- color: $highlight-answer-color;
9
- text-align: center;
10
- padding: 1.75em .75em 1.25em;
11
- margin: 0 -1em 1em;
12
-
13
- p {
14
- @include govuk-font($size: 24, $weight: bold);
6
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
7
+ .gem-c-govspeak {
8
+ .highlight-answer {
9
+ background-color: $highlight-answer-bg-color;
15
10
  color: $highlight-answer-color;
11
+ text-align: center;
12
+ padding: 1.75em .75em 1.25em;
13
+ margin: 0 -1em 1em;
16
14
 
17
- em {
18
- @include govuk-font($size: 80, $weight: bold);
19
- display: block;
20
- padding-top: .1em;
15
+ p {
16
+ @include govuk-font($size: 24, $weight: bold);
21
17
  color: $highlight-answer-color;
22
- }
23
- }
24
18
 
25
- p:last-child {
26
- margin-bottom: 0;
27
- }
19
+ em {
20
+ @include govuk-font($size: 80, $weight: bold);
21
+ display: block;
22
+ padding-top: .1em;
23
+ color: $highlight-answer-color;
24
+ }
25
+ }
28
26
 
29
- @include govuk-media-query($until: tablet) {
30
- margin: 0 0 1em;
31
- @include govuk-font($size: 48);
27
+ p:last-child {
28
+ margin-bottom: 0;
29
+ }
32
30
 
33
- p {
34
- font-size: 1em;
35
- line-height: inherit;
31
+ @include govuk-media-query($until: tablet) {
32
+ margin: 0 0 1em;
33
+ @include govuk-font($size: 48);
36
34
 
37
- em {
35
+ p {
38
36
  font-size: 1em;
39
- padding-top: 0;
40
- display: inline;
37
+ line-height: inherit;
38
+
39
+ em {
40
+ font-size: 1em;
41
+ padding-top: 0;
42
+ display: inline;
43
+ }
41
44
  }
42
45
  }
43
46
  }
@@ -4,6 +4,7 @@
4
4
  // - alphagov/whitehall: ✔︎
5
5
  // - alphagov/govspeak: ✔︎
6
6
 
7
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
7
8
  .gem-c-govspeak {
8
9
  img {
9
10
  width: auto;
@@ -6,6 +6,7 @@
6
6
  // - alphagov/whitehall: ✔︎
7
7
  // - alphagov/govspeak: ✔︎
8
8
 
9
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
9
10
  .gem-c-govspeak {
10
11
  .info-notice {
11
12
  border-left: 10px solid govuk-colour("mid-grey", $legacy: "grey-3");
@@ -5,6 +5,7 @@
5
5
  // - alphagov/whitehall: ✔︎
6
6
  // - alphagov/govspeak: ✔︎
7
7
 
8
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
8
9
  .gem-c-govspeak {
9
10
  .legislative-list {
10
11
  list-style: none;
@@ -1,29 +1,34 @@
1
- .gem-c-govspeak .place {
2
- margin: 1.5em 0;
3
- border-bottom: solid 1px govuk-colour("mid-grey", $legacy: "grey-2");
4
- padding-bottom: 1.5em;
1
+ // stylelint-disable max-nesting-depth
2
+ .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
3
+ .gem-c-govspeak {
4
+ .place {
5
+ margin: 1.5em 0;
6
+ border-bottom: solid 1px govuk-colour("mid-grey", $legacy: "grey-2");
7
+ padding-bottom: 1.5em;
5
8
 
6
- .address {
7
- margin: 0;
8
- padding: 0;
9
- width: auto;
10
- display: block;
11
- }
9
+ .address {
10
+ margin: 0;
11
+ padding: 0;
12
+ width: auto;
13
+ display: block;
14
+ }
12
15
 
13
- .url {
14
- overflow: hidden;
15
- text-overflow: ellipsis;
16
- }
16
+ .url {
17
+ overflow: hidden;
18
+ text-overflow: ellipsis;
19
+ }
17
20
 
18
- .additional-information {
19
- @include govuk-font($size: 16);
21
+ .additional-information {
22
+ @include govuk-font($size: 16);
20
23
 
21
- p {
22
- margin: .25em 0;
24
+ p {
25
+ margin: .25em 0;
26
+ }
23
27
  }
24
- }
25
28
 
26
- @include govuk-media-query($until: tablet) {
27
- margin: .75em 0;
29
+ @include govuk-media-query($until: tablet) {
30
+ margin: .75em 0;
31
+ }
28
32
  }
29
33
  }
34
+ // stylelint-enable max-nesting-depth