katalyst-govuk-formbuilder 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/builds/katalyst/govuk/formbuilder.css +534 -453
  3. data/app/assets/builds/katalyst/govuk/formbuilder.js +1865 -1379
  4. data/app/assets/builds/katalyst/govuk/formbuilder.min.js +85 -1
  5. data/app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss +5 -5
  6. data/app/assets/stylesheets/katalyst/govuk/components/richtextarea/_richtextarea.scss +1 -1
  7. data/app/assets/stylesheets/katalyst/govuk/formbuilder.scss +18 -18
  8. data/lib/katalyst/govuk/formbuilder/frontend.rb +2 -1
  9. data/lib/katalyst/govuk/formbuilder.rb +0 -1
  10. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/_base.scss +2 -0
  11. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/all.scss +2 -0
  12. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/_all.scss +8 -4
  13. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/accordion/_accordion.scss +4 -0
  14. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/accordion/_index.scss +19 -45
  15. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/back-link/_back-link.scss +4 -0
  16. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/back-link/_index.scss +18 -34
  17. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/breadcrumbs/_breadcrumbs.scss +4 -0
  18. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/breadcrumbs/_index.scss +22 -35
  19. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/button/_button.scss +4 -0
  20. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/button/_index.scss +56 -91
  21. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/character-count/_character-count.scss +4 -0
  22. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/character-count/_index.scss +3 -1
  23. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/checkboxes/_checkboxes.scss +4 -0
  24. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/checkboxes/_index.scss +69 -91
  25. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/cookie-banner/_cookie-banner.scss +4 -0
  26. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/cookie-banner/_index.scss +3 -2
  27. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/date-input/_date-input.scss +4 -0
  28. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/date-input/_index.scss +2 -0
  29. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/details/_details.scss +4 -0
  30. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/details/_index.scss +134 -0
  31. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/error-message/_error-message.scss +4 -0
  32. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/error-message/_index.scss +2 -0
  33. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/error-summary/_error-summary.scss +4 -0
  34. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/error-summary/_index.scss +5 -3
  35. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/exit-this-page/_exit-this-page.scss +4 -0
  36. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss +92 -0
  37. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/fieldset/_fieldset.scss +4 -0
  38. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/fieldset/_index.scss +18 -11
  39. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/file-upload/_file-upload.scss +4 -0
  40. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/file-upload/_index.scss +3 -6
  41. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/footer/_footer.scss +4 -0
  42. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/footer/_index.scss +16 -57
  43. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/header/_header.scss +4 -0
  44. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/header/_index.scss +55 -75
  45. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/hint/_hint.scss +2 -0
  46. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/hint/_index.scss +3 -0
  47. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/input/_index.scss +12 -35
  48. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/input/_input.scss +2 -0
  49. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/inset-text/_index.scss +2 -0
  50. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/inset-text/_inset-text.scss +4 -0
  51. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/label/_index.scss +12 -7
  52. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/label/_label.scss +2 -0
  53. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/notification-banner/_index.scss +8 -5
  54. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/notification-banner/_notification-banner.scss +4 -0
  55. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/pagination/_index.scss +12 -18
  56. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/pagination/_pagination.scss +4 -0
  57. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/panel/_index.scss +6 -8
  58. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/panel/_panel.scss +2 -0
  59. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/phase-banner/_index.scss +11 -0
  60. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/phase-banner/_phase-banner.scss +4 -0
  61. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/radios/_index.scss +38 -54
  62. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/radios/_radios.scss +4 -0
  63. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/select/_index.scss +4 -11
  64. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/select/_select.scss +4 -0
  65. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/skip-link/_index.scss +2 -0
  66. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/skip-link/_skip-link.scss +4 -0
  67. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/summary-list/_index.scss +20 -19
  68. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/summary-list/_summary-list.scss +4 -0
  69. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/table/_index.scss +10 -16
  70. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/table/_table.scss +2 -0
  71. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/tabs/_index.scss +13 -9
  72. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/tabs/_tabs.scss +2 -0
  73. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/tag/_index.scss +94 -0
  74. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/tag/_tag.scss +2 -0
  75. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/task-list/_index.scss +77 -0
  76. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/task-list/_task-list.scss +4 -0
  77. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/textarea/_index.scss +3 -7
  78. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/textarea/_textarea.scss +4 -0
  79. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/components/warning-text/_index.scss +7 -8
  80. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/components/warning-text/_warning-text.scss +4 -0
  81. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_all.scss +2 -0
  82. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_global-styles.scss +2 -1
  83. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_govuk-frontend-version.scss +3 -1
  84. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_links.scss +8 -1
  85. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_lists.scss +2 -1
  86. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_section-break.scss +2 -7
  87. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/core/_typography.scss +5 -4
  88. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_all.scss +2 -0
  89. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_clearfix.scss +3 -1
  90. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_colour.scss +12 -19
  91. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_device-pixels.scss +4 -3
  92. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_focused.scss +22 -6
  93. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/helpers/_font-faces.scss +41 -0
  94. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_grid.scss +2 -0
  95. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_links.scss +36 -74
  96. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_media-queries.scss +3 -12
  97. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_shape-arrow.scss +2 -0
  98. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_spacing.scss +12 -10
  99. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_typography.scss +12 -33
  100. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/helpers/_visually-hidden.scss +33 -0
  101. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_all.scss +2 -0
  102. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_button-group.scss +7 -12
  103. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_form-group.scss +2 -0
  104. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_grid.scss +4 -2
  105. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_main-wrapper.scss +2 -0
  106. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_template.scss +22 -1
  107. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/objects/_width-container.scss +2 -9
  108. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_all.scss +2 -0
  109. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_display.scss +2 -0
  110. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_spacing.scss +3 -19
  111. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_text-align.scss +2 -0
  112. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_typography.scss +2 -0
  113. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/overrides/_width.scss +2 -0
  114. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_all.scss +2 -3
  115. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_assets.scss +2 -0
  116. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_colours-applied.scss +9 -7
  117. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_colours-organisations.scss +4 -2
  118. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/settings/_colours-palette.scss +37 -0
  119. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_global-styles.scss +2 -0
  120. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_links.scss +3 -20
  121. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_measurements.scss +17 -5
  122. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_media-queries.scss +4 -2
  123. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_spacing.scss +2 -0
  124. data/vendor/assets/stylesheets/govuk-frontend/dist/govuk/settings/_typography-font.scss +52 -0
  125. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_typography-responsive.scss +2 -39
  126. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/settings/_warnings.scss +25 -5
  127. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_all.scss +2 -2
  128. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_exports.scss +2 -0
  129. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_font-url.scss +3 -0
  130. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_image-url.scss +3 -0
  131. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_px-to-em.scss +2 -0
  132. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/tools/_px-to-rem.scss +2 -0
  133. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/utilities/_all.scss +2 -0
  134. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/utilities/_clearfix.scss +2 -0
  135. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/utilities/_visually-hidden.scss +2 -0
  136. data/vendor/assets/stylesheets/govuk-frontend/{govuk → dist/govuk}/vendor/_sass-mq.scss +3 -1
  137. metadata +130 -133
  138. data/lib/katalyst/govuk/formbuilder/version.rb +0 -9
  139. data/vendor/assets/stylesheets/govuk-frontend/govuk/all-ie8.scss +0 -14
  140. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/accordion/_accordion.scss +0 -2
  141. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/back-link/_back-link.scss +0 -2
  142. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +0 -2
  143. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/button/_button.scss +0 -2
  144. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/character-count/_character-count.scss +0 -2
  145. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +0 -2
  146. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +0 -2
  147. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/date-input/_date-input.scss +0 -2
  148. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/details/_details.scss +0 -2
  149. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/details/_index.scss +0 -88
  150. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-message/_error-message.scss +0 -2
  151. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-summary/_error-summary.scss +0 -2
  152. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/fieldset/_fieldset.scss +0 -2
  153. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/file-upload/_file-upload.scss +0 -2
  154. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/footer/_footer.scss +0 -2
  155. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/header/_header.scss +0 -2
  156. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/inset-text/_inset-text.scss +0 -2
  157. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +0 -2
  158. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/pagination/_pagination.scss +0 -2
  159. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +0 -2
  160. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/radios/_radios.scss +0 -2
  161. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/select/_select.scss +0 -2
  162. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/skip-link/_skip-link.scss +0 -2
  163. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/summary-list/_summary-list.scss +0 -2
  164. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tag/_index.scss +0 -81
  165. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/textarea/_textarea.scss +0 -2
  166. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/warning-text/_warning-text.scss +0 -2
  167. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_font-faces.scss +0 -41
  168. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-palette.scss +0 -120
  169. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_compatibility.scss +0 -100
  170. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_ie8.scss +0 -34
  171. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font-families.scss +0 -32
  172. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font.scss +0 -112
  173. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_compatibility.scss +0 -50
  174. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_ie8.scss +0 -87
@@ -30,14 +30,12 @@
30
30
  @mixin govuk-link-decoration {
31
31
  text-decoration: underline;
32
32
 
33
- @if $govuk-new-link-styles {
34
- @if $govuk-link-underline-thickness {
35
- text-decoration-thickness: $govuk-link-underline-thickness;
36
- }
33
+ @if $govuk-link-underline-thickness {
34
+ text-decoration-thickness: $govuk-link-underline-thickness;
35
+ }
37
36
 
38
- @if $govuk-link-underline-offset {
39
- text-underline-offset: $govuk-link-underline-offset;
40
- }
37
+ @if $govuk-link-underline-offset {
38
+ text-underline-offset: $govuk-link-underline-offset;
41
39
  }
42
40
  }
43
41
 
@@ -50,7 +48,7 @@
50
48
  /// @access public
51
49
 
52
50
  @mixin govuk-link-hover-decoration {
53
- @if $govuk-new-link-styles and $govuk-link-hover-underline-thickness {
51
+ @if $govuk-link-hover-underline-thickness {
54
52
  text-decoration-thickness: $govuk-link-hover-underline-thickness;
55
53
  // Disable ink skipping on underlines on hover. Browsers haven't
56
54
  // standardised on this part of the spec yet, so set both properties
@@ -98,17 +96,6 @@
98
96
  &:focus {
99
97
  color: $govuk-focus-text-colour;
100
98
  }
101
-
102
- // alphagov/govuk_template includes a specific a:link:focus selector
103
- // designed to make unvisited link s a slightly darker blue when focussed, so
104
- // we need to override the text colour for that combination of selectors so
105
- // so that unvisited links styled as buttons do not end up with dark blue
106
- // text when focussed.
107
- @include _govuk-compatibility(govuk_template) {
108
- &:link:focus {
109
- color: $govuk-focus-text-colour;
110
- }
111
- }
112
99
  }
113
100
 
114
101
  /// Error link styles
@@ -146,17 +133,6 @@
146
133
  &:focus {
147
134
  color: $govuk-focus-text-colour;
148
135
  }
149
-
150
- // alphagov/govuk_template includes a specific a:link:focus selector
151
- // designed to make unvisited link s a slightly darker blue when focussed, so
152
- // we need to override the text colour for that combination of selectors so
153
- // so that unvisited links styled as buttons do not end up with dark blue
154
- // text when focussed.
155
- @include _govuk-compatibility(govuk_template) {
156
- &:link:focus {
157
- color: $govuk-focus-text-colour;
158
- }
159
- }
160
136
  }
161
137
 
162
138
  /// Success link styles
@@ -194,17 +170,6 @@
194
170
  &:focus {
195
171
  color: $govuk-focus-text-colour;
196
172
  }
197
-
198
- // alphagov/govuk_template includes a specific a:link:focus selector
199
- // designed to make unvisited link s a slightly darker blue when focussed, so
200
- // we need to override the text colour for that combination of selectors so
201
- // so that unvisited links styled as buttons do not end up with dark blue
202
- // text when focussed.
203
- @include _govuk-compatibility(govuk_template) {
204
- &:link:focus {
205
- color: $govuk-focus-text-colour;
206
- }
207
- }
208
173
  }
209
174
 
210
175
  /// Muted link styles
@@ -239,15 +204,6 @@
239
204
  &:focus {
240
205
  color: $govuk-focus-text-colour;
241
206
  }
242
-
243
- // alphagov/govuk_template includes a specific a:link:focus selector designed
244
- // to make unvisited links a slightly darker blue when focussed, so we need to
245
- // override the text colour for that combination of selectors.
246
- @include _govuk-compatibility(govuk_template) {
247
- &:link:focus {
248
- @include govuk-text-colour;
249
- }
250
- }
251
207
  }
252
208
 
253
209
  /// Text link styles
@@ -276,7 +232,7 @@
276
232
  // https://bugs.webkit.org/show_bug.cgi?id=224483
277
233
  &:hover {
278
234
  @if type-of($govuk-text-colour) == color {
279
- color: rgba($govuk-text-colour, .99);
235
+ color: rgba($govuk-text-colour, 0.99);
280
236
  }
281
237
  }
282
238
 
@@ -284,15 +240,6 @@
284
240
  &:focus {
285
241
  @include govuk-text-colour;
286
242
  }
287
-
288
- // alphagov/govuk_template includes a specific a:link:focus selector designed
289
- // to make unvisited links a slightly darker blue when focussed, so we need to
290
- // override the text colour for that combination of selectors.
291
- @include _govuk-compatibility(govuk_template) {
292
- &:link:focus {
293
- @include govuk-text-colour;
294
- }
295
- }
296
243
  }
297
244
 
298
245
  /// Inverse link styles
@@ -321,21 +268,12 @@
321
268
  // https://bugs.webkit.org/show_bug.cgi?id=224483
322
269
  &:hover,
323
270
  &:active {
324
- color: rgba(govuk-colour("white"), .99);
271
+ color: rgba(govuk-colour("white"), 0.99);
325
272
  }
326
273
 
327
274
  &:focus {
328
275
  color: $govuk-focus-text-colour;
329
276
  }
330
-
331
- // alphagov/govuk_template includes a specific a:link:focus selector designed
332
- // to make unvisited links a slightly darker blue when focussed, so we need to
333
- // override the text colour for that combination of selectors.
334
- @include _govuk-compatibility(govuk_template) {
335
- &:link:focus {
336
- color: $govuk-focus-text-colour;
337
- }
338
- }
339
277
  }
340
278
 
341
279
  /// Default link styles, without a visited state
@@ -385,8 +323,7 @@
385
323
  /// Remove underline from links
386
324
  ///
387
325
  /// Remove underlines from links unless the link is active or a user hovers
388
- /// their cursor over it. This has no effect in Internet Explorer 8 (IE8),
389
- /// because IE8 does not support `:not`.
326
+ /// their cursor over it.
390
327
  ///
391
328
  /// @example scss
392
329
  /// .govuk-component__link {
@@ -414,8 +351,9 @@
414
351
  @include govuk-media-query($media-type: print) {
415
352
  &[href^="/"],
416
353
  &[href^="http://"],
417
- &[href^="https://"] {
418
- &:after {
354
+ &[href^="https://"]
355
+ {
356
+ &::after {
419
357
  content: " (" attr(href) ")";
420
358
  font-size: 90%;
421
359
 
@@ -427,3 +365,27 @@
427
365
  }
428
366
  }
429
367
  }
368
+
369
+ /// Image link styles
370
+ ///
371
+ /// Prepares and provides the focus state for links that only contain images
372
+ /// with no accompanying text.
373
+ ///
374
+ /// @access public
375
+
376
+ @mixin govuk-link-image {
377
+ // Needed to draw the focus around the entire image
378
+ display: inline-block;
379
+
380
+ // Remove extra space at the bottom of the image that's added by line-height
381
+ line-height: 0;
382
+
383
+ // Don't render an underline
384
+ text-decoration: none;
385
+
386
+ &:focus {
387
+ @include govuk-focused-box;
388
+ }
389
+ }
390
+
391
+ /*# sourceMappingURL=_links.scss.map */
@@ -6,9 +6,8 @@
6
6
  // Wrangle sass-mq config...
7
7
  // =========================================================
8
8
 
9
- // Pass our breakpoints and static breakpoint definitions through to sass-mq.
9
+ // Pass our breakpoint definitions through to sass-mq.
10
10
  $mq-breakpoints: if(variable-exists(govuk-breakpoints), $govuk-breakpoints, ());
11
- $mq-static-breakpoint: if(variable-exists(govuk-ie8-breakpoint), $govuk-ie8-breakpoint, desktop);
12
11
 
13
12
  $mq-show-breakpoints: ();
14
13
 
@@ -16,14 +15,6 @@ $mq-show-breakpoints: ();
16
15
  $mq-show-breakpoints: map-keys($govuk-breakpoints);
17
16
  }
18
17
 
19
- // When building a stylesheet for IE8, set $mq-responsive to false in order to
20
- // 'rasterize' any media queries.
21
-
22
- $mq-responsive: true;
23
- @if variable-exists(govuk-is-ie8) and $govuk-is-ie8 {
24
- $mq-responsive: false;
25
- }
26
-
27
18
  // This is a horrible, horrible hack to prevent the 'dev mode' CSS to display
28
19
  // the current breakpoint from being included multiple times.
29
20
  //
@@ -55,8 +46,6 @@ $sass-mq-already-included: true;
55
46
  ///
56
47
  /// @ignore Undocumented mq API, for advanced use only:
57
48
  /// @ignore @param {Map} $breakpoints [$govuk-breakpoints]
58
- /// @ignore @param {String} $static-breakpoint [$govuk-ie8-breakpoint]
59
- /// @ignore @param {Boolean} $responsive [$govuk-is-ie8]
60
49
  ///
61
50
  /// @content styling rules, wrapped into a @media query when $responsive is true
62
51
  ///
@@ -89,3 +78,5 @@ $sass-mq-already-included: true;
89
78
  @content;
90
79
  }
91
80
  }
81
+
82
+ /*# sourceMappingURL=_media-queries.scss.map */
@@ -78,3 +78,5 @@
78
78
  @error "Invalid arrow direction: expected `up`, `right`, `down` or `left`, got `#{$direction}`";
79
79
  }
80
80
  }
81
+
82
+ /*# sourceMappingURL=_shape-arrow.scss.map */
@@ -2,8 +2,6 @@
2
2
  /// @group helpers/spacing
3
3
  ////
4
4
 
5
- // stylelint-disable indentation
6
-
7
5
  /// Single point spacing
8
6
  ///
9
7
  /// Returns measurement corresponding to the spacing point requested.
@@ -31,11 +29,10 @@
31
29
  /// @access public
32
30
 
33
31
  @function govuk-spacing($spacing-point) {
34
-
35
32
  $actual-input-type: type-of($spacing-point);
36
33
  @if $actual-input-type != "number" {
37
34
  @error "Expected a number (integer), but got a "
38
- + "#{$actual-input-type}.";
35
+ + "#{$actual-input-type}.";
39
36
  }
40
37
 
41
38
  $is-negative: false;
@@ -71,8 +68,13 @@
71
68
  ///
72
69
  /// @access private
73
70
 
74
- @mixin _govuk-responsive-spacing($responsive-spacing-point, $property, $direction: "all", $important: false, $adjustment: false) {
75
-
71
+ @mixin _govuk-responsive-spacing(
72
+ $responsive-spacing-point,
73
+ $property,
74
+ $direction: "all",
75
+ $important: false,
76
+ $adjustment: false
77
+ ) {
76
78
  $actual-input-type: type-of($responsive-spacing-point);
77
79
  @if $actual-input-type != "number" {
78
80
  @error "Expected a number (integer), but got a " + "#{$actual-input-type}.";
@@ -80,7 +82,7 @@
80
82
 
81
83
  @if not map-has-key($govuk-spacing-responsive-scale, $responsive-spacing-point) {
82
84
  @error "Unknown spacing point `#{$responsive-spacing-point}`. Make sure you are using a point from the "
83
- + "responsive spacing scale in `_settings/spacing.scss`.";
85
+ + "responsive spacing scale in `_settings/spacing.scss`.";
84
86
  }
85
87
 
86
88
  // Make sure that the return value from `_settings/spacing.scss` is a map.
@@ -88,19 +90,17 @@
88
90
  $actual-map-type: type-of($scale-map);
89
91
  @if $actual-map-type != "map" {
90
92
  @error "Expected a number (integer), but got a "
91
- + "#{$actual-map-type}. Make sure you are using a map to set the responsive spacing in `_settings/spacing.scss`)";
93
+ + "#{$actual-map-type}. Make sure you are using a map to set the responsive spacing in `_settings/spacing.scss`)";
92
94
  }
93
95
 
94
96
  // Loop through each breakpoint in the map
95
97
  @each $breakpoint, $breakpoint-value in $scale-map {
96
-
97
98
  @if $adjustment {
98
99
  $breakpoint-value: $breakpoint-value + $adjustment;
99
100
  }
100
101
 
101
102
  // The 'null' breakpoint is for mobile.
102
103
  @if not $breakpoint {
103
-
104
104
  @if $direction == all {
105
105
  #{$property}: $breakpoint-value if($important, !important, null);
106
106
  } @else {
@@ -169,3 +169,5 @@
169
169
  @mixin govuk-responsive-padding($responsive-spacing-point, $direction: "all", $important: false, $adjustment: false) {
170
170
  @include _govuk-responsive-spacing($responsive-spacing-point, "padding", $direction, $important, $adjustment);
171
171
  }
172
+
173
+ /*# sourceMappingURL=_spacing.scss.map */
@@ -19,10 +19,6 @@
19
19
 
20
20
  // If the user is using the default GDS Transport font we need to include
21
21
  // the font-face declarations.
22
- //
23
- // We do not need to include the GDS Transport font-face declarations if
24
- // alphagov/govuk_template is being used since nta will already be included by
25
- // default.
26
22
  @if $govuk-include-default-font-face {
27
23
  @include _govuk-font-face-gds-transport;
28
24
  }
@@ -119,7 +115,6 @@
119
115
  /// @access public
120
116
 
121
117
  @mixin govuk-typography-responsive($size, $override-line-height: false, $important: false) {
122
-
123
118
  @if not map-has-key($govuk-typography-scale, $size) {
124
119
  @error "Unknown font size `#{$size}` - expected a point from the typography scale.";
125
120
  }
@@ -131,11 +126,7 @@
131
126
  $font-size-rem: govuk-px-to-rem($font-size);
132
127
 
133
128
  $line-height: _govuk-line-height(
134
- $line-height: if(
135
- $override-line-height,
136
- $override-line-height,
137
- map-get($breakpoint-map, "line-height")
138
- ),
129
+ $line-height: if($override-line-height, $override-line-height, map-get($breakpoint-map, "line-height")),
139
130
  $font-size: $font-size
140
131
  );
141
132
 
@@ -147,10 +138,7 @@
147
138
  $line-height: $line-height if($important, !important, null);
148
139
 
149
140
  @if not $breakpoint {
150
- font-size: $font-size;
151
- @if $govuk-typography-use-rem {
152
- font-size: $font-size-rem;
153
- }
141
+ font-size: $font-size-rem;
154
142
  line-height: $line-height;
155
143
  } @else if $breakpoint == "print" {
156
144
  @include govuk-media-query($media-type: print) {
@@ -159,10 +147,7 @@
159
147
  }
160
148
  } @else {
161
149
  @include govuk-media-query($from: $breakpoint) {
162
- font-size: $font-size;
163
- @if $govuk-typography-use-rem {
164
- font-size: $font-size-rem;
165
- }
150
+ font-size: $font-size-rem;
166
151
  line-height: $line-height;
167
152
  }
168
153
  }
@@ -183,23 +168,15 @@
183
168
  /// @access public
184
169
 
185
170
  @mixin govuk-font($size, $weight: regular, $tabular: false, $line-height: false) {
171
+ @include govuk-typography-common;
172
+
186
173
  @if $tabular {
187
- // if govuk-font-family-tabular is set use $govuk-font-family-tabular
188
- @if $govuk-font-family-tabular {
189
- @include govuk-typography-common($font-family: $govuk-font-family-tabular);
190
- } @else {
191
- @include govuk-typography-common;
192
- -webkit-font-feature-settings: "tnum" 1;
193
- font-feature-settings: "tnum" 1;
194
-
195
- @supports (font-variant-numeric: tabular-nums) {
196
- -webkit-font-feature-settings: normal;
197
- font-feature-settings: normal;
198
- font-variant-numeric: tabular-nums;
199
- }
174
+ font-feature-settings: "tnum" 1;
175
+
176
+ @supports (font-variant-numeric: tabular-nums) {
177
+ font-feature-settings: normal;
178
+ font-variant-numeric: tabular-nums;
200
179
  }
201
- } @else {
202
- @include govuk-typography-common;
203
180
  }
204
181
 
205
182
  @if $weight == regular {
@@ -212,3 +189,5 @@
212
189
  @include govuk-typography-responsive($size, $override-line-height: $line-height);
213
190
  }
214
191
  }
192
+
193
+ /*# sourceMappingURL=_typography.scss.map */
@@ -16,6 +16,18 @@
16
16
  @mixin govuk-visually-hidden($important: true) {
17
17
  position: absolute if($important, !important, null);
18
18
 
19
+ // Absolute positioning has the unintended consequence of removing any
20
+ // whitespace surrounding visually hidden text from the accessibility tree.
21
+ // Insert a space character before and after visually hidden text to separate
22
+ // it from any visible text surrounding it.
23
+ &::before {
24
+ content: "\00a0";
25
+ }
26
+
27
+ &::after {
28
+ content: "\00a0";
29
+ }
30
+
19
31
  width: 1px if($important, !important, null);
20
32
  height: 1px if($important, !important, null);
21
33
  // If margin is set to a negative value it can cause text to be announced in
@@ -34,6 +46,13 @@
34
46
  // causes content to wrap 1 word per line:
35
47
  // https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
36
48
  white-space: nowrap if($important, !important, null);
49
+
50
+ // Prevent users from selecting or copying visually-hidden text. This prevents
51
+ // a user unintentionally copying more text than they intended and needing to
52
+ // manually trim it down again.
53
+ -webkit-user-select: none;
54
+ -ms-user-select: none;
55
+ user-select: none;
37
56
  }
38
57
 
39
58
  /// Hide an element visually, but have it available for screen readers whilst
@@ -66,6 +85,13 @@
66
85
  // https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
67
86
  white-space: nowrap if($important, !important, null);
68
87
 
88
+ // Prevent users from selecting or copying visually-hidden text. This prevents
89
+ // a user unintentionally copying more text than they intended and needing to
90
+ // manually trim it down again.
91
+ -webkit-user-select: none;
92
+ -ms-user-select: none;
93
+ user-select: none;
94
+
69
95
  &:active,
70
96
  &:focus {
71
97
  position: static if($important, !important, null);
@@ -80,5 +106,12 @@
80
106
  clip-path: none if($important, !important, null);
81
107
 
82
108
  white-space: inherit if($important, !important, null);
109
+
110
+ // Allow the text to be selectable now it's visible
111
+ -webkit-user-select: text;
112
+ -ms-user-select: text;
113
+ user-select: text;
83
114
  }
84
115
  }
116
+
117
+ /*# sourceMappingURL=_visually-hidden.scss.map */
@@ -4,3 +4,5 @@
4
4
  @import "main-wrapper";
5
5
  @import "template";
6
6
  @import "width-container";
7
+
8
+ /*# sourceMappingURL=_all.scss.map */
@@ -29,12 +29,9 @@
29
29
  // margins, but unfortunately the support isn't there (yet) and @supports
30
30
  // doesn't play nicely with it
31
31
  // (https://github.com/w3c/csswg-drafts/issues/3559)
32
- display: -ms-flexbox;
33
32
  display: flex;
34
- -ms-flex-direction: column;
35
- flex-direction: column;
36
- -ms-flex-align: center;
37
- align-items: center;
33
+ flex-direction: column;
34
+ align-items: center;
38
35
 
39
36
  // Give links within the button group the same font-size and line-height
40
37
  // as buttons.
@@ -64,13 +61,9 @@
64
61
  // Cancel out the column gap for the last item in each row
65
62
  margin-right: ($horizontal-gap * -1);
66
63
 
67
- -ms-flex-direction: row;
68
-
69
- flex-direction: row;
70
- -ms-flex-wrap: wrap;
71
- flex-wrap: wrap;
72
- -ms-flex-align: baseline;
73
- align-items: baseline;
64
+ flex-direction: row;
65
+ flex-wrap: wrap;
66
+ align-items: baseline;
74
67
 
75
68
  .govuk-button,
76
69
  .govuk-link {
@@ -83,3 +76,5 @@
83
76
  }
84
77
  }
85
78
  }
79
+
80
+ /*# sourceMappingURL=_button-group.scss.map */
@@ -21,3 +21,5 @@
21
21
  }
22
22
  }
23
23
  }
24
+
25
+ /*# sourceMappingURL=_form-group.scss.map */
@@ -3,8 +3,8 @@
3
3
  @include govuk-exports("govuk/objects/grid") {
4
4
  .govuk-grid-row {
5
5
  @include govuk-clearfix;
6
- margin-right: - ($govuk-gutter-half);
7
- margin-left: - ($govuk-gutter-half);
6
+ margin-right: -($govuk-gutter-half);
7
+ margin-left: -($govuk-gutter-half);
8
8
  }
9
9
 
10
10
  @each $width in map-keys($govuk-grid-widths) {
@@ -22,3 +22,5 @@
22
22
  }
23
23
  }
24
24
  }
25
+
26
+ /*# sourceMappingURL=_grid.scss.map */
@@ -51,3 +51,5 @@
51
51
  @include govuk-responsive-padding(8, "top");
52
52
  }
53
53
  }
54
+
55
+ /*# sourceMappingURL=_main-wrapper.scss.map */
@@ -1,7 +1,6 @@
1
1
  @import "../base";
2
2
 
3
3
  @include govuk-exports("govuk/objects/template") {
4
-
5
4
  // Applied to the <html> element
6
5
  .govuk-template {
7
6
  // Set the overall page background colour to the same colour as used by the
@@ -14,6 +13,26 @@
14
13
  -moz-text-size-adjust: 100%;
15
14
  text-size-adjust: 100%;
16
15
 
16
+ // Add scroll padding to the top of govuk-template but remove it if the
17
+ // exit this page component is present.
18
+ //
19
+ // This is a solution to exit this page potentially failing WCAG SC 2.4.12:
20
+ // Focus Not Obscured (https://www.w3.org/WAI/WCAG22/Understanding/focus-not-obscured-minimum.html)
21
+ // due to it's sticky positioning.
22
+ //
23
+ // This will apply scroll-padding-top in any browsers that don't support :has
24
+ // (https://caniuse.com/css-has). This is part of the reason we do this in
25
+ // a "wrong way round" way as we hypothesise that the risks of having
26
+ // scroll-padding unnecessarily is better than risking not having scroll-padding
27
+ // and needing it to account for exit this page.
28
+ @supports ((position: -webkit-sticky) or (position: sticky)) {
29
+ scroll-padding-top: govuk-spacing(9);
30
+
31
+ &:not(:has(.govuk-exit-this-page)) {
32
+ scroll-padding-top: 0;
33
+ }
34
+ }
35
+
17
36
  // Force the scrollbar to always display in IE, to prevent horizontal page
18
37
  // jumps as content height changes (e.g. autocomplete results open).
19
38
  @include govuk-media-query($media-type: screen) {
@@ -30,3 +49,5 @@
30
49
  background-color: $govuk-body-background-colour;
31
50
  }
32
51
  }
52
+
53
+ /*# sourceMappingURL=_template.scss.map */
@@ -18,7 +18,6 @@
18
18
  /// @access public
19
19
 
20
20
  @mixin govuk-width-container($width: $govuk-page-width) {
21
-
22
21
  // By default, limit the width of the container to the page width
23
22
  max-width: $width;
24
23
 
@@ -67,14 +66,6 @@
67
66
  margin-left: auto;
68
67
  }
69
68
  }
70
-
71
- @include _govuk-if-ie8 {
72
- width: $width;
73
- // Since media queries are not supported in IE8,
74
- // we need to duplicate this margin that centers the page.
75
- margin-right: auto;
76
- margin-left: auto;
77
- }
78
69
  }
79
70
 
80
71
  @include govuk-exports("govuk/objects/width-container") {
@@ -82,3 +73,5 @@
82
73
  @include govuk-width-container;
83
74
  }
84
75
  }
76
+
77
+ /*# sourceMappingURL=_width-container.scss.map */
@@ -3,3 +3,5 @@
3
3
  @import "text-align";
4
4
  @import "typography";
5
5
  @import "width";
6
+
7
+ /*# sourceMappingURL=_all.scss.map */
@@ -22,3 +22,5 @@
22
22
  }
23
23
  }
24
24
  }
25
+
26
+ /*# sourceMappingURL=_display.scss.map */
@@ -9,12 +9,7 @@
9
9
  /// @type Map
10
10
  /// @access private
11
11
 
12
- $_spacing-directions: (
13
- "top",
14
- "right",
15
- "bottom",
16
- "left"
17
- ) !default;
12
+ $_spacing-directions: ("top", "right", "bottom", "left") !default;
18
13
 
19
14
  /// Generate responsive spacing override classes
20
15
  ///
@@ -40,15 +35,12 @@ $_spacing-directions: (
40
35
  // For each point in the spacing scale (defined in settings), create an
41
36
  // override that affects all directions...
42
37
  @each $scale-point, $scale-map in $govuk-spacing-responsive-scale {
43
-
44
38
  .govuk-\!-#{$property}-#{$scale-point} {
45
-
46
39
  @include _govuk-responsive-spacing($scale-point, $property, "all", true);
47
40
  }
48
41
 
49
42
  // ... and then an override for each individual direction
50
43
  @each $direction in $_spacing-directions {
51
-
52
44
  .govuk-\!-#{$property}-#{$direction}-#{$scale-point} {
53
45
  @include _govuk-responsive-spacing($scale-point, $property, $direction, true);
54
46
  }
@@ -61,14 +53,6 @@ $_spacing-directions: (
61
53
  /// Generate spacing override classes for the given property (e.g. margin)
62
54
  /// for each point in the non-responsive spacing scale.
63
55
  ///
64
- /// The classes in the format govuk-#{$property}-static-#{$spacing-point}
65
- /// and govuk-\!-#{$property}-#{$direction}-static-#{$spacing-point} are deprecated.
66
- /// For example: govuk-!-margin-static-2 or govuk-!-margin-top-static-2
67
- ///
68
- /// Use classes in the format .govuk-\!-static-#{$property}-#{$spacing-point}
69
- /// and .govuk-\!-static-#{$property}-#{$direction}-#{$spacing-point} instead.
70
- /// For example: govuk-!-static-margin-2 or govuk-!-static-margin-top-2
71
- ///
72
56
  /// @param {String} $property - Property to add spacing to (e.g. 'margin')
73
57
  ///
74
58
  /// @example css
@@ -79,13 +63,11 @@ $_spacing-directions: (
79
63
  /// @access private
80
64
  @mixin _govuk-generate-static-spacing-overrides($property) {
81
65
  @each $spacing-point in map-keys($govuk-spacing-points) {
82
- .govuk-\!-#{$property}-static-#{$spacing-point},
83
66
  .govuk-\!-static-#{$property}-#{$spacing-point} {
84
67
  #{$property}: govuk-spacing($spacing-point) !important;
85
68
  }
86
69
 
87
70
  @each $direction in $_spacing-directions {
88
- .govuk-\!-#{$property}-#{$direction}-static-#{$spacing-point},
89
71
  .govuk-\!-static-#{$property}-#{$direction}-#{$spacing-point} {
90
72
  #{$property}-#{$direction}: govuk-spacing($spacing-point) !important;
91
73
  }
@@ -100,3 +82,5 @@ $_spacing-directions: (
100
82
  @include _govuk-generate-static-spacing-overrides("margin");
101
83
  @include _govuk-generate-static-spacing-overrides("padding");
102
84
  }
85
+
86
+ /*# sourceMappingURL=_spacing.scss.map */