hof 22.9.0-beta.v1 → 22.9.0-beta.v3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/config/hof-defaults.js +1 -0
  2. package/frontend/template-partials/views/cookies.html +6 -6
  3. package/frontend/template-partials/views/partials/cookie-banner.html +11 -6
  4. package/lib/settings.js +1 -0
  5. package/package.json +1 -1
  6. package/package/.eslintignore +0 -1
  7. package/package/CHANGELOG.md +0 -232
  8. package/package/LICENSE +0 -21
  9. package/package/README.md +0 -1887
  10. package/package/bin/hof-build +0 -10
  11. package/package/bin/hof-transpiler +0 -12
  12. package/package/build/helpers/importer.js +0 -29
  13. package/package/build/helpers/local.js +0 -35
  14. package/package/build/helpers/resolver/import.js +0 -32
  15. package/package/build/helpers/resolver/nearest-package-root.js +0 -33
  16. package/package/build/helpers/resolver/package.js +0 -29
  17. package/package/build/helpers/resolver.js +0 -16
  18. package/package/build/index.js +0 -49
  19. package/package/build/lib/env.js +0 -36
  20. package/package/build/lib/mkdir.js +0 -9
  21. package/package/build/lib/run.js +0 -17
  22. package/package/build/lib/spawn.js +0 -18
  23. package/package/build/tasks/browserify/compress.js +0 -15
  24. package/package/build/tasks/browserify/index.js +0 -48
  25. package/package/build/tasks/build/index.js +0 -6
  26. package/package/build/tasks/images/index.js +0 -27
  27. package/package/build/tasks/index.js +0 -8
  28. package/package/build/tasks/sass/index.js +0 -67
  29. package/package/build/tasks/translate/index.js +0 -20
  30. package/package/build/tasks/watch/index.js +0 -161
  31. package/package/components/address-lookup/default-model.js +0 -76
  32. package/package/components/address-lookup/defaults.js +0 -25
  33. package/package/components/address-lookup/index.js +0 -251
  34. package/package/components/address-lookup/templates/address-lookup.html +0 -14
  35. package/package/components/address-lookup/templates/address.html +0 -22
  36. package/package/components/address-lookup/templates/postcode.html +0 -9
  37. package/package/components/clear-session/Readme.md +0 -46
  38. package/package/components/clear-session/index.js +0 -26
  39. package/package/components/combine-and-loop-fields/Readme.md +0 -42
  40. package/package/components/combine-and-loop-fields/index.js +0 -156
  41. package/package/components/date/fields.js +0 -16
  42. package/package/components/date/index.js +0 -172
  43. package/package/components/date/templates/date.html +0 -20
  44. package/package/components/emailer/assets/images/govuk_logotype_email.png +0 -0
  45. package/package/components/emailer/assets/images/ho_crest_27px.png +0 -0
  46. package/package/components/emailer/assets/images/spacer.gif +0 -0
  47. package/package/components/emailer/email-service.js +0 -51
  48. package/package/components/emailer/emailer.js +0 -53
  49. package/package/components/emailer/index.js +0 -74
  50. package/package/components/emailer/transports/debug.js +0 -74
  51. package/package/components/emailer/transports/index.js +0 -8
  52. package/package/components/emailer/transports/ses.js +0 -36
  53. package/package/components/emailer/transports/smtp.js +0 -26
  54. package/package/components/emailer/transports/stub.js +0 -5
  55. package/package/components/emailer/views/layout.html +0 -63
  56. package/package/components/homeoffice-countries/index.js +0 -22
  57. package/package/components/index.js +0 -13
  58. package/package/components/notify/index.js +0 -62
  59. package/package/components/notify/notify.js +0 -51
  60. package/package/components/session-timeout-warning/index.js +0 -67
  61. package/package/components/summary/index.js +0 -237
  62. package/package/config/builder-defaults.js +0 -45
  63. package/package/config/component-defaults.js +0 -13
  64. package/package/config/hof-defaults.js +0 -65
  65. package/package/config/rate-limits.js +0 -20
  66. package/package/config/sanitisation-rules.js +0 -32
  67. package/package/controller/base-controller.js +0 -296
  68. package/package/controller/behaviour-hooks.js +0 -51
  69. package/package/controller/behaviour-session.js +0 -64
  70. package/package/controller/controller.js +0 -258
  71. package/package/controller/deprecate-error.js +0 -10
  72. package/package/controller/formatting/formatters.js +0 -70
  73. package/package/controller/formatting/index.js +0 -32
  74. package/package/controller/index.js +0 -17
  75. package/package/controller/validation/email.js +0 -30
  76. package/package/controller/validation/index.js +0 -101
  77. package/package/controller/validation/validators.js +0 -181
  78. package/package/controller/validation-error.js +0 -14
  79. package/package/frontend/govuk-template/build/config.js +0 -24
  80. package/package/frontend/govuk-template/build/govuk_template.html +0 -102
  81. package/package/frontend/govuk-template/build/index.js +0 -23
  82. package/package/frontend/govuk-template/govuk_template_generated.html +0 -102
  83. package/package/frontend/govuk-template/index.js +0 -29
  84. package/package/frontend/index.js +0 -9
  85. package/package/frontend/template-mixins/mixins/helpers.js +0 -103
  86. package/package/frontend/template-mixins/mixins/index.js +0 -37
  87. package/package/frontend/template-mixins/mixins/render.js +0 -12
  88. package/package/frontend/template-mixins/mixins/template-mixins.js +0 -520
  89. package/package/frontend/template-mixins/partials/forms/checkbox-group.html +0 -47
  90. package/package/frontend/template-mixins/partials/forms/checkbox.html +0 -16
  91. package/package/frontend/template-mixins/partials/forms/input-submit.html +0 -1
  92. package/package/frontend/template-mixins/partials/forms/input-text-date.html +0 -37
  93. package/package/frontend/template-mixins/partials/forms/input-text-group.html +0 -45
  94. package/package/frontend/template-mixins/partials/forms/option-group.html +0 -43
  95. package/package/frontend/template-mixins/partials/forms/select.html +0 -17
  96. package/package/frontend/template-mixins/partials/forms/textarea-group.html +0 -37
  97. package/package/frontend/template-mixins/partials/mixins/panel.html +0 -4
  98. package/package/frontend/template-partials/index.js +0 -9
  99. package/package/frontend/template-partials/translations/index.js +0 -26
  100. package/package/frontend/template-partials/translations/src/cy/base.json +0 -4
  101. package/package/frontend/template-partials/translations/src/cy/buttons.json +0 -6
  102. package/package/frontend/template-partials/translations/src/cy/cookies.json +0 -104
  103. package/package/frontend/template-partials/translations/src/cy/errorlist.json +0 -6
  104. package/package/frontend/template-partials/translations/src/cy/errors.json +0 -18
  105. package/package/frontend/template-partials/translations/src/cy/terms.json +0 -28
  106. package/package/frontend/template-partials/translations/src/en/accessibility.json +0 -43
  107. package/package/frontend/template-partials/translations/src/en/base.json +0 -5
  108. package/package/frontend/template-partials/translations/src/en/buttons.json +0 -10
  109. package/package/frontend/template-partials/translations/src/en/cookies.json +0 -116
  110. package/package/frontend/template-partials/translations/src/en/errorlist.json +0 -7
  111. package/package/frontend/template-partials/translations/src/en/errors.json +0 -35
  112. package/package/frontend/template-partials/translations/src/en/exit.json +0 -5
  113. package/package/frontend/template-partials/translations/src/en/fields.json +0 -5
  114. package/package/frontend/template-partials/translations/src/en/journey.json +0 -6
  115. package/package/frontend/template-partials/translations/src/en/save-and-exit.json +0 -4
  116. package/package/frontend/template-partials/translations/src/en/terms.json +0 -28
  117. package/package/frontend/template-partials/views/404.html +0 -9
  118. package/package/frontend/template-partials/views/accessibility.html +0 -55
  119. package/package/frontend/template-partials/views/confirm.html +0 -8
  120. package/package/frontend/template-partials/views/confirmation.html +0 -19
  121. package/package/frontend/template-partials/views/content/en/what-happens-next.md +0 -0
  122. package/package/frontend/template-partials/views/cookie-error.html +0 -1
  123. package/package/frontend/template-partials/views/cookies.html +0 -84
  124. package/package/frontend/template-partials/views/email/data-row.html +0 -4
  125. package/package/frontend/template-partials/views/email/formatted.html +0 -12
  126. package/package/frontend/template-partials/views/email/layout.html +0 -63
  127. package/package/frontend/template-partials/views/email/raw.html +0 -11
  128. package/package/frontend/template-partials/views/email/section-row.html +0 -3
  129. package/package/frontend/template-partials/views/error.html +0 -20
  130. package/package/frontend/template-partials/views/exit.html +0 -9
  131. package/package/frontend/template-partials/views/feedback-submitted.html +0 -11
  132. package/package/frontend/template-partials/views/layout.html +0 -55
  133. package/package/frontend/template-partials/views/partials/analytics-table.html +0 -25
  134. package/package/frontend/template-partials/views/partials/back.html +0 -5
  135. package/package/frontend/template-partials/views/partials/bullet-list.html +0 -7
  136. package/package/frontend/template-partials/views/partials/confirmation-alert.html +0 -6
  137. package/package/frontend/template-partials/views/partials/continue.html +0 -5
  138. package/package/frontend/template-partials/views/partials/cookie-banner.html +0 -29
  139. package/package/frontend/template-partials/views/partials/cookie-notification.html +0 -4
  140. package/package/frontend/template-partials/views/partials/cookie-settings-button.html +0 -1
  141. package/package/frontend/template-partials/views/partials/cookie-settings-radio.html +0 -8
  142. package/package/frontend/template-partials/views/partials/details-summary.html +0 -8
  143. package/package/frontend/template-partials/views/partials/external-link.html +0 -1
  144. package/package/frontend/template-partials/views/partials/form.html +0 -10
  145. package/package/frontend/template-partials/views/partials/gatag.html +0 -60
  146. package/package/frontend/template-partials/views/partials/head.html +0 -31
  147. package/package/frontend/template-partials/views/partials/heading.html +0 -11
  148. package/package/frontend/template-partials/views/partials/items-table.html +0 -32
  149. package/package/frontend/template-partials/views/partials/maincontent-left.html +0 -10
  150. package/package/frontend/template-partials/views/partials/navigation.html +0 -8
  151. package/package/frontend/template-partials/views/partials/page.html +0 -23
  152. package/package/frontend/template-partials/views/partials/panel-indent.html +0 -3
  153. package/package/frontend/template-partials/views/partials/session-cookies-table.html +0 -28
  154. package/package/frontend/template-partials/views/partials/session-timeout-warning.html +0 -38
  155. package/package/frontend/template-partials/views/partials/summary-table-row.html +0 -14
  156. package/package/frontend/template-partials/views/partials/summary-table.html +0 -8
  157. package/package/frontend/template-partials/views/partials/table.html +0 -18
  158. package/package/frontend/template-partials/views/partials/validation-list.html +0 -3
  159. package/package/frontend/template-partials/views/partials/validation-summary.html +0 -25
  160. package/package/frontend/template-partials/views/partials/warn.html +0 -7
  161. package/package/frontend/template-partials/views/rate-limit-error.html +0 -10
  162. package/package/frontend/template-partials/views/save-and-exit.html +0 -17
  163. package/package/frontend/template-partials/views/service-unavailable.html +0 -13
  164. package/package/frontend/template-partials/views/session-timeout.html +0 -7
  165. package/package/frontend/template-partials/views/step.html +0 -14
  166. package/package/frontend/template-partials/views/terms.html +0 -26
  167. package/package/frontend/themes/gov-uk/client-js/cookieSettings.js +0 -145
  168. package/package/frontend/themes/gov-uk/client-js/govuk-cookies.js +0 -121
  169. package/package/frontend/themes/gov-uk/client-js/index.js +0 -27
  170. package/package/frontend/themes/gov-uk/client-js/session-timeout-dialog.js +0 -348
  171. package/package/frontend/themes/gov-uk/client-js/skip-to-main.js +0 -19
  172. package/package/frontend/themes/gov-uk/index.js +0 -9
  173. package/package/frontend/themes/gov-uk/styles/_base.scss +0 -17
  174. package/package/frontend/themes/gov-uk/styles/_check_your_answers.scss +0 -155
  175. package/package/frontend/themes/gov-uk/styles/_cookie-banner.scss +0 -111
  176. package/package/frontend/themes/gov-uk/styles/_cookie-settings.scss +0 -33
  177. package/package/frontend/themes/gov-uk/styles/_govuk_frontend_toolkit.scss +0 -23
  178. package/package/frontend/themes/gov-uk/styles/_helpers.scss +0 -5
  179. package/package/frontend/themes/gov-uk/styles/_layout.scss +0 -125
  180. package/package/frontend/themes/gov-uk/styles/_panel-indent.scss +0 -27
  181. package/package/frontend/themes/gov-uk/styles/_pdf.scss +0 -42
  182. package/package/frontend/themes/gov-uk/styles/_session-timeout-dialog.scss +0 -121
  183. package/package/frontend/themes/gov-uk/styles/_typography.scss +0 -27
  184. package/package/frontend/themes/gov-uk/styles/_variables.scss +0 -11
  185. package/package/frontend/themes/gov-uk/styles/govuk.scss +0 -43
  186. package/package/frontend/themes/gov-uk/styles/mixins.scss +0 -16
  187. package/package/frontend/themes/gov-uk/styles/modules/_alerts.scss +0 -73
  188. package/package/frontend/themes/gov-uk/styles/modules/_buttons.scss +0 -5
  189. package/package/frontend/themes/gov-uk/styles/modules/_character-count.scss +0 -8
  190. package/package/frontend/themes/gov-uk/styles/modules/_confirm-page.scss +0 -20
  191. package/package/frontend/themes/gov-uk/styles/modules/_lists.scss +0 -5
  192. package/package/frontend/themes/gov-uk/styles/modules/_progressive-reveal.scss +0 -17
  193. package/package/frontend/themes/gov-uk/styles/modules/_validation.scss +0 -51
  194. package/package/frontend/themes/index.js +0 -5
  195. package/package/frontend/toolkit/assets/images/passports/new-window-link-blue.png +0 -0
  196. package/package/frontend/toolkit/assets/images/passports/new-window-link.png +0 -0
  197. package/package/frontend/toolkit/assets/images/spinner.gif +0 -0
  198. package/package/frontend/toolkit/assets/javascript/character-count.js +0 -99
  199. package/package/frontend/toolkit/assets/javascript/form-focus.js +0 -101
  200. package/package/frontend/toolkit/assets/javascript/helpers.js +0 -177
  201. package/package/frontend/toolkit/assets/javascript/progressive-reveal.js +0 -72
  202. package/package/frontend/toolkit/assets/javascript/validation.js +0 -71
  203. package/package/frontend/toolkit/assets/javascript/vendor/details.polyfill.js +0 -189
  204. package/package/frontend/toolkit/assets/javascript/vendor/indexof.polyfill.js +0 -39
  205. package/package/frontend/toolkit/assets/javascript/vendor/safari-cachebuster.js +0 -6
  206. package/package/frontend/toolkit/assets/stylesheets/_base.scss +0 -17
  207. package/package/frontend/toolkit/assets/stylesheets/_helpers.scss +0 -5
  208. package/package/frontend/toolkit/assets/stylesheets/_layout.scss +0 -118
  209. package/package/frontend/toolkit/assets/stylesheets/_typography.scss +0 -27
  210. package/package/frontend/toolkit/assets/stylesheets/_variables.scss +0 -11
  211. package/package/frontend/toolkit/assets/stylesheets/app.scss +0 -30
  212. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_buttons.scss +0 -47
  213. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_details.scss +0 -38
  214. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_elements-typography.scss +0 -175
  215. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_forms.scss +0 -167
  216. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_helpers.scss +0 -39
  217. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_layout.scss +0 -67
  218. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_lists.scss +0 -40
  219. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_panels.scss +0 -29
  220. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_reset.scss +0 -33
  221. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_tables.scss +0 -33
  222. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/forms/_form-block-labels.scss +0 -63
  223. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/forms/_form-date.scss +0 -39
  224. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/forms/_form-validation.scss +0 -63
  225. package/package/frontend/toolkit/assets/stylesheets/mixins.scss +0 -16
  226. package/package/frontend/toolkit/assets/stylesheets/modules/_alerts.scss +0 -73
  227. package/package/frontend/toolkit/assets/stylesheets/modules/_buttons.scss +0 -5
  228. package/package/frontend/toolkit/assets/stylesheets/modules/_confirm-page.scss +0 -20
  229. package/package/frontend/toolkit/assets/stylesheets/modules/_lists.scss +0 -5
  230. package/package/frontend/toolkit/assets/stylesheets/modules/_progressive-reveal.scss +0 -17
  231. package/package/frontend/toolkit/assets/stylesheets/modules/_validation.scss +0 -51
  232. package/package/frontend/toolkit/index.js +0 -10
  233. package/package/index.js +0 -351
  234. package/package/lib/deindex.js +0 -18
  235. package/package/lib/encryption.js +0 -23
  236. package/package/lib/ga-tag.js +0 -89
  237. package/package/lib/health.js +0 -26
  238. package/package/lib/helpers.js +0 -66
  239. package/package/lib/logger.js +0 -65
  240. package/package/lib/markdown.js +0 -46
  241. package/package/lib/router.js +0 -111
  242. package/package/lib/serve-static.js +0 -12
  243. package/package/lib/sessions.js +0 -82
  244. package/package/lib/settings.js +0 -74
  245. package/package/lib/which.js +0 -28
  246. package/package/middleware/cookies.js +0 -43
  247. package/package/middleware/deep-translate.js +0 -32
  248. package/package/middleware/errors.js +0 -119
  249. package/package/middleware/index.js +0 -10
  250. package/package/middleware/not-found.js +0 -38
  251. package/package/middleware/rate-limiter.js +0 -98
  252. package/package/middleware/service-unavailable.js +0 -64
  253. package/package/model/apis/axios-settings.js +0 -21
  254. package/package/model/apis/html-to-pdf-converter.js +0 -35
  255. package/package/model/apis/index.js +0 -5
  256. package/package/model/index.js +0 -348
  257. package/package/package.json +0 -147
  258. package/package/sandbox/README.md +0 -66
  259. package/package/sandbox/apps/sandbox/behaviours/clear-session.js +0 -8
  260. package/package/sandbox/apps/sandbox/behaviours/country-select.js +0 -10
  261. package/package/sandbox/apps/sandbox/behaviours/international-number.js +0 -22
  262. package/package/sandbox/apps/sandbox/fields.js +0 -128
  263. package/package/sandbox/apps/sandbox/index.js +0 -99
  264. package/package/sandbox/apps/sandbox/lib/staticAppealStages.js +0 -189
  265. package/package/sandbox/apps/sandbox/sections/summary-data-sections.js +0 -43
  266. package/package/sandbox/apps/sandbox/translations/src/en/errors.json +0 -5
  267. package/package/sandbox/apps/sandbox/translations/src/en/exit.json +0 -4
  268. package/package/sandbox/apps/sandbox/translations/src/en/fields.json +0 -101
  269. package/package/sandbox/apps/sandbox/translations/src/en/journey.json +0 -7
  270. package/package/sandbox/apps/sandbox/translations/src/en/pages.json +0 -72
  271. package/package/sandbox/apps/sandbox/translations/src/en/validation.json +0 -54
  272. package/package/sandbox/apps/sandbox/views/form-guidance-link.html +0 -8
  273. package/package/sandbox/apps/sandbox/views/save-and-exit.html +0 -19
  274. package/package/sandbox/assets/images/icons/icon-caret-left.png +0 -0
  275. package/package/sandbox/assets/images/icons/icon-complete.png +0 -0
  276. package/package/sandbox/assets/images/icons/icon-cross-remove-sign.png +0 -0
  277. package/package/sandbox/assets/js/index.js +0 -70
  278. package/package/sandbox/assets/scss/app.scss +0 -27
  279. package/package/sandbox/codecept.conf.js +0 -15
  280. package/package/sandbox/config.js +0 -17
  281. package/package/sandbox/package.json +0 -26
  282. package/package/sandbox/server.js +0 -23
  283. package/package/sandbox/yarn.lock +0 -262
  284. package/package/transpiler/index.js +0 -2
  285. package/package/transpiler/lib/aggregate.js +0 -32
  286. package/package/transpiler/lib/build.js +0 -15
  287. package/package/transpiler/lib/compile.js +0 -12
  288. package/package/transpiler/lib/expand-dirs.js +0 -14
  289. package/package/transpiler/lib/write-files.js +0 -24
  290. package/package/utilities/autofill/index.js +0 -189
  291. package/package/utilities/autofill/inputs.js +0 -60
  292. package/package/utilities/countries.js +0 -12
  293. package/package/utilities/helpers/index.js +0 -189
  294. package/package/utilities/index.js +0 -9
  295. package/package/utilities/reqres/index.js +0 -18
  296. package/package/utilities/test-data/data/domain.json +0 -7
  297. package/package/utilities/test-data/data/firstname.json +0 -16
  298. package/package/utilities/test-data/data/lastname.json +0 -10
  299. package/package/utilities/test-data/data/postcode.json +0 -12
  300. package/package/utilities/test-data/data/streetname.json +0 -8
  301. package/package/utilities/test-data/data/streetsuffix.json +0 -7
  302. package/package/utilities/test-data/data/town.json +0 -9
  303. package/package/utilities/test-data/index.js +0 -67
  304. package/package/wizard/behaviours/complete.js +0 -20
  305. package/package/wizard/behaviours/index.js +0 -5
  306. package/package/wizard/index.js +0 -124
  307. package/package/wizard/middleware/back-links.js +0 -68
  308. package/package/wizard/middleware/check-complete.js +0 -13
  309. package/package/wizard/middleware/check-progress.js +0 -139
  310. package/package/wizard/middleware/check-session.js +0 -17
  311. package/package/wizard/middleware/csrf.js +0 -47
  312. package/package/wizard/middleware/session-model.js +0 -11
  313. package/package/wizard/middleware/session.js +0 -9
  314. package/package/wizard/model.js +0 -29
  315. package/package/wizard/util/constants.js +0 -5
  316. package/package/wizard/util/helpers.js +0 -19
@@ -1,167 +0,0 @@
1
- // Forms
2
- // ==========================================================================
3
-
4
- // Fieldset is used to group more than one .form-group
5
- fieldset {
6
- width: 100%;
7
- @extend %contain-floats;
8
- }
9
-
10
- // Form group is used to wrap label and input pairs
11
- .form-group {
12
- float: left;
13
- width: 100%;
14
- @extend %contain-floats;
15
- margin-bottom: $gutter-half;
16
- @include media(tablet) {
17
- margin-bottom: $gutter;
18
- }
19
- }
20
-
21
- .form-group-related {
22
- margin-bottom: 10px;
23
- @include media(tablet) {
24
- margin-bottom: 20px;
25
- }
26
- }
27
-
28
- .form-group-compound {
29
- margin-bottom: 10px;
30
- }
31
-
32
-
33
- // Form title
34
- .form-title {
35
- margin-bottom: $gutter;
36
- @include media(tablet) {
37
- margin-bottom: ($gutter*1.5);
38
- }
39
- }
40
-
41
-
42
- // Labels
43
-
44
- // Form labels, or for legends styled to look like labels
45
- .form-label,
46
- .form-label-bold {
47
- display: block;
48
- color: $text-colour;
49
- }
50
-
51
- .form-label {
52
- @include core-19;
53
- margin-bottom: 5px;
54
- }
55
-
56
- .form-label-bold {
57
- @include bold-24;
58
- margin-bottom: 0;
59
- .form-hint {
60
- @include core-19;
61
- }
62
- }
63
-
64
- // Used for paragraphs in-between form elements
65
- .form-block {
66
- float: left;
67
- width: 100%;
68
- @extend %contain-floats;
69
- }
70
-
71
-
72
- // Hints
73
-
74
- // Form hints & examples are light grey and sit above a form control
75
- .form-hint {
76
- display: block;
77
- color: $secondary-text-colour;
78
- margin-bottom: 5px;
79
- @include media (tablet) {
80
- margin-top: 8px;
81
- }
82
- }
83
-
84
-
85
- // Form controls
86
-
87
- // By default, form controls are 50% width for desktop,
88
- // and 100% width for mobile
89
- .form-control {
90
- @include core-19;
91
-
92
- width: 100%;
93
- @include box-sizing(border-box);
94
- padding: 4px;
95
- background-color: $white;
96
- border: 1px solid $border-colour;
97
-
98
- // Disable webkit appearance and remove rounded corners
99
- -webkit-appearance: none;
100
- border-radius: 0;
101
-
102
- @include media(tablet) {
103
- width: 50%;
104
- }
105
- }
106
-
107
-
108
- // Form control widths
109
- .form-control-3-4 {
110
- width: 100%;
111
- @include media(tablet) {
112
- width: 75%;
113
- }
114
- }
115
-
116
- .form-control-1-2 {
117
- width: 100%;
118
- @include media(tablet) {
119
- width: 50%;
120
- }
121
- }
122
-
123
- .form-control-1-4 {
124
- width: 25%;
125
- }
126
-
127
- .form-control-1-8 {
128
- width: 12.5%;
129
- }
130
-
131
-
132
- // Radio buttons
133
- .form-radio {
134
- display: block;
135
- margin: 10px 0;
136
- }
137
- .form-radio input {
138
- vertical-align: middle;
139
- margin: -4px 5px 0 0;
140
- }
141
-
142
-
143
- // Checkboxes
144
- .form-checkbox {
145
- display: block;
146
- margin: $gutter-half 0;
147
- }
148
- .form-checkbox input {
149
- vertical-align: middle;
150
- margin: -2px 5px 0 0;
151
- }
152
-
153
- // Buttons
154
- .form .button {
155
- @include media(mobile) {
156
- width: 100%;
157
- }
158
- }
159
-
160
-
161
- // Form validation
162
- @import "forms/form-validation";
163
-
164
-
165
- // Form patterns
166
- @import "forms/form-date";
167
- @import "forms/form-block-labels";
@@ -1,39 +0,0 @@
1
- // Helpers
2
-
3
- // Return ems from a pixel value
4
- // This assumes a base of 19px
5
- @function em($px, $base: 19) {
6
- @return ($px / $base) + em;
7
- }
8
-
9
- // Want to see how the grid works?
10
- // add this class to the body to see how grid padding is set
11
- .example-highlight-grid {
12
- .grid-row {
13
- background: $grey-2;
14
- }
15
- .column-highlight {
16
- background: $grey-3;
17
- width: 100%;
18
- }
19
- }
20
-
21
- // Used to space the "back" link on example pages
22
- .example-back-link {
23
- @include inline-block;
24
- margin-top: $gutter;
25
- }
26
-
27
- // Hide, but not for screenreaders
28
- .visuallyhidden {
29
- position: absolute;
30
- overflow: hidden;
31
- clip: rect(0 0 0 0);
32
- height: 1px; width: 1px;
33
- margin: -1px; padding: 0; border: 0;
34
- }
35
-
36
- // Hide, only when JavaScript is enabled
37
- .js-enabled .js-hidden {
38
- display: none;
39
- }
@@ -1,67 +0,0 @@
1
- // Layout
2
- // ==========================================================================
3
-
4
- // GOV.UK front end toolkit dependencies
5
- @import "measurements";
6
- @import "conditionals";
7
- @import "grid_layout";
8
- @import "helpers";
9
- @import "design-patterns/alpha-beta";
10
-
11
-
12
- // Content
13
- // ==========================================================================
14
-
15
- // Content wraps the entire site content block
16
- #content {
17
- @extend %site-width-container;
18
- @extend %contain-floats;
19
- padding-bottom: $gutter;
20
- @include media(desktop) {
21
- padding-bottom: $gutter*3;
22
- }
23
- }
24
-
25
-
26
- // Phase banner
27
- // ==========================================================================
28
-
29
- .phase-banner {
30
- @include phase-banner(alpha);
31
- }
32
-
33
-
34
- // Grid layout
35
- // ==========================================================================
36
-
37
- // Usage:
38
- // For two equal columns
39
-
40
- // <div class="grid-row">
41
- // <div class="column-half">
42
- //
43
- // </div>
44
- // <div class="column-half">
45
- //
46
- // </div>
47
- // </div>
48
-
49
- // Use .grid-row to define a row for grid columns to sit in
50
- .grid-row {
51
- @extend %grid-row;
52
- }
53
-
54
- // Use .grid-column to create a grid column with 15px gutter
55
- // By default grid columns break to become full width at tablet size
56
- .column-quarter {
57
- @include grid-column( 1/4 );
58
- }
59
- .column-half {
60
- @include grid-column( 1/2 );
61
- }
62
- .column-third {
63
- @include grid-column( 1/3 );
64
- }
65
- .column-two-thirds {
66
- @include grid-column( 2/3 );
67
- }
@@ -1,40 +0,0 @@
1
- // Lists
2
- // ==========================================================================
3
-
4
- ul,
5
- ol {
6
- padding: 0;
7
- }
8
-
9
- // Bulleted lists
10
- .list-bullet {
11
- list-style-type: disc;
12
- padding-left: 20px;
13
- }
14
-
15
- // Numbered lists
16
- .list-number {
17
- list-style-type: decimal;
18
- padding-left: 20px;
19
- @include ie-lte(7) {
20
- padding-left: 28px;
21
- }
22
- }
23
-
24
- .list-bullet,
25
- .list-number {
26
- margin-top: 5px;
27
- margin-bottom: 20px;
28
- }
29
-
30
- .list-bullet li,
31
- .list-number li {
32
- margin-bottom: 5px;
33
- }
34
-
35
- ul {
36
- @extend .list-bullet;
37
- }
38
- ol {
39
- @extend .list-number;
40
- }
@@ -1,29 +0,0 @@
1
- // Panels
2
- // ==========================================================================
3
- // GOV.UK front end toolkit dependencies
4
- @import "helpers";
5
-
6
-
7
- // Indented panels with a grey left hand border
8
- .panel-indent {
9
- @extend %contain-floats;
10
- clear: both;
11
- border-left: 4px solid $border-colour;
12
-
13
- padding: 10px 0 10px $gutter-half;
14
- margin: ($gutter $gutter-half $gutter*1.5 0);
15
- }
16
-
17
- .panel-indent legend {
18
- margin-top: 0;
19
- }
20
-
21
- // Remove bottom margin on last paragraph
22
- .panel-indent p:only-child,
23
- .panel-indent p:last-child {
24
- margin-bottom: 0;
25
- }
26
-
27
- .panel-indent .form-group:last-child {
28
- margin-bottom: 0;
29
- }
@@ -1,33 +0,0 @@
1
- // Reset
2
- // ==========================================================================
3
- // flatten all browser defaults and styles inherited from gov.uk template
4
-
5
- /* Borrowed from http://meyerweb.com/eric/tools/css/reset/ */
6
- div, span,
7
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8
- a, abbr, acronym, address, big, cite, code,
9
- del, dfn, em, img, ins, kbd, q, s, samp,
10
- small, strike, strong, sub, sup, tt, var,
11
- b, u, i, center,
12
- dl, dt, dd, ol, ul, li,
13
- fieldset, form, label, legend,
14
- table, caption, tbody, tfoot, thead, tr, th, td,
15
- article, aside, canvas, details, embed,
16
- figure, figcaption, footer, header, hgroup,
17
- menu, nav, output, ruby, section, summary,
18
- time, mark {
19
- border: none;
20
- margin: 0;
21
- padding: 0;
22
- }
23
-
24
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
25
- small, strike, strong, sub, sup, tt, var,
26
- b, u, i, center,
27
- input, textarea,
28
- table, caption, tbody, tfoot, thead, tr, th, td {
29
- font-size: inherit;
30
- font-family: inherit;
31
- line-height: inherit;
32
- font-weight: normal;
33
- }
@@ -1,33 +0,0 @@
1
- // Tables
2
- // ==========================================================================
3
-
4
- table {
5
- border-collapse: collapse;
6
- border-spacing: 0;
7
- width: 100%;
8
- }
9
-
10
- table th,
11
- table td {
12
- @include core-16;
13
- padding: em(12, 16) em(20, 16) em(9, 16) 0;
14
-
15
- text-align: left;
16
- color: #0b0c0c;
17
- border-bottom: 1px solid $border-colour;
18
- }
19
-
20
- table th {
21
- font-weight: 700;
22
- }
23
-
24
- // Right align headings for numeric content
25
- table th.numeric {
26
- text-align: right;
27
- }
28
-
29
- // Use tabular numbers for numeric table cells
30
- table td.numeric {
31
- @include core-16($tabular-numbers: true);
32
- text-align: right;
33
- }
@@ -1,63 +0,0 @@
1
- // Large hit area
2
- // Radio buttons & checkboxes
3
-
4
- // By default, block labels stack vertically
5
- .block-label {
6
-
7
- display: block;
8
- float: none;
9
- clear: left;
10
- position: relative;
11
-
12
- background: $panel-colour;
13
- border: 1px solid $panel-colour;
14
- padding: (18px $gutter $gutter-half $gutter*1.5);
15
- margin-top: 10px;
16
- margin-bottom: 10px;
17
-
18
- cursor: pointer; // Encourage clicking on block labels
19
-
20
- @include media(tablet) {
21
- float: left;
22
- margin-top: 5px;
23
- margin-bottom: 5px;
24
- // width: 25%; - Test : check that text within labels will wrap
25
- }
26
-
27
- // Absolutely position inputs within label, to allow text to wrap
28
- input {
29
- position: absolute;
30
- top: 18px;
31
- left: $gutter-half;
32
- cursor: pointer;
33
- }
34
-
35
- // Change border on hover
36
- &:hover {
37
- border-color: $black;
38
- }
39
- }
40
-
41
- // To stack horizontally, use .inline on parent, to sit block labels next to each other
42
- .inline .block-label {
43
- clear: none;
44
- margin-right: 10px;
45
- }
46
-
47
- // Selected and focused states
48
-
49
- // Add selected state
50
- .js-enabled label.selected {
51
- background: $white;
52
- border-color: $black;
53
- }
54
-
55
- // Add focus to block labels
56
- .js-enabled label.focused {
57
- outline: 3px solid $yellow;
58
- }
59
-
60
- // Remove focus from radio/checkboxes
61
- .js-enabled .focused input:focus {
62
- outline: none;
63
- }
@@ -1,39 +0,0 @@
1
- // Date pattern
2
-
3
- // Hide the 'spinner' for webkit
4
- // and also for Firefox
5
- input::-webkit-outer-spin-button,
6
- input::-webkit-inner-spin-button {
7
- -webkit-appearance: none;
8
- margin: 0
9
- }
10
- input[type=number] {
11
- -moz-appearance: textfield
12
- }
13
-
14
- .form-date {
15
-
16
- .form-group {
17
- float: left;
18
- width: 50px;
19
-
20
- margin-right: 20px;
21
- margin-bottom: 0;
22
- clear: none;
23
-
24
- label {
25
- display: block;
26
- margin-bottom: 5px;
27
- }
28
-
29
- input {
30
- width: 100%;
31
- }
32
-
33
- }
34
-
35
- .form-group-year {
36
- width: 70px;
37
- }
38
-
39
- }
@@ -1,63 +0,0 @@
1
- // Validation summary box
2
-
3
- .validation-summary {
4
- border: 3px solid $error-colour;
5
- padding: $gutter-half $gutter;
6
- margin-bottom: $gutter;
7
-
8
- @include ie-lte(6){
9
- zoom: 1;
10
- }
11
- }
12
-
13
- .validation-summary ul {
14
- margin-top: 10px;
15
- }
16
-
17
- .validation-summary li,
18
- .validation-summary p {
19
- @include core-16;
20
- }
21
-
22
- .validation-summary p {
23
- margin-top: $gutter-half;
24
- margin-bottom: 5px;
25
- }
26
-
27
- .validation-summary a {
28
- color: $error-colour;
29
- @include ie-lte(6) {
30
- color: $error-colour !important;
31
- }
32
- }
33
-
34
- .validation-summary .heading-small {
35
- margin-top: $gutter-half;
36
- }
37
-
38
-
39
- // Validation error message box
40
- // .validation-error {
41
- // clear: both;
42
- // @extend %contain-floats;
43
- // border-left: 3px solid $error-colour;
44
- // padding: $gutter- $gutter;
45
- // margin-bottom: $gutter-half;
46
- // margin-left: -($gutter);
47
- // }
48
-
49
- // .validation-error .form-group {
50
- // margin-bottom: 20px;
51
- // }
52
-
53
- // .validation-error p {
54
- // margin-bottom: 10px;
55
- // }
56
-
57
-
58
- // Validation message
59
- .validation-message {
60
- display: block;
61
- @include core-16;
62
- color: $error-colour;
63
- }
@@ -1,16 +0,0 @@
1
- // App styles
2
-
3
- // govuk_frontend_toolkit
4
- @import "govuk_frontend_toolkit/stylesheets/colours";
5
- @import "govuk_frontend_toolkit/stylesheets/measurements";
6
- @import "govuk_frontend_toolkit/stylesheets/conditionals";
7
- @import "govuk_frontend_toolkit/stylesheets/shims";
8
- @import "govuk_frontend_toolkit/stylesheets/typography";
9
- @import "govuk_frontend_toolkit/stylesheets/css3";
10
- @import "govuk_frontend_toolkit/stylesheets/design-patterns/alpha-beta";
11
- @import "govuk_frontend_toolkit/stylesheets/design-patterns/buttons";
12
- @import "govuk_frontend_toolkit/stylesheets/grid_layout";
13
-
14
- // Custom
15
- @import "variables";
16
- @import "helpers";
@@ -1,73 +0,0 @@
1
- // ==========================================================================
2
- // Alerts
3
- // ==========================================================================
4
-
5
-
6
- %alert {
7
- border-left: 4px solid $error-colour;
8
- clear: both;
9
- margin: 0 0 1.05263em;
10
- padding: 1.05263em;
11
- }
12
-
13
-
14
- .alert-success {
15
- @extend %alert;
16
- border-color: $turquoise;
17
- }
18
-
19
-
20
- .alert-info {
21
- @extend %alert;
22
- border-color: $grey-2;
23
- }
24
-
25
-
26
- .alert-error {
27
- @extend %alert;
28
- border-color: $error-colour;
29
- }
30
-
31
-
32
- .alert-complete {
33
- @extend %alert;
34
- background-color: $turquoise;
35
- border-color: $turquoise;
36
- color: $white;
37
- text-align: center;
38
- padding: 4.5em 1em;
39
- }
40
-
41
-
42
- .alert-header {
43
- @extend .bold-medium;
44
- clear: both;
45
- margin-bottom: .5em;
46
- overflow: hidden;
47
- vertical-align: middle;
48
- }
49
-
50
-
51
- .alert-number {
52
- @extend .bold-xlarge;
53
- float: left;
54
- margin-right: .41666667em; /* 20px ÷ 48px font size */
55
- }
56
-
57
-
58
- .alert-message {
59
- display: block;
60
- overflow: hidden;
61
-
62
- h1 {
63
- margin-top: em(25);
64
- margin-bottom: 0;
65
-
66
- &:first-child {
67
- margin-top: 0;
68
- }
69
-
70
- }
71
-
72
- }
73
-
@@ -1,5 +0,0 @@
1
- .button + .inline-options {
2
- padding-top: em(10);
3
- display: inline-block;
4
- line-height: 1.25;
5
- }
@@ -1,20 +0,0 @@
1
- .table-details {
2
- width: 100%;
3
- margin-bottom: 3em;
4
-
5
- tbody {
6
- td:nth-child(1) {
7
- width: 40%;
8
- }
9
- td:nth-child(2) {
10
- width: 60%;
11
- }
12
- td:nth-child(3) {
13
- text-align: right;
14
- padding-right: 0;
15
- }
16
- td:not(.no-white-space) {
17
- white-space: pre-wrap;
18
- }
19
- }
20
- }
@@ -1,5 +0,0 @@
1
- .list-spaced {
2
- li {
3
- margin-bottom: 1em;
4
- }
5
- }