govuk_publishing_components 16.29.0 → 17.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js +46 -23
  3. data/app/assets/javascripts/govuk_publishing_components/components/feedback.js +8 -2
  4. data/app/assets/javascripts/govuk_publishing_components/lib/cookie-functions.js +101 -21
  5. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +9 -2
  6. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +0 -1
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +4 -6
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +36 -5
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +14 -14
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_highlight-boxes.scss +23 -23
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +8 -8
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +2 -2
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +8 -8
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +10 -10
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +11 -14
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +14 -14
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +8 -8
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +7 -7
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +20 -16
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +4 -4
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +5 -5
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_taxonomy-list.scss +5 -5
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +8 -8
  24. data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav-header.scss +1 -1
  25. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +33 -25
  26. data/app/views/govuk_publishing_components/components/_error_summary.html.erb +4 -2
  27. data/app/views/govuk_publishing_components/components/_notice.html.erb +4 -1
  28. data/app/views/govuk_publishing_components/components/docs/cookie_banner.yml +2 -0
  29. data/app/views/govuk_publishing_components/components/docs/error_summary.yml +6 -0
  30. data/app/views/govuk_publishing_components/components/docs/notice.yml +6 -0
  31. data/app/views/govuk_publishing_components/components/docs/success_alert.yml +1 -1
  32. data/lib/govuk_publishing_components/presenters/cookie_banner_helper.rb +0 -4
  33. data/lib/govuk_publishing_components/version.rb +1 -1
  34. data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js +1 -1
  35. data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js.map +1 -1
  36. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js +1 -1
  37. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js.map +1 -1
  38. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js +1 -1
  39. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js.map +1 -1
  40. data/node_modules/accessible-autocomplete/package.json +3 -3
  41. data/node_modules/accessible-autocomplete/src/autocomplete.js +4 -2
  42. data/node_modules/accessible-autocomplete/src/wrapper.js +5 -1
  43. data/node_modules/d/CHANGELOG.md +9 -0
  44. data/node_modules/d/CHANGES +4 -0
  45. data/node_modules/d/LICENSE +12 -16
  46. data/node_modules/d/README.md +49 -19
  47. data/node_modules/d/auto-bind.js +11 -10
  48. data/node_modules/d/index.js +23 -24
  49. data/node_modules/d/lazy.js +21 -23
  50. data/node_modules/d/package.json +63 -16
  51. data/node_modules/d/test/auto-bind.js +6 -7
  52. data/node_modules/d/test/index.js +78 -51
  53. data/node_modules/d/test/lazy.js +65 -50
  54. data/node_modules/es6-weak-map/CHANGELOG.md +5 -0
  55. data/node_modules/es6-weak-map/LICENSE +12 -16
  56. data/node_modules/es6-weak-map/README.md +34 -19
  57. data/node_modules/es6-weak-map/implement.js +9 -5
  58. data/node_modules/es6-weak-map/index.js +2 -2
  59. data/node_modules/es6-weak-map/is-implemented.js +10 -9
  60. data/node_modules/es6-weak-map/is-native-implemented.js +3 -3
  61. data/node_modules/es6-weak-map/is-weak-map.js +8 -8
  62. data/node_modules/es6-weak-map/package.json +30 -19
  63. data/node_modules/es6-weak-map/polyfill.js +31 -32
  64. data/node_modules/es6-weak-map/test/implement.js +4 -2
  65. data/node_modules/es6-weak-map/test/index.js +4 -3
  66. data/node_modules/es6-weak-map/test/is-implemented.js +9 -8
  67. data/node_modules/es6-weak-map/test/is-native-implemented.js +4 -2
  68. data/node_modules/es6-weak-map/test/is-weak-map.js +4 -4
  69. data/node_modules/es6-weak-map/test/polyfill.js +13 -13
  70. data/node_modules/es6-weak-map/test/valid-weak-map.js +22 -9
  71. data/node_modules/es6-weak-map/valid-weak-map.js +5 -5
  72. data/node_modules/resolve/lib/async.js +1 -1
  73. data/node_modules/resolve/lib/node-modules-paths.js +1 -1
  74. data/node_modules/resolve/lib/sync.js +0 -2
  75. data/node_modules/resolve/package.json +13 -13
  76. data/node_modules/resolve/test/node-modules-paths.js +0 -22
  77. data/node_modules/resolve/test/resolver.js +11 -0
  78. data/node_modules/resolve/test/resolver_sync.js +11 -0
  79. data/node_modules/standard/node_modules/ms/index.js +2 -2
  80. data/node_modules/standard/node_modules/ms/package.json +205 -16
  81. data/node_modules/standard/node_modules/ms/readme.md +1 -1
  82. data/node_modules/type/CHANGELOG.md +62 -0
  83. data/node_modules/type/README.md +743 -0
  84. data/node_modules/type/array-length/coerce.js +10 -0
  85. data/node_modules/type/array-length/ensure.js +10 -0
  86. data/node_modules/type/array-like/ensure.js +9 -0
  87. data/node_modules/type/array-like/is.js +21 -0
  88. data/node_modules/type/array/ensure.js +9 -0
  89. data/node_modules/type/array/is.js +27 -0
  90. data/node_modules/type/date/ensure.js +9 -0
  91. data/node_modules/type/date/is.js +26 -0
  92. data/node_modules/type/error/ensure.js +9 -0
  93. data/node_modules/type/error/is.js +24 -0
  94. data/node_modules/type/finite/coerce.js +8 -0
  95. data/node_modules/type/finite/ensure.js +10 -0
  96. data/node_modules/type/function/ensure.js +9 -0
  97. data/node_modules/type/function/is.js +19 -0
  98. data/node_modules/type/integer/coerce.js +11 -0
  99. data/node_modules/type/integer/ensure.js +10 -0
  100. data/node_modules/type/iterable/ensure.js +9 -0
  101. data/node_modules/type/iterable/is.js +20 -0
  102. data/node_modules/type/lib/is-to-string-tag-supported.js +3 -0
  103. data/node_modules/type/lib/resolve-exception.js +21 -0
  104. data/node_modules/type/lib/safe-to-string.js +10 -0
  105. data/node_modules/type/lib/to-short-string.js +29 -0
  106. data/node_modules/type/natural-number/coerce.js +10 -0
  107. data/node_modules/type/natural-number/ensure.js +10 -0
  108. data/node_modules/type/number/coerce.js +14 -0
  109. data/node_modules/type/number/ensure.js +10 -0
  110. data/node_modules/type/object/ensure.js +9 -0
  111. data/node_modules/type/object/is.js +11 -0
  112. data/node_modules/type/package.json +159 -0
  113. data/node_modules/type/plain-function/ensure.js +9 -0
  114. data/node_modules/type/plain-function/is.js +11 -0
  115. data/node_modules/type/plain-object/ensure.js +9 -0
  116. data/node_modules/type/plain-object/is.js +28 -0
  117. data/node_modules/type/promise/ensure.js +9 -0
  118. data/node_modules/type/promise/is.js +27 -0
  119. data/node_modules/type/prototype/is.js +13 -0
  120. data/node_modules/type/reg-exp/ensure.js +9 -0
  121. data/node_modules/type/reg-exp/is.js +37 -0
  122. data/node_modules/type/safe-integer/coerce.js +13 -0
  123. data/node_modules/type/safe-integer/ensure.js +10 -0
  124. data/node_modules/type/string/coerce.js +23 -0
  125. data/node_modules/type/string/ensure.js +10 -0
  126. data/node_modules/type/test/_lib/arrow-function-if-supported.js +4 -0
  127. data/node_modules/type/test/_lib/class-if-supported.js +4 -0
  128. data/node_modules/type/test/array-length/coerce.js +47 -0
  129. data/node_modules/type/test/array-length/ensure.js +19 -0
  130. data/node_modules/type/test/array-like/ensure.js +24 -0
  131. data/node_modules/type/test/array-like/is.js +47 -0
  132. data/node_modules/type/test/array/ensure.js +20 -0
  133. data/node_modules/type/test/array/is.js +41 -0
  134. data/node_modules/type/test/date/ensure.js +20 -0
  135. data/node_modules/type/test/date/is.js +46 -0
  136. data/node_modules/type/test/error/ensure.js +20 -0
  137. data/node_modules/type/test/error/is.js +42 -0
  138. data/node_modules/type/test/finite/coerce.js +40 -0
  139. data/node_modules/type/test/finite/ensure.js +17 -0
  140. data/node_modules/type/test/function/ensure.js +20 -0
  141. data/node_modules/type/test/function/is.js +46 -0
  142. data/node_modules/type/test/integer/coerce.js +49 -0
  143. data/node_modules/type/test/integer/ensure.js +17 -0
  144. data/node_modules/type/test/iterable/ensure.js +24 -0
  145. data/node_modules/type/test/iterable/is.js +50 -0
  146. data/node_modules/type/test/lib/is-to-string-tag-supported.js +10 -0
  147. data/node_modules/type/test/lib/resolve-exception.js +39 -0
  148. data/node_modules/type/test/lib/safe-to-string.js +32 -0
  149. data/node_modules/type/test/lib/to-short-string.js +41 -0
  150. data/node_modules/type/test/natural-number/coerce.js +47 -0
  151. data/node_modules/type/test/natural-number/ensure.js +19 -0
  152. data/node_modules/type/test/number/coerce.js +40 -0
  153. data/node_modules/type/test/number/ensure.js +17 -0
  154. data/node_modules/type/test/object/ensure.js +20 -0
  155. data/node_modules/type/test/object/is.js +30 -0
  156. data/node_modules/type/test/plain-function/ensure.js +20 -0
  157. data/node_modules/type/test/plain-function/is.js +56 -0
  158. data/node_modules/type/test/plain-object/ensure.js +20 -0
  159. data/node_modules/type/test/plain-object/is.js +47 -0
  160. data/node_modules/type/test/promise/ensure.js +20 -0
  161. data/node_modules/type/test/promise/is.js +39 -0
  162. data/node_modules/type/test/prototype/is.js +39 -0
  163. data/node_modules/type/test/reg-exp/ensure.js +20 -0
  164. data/node_modules/type/test/reg-exp/is.js +47 -0
  165. data/node_modules/type/test/safe-integer/coerce.js +49 -0
  166. data/node_modules/type/test/safe-integer/ensure.js +19 -0
  167. data/node_modules/type/test/string/coerce.js +36 -0
  168. data/node_modules/type/test/string/ensure.js +17 -0
  169. data/node_modules/type/test/thenable/ensure.js +20 -0
  170. data/node_modules/type/test/thenable/is.js +44 -0
  171. data/node_modules/type/test/time-value/coerce.js +47 -0
  172. data/node_modules/type/test/time-value/ensure.js +17 -0
  173. data/node_modules/type/test/value/ensure.js +20 -0
  174. data/node_modules/type/test/value/is.js +29 -0
  175. data/node_modules/type/thenable/ensure.js +9 -0
  176. data/node_modules/type/thenable/is.js +9 -0
  177. data/node_modules/type/time-value/coerce.js +12 -0
  178. data/node_modules/type/time-value/ensure.js +10 -0
  179. data/node_modules/type/value/ensure.js +9 -0
  180. data/node_modules/type/value/is.js +6 -0
  181. metadata +118 -21
  182. data/app/assets/stylesheets/govuk_publishing_components/components/_taxonomy-navigation.scss +0 -94
  183. data/node_modules/resolve/reaf +0 -0
  184. data/node_modules/resolve/test/shadowed_core.js +0 -38
  185. data/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
@@ -2,56 +2,56 @@
2
2
  @include govuk-text-colour;
3
3
  display: flex;
4
4
  flex-wrap: wrap;
5
- margin: $gutter-half 0 0 0;
5
+ margin: govuk-spacing(3) 0 0 0;
6
6
  padding: 0;
7
7
 
8
- @include media(tablet) {
8
+ @include govuk-media-query($from: tablet) {
9
9
  margin-right: -25px;
10
10
  }
11
11
  }
12
12
 
13
13
  .gem-c-highlight-boxes__item-wrapper {
14
- @include core-19;
15
- @include box-sizing(border-box);
14
+ @include govuk-font(19);
15
+ box-sizing: border-box;
16
16
  list-style-type: none;
17
- padding: ($gutter / 6) $gutter-one-third ($gutter-half + $gutter-one-third) 0;
17
+ padding: govuk-spacing(1) govuk-spacing(2) govuk-spacing(5) 0;
18
18
  width: 100%;
19
19
 
20
- @include media(tablet) {
20
+ @include govuk-media-query($from: tablet) {
21
21
  width: 50%;
22
- padding: ($gutter / 6) ($gutter-half + $gutter-one-third) ($gutter-half + $gutter-one-third) 0;
22
+ padding: govuk-spacing(1) govuk-spacing(5) govuk-spacing(5) 0;
23
23
  }
24
24
 
25
- @include media(desktop) {
25
+ @include govuk-media-query($from: desktop) {
26
26
  width: (1 / 3) * 100%;
27
- padding: ($gutter / 6) ($gutter-half + $gutter-one-third) ($gutter-half + $gutter-one-third) 0;
27
+ padding: govuk-spacing(1) govuk-spacing(5) govuk-spacing(5) 0;
28
28
  }
29
29
  }
30
30
 
31
31
  .gem-c-highlight-boxes__item-wrapper--half-width {
32
- @include media(desktop) {
32
+ @include govuk-media-query($from: desktop) {
33
33
  width: 50%;
34
- padding: ($gutter / 6) ($gutter-half + $gutter-one-third) ($gutter-half + $gutter-one-third) 0;
34
+ padding: govuk-spacing(1) govuk-spacing(5) govuk-spacing(5) 0;
35
35
  }
36
36
  }
37
37
 
38
38
  .gem-c-highlight-boxes__item {
39
- @include box-sizing(border-box);
40
- border: 1px solid $grey-2;
41
- padding: $gutter-half * 1.5;
39
+ box-sizing: border-box;
40
+ border: 1px solid govuk-colour("grey-2");
41
+ padding: govuk-spacing(3) * 1.5;
42
42
  height: 100%;
43
- box-shadow: 7px 7px 0 $white, 8px 8px 0 $grey-2;
43
+ box-shadow: 7px 7px 0 govuk-colour("white"), 8px 8px 0 govuk-colour("grey-2");
44
44
  }
45
45
 
46
46
  .gem-c-highlight-boxes--inverse {
47
- background-color: $govuk-blue;
47
+ background-color: govuk-colour("blue");
48
48
  border: 0;
49
- color: $white;
49
+ color: govuk-colour("white");
50
50
  }
51
51
 
52
52
  .gem-c-highlight-boxes__title {
53
53
  @extend %govuk-link;
54
- @include bold-19;
54
+ @include govuk-font(19, $weight: bold);
55
55
  display: block;
56
56
  text-decoration: underline;
57
57
  margin-bottom: 5px;
@@ -61,7 +61,7 @@
61
61
  &:link,
62
62
  &:visited,
63
63
  &:hover {
64
- color: $white;
64
+ color: govuk-colour("white");
65
65
  }
66
66
 
67
67
  &:active,
@@ -71,15 +71,15 @@
71
71
  }
72
72
 
73
73
  .gem-c-highlight-boxes__title--featured {
74
- @include bold-24;
74
+ @include govuk-font(24, $weight: bold);
75
75
  }
76
76
 
77
77
  .gem-c-highlight-boxes__description {
78
- margin: 0 0 $gutter-one-third 0;
78
+ margin: 0 0 govuk-spacing(2) 0;
79
79
  }
80
80
 
81
81
  .gem-c-highlight-boxes__metadata {
82
- margin: 0 $gutter-half 0 0;
83
- @include core-16;
82
+ margin: 0 govuk-spacing(3) 0 0;
83
+ @include govuk-font(16);
84
84
  display: inline-block;
85
85
  }
@@ -1,14 +1,14 @@
1
1
  .gem-c-inverse-header {
2
2
  width: 100%;
3
- background-color: $govuk-blue;
4
- color: $white;
5
- margin-bottom: $gutter;
6
- padding: 0 $gutter $gutter;
3
+ background-color: govuk-colour("blue");
4
+ color: govuk-colour("white");
5
+ margin-bottom: govuk-spacing(6);
6
+ padding: 0 govuk-spacing(6) govuk-spacing(6);
7
7
  box-sizing: border-box;
8
8
  }
9
9
 
10
10
  .gem-c-inverse-header a {
11
- color: $white;
11
+ color: govuk-colour("white");
12
12
  }
13
13
 
14
14
 
@@ -18,7 +18,7 @@
18
18
  .gem-c-inverse-header__supplement,
19
19
  .publication-header__last-changed {
20
20
  @include govuk-font($size: 16, $line-height: 1.5);
21
- color: $white;
21
+ color: govuk-colour("white");
22
22
  margin: 0;
23
23
  }
24
24
  }
@@ -26,9 +26,9 @@
26
26
  .gem-c-inverse-header--full-width {
27
27
  padding-left: 0;
28
28
  padding-right: 0;
29
- padding-bottom: $gutter-half;
29
+ padding-bottom: govuk-spacing(3);
30
30
  }
31
31
 
32
32
  .gem-c-inverse-header--padding-top {
33
- padding-top: $gutter-half;
33
+ padding-top: govuk-spacing(3);
34
34
  }
@@ -1,6 +1,6 @@
1
1
  .gem-c-lead-paragraph {
2
2
  @include govuk-text-colour;
3
- @include core-24;
3
+ @include govuk-font(24);
4
4
  margin-top: 0;
5
5
  @include responsive-bottom-margin;
6
6
  // Ensure the text has a line-length of around 60 characters
@@ -8,5 +8,5 @@
8
8
  }
9
9
 
10
10
  .gem-c-lead-paragraph--inverse {
11
- color: $white;
11
+ color: govuk-colour("white");
12
12
  }
@@ -1,8 +1,8 @@
1
1
  .gem-c-metadata {
2
2
  @include govuk-text-colour;
3
- @include core-16;
3
+ @include govuk-font(16);
4
4
  @include responsive-bottom-margin;
5
- @extend %contain-floats;
5
+ @include govuk-clearfix;
6
6
 
7
7
  a {
8
8
  @include govuk-link-common;
@@ -33,13 +33,13 @@
33
33
  margin-top: .5em;
34
34
  line-height: normal;
35
35
 
36
- @include media(tablet) {
37
- @include box-sizing(border-box);
36
+ @include govuk-media-query($from: tablet) {
37
+ box-sizing: border-box;
38
38
  float: left;
39
39
  clear: left;
40
40
  width: 30%;
41
41
  max-width: 11em;
42
- padding-right: $gutter-one-third;
42
+ padding-right: govuk-spacing(2);
43
43
  margin-top: 0;
44
44
  }
45
45
  }
@@ -48,8 +48,8 @@
48
48
  float: right;
49
49
  clear: right;
50
50
 
51
- @include media(tablet) {
52
- padding-left: $gutter-one-third;
51
+ @include govuk-media-query($from: tablet) {
52
+ padding-left: govuk-spacing(2);
53
53
  padding-right: 0;
54
54
  }
55
55
  }
@@ -58,7 +58,7 @@
58
58
  margin: 0;
59
59
  line-height: normal;
60
60
 
61
- @include media(tablet) {
61
+ @include govuk-media-query($from: tablet) {
62
62
  float: left;
63
63
  width: 70%;
64
64
  }
@@ -4,7 +4,7 @@
4
4
  line-height: (15 / 13);
5
5
  font-weight: 400;
6
6
 
7
- @include media(tablet) {
7
+ @include govuk-media-query($from: tablet) {
8
8
  font-size: 18px;
9
9
  line-height: 20px;
10
10
  }
@@ -14,7 +14,7 @@
14
14
  text-transform: none;
15
15
  text-decoration: none;
16
16
  display: block;
17
- color: $black;
17
+ color: govuk-colour("black");
18
18
  height: auto;
19
19
  width: auto;
20
20
 
@@ -29,11 +29,11 @@
29
29
 
30
30
  .gem-c-organisation-logo__crest {
31
31
  // Default brand colour
32
- border-left: 2px solid $black;
32
+ border-left: 2px solid govuk-colour("black");
33
33
  padding-top: 20px;
34
34
  padding-left: 6px;
35
35
 
36
- @include media(tablet) {
36
+ @include govuk-media-query($from: tablet) {
37
37
  padding-top: 25px;
38
38
  padding-left: 7px;
39
39
  }
@@ -48,13 +48,13 @@
48
48
  .gem-c-organisation-logo__name {
49
49
  position: relative;
50
50
  top: 3px;
51
- font-family: $helvetica-regular;
51
+ font-family: "HelveticaNeue", "Helvetica Neue", "Arial", "Helvetica", sans-serif;
52
52
  }
53
53
 
54
54
  .gem-c-organisation-logo__link {
55
55
  @include govuk-link-common;
56
56
  @include govuk-link-style-text;
57
- font-family: $helvetica-regular;
57
+ font-family: "HelveticaNeue", "Helvetica Neue", "Arial", "Helvetica", sans-serif;
58
58
 
59
59
  &:hover,
60
60
  &:focus {
@@ -67,15 +67,15 @@
67
67
  background: image-url("crests/#{$crest}_13px.png") no-repeat 5px 0;
68
68
  background-size: auto 20px;
69
69
 
70
- @include device-pixel-ratio {
70
+ @include govuk-device-pixel-ratio {
71
71
  background-image: image-url("crests/#{$crest}_13px_x2.png");
72
72
  }
73
73
 
74
- @include media(tablet) {
74
+ @include govuk-media-query($from: tablet) {
75
75
  background: image-url("crests/#{$crest}_18px.png") no-repeat 6px 0;
76
76
  background-size: auto 26px;
77
77
 
78
- @include device-pixel-ratio {
78
+ @include govuk-device-pixel-ratio {
79
79
  background-image: image-url("crests/#{$crest}_18px_x2.png");
80
80
  }
81
81
  }
@@ -85,7 +85,7 @@
85
85
  padding-top: 25px;
86
86
  background-size: auto 25px;
87
87
 
88
- @include media(tablet) {
88
+ @include govuk-media-query($from: tablet) {
89
89
  padding-top: 35px;
90
90
  background-size: auto 34px;
91
91
  }
@@ -1,9 +1,6 @@
1
1
  .gem-c-pagination {
2
2
  display: block;
3
- margin-top: $gutter;
4
- margin-bottom: $gutter;
5
- margin-left: -$gutter-half;
6
- margin-right: -$gutter-half;
3
+ margin: govuk-spacing(6) (- govuk-spacing(3) );
7
4
  }
8
5
 
9
6
  .gem-c-pagination__list {
@@ -12,26 +9,26 @@
12
9
  }
13
10
 
14
11
  .gem-c-pagination__item {
15
- @include core-16($line-height: (20 / 16));
12
+ @include govuk-font($size: 16, $line-height: (20 / 16));
16
13
  list-style: none;
17
14
  }
18
15
 
19
16
  .gem-c-pagination__link {
20
17
  @extend %govuk-link;
21
18
  display: block;
22
- padding: $gutter-half;
19
+ padding: govuk-spacing(3);
23
20
  text-decoration: none;
24
21
 
25
22
  &:hover,
26
23
  &:active,
27
24
  &:visited,
28
25
  &:focus {
29
- color: $link-colour;
26
+ color: $govuk-link-colour;
30
27
  }
31
28
 
32
29
  &:hover,
33
30
  &:active {
34
- background-color: $canvas-colour;
31
+ background-color: govuk-colour("grey-4");
35
32
  }
36
33
  }
37
34
 
@@ -44,12 +41,12 @@
44
41
  }
45
42
 
46
43
  .gem-c-pagination__link-text {
47
- @include bold-19;
48
- margin-left: $gutter / 3;
44
+ @include govuk-font(19, $weight: bold);
45
+ margin-left: govuk-spacing(2);
49
46
  }
50
47
 
51
48
  .gem-c-pagination__link-icon {
52
- @include core-24($line-height: (33.75 / 27));
49
+ @include govuk-font($size: 24, $line-height: (33.75 / 27));
53
50
  display: inline-block;
54
51
  margin-bottom: 1px;
55
52
  height: .482em;
@@ -60,9 +57,9 @@
60
57
  display: inline-block;
61
58
  margin-top: .1em;
62
59
  text-decoration: underline;
63
- margin-left: $gutter;
60
+ margin-left: govuk-spacing(5);
64
61
 
65
- @include media(mobile) {
66
- margin-left: $gutter-half + 9;
62
+ @include govuk-media-query($from: tablet) {
63
+ margin-left: govuk-spacing(6);
67
64
  }
68
65
  }
@@ -1,27 +1,27 @@
1
1
  .gem-c-related-navigation {
2
2
  @include govuk-text-colour;
3
- border-top: 2px solid $govuk-blue;
3
+ border-top: 2px solid govuk-colour("blue");
4
4
  }
5
5
 
6
6
  .gem-c-related-navigation__main-heading {
7
- @include bold-19;
8
- margin-top: $gutter-half;
9
- margin-bottom: $gutter-one-third;
7
+ @include govuk-font(19, $weight: bold);
8
+ margin-top: govuk-spacing(3);
9
+ margin-bottom: govuk-spacing(2);
10
10
  }
11
11
 
12
12
  .gem-c-related-navigation__sub-heading {
13
- @include core-16;
14
- border-top: 1px solid $border-colour;
13
+ @include govuk-font(16);
14
+ border-top: 1px solid govuk-colour("grey-2");
15
15
  margin: 0;
16
- padding-top: $gutter-half;
16
+ padding-top: govuk-spacing(3);
17
17
  }
18
18
 
19
19
  .gem-c-related-navigation__sub-heading--footer {
20
- @include bold-19;
20
+ @include govuk-font(19, $weight: bold);
21
21
  border-top: 0;
22
22
  padding-top: 0;
23
- margin-top: $gutter-half;
24
- margin-bottom: $gutter-one-third;
23
+ margin-top: govuk-spacing(3);
24
+ margin-bottom: govuk-spacing(2);
25
25
  }
26
26
 
27
27
  .gem-c-related-navigation__main-heading + .gem-c-related-navigation__sub-heading {
@@ -30,21 +30,21 @@
30
30
  }
31
31
 
32
32
  .gem-c-related-navigation__sub-heading--other {
33
- @include bold-19;
33
+ @include govuk-font(19, $weight: bold);
34
34
  border-top: 0;
35
35
  padding-top: 0;
36
36
  }
37
37
 
38
38
  .gem-c-related-navigation__nav-section {
39
- margin-bottom: $gutter;
39
+ margin-bottom: govuk-spacing(6);
40
40
  }
41
41
 
42
42
  .gem-c-related-navigation__link {
43
43
  list-style-type: none;
44
- margin-top: $gutter-half;
44
+ margin-top: govuk-spacing(3);
45
45
  @include govuk-font($size: 16, $weight: regular, $line-height: 1.5);
46
46
 
47
- @include media(tablet) {
47
+ @include govuk-media-query($from: tablet) {
48
48
  margin-top: 5px;
49
49
  }
50
50
  }
@@ -8,27 +8,27 @@ $share-button-height: 32px;
8
8
  }
9
9
 
10
10
  .gem-c-share-links__list-item {
11
- @include box-sizing(border-box);
11
+ box-sizing: border-box;
12
12
  position: relative;
13
13
  display: inline-block;
14
14
  min-height: $share-button-height;
15
- padding-left: ($share-button-width + $gutter-one-third);
16
- margin-bottom: $gutter-one-third;
15
+ padding-left: ($share-button-width + govuk-spacing(2));
16
+ margin-bottom: govuk-spacing(2);
17
17
  font-size: $share-button-height / 2;
18
18
  line-height: $share-button-height;
19
19
  }
20
20
 
21
21
  .gem-c-share-links__link {
22
22
  @extend %govuk-link;
23
- @include bold-16;
24
- margin-right: $gutter;
23
+ @include govuk-font(16, $weight: bold);
24
+ margin-right: govuk-spacing(6);
25
25
  text-decoration: none;
26
26
  }
27
27
 
28
28
  .gem-c-share-links__title {
29
29
  @include govuk-text-colour;
30
30
  @include govuk-font($size: 16, $line-height: 1.5);
31
- margin: 0 0 $gutter-one-third 0;
31
+ margin: 0 0 govuk-spacing(2) 0;
32
32
  }
33
33
 
34
34
  .gem-c-share-links__link-icon {
@@ -44,12 +44,12 @@ $share-button-height: 32px;
44
44
  .gem-c-share-links__link {
45
45
  display: inline-block;
46
46
  margin-right: 0;
47
- margin-left: $gutter;
47
+ margin-left: govuk-spacing(6);
48
48
  }
49
49
 
50
50
  .gem-c-share-links__list-item {
51
51
  padding-left: 0;
52
- padding-right: ($share-button-width + $gutter-one-third);
52
+ padding-right: ($share-button-width + govuk-spacing(2));
53
53
  }
54
54
 
55
55
  .gem-c-share-links__link-icon {