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
@@ -3,20 +3,14 @@
3
3
  // Falls back to a float: left layout on non-flex browsers
4
4
  .govuk-pagination {
5
5
  @include govuk-responsive-margin(6, "bottom");
6
- display: -ms-flexbox;
7
6
  display: flex;
8
- -ms-flex-direction: column;
9
- flex-direction: column;
10
- -ms-flex-align: center;
11
- align-items: center;
12
- -ms-flex-wrap: wrap;
13
- flex-wrap: wrap;
7
+ flex-direction: column;
8
+ align-items: center;
9
+ flex-wrap: wrap;
14
10
 
15
11
  @include govuk-media-query($from: tablet) {
16
- -ms-flex-direction: row;
17
- flex-direction: row;
18
- -ms-flex-align: start;
19
- align-items: flex-start;
12
+ flex-direction: row;
13
+ align-items: flex-start;
20
14
  }
21
15
  }
22
16
 
@@ -38,7 +32,7 @@
38
32
  float: left; // Float is ignored if flex is active for prev/next links
39
33
 
40
34
  &:hover {
41
- background-color: govuk-colour("light-grey", $legacy: "grey-4");
35
+ background-color: govuk-colour("light-grey");
42
36
  }
43
37
  }
44
38
 
@@ -63,10 +57,8 @@
63
57
  // Use flex to get around a whitespace issue between the arrow svg and the link text
64
58
  // without having to rely on whitespace control from backend tooling
65
59
  .govuk-pagination__link {
66
- display: -ms-flexbox;
67
60
  display: flex;
68
- -ms-flex-align: center;
69
- align-items: center;
61
+ align-items: center;
70
62
  }
71
63
  }
72
64
 
@@ -116,7 +108,7 @@
116
108
 
117
109
  // Increase the touch area for the link to the parent element.
118
110
  @media screen {
119
- &:after {
111
+ &::after {
120
112
  content: "";
121
113
  position: absolute;
122
114
  top: 0;
@@ -156,7 +148,7 @@
156
148
  }
157
149
 
158
150
  .govuk-pagination__link-label {
159
- @include govuk-font($size: 19, $weight: "regular");
151
+ @include govuk-typography-weight-regular;
160
152
  @include govuk-link-decoration;
161
153
  display: inline-block;
162
154
  padding-left: govuk-spacing(6);
@@ -218,7 +210,7 @@
218
210
  // as block level whilst programmatically being inline
219
211
  // We do this to get around an NVDA quirk where adjacent block level
220
212
  // elements are always read out separately
221
- .govuk-pagination__link-title:after {
213
+ .govuk-pagination__link-title::after {
222
214
  content: "";
223
215
  display: block;
224
216
  }
@@ -245,3 +237,5 @@
245
237
  }
246
238
  }
247
239
  }
240
+
241
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_pagination.scss.map */
@@ -1,6 +1,6 @@
1
1
  @include govuk-exports("govuk/component/panel") {
2
2
  .govuk-panel {
3
- @include govuk-font($size: 19);
3
+ @include govuk-font($size: 36);
4
4
 
5
5
  box-sizing: border-box;
6
6
 
@@ -30,7 +30,7 @@
30
30
 
31
31
  .govuk-panel--confirmation {
32
32
  color: govuk-colour("white");
33
- background: govuk-colour("green", $legacy: "turquoise");
33
+ background: govuk-colour("green");
34
34
 
35
35
  @include govuk-media-query($media-type: print) {
36
36
  border-color: currentcolor;
@@ -40,17 +40,15 @@
40
40
  }
41
41
 
42
42
  .govuk-panel__title {
43
+ @include govuk-typography-responsive($size: 48);
44
+ @include govuk-typography-weight-bold;
43
45
  margin-top: 0;
44
46
  margin-bottom: govuk-spacing(6);
45
-
46
- @include govuk-font($size: 48, $weight: bold);
47
47
  }
48
48
 
49
49
  .govuk-panel__title:last-child {
50
50
  margin-bottom: 0;
51
51
  }
52
-
53
- .govuk-panel__body {
54
- @include govuk-font($size: 36);
55
- }
56
52
  }
53
+
54
+ /*# sourceMappingURL=_index.scss.map */
@@ -1,2 +1,4 @@
1
1
  @import "../../base";
2
2
  @import "./index";
3
+
4
+ /*# sourceMappingURL=_panel.scss.map */
@@ -17,7 +17,16 @@
17
17
  }
18
18
 
19
19
  .govuk-phase-banner__content__tag {
20
+ @include govuk-typography-responsive($size: 16);
20
21
  margin-right: govuk-spacing(2);
22
+
23
+ // When forced colour mode is active, for example to provide high contrast,
24
+ // the background colour of the tag is the same as the rest of the page. To ensure
25
+ // that the tag is perceived as separate to the rest of the text in the phase banner,
26
+ // it is made bold.
27
+ @media screen and (forced-colors: active) {
28
+ font-weight: bold;
29
+ }
21
30
  }
22
31
 
23
32
  .govuk-phase-banner__text {
@@ -25,3 +34,5 @@
25
34
  vertical-align: middle;
26
35
  }
27
36
  }
37
+
38
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_phase-banner.scss.map */
@@ -4,7 +4,6 @@
4
4
  @import "../label/index";
5
5
 
6
6
  @include govuk-exports("govuk/component/radios") {
7
-
8
7
  $govuk-touch-target-size: 44px;
9
8
  $govuk-radios-size: 40px;
10
9
  $govuk-small-radios-size: 24px;
@@ -14,8 +13,6 @@
14
13
  $govuk-radios-focus-width: $govuk-focus-width + 1px;
15
14
 
16
15
  .govuk-radios__item {
17
- @include govuk-font($size: 19);
18
-
19
16
  display: block;
20
17
  position: relative;
21
18
 
@@ -35,35 +32,19 @@
35
32
  .govuk-radios__input {
36
33
  $input-offset: ($govuk-touch-target-size - $govuk-radios-size) / 2;
37
34
 
38
- cursor: pointer;
39
-
40
- // IE8 doesn’t support pseudo-elements, so we don’t want to hide native
41
- // elements there.
42
- @include _govuk-not-ie8 {
43
- position: absolute;
44
-
45
- z-index: 1;
46
- top: $input-offset * -1;
47
- left: $input-offset * -1;
35
+ position: absolute;
48
36
 
49
- width: $govuk-touch-target-size;
50
- height: $govuk-touch-target-size;
51
- margin: 0;
37
+ z-index: 1;
38
+ top: $input-offset * -1;
39
+ left: $input-offset * -1;
52
40
 
53
- opacity: 0;
54
- }
41
+ width: $govuk-touch-target-size;
42
+ height: $govuk-touch-target-size;
43
+ margin: 0;
55
44
 
56
- @include _govuk-if-ie8 {
57
- margin-top: 10px;
58
- margin-right: $govuk-radios-size / -2;
59
- margin-left: $govuk-radios-size / -2;
60
- float: left;
45
+ opacity: 0;
61
46
 
62
- // add focus outline to input
63
- &:focus {
64
- outline: $govuk-focus-width solid $govuk-focus-colour;
65
- }
66
- }
47
+ cursor: pointer;
67
48
  }
68
49
 
69
50
  .govuk-radios__label {
@@ -72,12 +53,11 @@
72
53
  padding: 8px $govuk-radios-label-padding-left-right govuk-spacing(1);
73
54
  cursor: pointer;
74
55
  // remove 300ms pause on mobile
75
- -ms-touch-action: manipulation;
76
- touch-action: manipulation;
56
+ touch-action: manipulation;
77
57
  }
78
58
 
79
59
  // ( ) Radio ring
80
- .govuk-radios__label:before {
60
+ .govuk-radios__label::before {
81
61
  content: "";
82
62
  box-sizing: border-box;
83
63
  position: absolute;
@@ -96,7 +76,7 @@
96
76
  //
97
77
  // We create the 'button' entirely out of 'border' so that they remain
98
78
  // 'filled' even when colours are overridden in the browser.
99
- .govuk-radios__label:after {
79
+ .govuk-radios__label::after {
100
80
  content: "";
101
81
 
102
82
  position: absolute;
@@ -119,7 +99,7 @@
119
99
  }
120
100
 
121
101
  // Focused state
122
- .govuk-radios__input:focus + .govuk-radios__label:before {
102
+ .govuk-radios__input:focus + .govuk-radios__label::before {
123
103
  border-width: 4px;
124
104
 
125
105
  // When colours are overridden, the yellow box-shadow becomes invisible
@@ -139,7 +119,7 @@
139
119
  }
140
120
 
141
121
  // Selected state
142
- .govuk-radios__input:checked + .govuk-radios__label:after {
122
+ .govuk-radios__input:checked + .govuk-radios__label::after {
143
123
  opacity: 1;
144
124
  }
145
125
 
@@ -151,7 +131,7 @@
151
131
 
152
132
  .govuk-radios__input:disabled + .govuk-radios__label,
153
133
  .govuk-radios__input:disabled ~ .govuk-hint {
154
- opacity: .5;
134
+ opacity: 0.5;
155
135
  }
156
136
 
157
137
  // =========================================================
@@ -159,7 +139,7 @@
159
139
  // =========================================================
160
140
 
161
141
  .govuk-radios--inline {
162
- @include govuk-media-query ($from: tablet) {
142
+ @include govuk-media-query($from: tablet) {
163
143
  @include govuk-clearfix;
164
144
 
165
145
  .govuk-radios__item {
@@ -175,9 +155,9 @@
175
155
  // =========================================================
176
156
 
177
157
  .govuk-radios__divider {
178
- $govuk-divider-size: $govuk-radios-size !default;
179
158
  @include govuk-font($size: 19);
180
159
  @include govuk-text-colour;
160
+ $govuk-divider-size: $govuk-radios-size !default;
181
161
  width: $govuk-divider-size;
182
162
  margin-bottom: govuk-spacing(2);
183
163
  text-align: center;
@@ -203,7 +183,7 @@
203
183
  padding-left: $conditional-padding-left;
204
184
  border-left: $conditional-border-width solid $govuk-border-colour;
205
185
 
206
- .js-enabled &--hidden {
186
+ .govuk-frontend-supported &--hidden {
207
187
  display: none;
208
188
  }
209
189
 
@@ -217,7 +197,6 @@
217
197
  // =========================================================
218
198
 
219
199
  .govuk-radios--small {
220
-
221
200
  $input-offset: ($govuk-touch-target-size - $govuk-small-radios-size) / 2;
222
201
  $label-offset: $govuk-touch-target-size - $input-offset;
223
202
 
@@ -239,13 +218,7 @@
239
218
  // ▲┆└─ Radio pseudo element, aligned with margin
240
219
  // └─── Touch target (invisible input), shifted into the margin
241
220
  .govuk-radios__input {
242
- @include _govuk-not-ie8 {
243
- left: $input-offset * -1;
244
- }
245
-
246
- @include _govuk-if-ie8 {
247
- margin-left: $govuk-small-radios-size * -1;
248
- }
221
+ left: $input-offset * -1;
249
222
  }
250
223
 
251
224
  // Adjust the size and position of the label.
@@ -267,7 +240,7 @@
267
240
  //
268
241
  // Reduce the size of the control [1], vertically centering it within the
269
242
  // touch target [2]
270
- .govuk-radios__label:before {
243
+ .govuk-radios__label::before {
271
244
  top: $input-offset - $govuk-border-width-form-element; // 2
272
245
  width: $govuk-small-radios-size; // 1
273
246
  height: $govuk-small-radios-size; // 1
@@ -276,7 +249,7 @@
276
249
  // • Radio button
277
250
  //
278
251
  // Reduce the size of the 'button' and center it within the ring
279
- .govuk-radios__label:after {
252
+ .govuk-radios__label::after {
280
253
  top: 15px;
281
254
  left: 7px;
282
255
  border-width: 5px;
@@ -315,7 +288,11 @@
315
288
  // is so much larger than their visible size, and so we need to provide
316
289
  // feedback to the user as to which radio they will select when their
317
290
  // cursor is outside of the visible area.
318
- .govuk-radios__item:hover .govuk-radios__input:not(:disabled) + .govuk-radios__label:before {
291
+ .govuk-radios__item:hover .govuk-radios__input:not(:disabled) + .govuk-radios__label::before {
292
+ // Forced colours modes tend to ignore box-shadow.
293
+ // Apply an outline for those modes to use instead.
294
+ outline: $govuk-radios-focus-width dashed transparent;
295
+ outline-offset: 1px;
319
296
  box-shadow: 0 0 0 $govuk-hover-width $govuk-hover-colour;
320
297
  }
321
298
 
@@ -324,10 +301,15 @@
324
301
  //
325
302
  // We use two box shadows, one that restores the original focus state [1]
326
303
  // and another that then applies the hover state [2].
327
- .govuk-radios__item:hover .govuk-radios__input:focus + .govuk-radios__label:before {
304
+ .govuk-radios__item:hover .govuk-radios__input:focus + .govuk-radios__label::before {
305
+ // Set different HCM colour when we have both hover/focus applied at once
306
+ @media screen and (forced-colors: active), (-ms-high-contrast: active) {
307
+ outline-color: Highlight;
308
+ }
309
+ // prettier-ignore
328
310
  box-shadow:
329
- 0 0 0 $govuk-radios-focus-width $govuk-focus-colour, // 1
330
- 0 0 0 $govuk-hover-width $govuk-hover-colour; // 2
311
+ 0 0 0 $govuk-radios-focus-width $govuk-focus-colour // 1,
312
+ 0 0 0 $govuk-hover-width $govuk-hover-colour; // 2
331
313
  }
332
314
 
333
315
  // For devices that explicitly don't support hover, don't provide a hover
@@ -337,13 +319,15 @@
337
319
  // state in browsers that don't support `@media (hover)` (like Internet
338
320
  // Explorer) – so we have to 'undo' the hover state instead.
339
321
  @media (hover: none), (pointer: coarse) {
340
- .govuk-radios__item:hover .govuk-radios__input:not(:disabled) + .govuk-radios__label:before {
322
+ .govuk-radios__item:hover .govuk-radios__input:not(:disabled) + .govuk-radios__label::before {
341
323
  box-shadow: initial;
342
324
  }
343
325
 
344
- .govuk-radios__item:hover .govuk-radios__input:focus + .govuk-radios__label:before {
326
+ .govuk-radios__item:hover .govuk-radios__input:focus + .govuk-radios__label::before {
345
327
  box-shadow: 0 0 0 $govuk-radios-focus-width $govuk-focus-colour;
346
328
  }
347
329
  }
348
330
  }
349
331
  }
332
+
333
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_radios.scss.map */
@@ -14,10 +14,7 @@
14
14
  // - it fits comfortably on screens as narrow as 240px wide
15
15
  min-width: 11.5em;
16
16
  max-width: 100%;
17
- height: 40px;
18
- @if $govuk-typography-use-rem {
19
- height: govuk-px-to-rem(40px);
20
- }
17
+ height: govuk-px-to-rem(40px);
21
18
  padding: govuk-spacing(1); // was 5px 4px 4px - size of it should be adjusted to match other form elements
22
19
  border: $govuk-border-width-form-element solid $govuk-input-border-colour;
23
20
 
@@ -34,16 +31,10 @@
34
31
  // this instead of changing `border-width` (which changes element size) and
35
32
  // since `outline` is already used for the yellow focus state.
36
33
  box-shadow: inset 0 0 0 $govuk-border-width-form-element;
37
-
38
- @include _govuk-if-ie8 {
39
- // IE8 doesn't support `box-shadow` so double the border with
40
- // `border-width`.
41
- border-width: $govuk-border-width-form-element * 2;
42
- }
43
34
  }
44
35
 
45
36
  &:disabled {
46
- opacity: .5;
37
+ opacity: 0.5;
47
38
  color: inherit;
48
39
  cursor: not-allowed;
49
40
  }
@@ -64,3 +55,5 @@
64
55
  }
65
56
  }
66
57
  }
58
+
59
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_select.scss.map */
@@ -45,3 +45,5 @@
45
45
  }
46
46
  }
47
47
  }
48
+
49
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_skip-link.scss.map */
@@ -32,7 +32,7 @@
32
32
  // bottom border is not drawn for that part of the row in some browsers.
33
33
  .govuk-summary-list__row--no-actions {
34
34
  @include govuk-media-query($from: tablet) {
35
- &:after {
35
+ &::after {
36
36
  content: "";
37
37
  display: table-cell;
38
38
  width: 20%;
@@ -57,7 +57,6 @@
57
57
  margin-bottom: govuk-spacing(3);
58
58
  @include govuk-media-query($from: tablet) {
59
59
  width: 20%;
60
- padding-right: 0; // Needed for IE8
61
60
  text-align: right;
62
61
  }
63
62
  }
@@ -101,15 +100,10 @@
101
100
  display: inline-block;
102
101
  }
103
102
 
104
- // In older browsers such as IE8, :last-child is not available,
105
- // so only show the border divider where it is available.
106
103
  @include govuk-media-query($until: tablet) {
107
104
  .govuk-summary-list__actions-list-item {
108
105
  margin-right: govuk-spacing(2);
109
106
  padding-right: govuk-spacing(2);
110
- }
111
-
112
- .govuk-summary-list__actions-list-item:not(:last-child) {
113
107
  border-right: 1px solid $govuk-border-colour;
114
108
  }
115
109
 
@@ -137,6 +131,15 @@
137
131
  }
138
132
  }
139
133
 
134
+ // Large groups of action links may wrap onto multiple lines. Because the link
135
+ // focus styles are applied outside of the link's bounding box, there are
136
+ // situations where the focus style on a link can be overlapped by subsequent
137
+ // links. We don't want this, so let's create a new stacking context on focus
138
+ // so the link always appears to be 'on top'.
139
+ .govuk-summary-list__actions-list-item .govuk-link:focus {
140
+ isolation: isolate;
141
+ }
142
+
140
143
  // No border on entire summary list
141
144
  .govuk-summary-list--no-border {
142
145
  .govuk-summary-list__row {
@@ -178,21 +181,19 @@
178
181
 
179
182
  // Ensures the card header appears separate to the summary list in forced colours mode
180
183
  border-bottom: 1px solid transparent;
181
- background-color: govuk-colour("light-grey", $legacy: "grey-3");
184
+ background-color: govuk-colour("light-grey");
182
185
 
183
186
  @include govuk-media-query($from: "tablet") {
184
- display: -ms-flexbox;
185
187
  display: flex;
186
- -ms-flex-pack: justify;
187
- justify-content: space-between;
188
- -ms-flex-wrap: nowrap;
189
- flex-wrap: nowrap;
188
+ justify-content: space-between;
189
+ flex-wrap: nowrap;
190
190
  padding: govuk-spacing(3) govuk-spacing(4);
191
191
  }
192
192
  }
193
193
 
194
194
  .govuk-summary-card__title {
195
195
  @include govuk-font($size: 19, $weight: bold);
196
+ @include govuk-text-colour;
196
197
  margin: govuk-spacing(1) govuk-spacing(4) govuk-spacing(2) 0;
197
198
 
198
199
  @include govuk-media-query($from: "tablet") {
@@ -201,19 +202,17 @@
201
202
  }
202
203
 
203
204
  .govuk-summary-card__actions {
204
- @include govuk-font($size: 19, $weight: bold);
205
- display: -ms-flexbox;
205
+ @include govuk-typography-responsive($size: 19);
206
+ @include govuk-typography-weight-bold;
206
207
  display: flex;
207
- -ms-flex-wrap: wrap;
208
- flex-wrap: wrap;
208
+ flex-wrap: wrap;
209
209
  row-gap: 10px;
210
210
  margin: govuk-spacing(1) 0;
211
211
  padding: 0;
212
212
  list-style: none;
213
213
 
214
214
  @include govuk-media-query($from: "tablet") {
215
- -ms-flex-pack: right;
216
- justify-content: right;
215
+ justify-content: right;
217
216
  text-align: right;
218
217
  }
219
218
  }
@@ -274,3 +273,5 @@
274
273
  }
275
274
  }
276
275
  }
276
+
277
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_summary-list.scss.map */
@@ -19,12 +19,6 @@
19
19
  border-bottom: 1px solid $govuk-border-colour;
20
20
  text-align: left;
21
21
  vertical-align: top;
22
- // GOV.UK Elements sets the font-size and line-height for all headers and cells
23
- // in tables.
24
- @include _govuk-compatibility(govuk_elements) {
25
- font-size: inherit;
26
- line-height: inherit;
27
- }
28
22
  }
29
23
 
30
24
  .govuk-table__cell--numeric {
@@ -49,23 +43,23 @@
49
43
  }
50
44
 
51
45
  // Modifiers that make captions look more like their equivalent headings
46
+ .govuk-table__caption--xl,
47
+ .govuk-table__caption--l,
48
+ .govuk-table__caption--m {
49
+ margin-bottom: govuk-spacing(3);
50
+ }
52
51
 
53
52
  .govuk-table__caption--xl {
54
- @include govuk-font($size: 48, $weight: bold);
55
- margin-bottom: govuk-spacing(3);
53
+ @include govuk-typography-responsive($size: 48);
56
54
  }
57
55
 
58
56
  .govuk-table__caption--l {
59
- @include govuk-font($size: 36, $weight: bold);
60
- margin-bottom: govuk-spacing(3);
57
+ @include govuk-typography-responsive($size: 36);
61
58
  }
62
59
 
63
60
  .govuk-table__caption--m {
64
- @include govuk-font($size: 24, $weight: bold);
65
- margin-bottom: govuk-spacing(3);
66
- }
67
-
68
- .govuk-table__caption--s {
69
- @include govuk-font($size: 19, $weight: bold);
61
+ @include govuk-typography-responsive($size: 24);
70
62
  }
71
63
  }
64
+
65
+ /*# sourceMappingURL=_index.scss.map */
@@ -1,2 +1,4 @@
1
1
  @import "../../base";
2
2
  @import "./index";
3
+
4
+ /*# sourceMappingURL=_table.scss.map */
@@ -2,10 +2,14 @@
2
2
  .govuk-tabs {
3
3
  @include govuk-responsive-margin(1, "top");
4
4
  @include govuk-responsive-margin(6, "bottom");
5
+ @include govuk-font($size: 19);
5
6
  }
6
7
 
7
8
  .govuk-tabs__title {
8
- @include govuk-font($size: 19);
9
+ // Set the size and weight again because this element is a heading and the
10
+ // user agent font size overrides the inherited font size
11
+ @include govuk-typography-responsive($size: 19);
12
+ @include govuk-typography-weight-regular;
9
13
  @include govuk-text-colour;
10
14
  margin-bottom: govuk-spacing(2);
11
15
  }
@@ -18,10 +22,9 @@
18
22
  }
19
23
 
20
24
  .govuk-tabs__list-item {
21
- @include govuk-font($size: 19);
22
25
  margin-left: govuk-spacing(5);
23
26
 
24
- &:before {
27
+ &::before {
25
28
  @include govuk-text-colour;
26
29
  content: "\2014 "; // "— "
27
30
  margin-left: govuk-spacing(-5);
@@ -41,9 +44,8 @@
41
44
  @include govuk-responsive-margin(8, "bottom");
42
45
  }
43
46
 
44
- // JavaScript enabled
45
- .js-enabled {
46
-
47
+ // GOV.UK Frontend JavaScript enabled
48
+ .govuk-frontend-supported {
47
49
  @include govuk-media-query($from: tablet) {
48
50
  .govuk-tabs__list {
49
51
  @include govuk-clearfix;
@@ -64,10 +66,10 @@
64
66
  padding: govuk-spacing(2) govuk-spacing(4);
65
67
 
66
68
  float: left;
67
- background-color: govuk-colour("light-grey", $legacy: "grey-4");
69
+ background-color: govuk-colour("light-grey");
68
70
  text-align: center;
69
71
 
70
- &:before {
72
+ &::before {
71
73
  content: none;
72
74
  }
73
75
  }
@@ -101,7 +103,7 @@
101
103
 
102
104
  margin-bottom: 0;
103
105
 
104
- &:after {
106
+ &::after {
105
107
  content: "";
106
108
  position: absolute;
107
109
  top: 0;
@@ -128,3 +130,5 @@
128
130
  }
129
131
  }
130
132
  }
133
+
134
+ /*# sourceMappingURL=_index.scss.map */
@@ -1,2 +1,4 @@
1
1
  @import "../../base";
2
2
  @import "./index";
3
+
4
+ /*# sourceMappingURL=_tabs.scss.map */