katalyst-govuk-formbuilder 1.5.1 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/builds/katalyst/govuk/formbuilder.css +503 -451
  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 +6 -3
  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 +11 -35
  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 +11 -36
  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 +29 -102
  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/{govuk → dist/govuk}/components/exit-this-page/_index.scss +5 -10
  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 +23 -2
  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 +2 -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 -135
  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/exit-this-page/_exit-this-page.scss +0 -2
  153. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/fieldset/_fieldset.scss +0 -2
  154. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/file-upload/_file-upload.scss +0 -2
  155. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/footer/_footer.scss +0 -2
  156. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/header/_header.scss +0 -2
  157. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/inset-text/_inset-text.scss +0 -2
  158. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +0 -2
  159. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/pagination/_pagination.scss +0 -2
  160. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +0 -2
  161. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/radios/_radios.scss +0 -2
  162. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/select/_select.scss +0 -2
  163. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/skip-link/_skip-link.scss +0 -2
  164. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/summary-list/_summary-list.scss +0 -2
  165. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tag/_index.scss +0 -81
  166. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/textarea/_textarea.scss +0 -2
  167. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/warning-text/_warning-text.scss +0 -2
  168. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_font-faces.scss +0 -41
  169. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-palette.scss +0 -120
  170. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_compatibility.scss +0 -100
  171. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_ie8.scss +0 -34
  172. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font-families.scss +0 -32
  173. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font.scss +0 -112
  174. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_compatibility.scss +0 -50
  175. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_ie8.scss +0 -87
@@ -28,24 +28,14 @@
28
28
  }
29
29
 
30
30
  // Prepend left pointing chevron
31
- .govuk-back-link:before {
31
+ .govuk-back-link::before {
32
32
  content: "";
33
33
  display: block;
34
34
 
35
35
  // Vertically align with the parent element
36
36
  position: absolute;
37
-
38
- @if $govuk-use-legacy-font {
39
- // Begin adjustments for font baseline offset
40
- // These should be removed when legacy font support is dropped
41
- $offset: govuk-em(1px, $font-size);
42
- top: $offset * -1;
43
- bottom: $offset;
44
- } @else {
45
- top: 0;
46
- bottom: 0;
47
- }
48
-
37
+ top: 0;
38
+ bottom: 0;
49
39
  left: govuk-em(3px, $font-size);
50
40
 
51
41
  width: $chevron-size;
@@ -53,42 +43,26 @@
53
43
 
54
44
  margin: auto 0;
55
45
 
56
- -webkit-transform: rotate(225deg);
57
-
58
- -ms-transform: rotate(225deg);
59
-
60
- transform: rotate(225deg);
46
+ transform: rotate(225deg);
61
47
 
62
48
  border: solid;
63
49
  border-width: $chevron-border-min-width $chevron-border-min-width 0 0;
64
50
  border-color: $chevron-border-colour;
65
51
 
66
52
  @supports (border-width: unquote("max(0px)")) {
67
- border-width: unquote("max(#{$chevron-border-min-width}, #{$chevron-border-width}) max(#{$chevron-border-min-width}, #{$chevron-border-width})") 0 0;
53
+ $border-width-eval: "max(#{$chevron-border-min-width}, #{$chevron-border-width})";
68
54
 
69
55
  // Ensure that the chevron never gets smaller than 16px
56
+ border-width: unquote($border-width-eval) unquote($border-width-eval) 0 0;
70
57
  font-size: unquote("max(#{$font-size * 1px}, 1em)");
71
58
  }
72
-
73
- // Fall back to a less than sign for IE8
74
- @include _govuk-if-ie8 {
75
- content: "\003c"; // Less than sign (<)
76
- width: auto;
77
- height: auto;
78
- border: 0;
79
- color: $chevron-border-colour;
80
-
81
- // IE8 doesn't seem to like rendering pseudo-elements using @font-faces,
82
- // so fall back to using another sans-serif font to render the chevron.
83
- font-family: Arial, sans-serif;
84
- }
85
59
  }
86
60
 
87
- .govuk-back-link:focus:before {
61
+ .govuk-back-link:focus::before {
88
62
  border-color: $govuk-focus-text-colour;
89
63
  }
90
64
 
91
- .govuk-back-link:after {
65
+ .govuk-back-link::after {
92
66
  content: "";
93
67
  position: absolute;
94
68
  top: -14px;
@@ -100,8 +74,10 @@
100
74
  .govuk-back-link--inverse {
101
75
  @include govuk-link-style-inverse;
102
76
 
103
- &:before {
77
+ &::before {
104
78
  border-color: currentcolor;
105
79
  }
106
80
  }
107
81
  }
82
+
83
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_breadcrumbs.scss.map */
@@ -35,7 +35,6 @@
35
35
  }
36
36
 
37
37
  .govuk-breadcrumbs__list-item {
38
-
39
38
  display: inline-block;
40
39
  position: relative;
41
40
 
@@ -49,22 +48,13 @@
49
48
  float: left;
50
49
 
51
50
  // Create a chevron using a box with borders on two sides, rotated 45deg.
52
- &:before {
51
+ &::before {
53
52
  content: "";
54
53
  display: block;
55
54
 
56
55
  position: absolute;
57
-
58
- @if $govuk-use-legacy-font {
59
- // Begin adjustments for font baseline offset
60
- // These should be removed when legacy font support is dropped
61
- $offset: govuk-em(1px, $font-size);
62
- top: $offset * -1;
63
- bottom: $offset;
64
- } @else {
65
- top: 0;
66
- bottom: 0;
67
- }
56
+ top: 0;
57
+ bottom: 0;
68
58
 
69
59
  // Offset by the difference between the width of the non-rotated square
70
60
  // and its width when rotated
@@ -75,42 +65,26 @@
75
65
 
76
66
  margin: auto 0;
77
67
 
78
- -webkit-transform: rotate(45deg);
79
-
80
- -ms-transform: rotate(45deg);
81
-
82
- transform: rotate(45deg);
68
+ transform: rotate(45deg);
83
69
 
84
70
  border: solid;
85
71
  border-width: $chevron-border-min-width $chevron-border-min-width 0 0;
86
72
  border-color: $chevron-border-colour;
87
73
 
88
74
  @supports (border-width: unquote("max(0px)")) {
89
- border-width: unquote("max(#{$chevron-border-min-width}, #{$chevron-border-width}) max(#{$chevron-border-min-width}, #{$chevron-border-width})") 0 0;
75
+ $border-width-eval: "max(#{$chevron-border-min-width}, #{$chevron-border-width})";
90
76
 
91
77
  // Ensure that the chevron never gets smaller than 16px
78
+ border-width: unquote($border-width-eval) unquote($border-width-eval) 0 0;
92
79
  font-size: unquote("max(#{$font-size * 1px}, 1em)");
93
80
  }
94
-
95
- // Fall back to a greater than sign for IE8
96
- @include _govuk-if-ie8 {
97
- content: "\003e"; // Greater than sign (>)
98
- width: auto;
99
- height: auto;
100
- border: 0;
101
- color: $chevron-border-colour;
102
-
103
- // IE8 doesn't seem to like rendering pseudo-elements using @font-faces,
104
- // so fall back to using another sans-serif font to render the chevron.
105
- font-family: Arial, sans-serif;
106
- }
107
81
  }
108
82
 
109
83
  &:first-child {
110
84
  margin-left: 0;
111
85
  padding-left: 0;
112
86
 
113
- &:before {
87
+ &::before {
114
88
  content: none;
115
89
  display: none;
116
90
  }
@@ -132,14 +106,13 @@
132
106
  display: inline-block;
133
107
  }
134
108
 
135
- &:before {
109
+ &::before {
136
110
  top: govuk-em(6px, $font-size);
137
111
  margin: 0;
138
112
  }
139
113
  }
140
114
 
141
115
  .govuk-breadcrumbs__list {
142
- display: -ms-flexbox;
143
116
  display: flex;
144
117
  }
145
118
  }
@@ -152,8 +125,10 @@
152
125
  @include govuk-link-style-inverse;
153
126
  }
154
127
 
155
- .govuk-breadcrumbs__list-item:before {
128
+ .govuk-breadcrumbs__list-item::before {
156
129
  border-color: currentcolor;
157
130
  }
158
131
  }
159
132
  }
133
+
134
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_button.scss.map */
@@ -7,7 +7,7 @@
7
7
  /// @type Colour
8
8
  /// @access public
9
9
 
10
- $govuk-button-background-colour: govuk-colour("green", $legacy: #00823b) !default;
10
+ $govuk-button-background-colour: govuk-colour("green") !default;
11
11
 
12
12
  /// Button component text colour
13
13
  ///
@@ -16,6 +16,20 @@ $govuk-button-background-colour: govuk-colour("green", $legacy: #00823b) !defaul
16
16
 
17
17
  $govuk-button-text-colour: govuk-colour("white") !default;
18
18
 
19
+ /// Inverted button component background colour
20
+ ///
21
+ /// @type Colour
22
+ /// @access public
23
+
24
+ $govuk-inverse-button-background-colour: govuk-colour("white") !default;
25
+
26
+ /// Inverted button component text colour
27
+ ///
28
+ /// @type Colour
29
+ /// @access public
30
+
31
+ $govuk-inverse-button-text-colour: $govuk-brand-colour !default;
32
+
19
33
  @include govuk-exports("govuk/component/button") {
20
34
  $govuk-button-colour: $govuk-button-background-colour;
21
35
  $govuk-button-text-colour: $govuk-button-text-colour;
@@ -23,7 +37,7 @@ $govuk-button-text-colour: govuk-colour("white") !default;
23
37
  $govuk-button-shadow-colour: govuk-shade($govuk-button-colour, 60%);
24
38
 
25
39
  // Secondary button variables
26
- $govuk-secondary-button-colour: govuk-colour("light-grey", $legacy: "grey-3");
40
+ $govuk-secondary-button-colour: govuk-colour("light-grey");
27
41
  $govuk-secondary-button-text-colour: govuk-colour("black");
28
42
  $govuk-secondary-button-hover-colour: govuk-shade($govuk-secondary-button-colour, 10%);
29
43
  $govuk-secondary-button-shadow-colour: govuk-shade($govuk-secondary-button-colour, 40%);
@@ -35,8 +49,8 @@ $govuk-button-text-colour: govuk-colour("white") !default;
35
49
  $govuk-warning-button-shadow-colour: govuk-shade($govuk-warning-button-colour, 60%);
36
50
 
37
51
  // Inverse button variables
38
- $govuk-inverse-button-colour: govuk-colour("white");
39
- $govuk-inverse-button-text-colour: govuk-colour("blue");
52
+ $govuk-inverse-button-colour: $govuk-inverse-button-background-colour;
53
+ $govuk-inverse-button-text-colour: $govuk-inverse-button-text-colour;
40
54
  $govuk-inverse-button-hover-colour: govuk-tint($govuk-inverse-button-text-colour, 90%);
41
55
  $govuk-inverse-button-shadow-colour: govuk-shade($govuk-inverse-button-text-colour, 30%);
42
56
 
@@ -56,7 +70,8 @@ $govuk-button-text-colour: govuk-colour("white") !default;
56
70
  margin-right: 0;
57
71
  margin-left: 0;
58
72
  @include govuk-responsive-margin(6, "bottom", $adjustment: $button-shadow-size); // s2
59
- padding: (govuk-spacing(2) - $govuk-border-width-form-element) govuk-spacing(2) (govuk-spacing(2) - $govuk-border-width-form-element - ($button-shadow-size / 2)); // s1
73
+ padding: (govuk-spacing(2) - $govuk-border-width-form-element) govuk-spacing(2)
74
+ (govuk-spacing(2) - $govuk-border-width-form-element - ($button-shadow-size / 2)); // s1
60
75
  border: $govuk-border-width-form-element solid transparent;
61
76
  border-radius: 0;
62
77
  color: $govuk-button-text-colour;
@@ -67,10 +82,6 @@ $govuk-button-text-colour: govuk-colour("white") !default;
67
82
  cursor: pointer;
68
83
  -webkit-appearance: none;
69
84
 
70
- @include _govuk-if-ie8 {
71
- border-bottom: $button-shadow-size solid $govuk-button-shadow-colour;
72
- }
73
-
74
85
  @include govuk-media-query($from: tablet) {
75
86
  width: auto;
76
87
  }
@@ -97,40 +108,14 @@ $govuk-button-text-colour: govuk-colour("white") !default;
97
108
  &:active {
98
109
  // Bump the button down so it looks like its being pressed in
99
110
  top: $button-shadow-size;
100
-
101
- @include _govuk-if-ie8 {
102
- border-bottom-width: 0;
103
- }
104
111
  }
105
112
 
106
113
  &:focus {
107
114
  border-color: $govuk-focus-colour;
108
- // When colours are overridden, for example when users have a dark mode,
109
- // backgrounds and box-shadows disappear, so we need to ensure there's a
110
- // transparent outline which will be set to a visible colour.
111
- // Since Internet Explorer 8 does not support box-shadow, we want to force the user-agent outlines
112
- @include _govuk-not-ie8 {
113
- outline: $govuk-focus-width solid transparent;
114
- }
115
- // Since Internet Explorer does not support `:not()` we set a clearer focus style to match user-agent outlines.
116
- @include _govuk-if-ie8 {
117
- color: $govuk-focus-text-colour;
118
- background-color: $govuk-focus-colour;
119
- }
115
+ outline: $govuk-focus-width solid transparent;
120
116
  box-shadow: inset 0 0 0 1px $govuk-focus-colour;
121
117
  }
122
118
 
123
- // alphagov/govuk_template includes a specific a:link:focus selector
124
- // designed to make unvisited links a slightly darker blue when focussed, so
125
- // we need to override the text colour for that combination of selectors so
126
- // so that unvisited links styled as buttons do not end up with dark blue
127
- // text when focussed.
128
- @include _govuk-compatibility(govuk_template) {
129
- &:link:focus {
130
- color: $govuk-button-text-colour;
131
- }
132
- }
133
-
134
119
  &:focus:not(:active):not(:hover) {
135
120
  border-color: $govuk-focus-colour;
136
121
  color: $govuk-focus-text-colour;
@@ -143,7 +128,7 @@ $govuk-button-text-colour: govuk-colour("white") !default;
143
128
 
144
129
  // Use a pseudo element to expand the click target area to include the
145
130
  // button's shadow as well, in case users try to click it.
146
- &:before {
131
+ &::before {
147
132
  content: "";
148
133
  display: block;
149
134
 
@@ -167,17 +152,13 @@ $govuk-button-text-colour: govuk-colour("white") !default;
167
152
  // the click event is still fired.
168
153
  //
169
154
  // 🎉
170
- &:active:before {
155
+ &:active::before {
171
156
  top: -($govuk-border-width-form-element + $button-shadow-size);
172
157
  }
173
158
  }
174
159
 
175
- // @deprecated Disabling buttons using the .govuk-button--disabled class is
176
- // deprecated and will be removed in the next major version.
177
- .govuk-button--disabled,
178
- .govuk-button[disabled="disabled"],
179
160
  .govuk-button[disabled] {
180
- opacity: (.5);
161
+ opacity: (0.5);
181
162
 
182
163
  &:hover {
183
164
  background-color: $govuk-button-colour;
@@ -187,9 +168,6 @@ $govuk-button-text-colour: govuk-colour("white") !default;
187
168
  &:active {
188
169
  top: 0;
189
170
  box-shadow: 0 $button-shadow-size 0 $govuk-button-shadow-colour; // s0
190
- @include _govuk-if-ie8 {
191
- border-bottom: $button-shadow-size solid $govuk-button-shadow-colour; // s0
192
- }
193
171
  }
194
172
  }
195
173
 
@@ -205,17 +183,6 @@ $govuk-button-text-colour: govuk-colour("white") !default;
205
183
  color: $govuk-secondary-button-text-colour;
206
184
  }
207
185
 
208
- // alphagov/govuk_template includes a specific a:link:focus selector
209
- // designed to make unvisited links a slightly darker blue when focussed, so
210
- // we need to override the text colour for that combination of selectors so
211
- // so that unvisited links styled as buttons do not end up with dark blue
212
- // text when focussed.
213
- @include _govuk-compatibility(govuk_template) {
214
- &:link:focus {
215
- color: $govuk-secondary-button-text-colour;
216
- }
217
- }
218
-
219
186
  &:hover {
220
187
  background-color: $govuk-secondary-button-hover-colour;
221
188
 
@@ -237,17 +204,6 @@ $govuk-button-text-colour: govuk-colour("white") !default;
237
204
  color: $govuk-warning-button-text-colour;
238
205
  }
239
206
 
240
- // alphagov/govuk_template includes a specific a:link:focus selector
241
- // designed to make unvisited links a slightly darker blue when focussed, so
242
- // we need to override the text colour for that combination of selectors so
243
- // so that unvisited links styled as buttons do not end up with dark blue
244
- // text when focussed.
245
- @include _govuk-compatibility(govuk_template) {
246
- &:link:focus {
247
- color: $govuk-warning-button-text-colour;
248
- }
249
- }
250
-
251
207
  &:hover {
252
208
  background-color: $govuk-warning-button-hover-colour;
253
209
 
@@ -269,17 +225,6 @@ $govuk-button-text-colour: govuk-colour("white") !default;
269
225
  color: $govuk-inverse-button-text-colour;
270
226
  }
271
227
 
272
- // alphagov/govuk_template includes a specific a:link:focus selector
273
- // designed to make unvisited links a slightly darker blue when focussed, so
274
- // we need to override the text colour for that combination of selectors so
275
- // so that unvisited links styled as buttons do not end up with dark blue
276
- // text when focussed.
277
- @include _govuk-compatibility(govuk_template) {
278
- &:link:focus {
279
- color: $govuk-inverse-button-text-colour;
280
- }
281
- }
282
-
283
228
  &:hover {
284
229
  background-color: $govuk-inverse-button-hover-colour;
285
230
 
@@ -293,14 +238,10 @@ $govuk-button-text-colour: govuk-colour("white") !default;
293
238
  @include govuk-typography-weight-bold;
294
239
  @include govuk-typography-responsive($size: 24, $override-line-height: 1);
295
240
 
296
- display: -ms-inline-flexbox;
297
-
298
241
  display: inline-flex;
299
242
  min-height: auto;
300
243
 
301
- -ms-flex-pack: center;
302
-
303
- justify-content: center;
244
+ justify-content: center;
304
245
  }
305
246
 
306
247
  .govuk-button__start-icon {
@@ -310,26 +251,12 @@ $govuk-button-text-colour: govuk-colour("white") !default;
310
251
  margin-left: govuk-spacing(2);
311
252
  }
312
253
  vertical-align: middle;
313
- -ms-flex-negative: 0;
314
- flex-shrink: 0;
315
- -ms-flex-item-align: center;
316
- align-self: center;
254
+ flex-shrink: 0;
255
+ align-self: center;
317
256
  // Work around SVGs not inheriting color from parent in forced color mode
318
257
  // (https://github.com/w3c/csswg-drafts/issues/6310)
319
258
  forced-color-adjust: auto;
320
259
  }
321
-
322
- @if $govuk-use-legacy-font {
323
- // Begin adjustments for font baseline offset when using v1 of nta
324
- $offset: 2;
325
-
326
- .govuk-button {
327
- padding-top: (govuk-spacing(2) - $govuk-border-width-form-element - ($button-shadow-size / 2) + $offset); // s1
328
- padding-bottom: (govuk-spacing(2) - $govuk-border-width-form-element - ($button-shadow-size / 2) - $offset + 1); // s1
329
- }
330
-
331
- .govuk-button__start-icon {
332
- margin-top: -3px;
333
- }
334
- }
335
260
  }
261
+
262
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_character-count.scss.map */
@@ -18,7 +18,7 @@
18
18
  margin-top: 0;
19
19
  margin-bottom: 0;
20
20
 
21
- &:after {
21
+ &::after {
22
22
  // Zero-width space that will reserve vertical space when no hint is provided
23
23
  // as:
24
24
  // - setting a min-height is not possible without a magic number
@@ -32,3 +32,5 @@
32
32
  visibility: hidden;
33
33
  }
34
34
  }
35
+
36
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_checkboxes.scss.map */