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
@@ -4,15 +4,12 @@
4
4
  @import "../label/index";
5
5
 
6
6
  @include govuk-exports("govuk/component/checkboxes") {
7
-
8
7
  $govuk-touch-target-size: 44px;
9
8
  $govuk-checkboxes-size: 40px;
10
9
  $govuk-small-checkboxes-size: 24px;
11
10
  $govuk-checkboxes-label-padding-left-right: govuk-spacing(3);
12
11
 
13
12
  .govuk-checkboxes__item {
14
- @include govuk-font($size: 19);
15
-
16
13
  display: block;
17
14
  position: relative;
18
15
 
@@ -32,35 +29,19 @@
32
29
  .govuk-checkboxes__input {
33
30
  $input-offset: ($govuk-touch-target-size - $govuk-checkboxes-size) / 2;
34
31
 
35
- cursor: pointer;
32
+ position: absolute;
36
33
 
37
- // IE8 doesn’t support pseudo-elements, so we don’t want to hide native
38
- // elements there.
39
- @include _govuk-not-ie8 {
40
- position: absolute;
34
+ z-index: 1;
35
+ top: $input-offset * -1;
36
+ left: $input-offset * -1;
41
37
 
42
- z-index: 1;
43
- top: $input-offset * -1;
44
- left: $input-offset * -1;
38
+ width: $govuk-touch-target-size;
39
+ height: $govuk-touch-target-size;
40
+ margin: 0;
45
41
 
46
- width: $govuk-touch-target-size;
47
- height: $govuk-touch-target-size;
48
- margin: 0;
49
-
50
- opacity: 0;
51
- }
52
-
53
- @include _govuk-if-ie8 {
54
- margin-top: 10px;
55
- margin-right: $govuk-checkboxes-size / -2;
56
- margin-left: $govuk-checkboxes-size / -2;
57
- float: left;
42
+ opacity: 0;
58
43
 
59
- // add focus outline to input
60
- &:focus {
61
- outline: $govuk-focus-width solid $govuk-focus-colour;
62
- }
63
- }
44
+ cursor: pointer;
64
45
  }
65
46
 
66
47
  .govuk-checkboxes__label {
@@ -69,53 +50,46 @@
69
50
  padding: 8px $govuk-checkboxes-label-padding-left-right govuk-spacing(1);
70
51
  cursor: pointer;
71
52
  // remove 300ms pause on mobile
72
- -ms-touch-action: manipulation;
73
- touch-action: manipulation;
53
+ touch-action: manipulation;
74
54
  }
75
55
 
76
- @include _govuk-not-ie8 {
77
- // [ ] Check box
78
- .govuk-checkboxes__label:before {
79
- content: "";
80
- box-sizing: border-box;
81
- position: absolute;
82
- top: 0;
83
- left: 0;
84
- width: $govuk-checkboxes-size;
85
- height: $govuk-checkboxes-size;
86
- border: $govuk-border-width-form-element solid currentcolor;
87
- background: transparent;
88
- }
89
-
90
- // ✔ Check mark
91
- //
92
- // The check mark is a box with a border on the left and bottom side (└──),
93
- // rotated 45 degrees
94
- .govuk-checkboxes__label:after {
95
- content: "";
96
- box-sizing: border-box;
97
-
98
- position: absolute;
99
- top: 11px;
100
- left: 9px;
101
- width: 23px;
102
- height: 12px;
103
-
104
- -webkit-transform: rotate(-45deg);
105
-
106
- -ms-transform: rotate(-45deg);
107
-
108
- transform: rotate(-45deg);
109
- border: solid;
110
- border-width: 0 0 5px 5px;
111
- // Fix bug in IE11 caused by transform rotate (-45deg).
112
- // See: alphagov/govuk_elements/issues/518
113
- border-top-color: transparent;
114
-
115
- opacity: 0;
56
+ // [ ] Check box
57
+ .govuk-checkboxes__label::before {
58
+ content: "";
59
+ box-sizing: border-box;
60
+ position: absolute;
61
+ top: 0;
62
+ left: 0;
63
+ width: $govuk-checkboxes-size;
64
+ height: $govuk-checkboxes-size;
65
+ border: $govuk-border-width-form-element solid currentcolor;
66
+ background: transparent;
67
+ }
116
68
 
117
- background: transparent;
118
- }
69
+ // ✔ Check mark
70
+ //
71
+ // The check mark is a box with a border on the left and bottom side (└──),
72
+ // rotated 45 degrees
73
+ .govuk-checkboxes__label::after {
74
+ content: "";
75
+ box-sizing: border-box;
76
+
77
+ position: absolute;
78
+ top: 11px;
79
+ left: 9px;
80
+ width: 23px;
81
+ height: 12px;
82
+
83
+ transform: rotate(-45deg);
84
+ border: solid;
85
+ border-width: 0 0 5px 5px;
86
+ // Fix bug in IE11 caused by transform rotate (-45deg).
87
+ // See: alphagov/govuk_elements/issues/518
88
+ border-top-color: transparent;
89
+
90
+ opacity: 0;
91
+
92
+ background: transparent;
119
93
  }
120
94
 
121
95
  .govuk-checkboxes__hint {
@@ -125,7 +99,7 @@
125
99
  }
126
100
 
127
101
  // Focused state
128
- .govuk-checkboxes__input:focus + .govuk-checkboxes__label:before {
102
+ .govuk-checkboxes__input:focus + .govuk-checkboxes__label::before {
129
103
  border-width: 4px;
130
104
 
131
105
  // When colours are overridden, the yellow box-shadow becomes invisible
@@ -145,7 +119,7 @@
145
119
  }
146
120
 
147
121
  // Selected state
148
- .govuk-checkboxes__input:checked + .govuk-checkboxes__label:after {
122
+ .govuk-checkboxes__input:checked + .govuk-checkboxes__label::after {
149
123
  opacity: 1;
150
124
  }
151
125
 
@@ -157,7 +131,7 @@
157
131
 
158
132
  .govuk-checkboxes__input:disabled + .govuk-checkboxes__label,
159
133
  .govuk-checkboxes__input:disabled ~ .govuk-hint {
160
- opacity: .5;
134
+ opacity: 0.5;
161
135
  }
162
136
 
163
137
  // =========================================================
@@ -165,9 +139,9 @@
165
139
  // =========================================================
166
140
 
167
141
  .govuk-checkboxes__divider {
168
- $govuk-divider-size: $govuk-checkboxes-size !default;
169
142
  @include govuk-font($size: 19);
170
143
  @include govuk-text-colour;
144
+ $govuk-divider-size: $govuk-checkboxes-size !default;
171
145
  width: $govuk-divider-size;
172
146
  margin-bottom: govuk-spacing(2);
173
147
  text-align: center;
@@ -193,7 +167,7 @@
193
167
  padding-left: $conditional-padding-left;
194
168
  border-left: $conditional-border-width solid $govuk-border-colour;
195
169
 
196
- .js-enabled &--hidden {
170
+ .govuk-frontend-supported &--hidden {
197
171
  display: none;
198
172
  }
199
173
 
@@ -207,7 +181,6 @@
207
181
  // =========================================================
208
182
 
209
183
  .govuk-checkboxes--small {
210
-
211
184
  $input-offset: ($govuk-touch-target-size - $govuk-small-checkboxes-size) / 2;
212
185
  $label-offset: $govuk-touch-target-size - $input-offset;
213
186
 
@@ -229,13 +202,7 @@
229
202
  // ▲┆└─ Check box pseudo element, aligned with margin
230
203
  // └─── Touch target (invisible input), shifted into the margin
231
204
  .govuk-checkboxes__input {
232
- @include _govuk-not-ie8 {
233
- left: $input-offset * -1;
234
- }
235
-
236
- @include _govuk-if-ie8 {
237
- margin-left: $govuk-small-checkboxes-size * -1;
238
- }
205
+ left: $input-offset * -1;
239
206
  }
240
207
 
241
208
  // Adjust the size and position of the label.
@@ -257,7 +224,7 @@
257
224
  //
258
225
  // Reduce the size of the check box [1], vertically center it within the
259
226
  // touch target [2]
260
- .govuk-checkboxes__label:before {
227
+ .govuk-checkboxes__label::before {
261
228
  top: $input-offset - $govuk-border-width-form-element; // 2
262
229
  width: $govuk-small-checkboxes-size; // 1
263
230
  height: $govuk-small-checkboxes-size; // 1
@@ -266,7 +233,7 @@
266
233
  // ✔ Check mark
267
234
  //
268
235
  // Reduce the size of the check mark and re-align within the checkbox
269
- .govuk-checkboxes__label:after {
236
+ .govuk-checkboxes__label::after {
270
237
  top: 15px;
271
238
  left: 6px;
272
239
  width: 12px;
@@ -301,7 +268,11 @@
301
268
  // is so much larger than their visible size, and so we need to provide
302
269
  // feedback to the user as to which checkbox they will select when their
303
270
  // cursor is outside of the visible area.
304
- .govuk-checkboxes__item:hover .govuk-checkboxes__input:not(:disabled) + .govuk-checkboxes__label:before {
271
+ .govuk-checkboxes__item:hover .govuk-checkboxes__input:not(:disabled) + .govuk-checkboxes__label::before {
272
+ // Forced colours modes tend to ignore box-shadow.
273
+ // Apply an outline for those modes to use instead.
274
+ outline: $govuk-focus-width dashed transparent;
275
+ outline-offset: 1px;
305
276
  box-shadow: 0 0 0 $govuk-hover-width $govuk-hover-colour;
306
277
  }
307
278
 
@@ -310,7 +281,12 @@
310
281
  //
311
282
  // We use two box shadows, one that restores the original focus state [1]
312
283
  // and another that then applies the hover state [2].
313
- .govuk-checkboxes__item:hover .govuk-checkboxes__input:focus + .govuk-checkboxes__label:before {
284
+ .govuk-checkboxes__item:hover .govuk-checkboxes__input:focus + .govuk-checkboxes__label::before {
285
+ // Set different HCM colour when we have both hover/focus applied at once
286
+ @media screen and (forced-colors: active), (-ms-high-contrast: active) {
287
+ outline-color: Highlight;
288
+ }
289
+ // prettier-ignore
314
290
  box-shadow:
315
291
  0 0 0 $govuk-focus-width $govuk-focus-colour, // 1
316
292
  0 0 0 $govuk-hover-width $govuk-hover-colour; // 2
@@ -323,13 +299,15 @@
323
299
  // state in browsers that don't support `@media (hover)` (like Internet
324
300
  // Explorer) – so we have to 'undo' the hover state instead.
325
301
  @media (hover: none), (pointer: coarse) {
326
- .govuk-checkboxes__item:hover .govuk-checkboxes__input:not(:disabled) + .govuk-checkboxes__label:before {
302
+ .govuk-checkboxes__item:hover .govuk-checkboxes__input:not(:disabled) + .govuk-checkboxes__label::before {
327
303
  box-shadow: initial;
328
304
  }
329
305
 
330
- .govuk-checkboxes__item:hover .govuk-checkboxes__input:focus + .govuk-checkboxes__label:before {
306
+ .govuk-checkboxes__item:hover .govuk-checkboxes__input:focus + .govuk-checkboxes__label::before {
331
307
  box-shadow: 0 0 0 $govuk-focus-width $govuk-focus-colour;
332
308
  }
333
309
  }
334
310
  }
335
311
  }
312
+
313
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_cookie-banner.scss.map */
@@ -1,5 +1,4 @@
1
1
  @include govuk-exports("govuk/component/cookie-banner") {
2
-
3
2
  // This needs to be kept in sync with the header component's styles
4
3
  $border-bottom-width: govuk-spacing(2);
5
4
 
@@ -12,7 +11,7 @@
12
11
  // when user changes colours in their browser.
13
12
  border-bottom: $border-bottom-width solid transparent;
14
13
 
15
- background-color: govuk-colour("light-grey", $legacy: "grey-3");
14
+ background-color: govuk-colour("light-grey");
16
15
  }
17
16
 
18
17
  // Support older browsers which don't hide elements with the `hidden` attribute
@@ -47,3 +46,5 @@
47
46
  }
48
47
  }
49
48
  }
49
+
50
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_date-input.scss.map */
@@ -24,3 +24,5 @@
24
24
  margin-bottom: 0;
25
25
  }
26
26
  }
27
+
28
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_details.scss.map */
@@ -0,0 +1,134 @@
1
+ @include govuk-exports("govuk/component/details") {
2
+ .govuk-details {
3
+ @include govuk-font($size: 19);
4
+ @include govuk-text-colour;
5
+ @include govuk-responsive-margin(6, "bottom");
6
+
7
+ display: block;
8
+ }
9
+
10
+ .govuk-details__summary {
11
+ // Make the focus outline shrink-wrap the text content of the summary
12
+ display: inline-block;
13
+
14
+ margin-bottom: govuk-spacing(1);
15
+ }
16
+
17
+ .govuk-details__summary-text {
18
+ > :first-child {
19
+ margin-top: 0;
20
+ }
21
+
22
+ > :only-child,
23
+ > :last-child {
24
+ margin-bottom: 0;
25
+ }
26
+ }
27
+
28
+ .govuk-details__text {
29
+ padding-top: govuk-spacing(3);
30
+ padding-bottom: govuk-spacing(3);
31
+ padding-left: govuk-spacing(4);
32
+ }
33
+
34
+ .govuk-details__text p {
35
+ margin-top: 0;
36
+ margin-bottom: govuk-spacing(4);
37
+ }
38
+
39
+ .govuk-details__text > :last-child {
40
+ margin-bottom: 0;
41
+ }
42
+
43
+ // Hack to target IE8 - IE11 (and REALLY old Firefox)
44
+ // These browsers don't support the details element, so fall back to looking
45
+ // like inset text
46
+ @media screen\0 {
47
+ .govuk-details {
48
+ border-left: $govuk-border-width-wide solid $govuk-border-colour;
49
+ }
50
+
51
+ .govuk-details__summary {
52
+ margin-top: govuk-spacing(3);
53
+ }
54
+
55
+ .govuk-details__summary-text {
56
+ @include govuk-typography-weight-bold;
57
+ @include govuk-responsive-margin(4, "bottom");
58
+ padding-left: govuk-spacing(4);
59
+ }
60
+ }
61
+
62
+ // We wrap styles for newer browsers in a feature query, which is ignored by
63
+ // older browsers, which always expand the details element.
64
+ //
65
+ // Additionally, -ms-ime-align is only supported by Edge 12 - 18
66
+ //
67
+ // This ensures we don't use these styles in browsers which:
68
+ // - support ES6 modules but not the <details> element (Edge 16 - 18)
69
+ // - do not support ES6 modules or the <details> element (eg, IE8+)
70
+ @supports not (-ms-ime-align: auto) {
71
+ .govuk-details__summary {
72
+ // Absolutely position the marker against this element
73
+ position: relative;
74
+
75
+ // Allow for absolutely positioned marker and align with disclosed text
76
+ padding-left: govuk-spacing(4) + $govuk-border-width;
77
+
78
+ // Style the summary to look like a link...
79
+ color: $govuk-link-colour;
80
+ cursor: pointer;
81
+
82
+ &:hover {
83
+ color: $govuk-link-hover-colour;
84
+ }
85
+
86
+ &:focus {
87
+ @include govuk-focused-text;
88
+ }
89
+ }
90
+ // ...but only underline the text, not the arrow
91
+ .govuk-details__summary-text {
92
+ @include govuk-link-decoration;
93
+ }
94
+
95
+ .govuk-details__summary:hover .govuk-details__summary-text {
96
+ @include govuk-link-hover-decoration;
97
+ }
98
+
99
+ // Remove the underline when focussed to avoid duplicate borders
100
+ .govuk-details__summary:focus .govuk-details__summary-text {
101
+ text-decoration: none;
102
+ }
103
+
104
+ // Remove the default details marker so we can style our own consistently and
105
+ // ensure it displays in Firefox (see implementation.md for details)
106
+ .govuk-details__summary::-webkit-details-marker {
107
+ display: none;
108
+ }
109
+
110
+ // Append our own open / closed marker using a pseudo-element
111
+ .govuk-details__summary::before {
112
+ content: "";
113
+ position: absolute;
114
+
115
+ top: -1px;
116
+ bottom: 0;
117
+ left: 0;
118
+
119
+ margin: auto;
120
+
121
+ @include govuk-shape-arrow($direction: right, $base: 14px);
122
+
123
+ .govuk-details[open] > & {
124
+ @include govuk-shape-arrow($direction: down, $base: 14px);
125
+ }
126
+ }
127
+
128
+ .govuk-details__text {
129
+ border-left: $govuk-border-width solid $govuk-border-colour;
130
+ }
131
+ }
132
+ }
133
+
134
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_error-message.scss.map */
@@ -10,3 +10,5 @@
10
10
  color: $govuk-error-colour;
11
11
  }
12
12
  }
13
+
14
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_error-summary.scss.map */
@@ -2,6 +2,7 @@
2
2
 
3
3
  @include govuk-exports("govuk/component/error-summary") {
4
4
  .govuk-error-summary {
5
+ @include govuk-font($size: 19);
5
6
  @include govuk-text-colour;
6
7
  @include govuk-responsive-padding(4);
7
8
  @include govuk-responsive-margin(8, "bottom");
@@ -14,15 +15,14 @@
14
15
  }
15
16
 
16
17
  .govuk-error-summary__title {
17
- @include govuk-font($size: 24, $weight: bold);
18
+ @include govuk-typography-responsive($size: 24);
19
+ @include govuk-typography-weight-bold;
18
20
 
19
21
  margin-top: 0;
20
22
  @include govuk-responsive-margin(4, "bottom");
21
23
  }
22
24
 
23
25
  .govuk-error-summary__body {
24
- @include govuk-font($size: 19);
25
-
26
26
  p {
27
27
  margin-top: 0;
28
28
  @include govuk-responsive-margin(4, "bottom");
@@ -41,3 +41,5 @@
41
41
  @include govuk-link-style-error;
42
42
  }
43
43
  }
44
+
45
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_exit-this-page.scss.map */
@@ -0,0 +1,92 @@
1
+ @import "../button/index";
2
+
3
+ @include govuk-exports("govuk/component/exit-this-page") {
4
+ $indicator-size: 0.75em;
5
+
6
+ .govuk-exit-this-page {
7
+ @include govuk-responsive-margin(8, "bottom");
8
+ position: -webkit-sticky;
9
+ position: sticky;
10
+ z-index: 1000;
11
+ top: 0;
12
+ left: 0;
13
+ width: 100%;
14
+
15
+ @include govuk-media-query($from: tablet) {
16
+ display: inline-block;
17
+ right: 0;
18
+ left: auto;
19
+ width: auto;
20
+ float: right;
21
+ }
22
+ }
23
+
24
+ .govuk-exit-this-page__button {
25
+ margin-bottom: 0;
26
+ }
27
+
28
+ .govuk-exit-this-page__indicator {
29
+ @include govuk-responsive-padding(2);
30
+ display: none;
31
+ padding-bottom: 0;
32
+ color: inherit;
33
+ line-height: 0; // removes extra negative space below the indicators
34
+ text-align: center;
35
+ pointer-events: none;
36
+ }
37
+
38
+ .govuk-exit-this-page__indicator--visible {
39
+ display: block;
40
+ }
41
+
42
+ .govuk-exit-this-page__indicator-light {
43
+ box-sizing: border-box;
44
+ display: inline-block;
45
+ width: $indicator-size;
46
+ height: $indicator-size;
47
+ margin: 0 0.125em;
48
+ border-width: 2px;
49
+ border-style: solid;
50
+ border-radius: 50%;
51
+ border-color: currentcolor;
52
+ }
53
+
54
+ .govuk-exit-this-page__indicator-light--on {
55
+ border-width: $indicator-size / 2;
56
+ }
57
+
58
+ @media only print {
59
+ .govuk-exit-this-page {
60
+ display: none;
61
+ }
62
+ }
63
+
64
+ .govuk-exit-this-page-overlay {
65
+ position: fixed;
66
+ z-index: 9999;
67
+ top: 0;
68
+ right: 0;
69
+ bottom: 0;
70
+ left: 0;
71
+ background-color: govuk-colour("white");
72
+ }
73
+
74
+ // This class is added to the body when the Exit This Page button is activated
75
+ // in addition to the overlay to both block the entire screen and hide everything
76
+ // underneath it.
77
+ //
78
+ // We do this to ensure that users don't risk interacting with the page underneath
79
+ // the overlay between activating the button and navigating to the next page.
80
+ .govuk-exit-this-page-hide-content {
81
+ // stylelint-disable declaration-no-important
82
+ * {
83
+ display: none !important;
84
+ }
85
+
86
+ .govuk-exit-this-page-overlay {
87
+ display: block !important;
88
+ }
89
+ }
90
+ }
91
+
92
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_fieldset.scss.map */
@@ -9,12 +9,14 @@
9
9
 
10
10
  // Fix for Firefox < 53
11
11
  // https://bugzilla.mozilla.org/show_bug.cgi?id=504622
12
+ // stylelint-disable selector-type-no-unknown -- Ignore unknown 'x:-moz-any-link'
12
13
  @supports not (caret-color: auto) {
13
14
  .govuk-fieldset,
14
- x:-moz-any-link { // stylelint-disable-line selector-type-no-unknown
15
+ x:-moz-any-link {
15
16
  display: table-cell;
16
17
  }
17
18
  }
19
+ // stylelint-enable selector-type-no-unknown
18
20
 
19
21
  .govuk-fieldset__legend {
20
22
  @include govuk-font($size: 19);
@@ -24,33 +26,36 @@
24
26
  // 1. IE9-11 & Edge 12-13
25
27
  // 2. IE8-11
26
28
  box-sizing: border-box; // 1
27
- display: table; // 2
28
- max-width: 100%; // 1
29
+ display: table; // 2
30
+ max-width: 100%; // 1
29
31
  margin-bottom: govuk-spacing(2);
30
32
  padding: 0;
31
33
 
32
- white-space: normal; // 1
34
+ white-space: normal; // 1
33
35
  }
34
36
 
35
37
  // Modifiers that make legends look more like their equivalent headings
38
+ .govuk-fieldset__legend--xl,
39
+ .govuk-fieldset__legend--l,
40
+ .govuk-fieldset__legend--m {
41
+ @include govuk-typography-weight-bold;
42
+ margin-bottom: govuk-spacing(3);
43
+ }
36
44
 
37
45
  .govuk-fieldset__legend--xl {
38
- @include govuk-font($size: 48, $weight: bold);
39
- margin-bottom: govuk-spacing(3);
46
+ @include govuk-typography-responsive($size: 48);
40
47
  }
41
48
 
42
49
  .govuk-fieldset__legend--l {
43
- @include govuk-font($size: 36, $weight: bold);
44
- margin-bottom: govuk-spacing(3);
50
+ @include govuk-typography-responsive($size: 36);
45
51
  }
46
52
 
47
53
  .govuk-fieldset__legend--m {
48
- @include govuk-font($size: 24, $weight: bold);
49
- margin-bottom: govuk-spacing(3);
54
+ @include govuk-typography-responsive($size: 24);
50
55
  }
51
56
 
52
57
  .govuk-fieldset__legend--s {
53
- @include govuk-font($size: 19, $weight: bold);
58
+ @include govuk-typography-weight-bold;
54
59
  }
55
60
 
56
61
  // When the legend contains an H1, we want the H1 to inherit all styles from
@@ -62,3 +67,5 @@
62
67
  font-weight: inherit;
63
68
  }
64
69
  }
70
+
71
+ /*# sourceMappingURL=_index.scss.map */
@@ -0,0 +1,4 @@
1
+ @import "../../base";
2
+ @import "./index";
3
+
4
+ /*# sourceMappingURL=_file-upload.scss.map */