govuk_publishing_components 40.1.0 → 41.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +1 -79
  3. data/app/assets/javascripts/govuk_publishing_components/components/checkboxes.js +1 -34
  4. data/app/assets/javascripts/govuk_publishing_components/components/feedback.js +0 -17
  5. data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +0 -6
  6. data/app/assets/javascripts/govuk_publishing_components/components/single-page-notification-button.js +0 -7
  7. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +8 -74
  8. data/app/assets/javascripts/govuk_publishing_components/dependencies.js +0 -4
  9. data/app/assets/javascripts/govuk_publishing_components/domain-config.js +0 -8
  10. data/app/assets/javascripts/govuk_publishing_components/lib/cookie-functions.js +0 -4
  11. data/app/assets/javascripts/govuk_publishing_components/lib/cookie-settings.js +0 -14
  12. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +0 -20
  13. data/app/assets/javascripts/govuk_publishing_components/lib/toggle.js +0 -33
  14. data/app/assets/javascripts/govuk_publishing_components/load-analytics.js +0 -25
  15. data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +192 -171
  16. data/app/assets/stylesheets/component_guide/application.scss +10 -11
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +1 -1
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +2 -3
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +3 -3
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_big-number.scss +1 -1
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +2 -2
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +47 -22
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +3 -3
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-guidance.scss +1 -3
  25. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +2 -1
  26. data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +19 -19
  27. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +14 -10
  28. data/app/assets/stylesheets/govuk_publishing_components/components/_emergency-banner.scss +3 -3
  29. data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +2 -2
  30. data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -1
  31. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +8 -8
  32. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +16 -10
  33. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +2 -2
  34. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +2 -2
  35. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +33 -35
  36. data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +3 -3
  37. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +1 -1
  38. data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +1 -1
  39. data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +3 -3
  40. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +13 -3
  41. data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +1 -1
  42. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +6 -6
  43. data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +2 -3
  44. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +4 -3
  45. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +2 -3
  46. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +3 -4
  47. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +3 -3
  48. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +10 -10
  49. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +1 -1
  50. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +1 -1
  51. data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +3 -3
  52. data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +1 -1
  53. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +5 -4
  54. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -1
  55. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +2 -2
  56. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +2 -2
  57. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +1 -1
  58. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
  59. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +5 -5
  60. data/app/views/govuk_publishing_components/components/_accordion.html.erb +1 -8
  61. data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +1 -1
  62. data/app/views/govuk_publishing_components/components/_cards.html.erb +6 -11
  63. data/app/views/govuk_publishing_components/components/_contents_list.html.erb +2 -15
  64. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +3 -19
  65. data/app/views/govuk_publishing_components/components/_details.html.erb +9 -11
  66. data/app/views/govuk_publishing_components/components/_image_card.html.erb +1 -5
  67. data/app/views/govuk_publishing_components/components/_intervention.html.erb +4 -4
  68. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +7 -21
  69. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +1 -26
  70. data/app/views/govuk_publishing_components/components/_metadata.html.erb +2 -5
  71. data/app/views/govuk_publishing_components/components/_organisation_logo.html.erb +2 -7
  72. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +0 -10
  73. data/app/views/govuk_publishing_components/components/_related_navigation.html.erb +1 -3
  74. data/app/views/govuk_publishing_components/components/_search.html.erb +0 -1
  75. data/app/views/govuk_publishing_components/components/_select.html.erb +1 -2
  76. data/app/views/govuk_publishing_components/components/_share_links.html.erb +1 -10
  77. data/app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb +0 -1
  78. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +1 -1
  79. data/app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb +1 -24
  80. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +1 -14
  81. data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +1 -4
  82. data/app/views/govuk_publishing_components/components/_translation_nav.html.erb +0 -1
  83. data/app/views/govuk_publishing_components/components/contextual_sidebar/_ukraine_cta.html.erb +1 -7
  84. data/app/views/govuk_publishing_components/components/docs/accordion.yml +1 -60
  85. data/app/views/govuk_publishing_components/components/docs/big_number.yml +2 -6
  86. data/app/views/govuk_publishing_components/components/docs/breadcrumbs.yml +0 -1
  87. data/app/views/govuk_publishing_components/components/docs/button.yml +1 -1
  88. data/app/views/govuk_publishing_components/components/docs/cards.yml +41 -20
  89. data/app/views/govuk_publishing_components/components/docs/checkboxes.yml +0 -33
  90. data/app/views/govuk_publishing_components/components/docs/cookie_banner.yml +2 -2
  91. data/app/views/govuk_publishing_components/components/docs/details.yml +0 -15
  92. data/app/views/govuk_publishing_components/components/docs/document_list.yml +11 -18
  93. data/app/views/govuk_publishing_components/components/docs/error_alert.yml +1 -1
  94. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +0 -11
  95. data/app/views/govuk_publishing_components/components/docs/image_card.yml +0 -31
  96. data/app/views/govuk_publishing_components/components/docs/intervention.yml +0 -26
  97. data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +2 -2
  98. data/app/views/govuk_publishing_components/components/docs/meta_tags.yml +0 -2
  99. data/app/views/govuk_publishing_components/components/docs/option_select.yml +4 -16
  100. data/app/views/govuk_publishing_components/components/docs/organisation_logo.yml +0 -15
  101. data/app/views/govuk_publishing_components/components/docs/print_link.yml +2 -9
  102. data/app/views/govuk_publishing_components/components/docs/select.yml +0 -36
  103. data/app/views/govuk_publishing_components/components/docs/share_links.yml +2 -4
  104. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav.yml +2 -25
  105. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_header.yml +0 -23
  106. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_related.yml +0 -10
  107. data/app/views/govuk_publishing_components/components/docs/subscription_links.yml +3 -15
  108. data/app/views/govuk_publishing_components/components/docs/table.yml +1 -1
  109. data/app/views/govuk_publishing_components/components/docs/tabs.yml +1 -1
  110. data/app/views/govuk_publishing_components/components/docs/translation_nav.yml +3 -27
  111. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +1 -5
  112. data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +0 -2
  113. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +0 -10
  114. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +1 -1
  115. data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +0 -5
  116. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +0 -7
  117. data/lib/govuk_publishing_components/presenters/breadcrumbs_helper.rb +1 -19
  118. data/lib/govuk_publishing_components/presenters/image_card_helper.rb +1 -15
  119. data/lib/govuk_publishing_components/presenters/public_layout_helper.rb +2 -24
  120. data/lib/govuk_publishing_components/presenters/select_helper.rb +0 -4
  121. data/lib/govuk_publishing_components/presenters/single_page_notification_button_helper.rb +0 -5
  122. data/lib/govuk_publishing_components/presenters/translation_nav_helper.rb +0 -7
  123. data/lib/govuk_publishing_components/version.rb +1 -1
  124. metadata +4 -26
  125. data/app/assets/javascripts/govuk_publishing_components/analytics/analytics.js +0 -92
  126. data/app/assets/javascripts/govuk_publishing_components/analytics/auto-scroll-tracker.js +0 -221
  127. data/app/assets/javascripts/govuk_publishing_components/analytics/auto-track-event.js +0 -30
  128. data/app/assets/javascripts/govuk_publishing_components/analytics/cross-domain-tracking.js +0 -55
  129. data/app/assets/javascripts/govuk_publishing_components/analytics/custom-dimensions.js +0 -133
  130. data/app/assets/javascripts/govuk_publishing_components/analytics/download-link-tracker.js +0 -46
  131. data/app/assets/javascripts/govuk_publishing_components/analytics/ecommerce.js +0 -101
  132. data/app/assets/javascripts/govuk_publishing_components/analytics/error-tracking.js +0 -51
  133. data/app/assets/javascripts/govuk_publishing_components/analytics/explicit-cross-domain-links.js +0 -88
  134. data/app/assets/javascripts/govuk_publishing_components/analytics/external-link-tracker.js +0 -68
  135. data/app/assets/javascripts/govuk_publishing_components/analytics/google-analytics-universal-tracker.js +0 -220
  136. data/app/assets/javascripts/govuk_publishing_components/analytics/init.js +0 -60
  137. data/app/assets/javascripts/govuk_publishing_components/analytics/linked-domains.js +0 -135
  138. data/app/assets/javascripts/govuk_publishing_components/analytics/mailto-link-tracker.js +0 -43
  139. data/app/assets/javascripts/govuk_publishing_components/analytics/page-content.js +0 -160
  140. data/app/assets/javascripts/govuk_publishing_components/analytics/pii.js +0 -115
  141. data/app/assets/javascripts/govuk_publishing_components/analytics/print-intent.js +0 -39
  142. data/app/assets/javascripts/govuk_publishing_components/analytics/static-analytics.js +0 -132
  143. data/app/assets/javascripts/govuk_publishing_components/analytics/track-click.js +0 -75
  144. data/app/assets/javascripts/govuk_publishing_components/analytics/track-select-change.js +0 -56
  145. data/app/assets/javascripts/govuk_publishing_components/analytics.js +0 -23
  146. data/app/assets/javascripts/govuk_publishing_components/components/details.js +0 -48
@@ -31,11 +31,11 @@
31
31
  }
32
32
 
33
33
  .gem-c-button__info-text {
34
- @include govuk-text-colour;
35
- @include govuk-font($size: 16);
36
34
  display: block;
37
35
  max-width: 14em;
38
36
  margin-top: .5em;
37
+ @include govuk-text-colour;
38
+ @include govuk-font($size: 16);
39
39
  }
40
40
 
41
41
  .gem-c-button--secondary {
@@ -9,23 +9,12 @@
9
9
  .gem-c-cards__list {
10
10
  list-style: none;
11
11
  padding: 0;
12
- // Remove the outermost left and right margin from the internal margin of the list items.
13
- margin: 0 govuk-spacing(-3);
14
-
12
+ margin: 0;
15
13
  display: grid;
16
- grid-auto-flow: row; // Use CSS grid to calculate the number of rows
17
- grid-auto-rows: fractions(1); // Set all rows to same fractional height of the complete grid
18
- grid-template-columns: fractions(1);
19
-
20
- @include govuk-media-query($from: "tablet") {
21
- grid-template-columns: fractions(2);
22
- }
14
+ grid-column-gap: govuk-spacing(6); // Use deprecated grid-column-gap for Grade C browser support
15
+ column-gap: govuk-spacing(6);
23
16
 
24
17
  @include govuk-media-query($from: "desktop") {
25
- // Note that browsers that don't support CSS grid display the component as one column on all
26
- // breakpoints
27
- grid-template-columns: fractions(3);
28
-
29
18
  // For browsers that don't support CSS grid, constrain the width to 50% to improve usability
30
19
  // especially for screen magnifier users
31
20
  width: 50%;
@@ -38,16 +27,21 @@
38
27
  }
39
28
 
40
29
  .gem-c-cards__list--two-column-desktop {
30
+ @include govuk-media-query($from: "tablet") {
31
+ grid-auto-rows: fractions(1); // Set all rows to same fractional height of the complete grid
32
+ grid-template-columns: fractions(2); // Note that browsers that don't support CSS grid display the component as one column on all breakpoints
33
+ }
34
+ }
35
+
36
+ .gem-c-cards__list--three-column-desktop {
41
37
  @include govuk-media-query($from: "desktop") {
42
- grid-template-columns: fractions(2);
38
+ grid-auto-rows: fractions(1); // Set all rows to same fractional height of the complete grid
39
+ grid-template-columns: fractions(3); // Note that browsers that don't support CSS grid display the component as one column on all breakpoints
43
40
  }
44
41
  }
45
42
 
46
43
  .gem-c-cards__list-item {
47
44
  border-top: 1px solid $govuk-border-colour;
48
- // We use grid to split the container into column widths, so manage the horizontal spacing with
49
- // internal margins.
50
- margin: 0 govuk-spacing(3);
51
45
  padding: govuk-spacing(1) 0 govuk-spacing(4) 0;
52
46
  }
53
47
 
@@ -55,12 +49,17 @@
55
49
  // this wrapper ensures that the clickable area of the card only
56
50
  // covers the area of the card containing text so in a grid of cards
57
51
  // there is space above and below each link
58
- padding: govuk-spacing(2) govuk-spacing(6) govuk-spacing(2) 0;
52
+ padding: 19px 0 4px;
59
53
  position: relative;
60
54
  }
61
55
 
62
56
  .gem-c-cards__sub-heading {
63
- margin-bottom: govuk-spacing(2);
57
+ margin: 0 govuk-spacing(6) govuk-spacing(2) 0;
58
+
59
+ // Ensure card content width is constrained to two thirds on desktop
60
+ @include govuk-media-query($from: "desktop") {
61
+ max-width: 66.6667%;
62
+ }
64
63
  }
65
64
 
66
65
  .gem-c-cards__link {
@@ -81,10 +80,12 @@
81
80
  border-right: $width solid $govuk-brand-colour;
82
81
  border-top: $width solid $govuk-brand-colour;
83
82
  content: "";
83
+ display: block;
84
84
  height: $dimension;
85
85
  position: absolute;
86
86
  right: govuk-spacing(1);
87
- top: govuk-spacing(3);
87
+ top: 50%;
88
+ margin-top: 5px;
88
89
  @include prefixed-transform($rotate: 45deg);
89
90
  width: $dimension;
90
91
  }
@@ -103,7 +104,31 @@
103
104
  }
104
105
 
105
106
  .gem-c-cards__description {
106
- margin: 0 govuk-spacing(-6) 0 0;
107
+ margin: 0 govuk-spacing(6) 0 0;
108
+
109
+ // Ensure card content width is constrained to two thirds on desktop
110
+ @include govuk-media-query($from: "desktop") {
111
+ max-width: 66.6667%;
112
+ }
113
+ }
114
+
115
+ .gem-c-cards__list--two-column-desktop,
116
+ .gem-c-cards__list--three-column-desktop {
117
+ .gem-c-cards__sub-heading {
118
+ max-width: 100%;
119
+ }
120
+
121
+ .gem-c-cards__description {
122
+ margin: 0;
123
+ max-width: 100%;
124
+ }
125
+
126
+ .gem-c-cards__link {
127
+ &::before {
128
+ top: 27px;
129
+ margin: 0;
130
+ }
131
+ }
107
132
  }
108
133
 
109
134
  @include govuk-media-query($media-type: print) {
@@ -12,18 +12,18 @@
12
12
  }
13
13
 
14
14
  .gem-c-contents-list__title {
15
+ margin: 0;
15
16
  @include govuk-text-colour;
16
17
  @include govuk-font($size: 16, $weight: regular, $line-height: 1.5);
17
- margin: 0;
18
18
  }
19
19
 
20
20
  .gem-c-contents-list__list,
21
21
  .gem-c-contents-list__nested-list {
22
- @include govuk-text-colour;
23
- @include govuk-font($size: 16);
24
22
  margin: 0;
25
23
  padding: 0;
26
24
  list-style-type: none;
25
+ @include govuk-text-colour;
26
+ @include govuk-font($size: 16);
27
27
  }
28
28
 
29
29
  .gem-c-contents-list__link {
@@ -15,10 +15,8 @@
15
15
 
16
16
  .gem-c-contextual-guidance__wrapper {
17
17
  position: relative;
18
-
19
- @include govuk-font(19);
20
-
21
18
  margin-bottom: govuk-spacing(7);
19
+ @include govuk-font(19);
22
20
 
23
21
  @include govuk-media-query($from: tablet) {
24
22
  margin-bottom: govuk-spacing(7);
@@ -17,8 +17,9 @@
17
17
  }
18
18
 
19
19
  .gem-c-contextual-sidebar__text {
20
- @include govuk-font(16);
21
20
  margin-bottom: govuk-spacing(1);
21
+ @include govuk-font(16);
22
+
22
23
  @include govuk-media-query($from: tablet) {
23
24
  margin-bottom: govuk-spacing(2);
24
25
  }
@@ -47,17 +47,6 @@ $govuk-header-link-underline-thickness: 3px;
47
47
 
48
48
  .gem-c-cross-service-header__button {
49
49
  display: none;
50
-
51
- .toggle-enabled & {
52
- display: inline;
53
- display: flex;
54
-
55
- @include govuk-media-query($from: tablet) {
56
- display: none;
57
- }
58
- }
59
-
60
- @include govuk-font($size: 19, $weight: bold);
61
50
  position: relative;
62
51
  align-items: center;
63
52
  cursor: pointer;
@@ -68,6 +57,17 @@ $govuk-header-link-underline-thickness: 3px;
68
57
  padding: govuk-spacing(2) 0 govuk-spacing(1) govuk-spacing(4);
69
58
  background: none;
70
59
 
60
+ @include govuk-font($size: 19, $weight: bold);
61
+
62
+ .toggle-enabled & {
63
+ display: inline;
64
+ display: flex;
65
+
66
+ @include govuk-media-query($from: tablet) {
67
+ display: none;
68
+ }
69
+ }
70
+
71
71
  &::before {
72
72
  content: "";
73
73
  position: absolute;
@@ -141,11 +141,11 @@ $govuk-header-link-underline-thickness: 3px;
141
141
 
142
142
  // start One Login header styles
143
143
  .gem-c-one-login-header {
144
- @include govuk-font($size: 19);
145
144
  color: govuk-colour("white");
146
145
  background: govuk-colour("black");
147
146
  border-bottom: govuk-spacing(2) solid $govuk-link-colour;
148
147
  position: relative;
148
+ @include govuk-font($size: 19);
149
149
  }
150
150
 
151
151
  .gem-c-one-login-header__container {
@@ -171,9 +171,9 @@ $govuk-header-link-underline-thickness: 3px;
171
171
  .gem-c-one-login-header__nav__link {
172
172
  &:link,
173
173
  &:visited {
174
+ text-decoration: none;
174
175
  @include govuk-typography-common;
175
176
  @include govuk-link-style-inverse;
176
- text-decoration: none;
177
177
 
178
178
  &:hover {
179
179
  text-decoration: underline;
@@ -235,15 +235,15 @@ $govuk-header-link-underline-thickness: 3px;
235
235
  }
236
236
 
237
237
  .gem-c-one-login-header__link--homepage {
238
- // Font size needs to be set on the link so that the box sizing is correct
239
- // in Firefox
240
- @include govuk-font($size: false, $weight: bold);
241
-
242
238
  display: inline-block;
243
239
  margin-right: govuk-spacing(2);
244
240
  font-size: 30px; // We don't have a mixin that produces 30px font size
245
241
  line-height: 1;
246
242
 
243
+ // Font size needs to be set on the link so that the box sizing is correct
244
+ // in Firefox
245
+ @include govuk-font($size: false, $weight: bold);
246
+
247
247
  @include govuk-media-query($from: tablet) {
248
248
  display: inline;
249
249
 
@@ -366,11 +366,11 @@ $govuk-header-link-underline-thickness: 3px;
366
366
  }
367
367
 
368
368
  .gem-c-service-header__heading {
369
- @include govuk-font($size: 24, $weight: bold);
370
369
  color: $govuk-text-colour;
371
370
  padding: govuk-spacing(3) 0;
372
371
  margin: 0;
373
372
  flex-grow: 1;
373
+ @include govuk-font($size: 24, $weight: bold);
374
374
 
375
375
  @include govuk-media-query($until: tablet) {
376
376
  padding: govuk-spacing(1) 0;
@@ -382,10 +382,10 @@ $govuk-header-link-underline-thickness: 3px;
382
382
  }
383
383
 
384
384
  .gem-c-service-header__nav-list {
385
- @include govuk-font($size: 19, $weight: bold);
386
385
  list-style: none;
387
386
  margin: 0;
388
387
  padding: 0;
388
+ @include govuk-font($size: 19, $weight: bold);
389
389
 
390
390
  @include govuk-media-query($from: tablet) {
391
391
  @include govuk-font($size: 19, $weight: bold);
@@ -1,10 +1,10 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
 
3
3
  .gem-c-document-list {
4
- @include govuk-text-colour;
5
- @include govuk-font(19);
6
4
  margin: 0;
7
5
  padding: 0;
6
+ @include govuk-text-colour;
7
+ @include govuk-font(19);
8
8
  }
9
9
 
10
10
  .gem-c-document-list__item {
@@ -19,8 +19,8 @@
19
19
  }
20
20
 
21
21
  .gem-c-document-list__item-title {
22
- @include govuk-font($size: 19, $weight: bold);
23
22
  display: inline-block;
23
+ @include govuk-font($size: 19, $weight: bold);
24
24
  }
25
25
 
26
26
  .gem-c-document-list--no-underline {
@@ -57,8 +57,8 @@
57
57
  }
58
58
 
59
59
  .gem-c-document-list__item-description {
60
- @include govuk-text-colour;
61
60
  margin: govuk-spacing(1) 0;
61
+ @include govuk-text-colour;
62
62
  }
63
63
 
64
64
  .gem-c-document-list__subtext {
@@ -79,12 +79,16 @@
79
79
  }
80
80
 
81
81
  .gem-c-document-list__attribute {
82
- @include govuk-text-colour;
83
- @include govuk-font(16);
84
- color: $govuk-secondary-text-colour;
85
82
  display: inline-block;
86
83
  list-style: none;
87
84
  padding-right: govuk-spacing(4);
85
+ @include govuk-text-colour;
86
+ @include govuk-font(16);
87
+
88
+ & { // stylelint-disable-line no-duplicate-selectors
89
+ // overriding govuk-text-colour mixin
90
+ color: $govuk-secondary-text-colour;
91
+ }
88
92
 
89
93
  .direction-rtl & {
90
94
  padding-right: 0;
@@ -103,8 +107,8 @@
103
107
  }
104
108
 
105
109
  .gem-c-document-list__highlight-text {
106
- @include govuk-font(16, bold);
107
110
  margin: 0 0 govuk-spacing(3) 0;
111
+ @include govuk-font(16, bold);
108
112
  }
109
113
 
110
114
  .gem-c-document-list__children {
@@ -125,10 +129,10 @@
125
129
  }
126
130
 
127
131
  .gem-c-document-list-child {
128
- @include govuk-font($size: 16);
129
132
  position: relative;
130
133
  padding-left: govuk-spacing(5);
131
134
  padding-top: govuk-spacing(2);
135
+ @include govuk-font($size: 16);
132
136
 
133
137
  &::before {
134
138
  content: "";
@@ -171,9 +175,9 @@
171
175
  }
172
176
 
173
177
  .gem-c-document-list-child__description {
174
- @include govuk-text-colour;
175
178
  margin-top: govuk-spacing(1);
176
179
  margin-bottom: govuk-spacing(1);
180
+ @include govuk-text-colour;
177
181
 
178
182
  @include govuk-media-query($until: tablet) {
179
183
  display: none;
@@ -1,11 +1,11 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
 
3
3
  .gem-c-emergency-banner {
4
- @include govuk-font(19);
5
4
  background-color: govuk-colour("mid-grey");
6
5
  color: govuk-colour("white");
7
6
  margin-top: 2px;
8
7
  padding: govuk-spacing(3) 0;
8
+ @include govuk-font(19);
9
9
 
10
10
  @include govuk-media-query($from: tablet) {
11
11
  padding: govuk-spacing(6) 0;
@@ -22,8 +22,8 @@
22
22
  }
23
23
 
24
24
  .gem-c-emergency-banner__heading {
25
- @include govuk-font(24, $weight: bold);
26
25
  margin: 0;
26
+ @include govuk-font(24, $weight: bold);
27
27
  }
28
28
 
29
29
  .gem-c-emergency-banner__heading--homepage {
@@ -35,10 +35,10 @@
35
35
  }
36
36
 
37
37
  .gem-c-emergency-banner__description {
38
- @include govuk-font(19);
39
38
  color: govuk-colour("white");
40
39
  margin-top: 0;
41
40
  margin-bottom: govuk-spacing(4);
41
+ @include govuk-font(19);
42
42
 
43
43
  &:last-child {
44
44
  margin-bottom: 0;
@@ -13,8 +13,8 @@
13
13
  }
14
14
 
15
15
  .gem-c-error-alert__message {
16
- @include govuk-font(19, $weight: bold);
17
16
  margin: 0;
17
+ @include govuk-font(19, $weight: bold);
18
18
  }
19
19
 
20
20
  .gem-c-error-summary__title {
@@ -29,8 +29,8 @@
29
29
  }
30
30
 
31
31
  .gem-c-error-summary__body {
32
- @include govuk-font(19);
33
32
  margin: 0;
33
+ @include govuk-font(19);
34
34
  }
35
35
 
36
36
  .gem-c-error-alert:focus {
@@ -2,6 +2,6 @@
2
2
  @import "govuk/components/error-summary/error-summary";
3
3
 
4
4
  .gem-c-error-summary__list-item {
5
- @include govuk-font($size: 19, $weight: bold);
6
5
  color: $govuk-error-colour;
6
+ @include govuk-font($size: 19, $weight: bold);
7
7
  }
@@ -93,13 +93,13 @@
93
93
  }
94
94
 
95
95
  .gem-c-feedback__prompt-link {
96
- @include govuk-font(19);
97
96
  background: transparent;
98
97
  color: govuk-colour("black");
99
98
  box-shadow: 0 3px 0 govuk-colour("black");
100
99
  border: 1px govuk-colour("black") solid;
101
100
  margin-bottom: 0;
102
101
  width: 100%;
102
+ @include govuk-font(19);
103
103
 
104
104
  @include govuk-media-query($from: tablet) {
105
105
  @include govuk-font(16);
@@ -173,15 +173,15 @@
173
173
 
174
174
  // this comes from the backend so we can't put a class on it
175
175
  h2 {
176
+ margin: 0 0 govuk-spacing(3) 0;
176
177
  @include govuk-text-colour;
177
178
  @include govuk-font($size: 24, $weight: bold);
178
- margin: 0 0 govuk-spacing(3) 0;
179
179
  }
180
180
 
181
181
  p {
182
+ margin: 0 0 govuk-spacing(3) 0;
182
183
  @include govuk-text-colour;
183
184
  @include govuk-font($size: 19);
184
- margin: 0 0 govuk-spacing(3) 0;
185
185
  }
186
186
 
187
187
  a {
@@ -192,10 +192,10 @@
192
192
  }
193
193
 
194
194
  .gem-c-feedback__error-message {
195
- @include govuk-font(19, $weight: bold);
196
195
  display: block;
197
196
  padding: 4px 0 0;
198
197
  color: $govuk-error-colour;
198
+ @include govuk-font(19, $weight: bold);
199
199
  }
200
200
 
201
201
  .gem-c-feedback__form {
@@ -208,21 +208,21 @@
208
208
  }
209
209
 
210
210
  .gem-c-feedback__form-heading {
211
+ margin: 0 0 govuk-spacing(3) 0;
211
212
  @include govuk-text-colour;
212
213
  @include govuk-font(24, $weight: bold);
213
- margin: 0 0 govuk-spacing(3) 0;
214
214
  }
215
215
 
216
216
  .gem-c-feedback__form-paragraph {
217
+ margin: 0 0 govuk-spacing(6) 0;
217
218
  @include govuk-text-colour;
218
219
  @include govuk-font(19);
219
- margin: 0 0 govuk-spacing(6) 0;
220
220
  }
221
221
 
222
222
  .gem-c-feedback__form-label {
223
- @include govuk-font(16);
224
223
  display: block;
225
224
  padding-bottom: govuk-spacing(3);
225
+ @include govuk-font(16);
226
226
  }
227
227
 
228
228
  .gem-c-feedback__close {
@@ -249,10 +249,10 @@
249
249
  // static.css on GOV.UK overwrites the component styles using input[type="text"]
250
250
  // so we need to apply govuk-input styles using a stronger selector
251
251
  .gem-c-feedback .gem-c-input[type="text"] {
252
- @include govuk-font($size: 19);
253
252
  margin: 0;
254
253
  padding: govuk-spacing(1);
255
254
  border: $govuk-border-width-form-element solid $govuk-input-border-colour;
255
+ @include govuk-font($size: 19);
256
256
 
257
257
  &:focus {
258
258
  outline: $govuk-focus-width solid $govuk-focus-colour;
@@ -1,14 +1,14 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
 
3
3
  .gem-c-image-card {
4
- @include govuk-clearfix;
5
- @include govuk-text-colour;
6
4
  position: relative;
7
5
  margin-bottom: govuk-spacing(6);
8
6
  display: flex;
9
7
  display: -ms-flexbox;
10
8
  flex-direction: column-reverse;
11
9
  -ms-flex-direction: column-reverse;
10
+ @include govuk-text-colour;
11
+ @include govuk-clearfix;
12
12
 
13
13
  @include govuk-media-query($from: mobile, $until: tablet) {
14
14
  display: block;
@@ -183,11 +183,11 @@
183
183
 
184
184
  .gem-c-image-card__context,
185
185
  .gem-c-image-card__metadata {
186
- @include govuk-font($size: false);
187
186
  font-size: 16px;
188
187
  font-size: govuk-px-to-rem(16px);
189
188
  margin: 0 0 calc(govuk-spacing(3) / 2);
190
189
  color: govuk-colour("dark-grey");
190
+ @include govuk-font($size: false);
191
191
 
192
192
  @include govuk-media-query($from: tablet) {
193
193
  margin-bottom: 0;
@@ -195,18 +195,18 @@
195
195
  }
196
196
 
197
197
  .gem-c-image-card__description {
198
- @include govuk-font($size: 19);
199
198
  padding-top: calc(govuk-spacing(3) / 2);
200
199
  word-wrap: break-word;
200
+ @include govuk-font($size: 19);
201
201
  }
202
202
 
203
203
  .gem-c-image-card__list {
204
- @include govuk-font($size: 19);
205
204
  position: relative;
206
205
  z-index: 2;
207
206
  padding: calc(govuk-spacing(3) / 2) 0 0 0;
208
207
  margin: 0;
209
208
  list-style: none;
209
+ @include govuk-font($size: 19);
210
210
 
211
211
  .gem-c-image-card__list-item {
212
212
  margin-bottom: govuk-spacing(2);
@@ -245,13 +245,16 @@
245
245
 
246
246
  .gem-c-image-card--large {
247
247
  .gem-c-image-card__image-wrapper {
248
- @include govuk-grid-column($width: one-half, $at: tablet);
249
-
250
248
  margin-bottom: govuk-spacing(2);
251
249
  float: none;
252
250
  width: auto;
253
251
  max-width: 100%;
254
- padding: 0;
252
+ @include govuk-grid-column($width: one-half, $at: tablet);
253
+
254
+ & { // stylelint-disable-line no-duplicate-selectors
255
+ // overriding the padding from govuk-grid-column mixin
256
+ padding: 0;
257
+ }
255
258
 
256
259
  @include govuk-media-query($from: tablet) {
257
260
  padding: 0 govuk-spacing(2) 0 0;
@@ -260,10 +263,13 @@
260
263
  }
261
264
 
262
265
  .gem-c-image-card__text-wrapper {
266
+ overflow: hidden;
263
267
  @include govuk-grid-column($width: one-half, $at: tablet);
264
268
 
265
- padding: 0;
266
- overflow: hidden;
269
+ & { // stylelint-disable-line no-duplicate-selectors
270
+ // overriding the padding from govuk-grid-column mixin
271
+ padding: 0;
272
+ }
267
273
 
268
274
  @include govuk-media-query($from: tablet) {
269
275
  float: right;
@@ -1,11 +1,11 @@
1
1
  @import "govuk_publishing_components/individual_component_support";
2
2
 
3
3
  .gem-c-intervention {
4
+ background-color: govuk-colour("light-grey");
5
+ border-left: 10px solid $govuk-success-colour;
4
6
  @include govuk-text-colour;
5
7
  @include govuk-responsive-padding(3);
6
8
  @include govuk-responsive-margin(6, "bottom");
7
- background-color: govuk-colour("light-grey");
8
- border-left: 10px solid $govuk-success-colour;
9
9
 
10
10
  .govuk-body:last-of-type {
11
11
  margin-bottom: 0;
@@ -11,11 +11,11 @@
11
11
 
12
12
  .gem-c-inverse-header .gem-c-inverse-header__supplement,
13
13
  .gem-c-inverse-header .publication-header__last-changed {
14
+ color: govuk-colour("white");
15
+ margin: 0;
14
16
  // This publication-header class is injected on publication pages, really
15
17
  // it should be a component class or be a component in it's own right.
16
18
  @include govuk-font($size: 16, $line-height: 1.5);
17
- color: govuk-colour("white");
18
- margin: 0;
19
19
  }
20
20
 
21
21
  .gem-c-inverse-header--full-width {