katalyst-govuk-formbuilder 1.3.2 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -0
  3. data/app/assets/builds/katalyst/govuk/formbuilder.css +58 -5
  4. data/app/assets/builds/katalyst/govuk/formbuilder.js +98 -64
  5. data/app/assets/builds/katalyst/govuk/formbuilder.min.js +1 -1
  6. data/app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss +7 -6
  7. data/app/assets/stylesheets/katalyst/govuk/formbuilder.scss +1 -1
  8. data/lib/katalyst/govuk/formbuilder/engine.rb +1 -0
  9. data/lib/katalyst/govuk/formbuilder/version.rb +1 -1
  10. data/vendor/assets/stylesheets/govuk-frontend/govuk/_base.scss +3 -0
  11. data/vendor/assets/stylesheets/govuk-frontend/govuk/all-ie8.scss +14 -0
  12. data/vendor/assets/stylesheets/govuk-frontend/govuk/all.scss +9 -0
  13. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/_all.scss +34 -0
  14. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/accordion/_accordion.scss +2 -0
  15. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/accordion/_index.scss +392 -0
  16. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/back-link/_back-link.scss +2 -0
  17. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/back-link/_index.scss +99 -0
  18. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/breadcrumbs/_breadcrumbs.scss +2 -0
  19. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/breadcrumbs/_index.scss +147 -0
  20. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/button/_button.scss +2 -0
  21. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/button/_index.scss +297 -0
  22. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/character-count/_character-count.scss +2 -0
  23. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/character-count/_index.scss +34 -0
  24. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/checkboxes/_checkboxes.scss +2 -0
  25. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/checkboxes/_index.scss +335 -0
  26. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/cookie-banner/_cookie-banner.scss +2 -0
  27. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/cookie-banner/_index.scss +49 -0
  28. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/date-input/_date-input.scss +2 -0
  29. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/date-input/_index.scss +26 -0
  30. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/details/_details.scss +2 -0
  31. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/details/_index.scss +88 -0
  32. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-message/_error-message.scss +2 -0
  33. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-message/_index.scss +12 -0
  34. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-summary/_error-summary.scss +2 -0
  35. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/error-summary/_index.scss +43 -0
  36. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/fieldset/_fieldset.scss +2 -0
  37. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/fieldset/_index.scss +64 -0
  38. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/file-upload/_file-upload.scss +2 -0
  39. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/file-upload/_index.scss +55 -0
  40. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/footer/_footer.scss +2 -0
  41. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/footer/_index.scss +193 -0
  42. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/header/_header.scss +2 -0
  43. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/header/_index.scss +349 -0
  44. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/hint/_hint.scss +2 -0
  45. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/hint/_index.scss +42 -0
  46. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/input/_index.scss +193 -0
  47. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/input/_input.scss +2 -0
  48. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/inset-text/_index.scss +24 -0
  49. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/inset-text/_inset-text.scss +2 -0
  50. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/label/_index.scss +41 -0
  51. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/label/_label.scss +2 -0
  52. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/notification-banner/_index.scss +89 -0
  53. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/notification-banner/_notification-banner.scss +2 -0
  54. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/pagination/_index.scss +247 -0
  55. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/pagination/_pagination.scss +2 -0
  56. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/panel/_index.scss +56 -0
  57. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/panel/_panel.scss +2 -0
  58. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/phase-banner/_index.scss +27 -0
  59. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/phase-banner/_phase-banner.scss +2 -0
  60. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/radios/_index.scss +349 -0
  61. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/radios/_radios.scss +2 -0
  62. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/select/_index.scss +66 -0
  63. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/select/_select.scss +2 -0
  64. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/skip-link/_index.scss +47 -0
  65. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/skip-link/_skip-link.scss +2 -0
  66. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/summary-list/_index.scss +276 -0
  67. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/summary-list/_summary-list.scss +2 -0
  68. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/table/_index.scss +71 -0
  69. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/table/_table.scss +2 -0
  70. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tabs/_index.scss +130 -0
  71. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tabs/_tabs.scss +2 -0
  72. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tag/_index.scss +81 -0
  73. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tag/_tag.scss +2 -0
  74. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/textarea/_index.scss +54 -0
  75. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/textarea/_textarea.scss +2 -0
  76. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/warning-text/_index.scss +66 -0
  77. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/warning-text/_warning-text.scss +2 -0
  78. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_all.scss +6 -0
  79. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_global-styles.scss +19 -0
  80. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_govuk-frontend-version.scss +5 -0
  81. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_links.scss +35 -0
  82. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_lists.scss +66 -0
  83. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_section-break.scss +56 -0
  84. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_typography.scss +186 -0
  85. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_all.scss +12 -0
  86. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_clearfix.scss +15 -0
  87. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_colour.scss +98 -0
  88. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_device-pixels.scss +37 -0
  89. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_focused.scss +33 -0
  90. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_font-faces.scss +41 -0
  91. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_grid.scss +61 -0
  92. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_links.scss +429 -0
  93. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_media-queries.scss +91 -0
  94. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_shape-arrow.scss +80 -0
  95. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_spacing.scss +171 -0
  96. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_typography.scss +214 -0
  97. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_visually-hidden.scss +84 -0
  98. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_all.scss +6 -0
  99. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_button-group.scss +85 -0
  100. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_form-group.scss +23 -0
  101. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_grid.scss +24 -0
  102. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_main-wrapper.scss +53 -0
  103. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_template.scss +32 -0
  104. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_width-container.scss +84 -0
  105. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_all.scss +5 -0
  106. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_display.scss +24 -0
  107. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_spacing.scss +102 -0
  108. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_text-align.scss +14 -0
  109. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_typography.scss +21 -0
  110. data/vendor/assets/stylesheets/govuk-frontend/govuk/overrides/_width.scss +46 -0
  111. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_all.scss +24 -0
  112. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_assets.scss +82 -0
  113. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-applied.scss +155 -0
  114. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-organisations.scss +146 -0
  115. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-palette.scss +120 -0
  116. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_compatibility.scss +100 -0
  117. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_global-styles.scss +13 -0
  118. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_ie8.scss +34 -0
  119. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_links.scss +66 -0
  120. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_measurements.scss +95 -0
  121. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_media-queries.scss +23 -0
  122. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_spacing.scss +76 -0
  123. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font-families.scss +32 -0
  124. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-font.scss +112 -0
  125. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_typography-responsive.scss +195 -0
  126. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_warnings.scss +53 -0
  127. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_all.scss +7 -0
  128. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_compatibility.scss +50 -0
  129. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_exports.scss +33 -0
  130. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_font-url.scss +25 -0
  131. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_ie8.scss +87 -0
  132. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_image-url.scss +25 -0
  133. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_px-to-em.scss +20 -0
  134. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_px-to-rem.scss +20 -0
  135. data/vendor/assets/stylesheets/govuk-frontend/govuk/utilities/_all.scss +2 -0
  136. data/vendor/assets/stylesheets/govuk-frontend/govuk/utilities/_clearfix.scss +5 -0
  137. data/vendor/assets/stylesheets/govuk-frontend/govuk/utilities/_visually-hidden.scss +9 -0
  138. data/vendor/assets/stylesheets/govuk-frontend/govuk/vendor/_sass-mq.scss +347 -0
  139. metadata +132 -4
  140. data/app/assets/builds/katalyst/govuk/formbuilder.min.css +0 -1
@@ -0,0 +1,276 @@
1
+ @include govuk-exports("govuk/component/summary-list") {
2
+ .govuk-summary-list {
3
+ @include govuk-font($size: 19);
4
+ @include govuk-text-colour;
5
+ @include govuk-media-query($from: tablet) {
6
+ display: table;
7
+ width: 100%;
8
+ table-layout: fixed; // Required to allow us to wrap words that overflow.
9
+ border-collapse: collapse;
10
+ }
11
+ margin: 0; // Reset default user agent styles
12
+ @include govuk-responsive-margin(6, "bottom");
13
+ }
14
+
15
+ .govuk-summary-list__row {
16
+ border-bottom: 1px solid $govuk-border-colour;
17
+
18
+ @include govuk-media-query($until: tablet) {
19
+ margin-bottom: govuk-spacing(3);
20
+ }
21
+ @include govuk-media-query($from: tablet) {
22
+ display: table-row;
23
+ }
24
+ }
25
+
26
+ // Remove right padding from the last column in the row
27
+ .govuk-summary-list__row:not(.govuk-summary-list__row--no-actions) > :last-child {
28
+ padding-right: 0;
29
+ }
30
+
31
+ // Provide an empty 'cell' for rows that don't have actions – otherwise the
32
+ // bottom border is not drawn for that part of the row in some browsers.
33
+ .govuk-summary-list__row--no-actions {
34
+ @include govuk-media-query($from: tablet) {
35
+ &:after {
36
+ content: "";
37
+ display: table-cell;
38
+ width: 20%;
39
+ }
40
+ }
41
+ }
42
+
43
+ .govuk-summary-list__key,
44
+ .govuk-summary-list__value,
45
+ .govuk-summary-list__actions {
46
+ margin: 0; // Reset default user agent styles
47
+
48
+ @include govuk-media-query($from: tablet) {
49
+ display: table-cell;
50
+ padding-top: govuk-spacing(2);
51
+ padding-right: govuk-spacing(4);
52
+ padding-bottom: govuk-spacing(2);
53
+ }
54
+ }
55
+
56
+ .govuk-summary-list__actions {
57
+ margin-bottom: govuk-spacing(3);
58
+ @include govuk-media-query($from: tablet) {
59
+ width: 20%;
60
+ padding-right: 0; // Needed for IE8
61
+ text-align: right;
62
+ }
63
+ }
64
+
65
+ .govuk-summary-list__key,
66
+ .govuk-summary-list__value {
67
+ // Automatic wrapping for unbreakable text (e.g. URLs)
68
+ word-wrap: break-word; // Fallback for older browsers only
69
+ overflow-wrap: break-word;
70
+ }
71
+
72
+ .govuk-summary-list__key {
73
+ margin-bottom: govuk-spacing(1);
74
+ @include govuk-typography-weight-bold;
75
+ @include govuk-media-query($from: tablet) {
76
+ width: 30%;
77
+ }
78
+ }
79
+
80
+ .govuk-summary-list__value {
81
+ @include govuk-media-query($until: tablet) {
82
+ margin-bottom: govuk-spacing(3);
83
+ }
84
+ }
85
+
86
+ .govuk-summary-list__value > p {
87
+ margin-bottom: govuk-spacing(2);
88
+ }
89
+
90
+ .govuk-summary-list__value > :last-child {
91
+ margin-bottom: 0;
92
+ }
93
+
94
+ .govuk-summary-list__actions-list {
95
+ width: 100%;
96
+ margin: 0; // Reset default user agent styles
97
+ padding: 0; // Reset default user agent styles
98
+ }
99
+
100
+ .govuk-summary-list__actions-list-item {
101
+ display: inline-block;
102
+ }
103
+
104
+ // In older browsers such as IE8, :last-child is not available,
105
+ // so only show the border divider where it is available.
106
+ @include govuk-media-query($until: tablet) {
107
+ .govuk-summary-list__actions-list-item {
108
+ margin-right: govuk-spacing(2);
109
+ padding-right: govuk-spacing(2);
110
+ }
111
+
112
+ .govuk-summary-list__actions-list-item:not(:last-child) {
113
+ border-right: 1px solid $govuk-border-colour;
114
+ }
115
+
116
+ .govuk-summary-list__actions-list-item:last-child {
117
+ margin-right: 0;
118
+ padding-right: 0;
119
+ border: 0;
120
+ }
121
+ }
122
+
123
+ @include govuk-media-query($from: tablet) {
124
+ .govuk-summary-list__actions-list-item {
125
+ margin-left: govuk-spacing(2);
126
+ padding-left: govuk-spacing(2);
127
+ }
128
+
129
+ .govuk-summary-list__actions-list-item:not(:first-child) {
130
+ border-left: 1px solid $govuk-border-colour;
131
+ }
132
+
133
+ .govuk-summary-list__actions-list-item:first-child {
134
+ margin-left: 0;
135
+ padding-left: 0;
136
+ border: 0;
137
+ }
138
+ }
139
+
140
+ // No border on entire summary list
141
+ .govuk-summary-list--no-border {
142
+ .govuk-summary-list__row {
143
+ border: 0;
144
+ }
145
+
146
+ // Increase padding by 1px to compensate for 'missing' border
147
+ @include govuk-media-query($from: tablet) {
148
+ .govuk-summary-list__key,
149
+ .govuk-summary-list__value,
150
+ .govuk-summary-list__actions {
151
+ padding-bottom: govuk-spacing(2) + 1px;
152
+ }
153
+ }
154
+ }
155
+
156
+ // No border on specific rows
157
+ .govuk-summary-list__row--no-border {
158
+ border: 0;
159
+
160
+ // Increase padding by 1px to compensate for 'missing' border
161
+ @include govuk-media-query($from: tablet) {
162
+ .govuk-summary-list__key,
163
+ .govuk-summary-list__value,
164
+ .govuk-summary-list__actions {
165
+ padding-bottom: govuk-spacing(2) + 1px;
166
+ }
167
+ }
168
+ }
169
+
170
+ // Additional block for the summary card
171
+ .govuk-summary-card {
172
+ @include govuk-responsive-margin(6, "bottom");
173
+ border: 1px solid $govuk-border-colour;
174
+ }
175
+
176
+ .govuk-summary-card__title-wrapper {
177
+ padding: govuk-spacing(3);
178
+
179
+ // Ensures the card header appears separate to the summary list in forced colours mode
180
+ border-bottom: 1px solid transparent;
181
+ background-color: govuk-colour("light-grey", $legacy: "grey-3");
182
+
183
+ @include govuk-media-query($from: "tablet") {
184
+ display: -ms-flexbox;
185
+ display: flex;
186
+ -ms-flex-pack: justify;
187
+ justify-content: space-between;
188
+ -ms-flex-wrap: nowrap;
189
+ flex-wrap: nowrap;
190
+ padding: govuk-spacing(3) govuk-spacing(4);
191
+ }
192
+ }
193
+
194
+ .govuk-summary-card__title {
195
+ @include govuk-font($size: 19, $weight: bold);
196
+ margin: govuk-spacing(1) govuk-spacing(4) govuk-spacing(2) 0;
197
+
198
+ @include govuk-media-query($from: "tablet") {
199
+ margin-bottom: govuk-spacing(1);
200
+ }
201
+ }
202
+
203
+ .govuk-summary-card__actions {
204
+ @include govuk-font($size: 19, $weight: bold);
205
+ display: -ms-flexbox;
206
+ display: flex;
207
+ -ms-flex-wrap: wrap;
208
+ flex-wrap: wrap;
209
+ row-gap: 10px;
210
+ margin: govuk-spacing(1) 0;
211
+ padding: 0;
212
+ list-style: none;
213
+
214
+ @include govuk-media-query($from: "tablet") {
215
+ -ms-flex-pack: right;
216
+ justify-content: right;
217
+ text-align: right;
218
+ }
219
+ }
220
+
221
+ .govuk-summary-card__action {
222
+ display: inline;
223
+ margin: 0 govuk-spacing(2) 0 0;
224
+ padding-right: govuk-spacing(2);
225
+ border-right: 1px solid $govuk-border-colour;
226
+
227
+ @include govuk-media-query($from: "tablet") {
228
+ margin-right: 0;
229
+ }
230
+
231
+ // We use the following media query to target IE11 and 10 only to add margin
232
+ // between actions.
233
+ //
234
+ // We do this because we're using row-gap to create space between actions on
235
+ // more evergreen browsers which IE doesn't support. @supports currently isn't
236
+ // a viable solution, see https://github.com/w3c/csswg-drafts/issues/3559.
237
+ //
238
+ // Solution taken from https://stackoverflow.com/questions/11173106/apply-style-only-on-ie#answer-36448860
239
+ // which also includes an explanation of why this works
240
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
241
+ margin-bottom: govuk-spacing(1);
242
+ }
243
+ }
244
+
245
+ .govuk-summary-card__action:last-child {
246
+ margin: 0;
247
+ padding-right: 0;
248
+ border-right: none;
249
+
250
+ @include govuk-media-query($from: "tablet") {
251
+ padding-left: govuk-spacing(2);
252
+ }
253
+
254
+ // See above comment for why this is here
255
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
256
+ margin-bottom: 0;
257
+ }
258
+ }
259
+
260
+ .govuk-summary-card__content {
261
+ padding: govuk-spacing(3) govuk-spacing(3) 0;
262
+
263
+ @include govuk-media-query($from: "tablet") {
264
+ padding: govuk-spacing(3) govuk-spacing(4);
265
+ }
266
+
267
+ .govuk-summary-list {
268
+ margin-bottom: 0;
269
+ }
270
+
271
+ .govuk-summary-list__row:last-of-type {
272
+ margin-bottom: 0;
273
+ border-bottom: none;
274
+ }
275
+ }
276
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../base";
2
+ @import "./index";
@@ -0,0 +1,71 @@
1
+ @include govuk-exports("govuk/component/table") {
2
+ .govuk-table {
3
+ @include govuk-font($size: 19);
4
+ @include govuk-text-colour;
5
+ width: 100%;
6
+ @include govuk-responsive-margin(6, "bottom");
7
+
8
+ border-spacing: 0;
9
+ border-collapse: collapse;
10
+ }
11
+
12
+ .govuk-table__header {
13
+ @include govuk-typography-weight-bold;
14
+ }
15
+
16
+ .govuk-table__header,
17
+ .govuk-table__cell {
18
+ padding: govuk-spacing(2) govuk-spacing(4) govuk-spacing(2) 0;
19
+ border-bottom: 1px solid $govuk-border-colour;
20
+ text-align: left;
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
+ }
29
+
30
+ .govuk-table__cell--numeric {
31
+ @include govuk-font($size: false, $tabular: true);
32
+ }
33
+
34
+ .govuk-table__header--numeric,
35
+ .govuk-table__cell--numeric {
36
+ text-align: right;
37
+ }
38
+
39
+ .govuk-table__header:last-child,
40
+ .govuk-table__cell:last-child {
41
+ padding-right: 0;
42
+ }
43
+
44
+ .govuk-table__caption {
45
+ @include govuk-typography-weight-bold;
46
+
47
+ display: table-caption;
48
+ text-align: left;
49
+ }
50
+
51
+ // Modifiers that make captions look more like their equivalent headings
52
+
53
+ .govuk-table__caption--xl {
54
+ @include govuk-font($size: 48, $weight: bold);
55
+ margin-bottom: govuk-spacing(3);
56
+ }
57
+
58
+ .govuk-table__caption--l {
59
+ @include govuk-font($size: 36, $weight: bold);
60
+ margin-bottom: govuk-spacing(3);
61
+ }
62
+
63
+ .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);
70
+ }
71
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../base";
2
+ @import "./index";
@@ -0,0 +1,130 @@
1
+ @include govuk-exports("govuk/component/tabs") {
2
+ .govuk-tabs {
3
+ @include govuk-responsive-margin(1, "top");
4
+ @include govuk-responsive-margin(6, "bottom");
5
+ }
6
+
7
+ .govuk-tabs__title {
8
+ @include govuk-font($size: 19);
9
+ @include govuk-text-colour;
10
+ margin-bottom: govuk-spacing(2);
11
+ }
12
+
13
+ .govuk-tabs__list {
14
+ margin: 0;
15
+ padding: 0;
16
+ list-style: none;
17
+ @include govuk-responsive-margin(6, "bottom");
18
+ }
19
+
20
+ .govuk-tabs__list-item {
21
+ @include govuk-font($size: 19);
22
+ margin-left: govuk-spacing(5);
23
+
24
+ &:before {
25
+ @include govuk-text-colour;
26
+ content: "\2014 "; // "— "
27
+ margin-left: govuk-spacing(-5);
28
+ padding-right: govuk-spacing(1);
29
+ }
30
+ }
31
+
32
+ .govuk-tabs__tab {
33
+ @include govuk-link-common;
34
+ @include govuk-link-style-default;
35
+
36
+ display: inline-block;
37
+ margin-bottom: govuk-spacing(2);
38
+ }
39
+
40
+ .govuk-tabs__panel {
41
+ @include govuk-responsive-margin(8, "bottom");
42
+ }
43
+
44
+ // JavaScript enabled
45
+ .js-enabled {
46
+
47
+ @include govuk-media-query($from: tablet) {
48
+ .govuk-tabs__list {
49
+ @include govuk-clearfix;
50
+ margin-bottom: 0;
51
+ border-bottom: 1px solid $govuk-border-colour;
52
+ }
53
+
54
+ .govuk-tabs__title {
55
+ display: none;
56
+ }
57
+
58
+ .govuk-tabs__list-item {
59
+ position: relative;
60
+
61
+ margin-right: govuk-spacing(1);
62
+ margin-bottom: 0;
63
+ margin-left: 0;
64
+ padding: govuk-spacing(2) govuk-spacing(4);
65
+
66
+ float: left;
67
+ background-color: govuk-colour("light-grey", $legacy: "grey-4");
68
+ text-align: center;
69
+
70
+ &:before {
71
+ content: none;
72
+ }
73
+ }
74
+
75
+ .govuk-tabs__list-item--selected {
76
+ $border-width: 1px;
77
+
78
+ position: relative;
79
+
80
+ margin-top: govuk-spacing(-1);
81
+
82
+ // Compensation for border (otherwise we get a shift)
83
+ margin-bottom: -$border-width;
84
+ padding-top: govuk-spacing(3) - $border-width;
85
+ padding-right: govuk-spacing(4) - $border-width;
86
+ padding-bottom: govuk-spacing(3) + $border-width;
87
+ padding-left: govuk-spacing(4) - $border-width;
88
+
89
+ border: $border-width solid $govuk-border-colour;
90
+ border-bottom: 0;
91
+
92
+ background-color: $govuk-body-background-colour;
93
+
94
+ .govuk-tabs__tab {
95
+ text-decoration: none;
96
+ }
97
+ }
98
+
99
+ .govuk-tabs__tab {
100
+ @include govuk-link-style-text;
101
+
102
+ margin-bottom: 0;
103
+
104
+ &:after {
105
+ content: "";
106
+ position: absolute;
107
+ top: 0;
108
+ right: 0;
109
+ bottom: 0;
110
+ left: 0;
111
+ }
112
+ }
113
+
114
+ .govuk-tabs__panel {
115
+ @include govuk-responsive-margin(0, "bottom");
116
+ padding: govuk-spacing(6) govuk-spacing(4);
117
+ border: 1px solid $govuk-border-colour;
118
+ border-top: 0;
119
+
120
+ & > :last-child {
121
+ margin-bottom: 0;
122
+ }
123
+ }
124
+
125
+ .govuk-tabs__panel--hidden {
126
+ display: none;
127
+ }
128
+ }
129
+ }
130
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../base";
2
+ @import "./index";
@@ -0,0 +1,81 @@
1
+ @include govuk-exports("govuk/component/tag") {
2
+ .govuk-tag {
3
+
4
+ display: inline-block;
5
+
6
+ // When a user customises their colours often the background is removed,
7
+ // by adding a outline we ensure that the tag component still keeps it's meaning.
8
+ // https://accessibility.blog.gov.uk/2017/03/27/how-users-change-colours-on-websites/
9
+ outline: 2px solid transparent;
10
+ outline-offset: -2px;
11
+
12
+ color: govuk-colour("white");
13
+ background-color: govuk-colour("blue");
14
+ letter-spacing: 1px;
15
+
16
+ text-decoration: none;
17
+ text-transform: uppercase;
18
+
19
+ @if $govuk-use-legacy-font {
20
+ // Since New Transport sits slightly higher than other common fonts.
21
+ // We use intentionally uneven padding to make it balanced, this can be
22
+ // removed using the version of the font that has a more common vertical spacing.
23
+ @include govuk-font($size: 16, $weight: bold, $line-height: 1.25);
24
+ padding-top: 4px;
25
+ padding-right: 8px;
26
+ padding-bottom: 1px;
27
+ padding-left: 8px;
28
+ } @else {
29
+ @include govuk-font($size: 16, $weight: bold, $line-height: 1);
30
+ padding-top: 5px;
31
+ padding-right: 8px;
32
+ padding-bottom: 4px;
33
+ padding-left: 8px;
34
+ }
35
+ }
36
+
37
+ .govuk-tag--grey {
38
+ color: govuk-shade(govuk-colour("dark-grey", $legacy: "grey-1"), 30%);
39
+ background: govuk-tint(govuk-colour("dark-grey", $legacy: "grey-1"), 90%);
40
+ }
41
+
42
+ .govuk-tag--purple {
43
+ color: govuk-shade(govuk-colour("purple"), 20%);
44
+ background: govuk-tint(govuk-colour("purple"), 80%);
45
+ }
46
+
47
+ .govuk-tag--turquoise {
48
+ color: govuk-shade(govuk-colour("turquoise"), 60%);
49
+ background: govuk-tint(govuk-colour("turquoise"), 70%);
50
+ }
51
+
52
+ .govuk-tag--blue {
53
+ color: govuk-shade(govuk-colour("blue"), 30%);
54
+ background: govuk-tint(govuk-colour("blue"), 80%);
55
+ }
56
+
57
+ .govuk-tag--yellow {
58
+ color: govuk-shade(govuk-colour("yellow"), 65%);
59
+ background: govuk-tint(govuk-colour("yellow"), 75%);
60
+ }
61
+
62
+ .govuk-tag--orange {
63
+ color: govuk-shade(govuk-colour("orange"), 55%);
64
+ background: govuk-tint(govuk-colour("orange"), 70%);
65
+ }
66
+
67
+ .govuk-tag--red {
68
+ color: govuk-shade(govuk-colour("red"), 30%);
69
+ background: govuk-tint(govuk-colour("red"), 80%);
70
+ }
71
+
72
+ .govuk-tag--pink {
73
+ color: govuk-shade(govuk-colour("pink"), 40%);
74
+ background: govuk-tint(govuk-colour("pink"), 80%);
75
+ }
76
+
77
+ .govuk-tag--green {
78
+ color: govuk-shade(govuk-colour("green"), 20%);
79
+ background: govuk-tint(govuk-colour("green"), 80%);
80
+ }
81
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../base";
2
+ @import "./index";
@@ -0,0 +1,54 @@
1
+ @import "../error-message/index";
2
+ @import "../hint/index";
3
+ @import "../label/index";
4
+
5
+ @include govuk-exports("govuk/component/textarea") {
6
+ .govuk-textarea {
7
+ @include govuk-font($size: 19, $line-height: 1.25);
8
+
9
+ box-sizing: border-box; // should this be global?
10
+ display: block;
11
+ width: 100%;
12
+ min-height: 40px;
13
+ @include govuk-responsive-margin(6, "bottom");
14
+ padding: govuk-spacing(1);
15
+
16
+ resize: vertical;
17
+
18
+ border: $govuk-border-width-form-element solid $govuk-input-border-colour;
19
+ border-radius: 0;
20
+
21
+ -webkit-appearance: none;
22
+
23
+ &:focus {
24
+ outline: $govuk-focus-width solid $govuk-focus-colour;
25
+ // Ensure outline appears outside of the element
26
+ outline-offset: 0;
27
+ // Double the border by adding its width again. Use `box-shadow` to do
28
+ // this instead of changing `border-width` (which changes element size) and
29
+ // since `outline` is already used for the yellow focus state.
30
+ box-shadow: inset 0 0 0 $govuk-border-width-form-element;
31
+
32
+ @include _govuk-if-ie8 {
33
+ // IE8 doesn't support `box-shadow` so double the border with
34
+ // `border-width`.
35
+ border-width: $govuk-border-width-form-element * 2;
36
+ }
37
+ }
38
+
39
+ &:disabled {
40
+ opacity: .5;
41
+ color: inherit;
42
+ background-color: transparent;
43
+ cursor: not-allowed;
44
+ }
45
+ }
46
+
47
+ .govuk-textarea--error {
48
+ border-color: $govuk-error-colour;
49
+
50
+ &:focus {
51
+ border-color: $govuk-input-border-colour;
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../base";
2
+ @import "./index";
@@ -0,0 +1,66 @@
1
+ @include govuk-exports("govuk/component/warning-text") {
2
+ .govuk-warning-text {
3
+ position: relative;
4
+ @include govuk-responsive-margin(6, "bottom");
5
+ padding: govuk-spacing(2) 0;
6
+ }
7
+
8
+ .govuk-warning-text__assistive {
9
+ @include govuk-visually-hidden;
10
+ }
11
+
12
+ .govuk-warning-text__icon {
13
+ @include govuk-font($size: false, $weight: bold);
14
+
15
+ box-sizing: border-box;
16
+
17
+ display: inline-block;
18
+
19
+ position: absolute;
20
+ left: 0;
21
+
22
+ min-width: 35px;
23
+ min-height: 35px;
24
+ margin-top: -7px;
25
+
26
+ @include govuk-media-query($from: tablet) {
27
+ margin-top: -5px;
28
+ }
29
+
30
+ // When a user customises their colours the background colour will often be removed.
31
+ // Adding a border to the component keeps it's shape as a circle.
32
+ border: 3px solid govuk-colour("black");
33
+ border-radius: 50%;
34
+
35
+ color: govuk-colour("white");
36
+ background: govuk-colour("black");
37
+
38
+ font-size: 30px;
39
+ line-height: 29px;
40
+
41
+ text-align: center;
42
+
43
+ // Prevent the exclamation mark from being included when the warning text
44
+ // is copied, for example.
45
+ -webkit-user-select: none;
46
+ -ms-user-select: none;
47
+ user-select: none;
48
+
49
+ // Improve rendering in Windows High Contrast Mode (Edge), where a
50
+ // readability backplate behind the exclamation mark obscures the circle
51
+ forced-color-adjust: none;
52
+
53
+ @media screen and (forced-colors: active) {
54
+ border-color: windowText;
55
+ color: windowText;
56
+ background: transparent;
57
+ }
58
+ }
59
+
60
+ .govuk-warning-text__text {
61
+ @include govuk-font($size: 19, $weight: bold);
62
+ @include govuk-text-colour;
63
+ display: block;
64
+ padding-left: 45px;
65
+ }
66
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../base";
2
+ @import "./index";