govuk_publishing_components 11.2.0 → 12.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/govuk_publishing_components/favicon-example.png +0 -0
  3. data/app/assets/images/govuk_publishing_components/favicon-production.png +0 -0
  4. data/app/assets/javascripts/component_guide/application.js +1 -1
  5. data/app/assets/javascripts/component_guide/no_slimmer.js +15 -0
  6. data/app/assets/javascripts/govuk_publishing_components/admin_scripts.js +2 -4
  7. data/app/assets/javascripts/govuk_publishing_components/all_components.js +4 -0
  8. data/app/assets/stylesheets/component_guide/application.scss +80 -74
  9. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +4 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +26 -5
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +2 -0
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +21 -1
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +7 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +2 -0
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -0
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +24 -5
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +2 -0
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_highlight-boxes.scss +19 -7
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +11 -1
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +12 -0
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +9 -2
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +2 -0
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +11 -0
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +7 -2
  25. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +9 -8
  26. data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +4 -2
  27. data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +12 -1
  28. data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +6 -0
  29. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +16 -2
  30. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +7 -0
  31. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +8 -2
  32. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +2 -0
  33. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +5 -0
  34. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +30 -7
  35. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +14 -4
  36. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +2 -0
  37. data/app/assets/stylesheets/govuk_publishing_components/components/_taxonomy-list.scss +2 -1
  38. data/app/assets/stylesheets/govuk_publishing_components/components/_taxonomy-navigation.scss +10 -0
  39. data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +4 -0
  40. data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +7 -2
  41. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +4 -0
  42. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +24 -8
  43. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +47 -13
  44. data/app/controllers/govuk_publishing_components/application_controller.rb +5 -6
  45. data/app/views/govuk_publishing_components/component_guide/index.html.erb +2 -2
  46. data/app/views/govuk_publishing_components/component_guide/show.html.erb +9 -9
  47. data/app/views/govuk_publishing_components/components/_breadcrumbs.html.erb +1 -1
  48. data/app/views/govuk_publishing_components/components/_feedback.html.erb +2 -2
  49. data/app/views/govuk_publishing_components/components/_image_card.html.erb +1 -1
  50. data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +4 -7
  51. data/app/views/govuk_publishing_components/components/_notice.html.erb +2 -2
  52. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +2 -2
  53. data/app/views/govuk_publishing_components/components/_radio.html.erb +1 -1
  54. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +1 -1
  55. data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +2 -2
  56. data/app/views/govuk_publishing_components/components/_taxonomy_navigation.html.erb +2 -2
  57. data/app/views/govuk_publishing_components/components/_translation-nav.html.erb +1 -1
  58. data/app/views/govuk_publishing_components/components/docs/fieldset.yml +1 -1
  59. data/app/views/govuk_publishing_components/components/docs/layout_for_admin.yml +1 -0
  60. data/app/views/govuk_publishing_components/components/docs/tabs.yml +7 -7
  61. data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +1 -1
  62. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +3 -3
  63. data/app/views/layouts/govuk_publishing_components/application.html.erb +43 -44
  64. data/config/initializers/assets.rb +2 -0
  65. data/lib/govuk_publishing_components/app_helpers/environment.rb +1 -0
  66. data/lib/govuk_publishing_components/config.rb +1 -1
  67. data/lib/govuk_publishing_components/engine.rb +0 -1
  68. data/lib/govuk_publishing_components/presenters/related_navigation_helper.rb +1 -1
  69. data/lib/govuk_publishing_components/presenters/step_by_step_nav_helper.rb +1 -1
  70. data/lib/govuk_publishing_components/version.rb +1 -1
  71. data/node_modules/jquery/AUTHORS.txt +266 -0
  72. data/node_modules/jquery/LICENSE.txt +36 -0
  73. data/node_modules/jquery/README.md +65 -0
  74. data/node_modules/jquery/bower.json +14 -0
  75. data/node_modules/jquery/dist/jquery.js +11008 -0
  76. data/node_modules/jquery/dist/jquery.min.js +5 -0
  77. data/node_modules/jquery/dist/jquery.min.map +1 -0
  78. data/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
  79. data/node_modules/jquery/external/sizzle/dist/sizzle.js +2143 -0
  80. data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  81. data/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  82. data/node_modules/jquery/package.json +157 -0
  83. data/node_modules/jquery/src/ajax.js +842 -0
  84. data/node_modules/jquery/src/ajax/jsonp.js +100 -0
  85. data/node_modules/jquery/src/ajax/load.js +83 -0
  86. data/node_modules/jquery/src/ajax/parseJSON.js +53 -0
  87. data/node_modules/jquery/src/ajax/parseXML.js +31 -0
  88. data/node_modules/jquery/src/ajax/script.js +95 -0
  89. data/node_modules/jquery/src/ajax/var/location.js +3 -0
  90. data/node_modules/jquery/src/ajax/var/nonce.js +5 -0
  91. data/node_modules/jquery/src/ajax/var/rquery.js +3 -0
  92. data/node_modules/jquery/src/ajax/xhr.js +229 -0
  93. data/node_modules/jquery/src/attributes.js +11 -0
  94. data/node_modules/jquery/src/attributes/attr.js +281 -0
  95. data/node_modules/jquery/src/attributes/classes.js +174 -0
  96. data/node_modules/jquery/src/attributes/prop.js +156 -0
  97. data/node_modules/jquery/src/attributes/support.js +70 -0
  98. data/node_modules/jquery/src/attributes/val.js +191 -0
  99. data/node_modules/jquery/src/callbacks.js +232 -0
  100. data/node_modules/jquery/src/core.js +529 -0
  101. data/node_modules/jquery/src/core/access.js +65 -0
  102. data/node_modules/jquery/src/core/init.js +140 -0
  103. data/node_modules/jquery/src/core/parseHTML.js +41 -0
  104. data/node_modules/jquery/src/core/ready.js +163 -0
  105. data/node_modules/jquery/src/core/var/rsingleTag.js +5 -0
  106. data/node_modules/jquery/src/css.js +563 -0
  107. data/node_modules/jquery/src/css/addGetHookIf.js +24 -0
  108. data/node_modules/jquery/src/css/adjustCSS.js +65 -0
  109. data/node_modules/jquery/src/css/curCSS.js +137 -0
  110. data/node_modules/jquery/src/css/defaultDisplay.js +72 -0
  111. data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +42 -0
  112. data/node_modules/jquery/src/css/showHide.js +45 -0
  113. data/node_modules/jquery/src/css/support.js +184 -0
  114. data/node_modules/jquery/src/css/var/cssExpand.js +3 -0
  115. data/node_modules/jquery/src/css/var/isHidden.js +16 -0
  116. data/node_modules/jquery/src/css/var/rmargin.js +3 -0
  117. data/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
  118. data/node_modules/jquery/src/css/var/swap.js +24 -0
  119. data/node_modules/jquery/src/data.js +342 -0
  120. data/node_modules/jquery/src/data/support.js +23 -0
  121. data/node_modules/jquery/src/data/var/acceptData.js +20 -0
  122. data/node_modules/jquery/src/deferred.js +159 -0
  123. data/node_modules/jquery/src/deprecated.js +34 -0
  124. data/node_modules/jquery/src/dimensions.js +56 -0
  125. data/node_modules/jquery/src/effects.js +640 -0
  126. data/node_modules/jquery/src/effects/Tween.js +121 -0
  127. data/node_modules/jquery/src/effects/animatedSelector.js +13 -0
  128. data/node_modules/jquery/src/effects/support.js +58 -0
  129. data/node_modules/jquery/src/event.js +1134 -0
  130. data/node_modules/jquery/src/event/ajax.js +20 -0
  131. data/node_modules/jquery/src/event/alias.js +25 -0
  132. data/node_modules/jquery/src/event/support.js +28 -0
  133. data/node_modules/jquery/src/exports/amd.js +24 -0
  134. data/node_modules/jquery/src/exports/global.js +26 -0
  135. data/node_modules/jquery/src/intro.js +44 -0
  136. data/node_modules/jquery/src/jquery.js +37 -0
  137. data/node_modules/jquery/src/manipulation.js +585 -0
  138. data/node_modules/jquery/src/manipulation/_evalUrl.js +21 -0
  139. data/node_modules/jquery/src/manipulation/buildFragment.js +157 -0
  140. data/node_modules/jquery/src/manipulation/createSafeFragment.js +20 -0
  141. data/node_modules/jquery/src/manipulation/getAll.js +33 -0
  142. data/node_modules/jquery/src/manipulation/setGlobalEval.js +19 -0
  143. data/node_modules/jquery/src/manipulation/support.js +72 -0
  144. data/node_modules/jquery/src/manipulation/var/nodeNames.js +5 -0
  145. data/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
  146. data/node_modules/jquery/src/manipulation/var/rleadingWhitespace.js +3 -0
  147. data/node_modules/jquery/src/manipulation/var/rscriptType.js +3 -0
  148. data/node_modules/jquery/src/manipulation/var/rtagName.js +3 -0
  149. data/node_modules/jquery/src/manipulation/wrapMap.js +30 -0
  150. data/node_modules/jquery/src/offset.js +219 -0
  151. data/node_modules/jquery/src/outro.js +2 -0
  152. data/node_modules/jquery/src/queue.js +144 -0
  153. data/node_modules/jquery/src/queue/delay.js +22 -0
  154. data/node_modules/jquery/src/selector-sizzle.js +14 -0
  155. data/node_modules/jquery/src/selector.js +1 -0
  156. data/node_modules/jquery/src/serialize.js +125 -0
  157. data/node_modules/jquery/src/support.js +63 -0
  158. data/node_modules/jquery/src/traversing.js +179 -0
  159. data/node_modules/jquery/src/traversing/findFilter.js +100 -0
  160. data/node_modules/jquery/src/traversing/var/dir.js +20 -0
  161. data/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
  162. data/node_modules/jquery/src/traversing/var/siblings.js +15 -0
  163. data/node_modules/jquery/src/var/class2type.js +5 -0
  164. data/node_modules/jquery/src/var/concat.js +5 -0
  165. data/node_modules/jquery/src/var/deletedIds.js +3 -0
  166. data/node_modules/jquery/src/var/document.js +3 -0
  167. data/node_modules/jquery/src/var/documentElement.js +5 -0
  168. data/node_modules/jquery/src/var/hasOwn.js +5 -0
  169. data/node_modules/jquery/src/var/indexOf.js +5 -0
  170. data/node_modules/jquery/src/var/pnum.js +3 -0
  171. data/node_modules/jquery/src/var/push.js +5 -0
  172. data/node_modules/jquery/src/var/rcssNum.js +7 -0
  173. data/node_modules/jquery/src/var/rnotwhite.js +3 -0
  174. data/node_modules/jquery/src/var/slice.js +5 -0
  175. data/node_modules/jquery/src/var/support.js +5 -0
  176. data/node_modules/jquery/src/var/toString.js +5 -0
  177. data/node_modules/jquery/src/wrap.js +77 -0
  178. metadata +111 -19
  179. data/app/assets/images/govuk_publishing_components/favicon-test.png +0 -0
  180. data/app/assets/stylesheets/govuk_publishing_components/admin_styles_ie8.scss +0 -3
  181. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_touch-friendly-links.scss +0 -11
@@ -1,3 +1,9 @@
1
1
  @import "helpers/govuk-frontend-settings";
2
2
  @import "govuk-frontend/components/radios/radios";
3
3
  @import "govuk-frontend/objects/form-group";
4
+
5
+ // This is here as it seems to have been missed from govuk-frontend
6
+ // @FIXME if a colour has been added to govuk-radios__divider remove this
7
+ .gem-c-radios__divider {
8
+ @include govuk-text-colour;
9
+ }
@@ -1,4 +1,5 @@
1
1
  .gem-c-related-navigation {
2
+ @include govuk-text-colour;
2
3
  border-top: 2px solid $govuk-blue;
3
4
  }
4
5
 
@@ -11,6 +12,7 @@
11
12
  .gem-c-related-navigation__sub-heading {
12
13
  @include core-16;
13
14
  border-top: 1px solid $border-colour;
15
+ margin: 0;
14
16
  padding-top: $gutter-half;
15
17
  }
16
18
 
@@ -21,6 +23,8 @@
21
23
 
22
24
  .gem-c-related-navigation__sub-heading--other {
23
25
  @include bold-19;
26
+ border-top: 0;
27
+ padding-top: 0;
24
28
  }
25
29
 
26
30
  .gem-c-related-navigation__nav-section {
@@ -30,6 +34,7 @@
30
34
  .gem-c-related-navigation__link {
31
35
  list-style-type: none;
32
36
  margin-top: $gutter-half;
37
+ @include govuk-font($size: 16, $weight: regular, $line-height: 1.5);
33
38
 
34
39
  @include media(tablet) {
35
40
  margin-top: 5px;
@@ -37,6 +42,8 @@
37
42
  }
38
43
 
39
44
  .gem-c-related-navigation__toggle {
45
+ @include govuk-link-common;
46
+ @include govuk-link-style-no-visited-state;
40
47
  display: none;
41
48
 
42
49
  .js-enabled & {
@@ -45,11 +52,12 @@
45
52
  }
46
53
 
47
54
  .gem-c-related-navigation__section-link {
48
- @include bold-16;
55
+ @extend %govuk-link;
56
+ font-weight: bold;
49
57
  }
50
58
 
51
59
  .gem-c-related-navigation__section-link--other {
52
- @include core-16;
60
+ font-weight: normal;
53
61
  }
54
62
 
55
63
  // reset the default browser styles
@@ -59,3 +67,9 @@
59
67
  list-style: none;
60
68
  margin-bottom: 1.25em;
61
69
  }
70
+
71
+ .gem-c-related-navigation__toggle-more.js-hidden {
72
+ .js-enabled & {
73
+ display: none;
74
+ }
75
+ }
@@ -8,12 +8,18 @@ $large-input-size: 50px;
8
8
 
9
9
  .gem-c-search__label {
10
10
  display: block;
11
+
12
+ h1 {
13
+ @include core-19($line-height: $input-size, $line-height-640: $input-size);
14
+ margin: 0;
15
+ }
11
16
  }
12
17
 
13
18
  .gem-c-search__input[type="search"] { // overly specific to prevent some overrides from outside
14
19
  @include box-sizing(border-box);
15
20
  @include core-19($line-height: (28 / 19), $line-height-640: (28 / 16));
16
21
  @include appearance(none);
22
+ @include govuk-focusable;
17
23
 
18
24
  padding: 6px;
19
25
  margin: 0.5em 0;
@@ -25,6 +31,7 @@ $large-input-size: 50px;
25
31
  }
26
32
 
27
33
  .gem-c-search__submit {
34
+ @include govuk-focusable;
28
35
  padding: 6px;
29
36
  border: 0;
30
37
  cursor: pointer;
@@ -3,6 +3,8 @@ $share-button-height: 32px;
3
3
 
4
4
  .gem-c-share-links__list {
5
5
  list-style: none;
6
+ margin: 0;
7
+ padding: 0;
6
8
  }
7
9
 
8
10
  .gem-c-share-links__list-item {
@@ -10,19 +12,23 @@ $share-button-height: 32px;
10
12
  position: relative;
11
13
  display: inline-block;
12
14
  min-height: $share-button-height;
13
- padding-top: $share-button-height / 8;
14
15
  padding-left: ($share-button-width + $gutter-one-third);
15
16
  margin-bottom: $gutter-one-third;
17
+ font-size: $share-button-height / 2;
18
+ line-height: $share-button-height;
16
19
  }
17
20
 
18
21
  .gem-c-share-links__link {
22
+ @extend %govuk-link;
19
23
  @include bold-16;
20
24
  margin-right: $gutter;
21
25
  text-decoration: none;
22
26
  }
23
27
 
24
28
  .gem-c-share-links__title {
25
- margin-bottom: $gutter-one-third;
29
+ @include govuk-text-colour;
30
+ @include govuk-font($size: 16, $line-height: 1.5);
31
+ margin: 0 0 $gutter-one-third 0;
26
32
  }
27
33
 
28
34
  .gem-c-share-links__link-icon {
@@ -1,4 +1,5 @@
1
1
  .gem-c-step-nav-header {
2
+ @include govuk-text-colour;
2
3
  position: relative;
3
4
  padding: 10px;
4
5
  background: $grey-4;
@@ -20,6 +21,7 @@
20
21
  }
21
22
 
22
23
  .gem-c-step-nav-header__title {
24
+ @extend %govuk-link;
23
25
  @include bold-24;
24
26
  }
25
27
 
@@ -1,4 +1,5 @@
1
1
  .gem-c-step-nav-related {
2
+ @include govuk-text-colour;
2
3
  border-top: 2px solid $govuk-blue;
3
4
  margin-bottom: $gutter;
4
5
  }
@@ -48,3 +49,7 @@
48
49
  margin-top: 5px;
49
50
  }
50
51
  }
52
+
53
+ .gem-c-step-nav-related__link {
54
+ @extend %govuk-link;
55
+ }
@@ -37,6 +37,10 @@ $top-border: solid 2px $grey-3;
37
37
  margin-bottom: $gutter * 2;
38
38
  }
39
39
  }
40
+
41
+ .js-enabled &.js-hidden {
42
+ display: none;
43
+ }
40
44
  }
41
45
 
42
46
  .gem-c-step-nav__controls {
@@ -224,6 +228,11 @@ $top-border: solid 2px $grey-3;
224
228
  -#{$shadow-offset} 0 0 $shadow-colour;
225
229
  }
226
230
 
231
+ .gem-c-step-nav__circle-step-label,
232
+ .gem-c-step-nav__circle-step-colon {
233
+ @include govuk-visually-hidden;
234
+ }
235
+
227
236
  .gem-c-step-nav__header {
228
237
  padding: $gutter-half 0;
229
238
  border-top: $top-border;
@@ -232,6 +241,10 @@ $top-border: solid 2px $grey-3;
232
241
  cursor: pointer;
233
242
  }
234
243
 
244
+ .gem-c-step-nav__button {
245
+ @include govuk-focusable;
246
+ }
247
+
235
248
  &:hover {
236
249
  .gem-c-step-nav__button,
237
250
  .gem-c-step-nav__circle {
@@ -251,6 +264,7 @@ $top-border: solid 2px $grey-3;
251
264
  }
252
265
 
253
266
  .gem-c-step-nav__title {
267
+ @include govuk-text-colour;
254
268
  @include _core-font-generator(19px, 19px, 19px, 1.4, 1.4, false, bold);
255
269
  margin: 0;
256
270
 
@@ -272,11 +286,16 @@ $top-border: solid 2px $grey-3;
272
286
  }
273
287
 
274
288
  .gem-c-step-nav__panel {
289
+ @include govuk-text-colour;
275
290
  @include _core-font-generator(16px, 16px, 16px);
276
291
 
277
292
  .gem-c-step-nav--large & {
278
293
  @include _core-font-generator(19px, 16px, 19px);
279
294
  }
295
+
296
+ .js-enabled &.js-hidden {
297
+ display: none;
298
+ }
280
299
  }
281
300
 
282
301
  // contents of the steps, such as paragraphs and links
@@ -306,6 +325,7 @@ $top-border: solid 2px $grey-3;
306
325
  .gem-c-step-nav__list {
307
326
  padding: 0;
308
327
  padding-bottom: 10px;
328
+ list-style: none;
309
329
 
310
330
  .gem-c-step-nav--large & {
311
331
  @include media(tablet) {
@@ -337,6 +357,15 @@ $top-border: solid 2px $grey-3;
337
357
  margin-bottom: 10px;
338
358
  }
339
359
 
360
+ .gem-c-step-nav__link {
361
+ @include govuk-link-common;
362
+ @include govuk-link-style-default;
363
+ }
364
+
365
+ .gem-c-step-nav__link-active-context {
366
+ @include govuk-visually-hidden;
367
+ }
368
+
340
369
  .gem-c-step-nav__list-item--active {
341
370
  position: relative;
342
371
 
@@ -366,14 +395,8 @@ $top-border: solid 2px $grey-3;
366
395
  }
367
396
 
368
397
  .gem-c-step-nav__link {
369
- color: $black;
398
+ @include govuk-link-style-text;
370
399
  text-decoration: none;
371
-
372
- &:visited,
373
- &:active,
374
- &:link {
375
- color: $black;
376
- }
377
400
  }
378
401
  }
379
402
 
@@ -1,10 +1,15 @@
1
1
  .gem-c-subscription-links {
2
+ @include govuk-text-colour;
2
3
  @include bold-19;
3
4
 
5
+ .gem-c-subscription-links__hidden-header {
6
+ @include govuk-visually-hidden;
7
+ }
8
+
4
9
  .gem-c-subscription-links__list {
5
10
  list-style: none;
6
- margin-left: -$gutter-half / 2;
7
- margin-right: -$gutter-half / 2;
11
+ margin: 0 (-$gutter-half / 2);
12
+ padding: 0;
8
13
  }
9
14
 
10
15
  .gem-c-subscription-links__list-item {
@@ -15,6 +20,7 @@
15
20
  }
16
21
 
17
22
  .gem-c-subscription-links__link {
23
+ @extend %govuk-link;
18
24
  text-decoration: none;
19
25
  padding-left: 28px;
20
26
  background-repeat: no-repeat;
@@ -51,10 +57,14 @@
51
57
  padding: $gutter-half;
52
58
  margin-bottom: $gutter-half;
53
59
  background: $grey-3;
60
+
61
+ .js-enabled &.js-hidden {
62
+ display: none;
63
+ }
54
64
  }
55
65
 
56
- .gem-c-subscription-links__feed-description {
57
- font-weight: bold;
66
+ .gem-c-subscription-links__feed-hidden-description {
67
+ @include govuk-visually-hidden;
58
68
  }
59
69
  }
60
70
 
@@ -11,6 +11,7 @@
11
11
 
12
12
  .gem-c-success-alert__message {
13
13
  @include bold-19;
14
+ margin: 0;
14
15
  }
15
16
 
16
17
  .gem-c-success-summary__title {
@@ -26,6 +27,7 @@
26
27
 
27
28
  .gem-c-success-summary__body {
28
29
  @include core-19;
30
+ margin: 0;
29
31
  }
30
32
 
31
33
  .gem-c-success-alert:focus {
@@ -1,7 +1,8 @@
1
1
  .gem-c-taxonomy-list {
2
2
  display: flex;
3
3
  flex-wrap: wrap;
4
- margin-top: $gutter-half;
4
+ margin: $gutter-half 0 0 0;
5
+ padding: 0;
5
6
 
6
7
  @include media(tablet) {
7
8
  margin-right: -25px;
@@ -1,4 +1,5 @@
1
1
  .gem-c-taxonomy-navigation {
2
+ @include govuk-text-colour;
2
3
  @include core-16;
3
4
  border-top: 2px solid $govuk-blue;
4
5
  padding-top: $gutter-half;
@@ -59,10 +60,12 @@
59
60
  }
60
61
 
61
62
  .gem-c-taxonomy-navigation__link {
63
+ @extend %govuk-link;
62
64
  text-decoration: none;
63
65
  }
64
66
 
65
67
  .gem-c-taxonomy-navigation__toggle {
68
+ @extend %govuk-link;
66
69
  display: none;
67
70
 
68
71
  .js-enabled & {
@@ -70,8 +73,14 @@
70
73
  }
71
74
  }
72
75
 
76
+ .gem-c-taxonomy-navigation__toggle-more.js-hidden {
77
+ .js-enabled & {
78
+ display: none;
79
+ }
80
+ }
73
81
 
74
82
  .gem-c-taxonomy-navigation__section-heading {
83
+ @include core-16;
75
84
  border-top: 1px solid $border-colour;
76
85
  margin-bottom: $gutter-half;
77
86
  margin-top: $gutter;
@@ -79,6 +88,7 @@
79
88
  }
80
89
 
81
90
  .gem-c-taxonomy-navigation__section-link {
91
+ @extend %govuk-link;
82
92
  @include bold-19;
83
93
  text-decoration: none;
84
94
  }
@@ -19,6 +19,7 @@
19
19
  .gem-c-title--inverse {
20
20
  color: $white;
21
21
 
22
+ .gem-c-title__text,
22
23
  .gem-c-title__context {
23
24
  color: inherit;
24
25
  }
@@ -27,6 +28,7 @@
27
28
  .gem-c-title__context {
28
29
  @include core-24;
29
30
  color: $secondary-text-colour;
31
+ margin: 0;
30
32
  }
31
33
 
32
34
  .gem-c-title__context-link {
@@ -48,7 +50,9 @@
48
50
  }
49
51
 
50
52
  .gem-c-title__text {
53
+ @include govuk-text-colour;
51
54
  @include bold-48;
55
+ margin: 0;
52
56
  }
53
57
 
54
58
  .gem-c-title__text--long {
@@ -2,6 +2,7 @@
2
2
 
3
3
  .gem-c-translation-nav {
4
4
  @include responsive-top-margin;
5
+ @include govuk-text-colour;
5
6
  @include core-16;
6
7
  margin-bottom: $gutter;
7
8
  border-bottom: 1px solid $border-colour;
@@ -10,8 +11,8 @@
10
11
  .gem-c-translation-nav__list {
11
12
  @extend %contain-floats;
12
13
  list-style: none;
13
- margin-left: -$gutter-one-third;
14
- margin-right: -$gutter-one-third;
14
+ margin: 0 (-$gutter-one-third);
15
+ padding: 0;
15
16
  }
16
17
 
17
18
  .gem-c-translation-nav__list-item {
@@ -31,6 +32,10 @@
31
32
  }
32
33
  }
33
34
 
35
+ .gem-c-translation-nav__link {
36
+ @extend %govuk-link;
37
+ }
38
+
34
39
  .gem-c-translation-nav__list-item:last-child {
35
40
  border-right: 0;
36
41
  border-left: 0;
@@ -9,6 +9,8 @@
9
9
  // - alphagov/govspeak: ✔︎
10
10
 
11
11
  .gem-c-govspeak {
12
+ @include govuk-text-colour;
13
+
12
14
  ol,
13
15
  ul,
14
16
  p {
@@ -24,35 +26,47 @@
24
26
 
25
27
  // Headings
26
28
 
29
+ // H1's are not allowed and thus are styled bare
30
+ h1 {
31
+ @include core-19;
32
+ margin: 0;
33
+ padding: 0;
34
+ }
35
+
27
36
  h2 {
28
37
  @include bold-27;
29
38
  margin-top: $gutter;
39
+ margin-bottom: 0;
30
40
 
31
41
  @include media(desktop) {
32
42
  margin-top: $gutter * 1.5;
43
+ margin-bottom: 0;
33
44
  }
34
45
  }
35
46
 
36
47
  h3 {
37
48
  @include bold-19;
38
49
  margin-top: $gutter + 5px;
39
- }
40
-
41
- h4 {
42
- @include bold-19;
43
- margin-top: $gutter + 5px;
50
+ margin-bottom: 0;
44
51
  }
45
52
 
46
53
  h4,
47
54
  h5,
48
55
  h6 {
49
56
  @include bold-19;
57
+ margin-top: $gutter + 5px;
58
+ margin-bottom: 0;
50
59
 
51
60
  + p {
52
61
  margin-top: 5px;
53
62
  }
54
63
  }
55
64
 
65
+ h5,
66
+ h6 {
67
+ margin: 0;
68
+ }
69
+
56
70
  h2:first-child,
57
71
  h3:first-child,
58
72
  h4:first-child,
@@ -61,9 +75,8 @@
61
75
  }
62
76
 
63
77
  // Links
64
-
65
78
  a {
66
- text-decoration: underline;
79
+ @extend %govuk-link;
67
80
  }
68
81
 
69
82
  // Lists
@@ -73,6 +86,7 @@
73
86
  list-style: decimal;
74
87
  list-style-position: outside;
75
88
  margin-left: $gutter-two-thirds;
89
+ padding: 0;
76
90
 
77
91
  ul,
78
92
  ol {
@@ -94,7 +108,8 @@
94
108
  }
95
109
 
96
110
  li {
97
- margin-bottom: 5px;
111
+ margin: 0 0 5px 0;
112
+ padding: 0;
98
113
 
99
114
  p {
100
115
  margin: 0;
@@ -200,6 +215,7 @@
200
215
 
201
216
  abbr {
202
217
  cursor: help;
218
+ text-decoration: none;
203
219
  }
204
220
 
205
221
  // Horizontal Rule