hof 22.9.0-beta.v1 → 22.9.0-beta.v2

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 (312) hide show
  1. package/package.json +1 -1
  2. package/package/.eslintignore +0 -1
  3. package/package/CHANGELOG.md +0 -232
  4. package/package/LICENSE +0 -21
  5. package/package/README.md +0 -1887
  6. package/package/bin/hof-build +0 -10
  7. package/package/bin/hof-transpiler +0 -12
  8. package/package/build/helpers/importer.js +0 -29
  9. package/package/build/helpers/local.js +0 -35
  10. package/package/build/helpers/resolver/import.js +0 -32
  11. package/package/build/helpers/resolver/nearest-package-root.js +0 -33
  12. package/package/build/helpers/resolver/package.js +0 -29
  13. package/package/build/helpers/resolver.js +0 -16
  14. package/package/build/index.js +0 -49
  15. package/package/build/lib/env.js +0 -36
  16. package/package/build/lib/mkdir.js +0 -9
  17. package/package/build/lib/run.js +0 -17
  18. package/package/build/lib/spawn.js +0 -18
  19. package/package/build/tasks/browserify/compress.js +0 -15
  20. package/package/build/tasks/browserify/index.js +0 -48
  21. package/package/build/tasks/build/index.js +0 -6
  22. package/package/build/tasks/images/index.js +0 -27
  23. package/package/build/tasks/index.js +0 -8
  24. package/package/build/tasks/sass/index.js +0 -67
  25. package/package/build/tasks/translate/index.js +0 -20
  26. package/package/build/tasks/watch/index.js +0 -161
  27. package/package/components/address-lookup/default-model.js +0 -76
  28. package/package/components/address-lookup/defaults.js +0 -25
  29. package/package/components/address-lookup/index.js +0 -251
  30. package/package/components/address-lookup/templates/address-lookup.html +0 -14
  31. package/package/components/address-lookup/templates/address.html +0 -22
  32. package/package/components/address-lookup/templates/postcode.html +0 -9
  33. package/package/components/clear-session/Readme.md +0 -46
  34. package/package/components/clear-session/index.js +0 -26
  35. package/package/components/combine-and-loop-fields/Readme.md +0 -42
  36. package/package/components/combine-and-loop-fields/index.js +0 -156
  37. package/package/components/date/fields.js +0 -16
  38. package/package/components/date/index.js +0 -172
  39. package/package/components/date/templates/date.html +0 -20
  40. package/package/components/emailer/assets/images/govuk_logotype_email.png +0 -0
  41. package/package/components/emailer/assets/images/ho_crest_27px.png +0 -0
  42. package/package/components/emailer/assets/images/spacer.gif +0 -0
  43. package/package/components/emailer/email-service.js +0 -51
  44. package/package/components/emailer/emailer.js +0 -53
  45. package/package/components/emailer/index.js +0 -74
  46. package/package/components/emailer/transports/debug.js +0 -74
  47. package/package/components/emailer/transports/index.js +0 -8
  48. package/package/components/emailer/transports/ses.js +0 -36
  49. package/package/components/emailer/transports/smtp.js +0 -26
  50. package/package/components/emailer/transports/stub.js +0 -5
  51. package/package/components/emailer/views/layout.html +0 -63
  52. package/package/components/homeoffice-countries/index.js +0 -22
  53. package/package/components/index.js +0 -13
  54. package/package/components/notify/index.js +0 -62
  55. package/package/components/notify/notify.js +0 -51
  56. package/package/components/session-timeout-warning/index.js +0 -67
  57. package/package/components/summary/index.js +0 -237
  58. package/package/config/builder-defaults.js +0 -45
  59. package/package/config/component-defaults.js +0 -13
  60. package/package/config/hof-defaults.js +0 -65
  61. package/package/config/rate-limits.js +0 -20
  62. package/package/config/sanitisation-rules.js +0 -32
  63. package/package/controller/base-controller.js +0 -296
  64. package/package/controller/behaviour-hooks.js +0 -51
  65. package/package/controller/behaviour-session.js +0 -64
  66. package/package/controller/controller.js +0 -258
  67. package/package/controller/deprecate-error.js +0 -10
  68. package/package/controller/formatting/formatters.js +0 -70
  69. package/package/controller/formatting/index.js +0 -32
  70. package/package/controller/index.js +0 -17
  71. package/package/controller/validation/email.js +0 -30
  72. package/package/controller/validation/index.js +0 -101
  73. package/package/controller/validation/validators.js +0 -181
  74. package/package/controller/validation-error.js +0 -14
  75. package/package/frontend/govuk-template/build/config.js +0 -24
  76. package/package/frontend/govuk-template/build/govuk_template.html +0 -102
  77. package/package/frontend/govuk-template/build/index.js +0 -23
  78. package/package/frontend/govuk-template/govuk_template_generated.html +0 -102
  79. package/package/frontend/govuk-template/index.js +0 -29
  80. package/package/frontend/index.js +0 -9
  81. package/package/frontend/template-mixins/mixins/helpers.js +0 -103
  82. package/package/frontend/template-mixins/mixins/index.js +0 -37
  83. package/package/frontend/template-mixins/mixins/render.js +0 -12
  84. package/package/frontend/template-mixins/mixins/template-mixins.js +0 -520
  85. package/package/frontend/template-mixins/partials/forms/checkbox-group.html +0 -47
  86. package/package/frontend/template-mixins/partials/forms/checkbox.html +0 -16
  87. package/package/frontend/template-mixins/partials/forms/input-submit.html +0 -1
  88. package/package/frontend/template-mixins/partials/forms/input-text-date.html +0 -37
  89. package/package/frontend/template-mixins/partials/forms/input-text-group.html +0 -45
  90. package/package/frontend/template-mixins/partials/forms/option-group.html +0 -43
  91. package/package/frontend/template-mixins/partials/forms/select.html +0 -17
  92. package/package/frontend/template-mixins/partials/forms/textarea-group.html +0 -37
  93. package/package/frontend/template-mixins/partials/mixins/panel.html +0 -4
  94. package/package/frontend/template-partials/index.js +0 -9
  95. package/package/frontend/template-partials/translations/index.js +0 -26
  96. package/package/frontend/template-partials/translations/src/cy/base.json +0 -4
  97. package/package/frontend/template-partials/translations/src/cy/buttons.json +0 -6
  98. package/package/frontend/template-partials/translations/src/cy/cookies.json +0 -104
  99. package/package/frontend/template-partials/translations/src/cy/errorlist.json +0 -6
  100. package/package/frontend/template-partials/translations/src/cy/errors.json +0 -18
  101. package/package/frontend/template-partials/translations/src/cy/terms.json +0 -28
  102. package/package/frontend/template-partials/translations/src/en/accessibility.json +0 -43
  103. package/package/frontend/template-partials/translations/src/en/base.json +0 -5
  104. package/package/frontend/template-partials/translations/src/en/buttons.json +0 -10
  105. package/package/frontend/template-partials/translations/src/en/cookies.json +0 -116
  106. package/package/frontend/template-partials/translations/src/en/errorlist.json +0 -7
  107. package/package/frontend/template-partials/translations/src/en/errors.json +0 -35
  108. package/package/frontend/template-partials/translations/src/en/exit.json +0 -5
  109. package/package/frontend/template-partials/translations/src/en/fields.json +0 -5
  110. package/package/frontend/template-partials/translations/src/en/journey.json +0 -6
  111. package/package/frontend/template-partials/translations/src/en/save-and-exit.json +0 -4
  112. package/package/frontend/template-partials/translations/src/en/terms.json +0 -28
  113. package/package/frontend/template-partials/views/404.html +0 -9
  114. package/package/frontend/template-partials/views/accessibility.html +0 -55
  115. package/package/frontend/template-partials/views/confirm.html +0 -8
  116. package/package/frontend/template-partials/views/confirmation.html +0 -19
  117. package/package/frontend/template-partials/views/content/en/what-happens-next.md +0 -0
  118. package/package/frontend/template-partials/views/cookie-error.html +0 -1
  119. package/package/frontend/template-partials/views/cookies.html +0 -84
  120. package/package/frontend/template-partials/views/email/data-row.html +0 -4
  121. package/package/frontend/template-partials/views/email/formatted.html +0 -12
  122. package/package/frontend/template-partials/views/email/layout.html +0 -63
  123. package/package/frontend/template-partials/views/email/raw.html +0 -11
  124. package/package/frontend/template-partials/views/email/section-row.html +0 -3
  125. package/package/frontend/template-partials/views/error.html +0 -20
  126. package/package/frontend/template-partials/views/exit.html +0 -9
  127. package/package/frontend/template-partials/views/feedback-submitted.html +0 -11
  128. package/package/frontend/template-partials/views/layout.html +0 -55
  129. package/package/frontend/template-partials/views/partials/analytics-table.html +0 -25
  130. package/package/frontend/template-partials/views/partials/back.html +0 -5
  131. package/package/frontend/template-partials/views/partials/bullet-list.html +0 -7
  132. package/package/frontend/template-partials/views/partials/confirmation-alert.html +0 -6
  133. package/package/frontend/template-partials/views/partials/continue.html +0 -5
  134. package/package/frontend/template-partials/views/partials/cookie-banner.html +0 -29
  135. package/package/frontend/template-partials/views/partials/cookie-notification.html +0 -4
  136. package/package/frontend/template-partials/views/partials/cookie-settings-button.html +0 -1
  137. package/package/frontend/template-partials/views/partials/cookie-settings-radio.html +0 -8
  138. package/package/frontend/template-partials/views/partials/details-summary.html +0 -8
  139. package/package/frontend/template-partials/views/partials/external-link.html +0 -1
  140. package/package/frontend/template-partials/views/partials/form.html +0 -10
  141. package/package/frontend/template-partials/views/partials/gatag.html +0 -60
  142. package/package/frontend/template-partials/views/partials/head.html +0 -31
  143. package/package/frontend/template-partials/views/partials/heading.html +0 -11
  144. package/package/frontend/template-partials/views/partials/items-table.html +0 -32
  145. package/package/frontend/template-partials/views/partials/maincontent-left.html +0 -10
  146. package/package/frontend/template-partials/views/partials/navigation.html +0 -8
  147. package/package/frontend/template-partials/views/partials/page.html +0 -23
  148. package/package/frontend/template-partials/views/partials/panel-indent.html +0 -3
  149. package/package/frontend/template-partials/views/partials/session-cookies-table.html +0 -28
  150. package/package/frontend/template-partials/views/partials/session-timeout-warning.html +0 -38
  151. package/package/frontend/template-partials/views/partials/summary-table-row.html +0 -14
  152. package/package/frontend/template-partials/views/partials/summary-table.html +0 -8
  153. package/package/frontend/template-partials/views/partials/table.html +0 -18
  154. package/package/frontend/template-partials/views/partials/validation-list.html +0 -3
  155. package/package/frontend/template-partials/views/partials/validation-summary.html +0 -25
  156. package/package/frontend/template-partials/views/partials/warn.html +0 -7
  157. package/package/frontend/template-partials/views/rate-limit-error.html +0 -10
  158. package/package/frontend/template-partials/views/save-and-exit.html +0 -17
  159. package/package/frontend/template-partials/views/service-unavailable.html +0 -13
  160. package/package/frontend/template-partials/views/session-timeout.html +0 -7
  161. package/package/frontend/template-partials/views/step.html +0 -14
  162. package/package/frontend/template-partials/views/terms.html +0 -26
  163. package/package/frontend/themes/gov-uk/client-js/cookieSettings.js +0 -145
  164. package/package/frontend/themes/gov-uk/client-js/govuk-cookies.js +0 -121
  165. package/package/frontend/themes/gov-uk/client-js/index.js +0 -27
  166. package/package/frontend/themes/gov-uk/client-js/session-timeout-dialog.js +0 -348
  167. package/package/frontend/themes/gov-uk/client-js/skip-to-main.js +0 -19
  168. package/package/frontend/themes/gov-uk/index.js +0 -9
  169. package/package/frontend/themes/gov-uk/styles/_base.scss +0 -17
  170. package/package/frontend/themes/gov-uk/styles/_check_your_answers.scss +0 -155
  171. package/package/frontend/themes/gov-uk/styles/_cookie-banner.scss +0 -111
  172. package/package/frontend/themes/gov-uk/styles/_cookie-settings.scss +0 -33
  173. package/package/frontend/themes/gov-uk/styles/_govuk_frontend_toolkit.scss +0 -23
  174. package/package/frontend/themes/gov-uk/styles/_helpers.scss +0 -5
  175. package/package/frontend/themes/gov-uk/styles/_layout.scss +0 -125
  176. package/package/frontend/themes/gov-uk/styles/_panel-indent.scss +0 -27
  177. package/package/frontend/themes/gov-uk/styles/_pdf.scss +0 -42
  178. package/package/frontend/themes/gov-uk/styles/_session-timeout-dialog.scss +0 -121
  179. package/package/frontend/themes/gov-uk/styles/_typography.scss +0 -27
  180. package/package/frontend/themes/gov-uk/styles/_variables.scss +0 -11
  181. package/package/frontend/themes/gov-uk/styles/govuk.scss +0 -43
  182. package/package/frontend/themes/gov-uk/styles/mixins.scss +0 -16
  183. package/package/frontend/themes/gov-uk/styles/modules/_alerts.scss +0 -73
  184. package/package/frontend/themes/gov-uk/styles/modules/_buttons.scss +0 -5
  185. package/package/frontend/themes/gov-uk/styles/modules/_character-count.scss +0 -8
  186. package/package/frontend/themes/gov-uk/styles/modules/_confirm-page.scss +0 -20
  187. package/package/frontend/themes/gov-uk/styles/modules/_lists.scss +0 -5
  188. package/package/frontend/themes/gov-uk/styles/modules/_progressive-reveal.scss +0 -17
  189. package/package/frontend/themes/gov-uk/styles/modules/_validation.scss +0 -51
  190. package/package/frontend/themes/index.js +0 -5
  191. package/package/frontend/toolkit/assets/images/passports/new-window-link-blue.png +0 -0
  192. package/package/frontend/toolkit/assets/images/passports/new-window-link.png +0 -0
  193. package/package/frontend/toolkit/assets/images/spinner.gif +0 -0
  194. package/package/frontend/toolkit/assets/javascript/character-count.js +0 -99
  195. package/package/frontend/toolkit/assets/javascript/form-focus.js +0 -101
  196. package/package/frontend/toolkit/assets/javascript/helpers.js +0 -177
  197. package/package/frontend/toolkit/assets/javascript/progressive-reveal.js +0 -72
  198. package/package/frontend/toolkit/assets/javascript/validation.js +0 -71
  199. package/package/frontend/toolkit/assets/javascript/vendor/details.polyfill.js +0 -189
  200. package/package/frontend/toolkit/assets/javascript/vendor/indexof.polyfill.js +0 -39
  201. package/package/frontend/toolkit/assets/javascript/vendor/safari-cachebuster.js +0 -6
  202. package/package/frontend/toolkit/assets/stylesheets/_base.scss +0 -17
  203. package/package/frontend/toolkit/assets/stylesheets/_helpers.scss +0 -5
  204. package/package/frontend/toolkit/assets/stylesheets/_layout.scss +0 -118
  205. package/package/frontend/toolkit/assets/stylesheets/_typography.scss +0 -27
  206. package/package/frontend/toolkit/assets/stylesheets/_variables.scss +0 -11
  207. package/package/frontend/toolkit/assets/stylesheets/app.scss +0 -30
  208. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_buttons.scss +0 -47
  209. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_details.scss +0 -38
  210. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_elements-typography.scss +0 -175
  211. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_forms.scss +0 -167
  212. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_helpers.scss +0 -39
  213. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_layout.scss +0 -67
  214. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_lists.scss +0 -40
  215. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_panels.scss +0 -29
  216. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_reset.scss +0 -33
  217. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_tables.scss +0 -33
  218. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/forms/_form-block-labels.scss +0 -63
  219. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/forms/_form-date.scss +0 -39
  220. package/package/frontend/toolkit/assets/stylesheets/govuk-elements/forms/_form-validation.scss +0 -63
  221. package/package/frontend/toolkit/assets/stylesheets/mixins.scss +0 -16
  222. package/package/frontend/toolkit/assets/stylesheets/modules/_alerts.scss +0 -73
  223. package/package/frontend/toolkit/assets/stylesheets/modules/_buttons.scss +0 -5
  224. package/package/frontend/toolkit/assets/stylesheets/modules/_confirm-page.scss +0 -20
  225. package/package/frontend/toolkit/assets/stylesheets/modules/_lists.scss +0 -5
  226. package/package/frontend/toolkit/assets/stylesheets/modules/_progressive-reveal.scss +0 -17
  227. package/package/frontend/toolkit/assets/stylesheets/modules/_validation.scss +0 -51
  228. package/package/frontend/toolkit/index.js +0 -10
  229. package/package/index.js +0 -351
  230. package/package/lib/deindex.js +0 -18
  231. package/package/lib/encryption.js +0 -23
  232. package/package/lib/ga-tag.js +0 -89
  233. package/package/lib/health.js +0 -26
  234. package/package/lib/helpers.js +0 -66
  235. package/package/lib/logger.js +0 -65
  236. package/package/lib/markdown.js +0 -46
  237. package/package/lib/router.js +0 -111
  238. package/package/lib/serve-static.js +0 -12
  239. package/package/lib/sessions.js +0 -82
  240. package/package/lib/settings.js +0 -74
  241. package/package/lib/which.js +0 -28
  242. package/package/middleware/cookies.js +0 -43
  243. package/package/middleware/deep-translate.js +0 -32
  244. package/package/middleware/errors.js +0 -119
  245. package/package/middleware/index.js +0 -10
  246. package/package/middleware/not-found.js +0 -38
  247. package/package/middleware/rate-limiter.js +0 -98
  248. package/package/middleware/service-unavailable.js +0 -64
  249. package/package/model/apis/axios-settings.js +0 -21
  250. package/package/model/apis/html-to-pdf-converter.js +0 -35
  251. package/package/model/apis/index.js +0 -5
  252. package/package/model/index.js +0 -348
  253. package/package/package.json +0 -147
  254. package/package/sandbox/README.md +0 -66
  255. package/package/sandbox/apps/sandbox/behaviours/clear-session.js +0 -8
  256. package/package/sandbox/apps/sandbox/behaviours/country-select.js +0 -10
  257. package/package/sandbox/apps/sandbox/behaviours/international-number.js +0 -22
  258. package/package/sandbox/apps/sandbox/fields.js +0 -128
  259. package/package/sandbox/apps/sandbox/index.js +0 -99
  260. package/package/sandbox/apps/sandbox/lib/staticAppealStages.js +0 -189
  261. package/package/sandbox/apps/sandbox/sections/summary-data-sections.js +0 -43
  262. package/package/sandbox/apps/sandbox/translations/src/en/errors.json +0 -5
  263. package/package/sandbox/apps/sandbox/translations/src/en/exit.json +0 -4
  264. package/package/sandbox/apps/sandbox/translations/src/en/fields.json +0 -101
  265. package/package/sandbox/apps/sandbox/translations/src/en/journey.json +0 -7
  266. package/package/sandbox/apps/sandbox/translations/src/en/pages.json +0 -72
  267. package/package/sandbox/apps/sandbox/translations/src/en/validation.json +0 -54
  268. package/package/sandbox/apps/sandbox/views/form-guidance-link.html +0 -8
  269. package/package/sandbox/apps/sandbox/views/save-and-exit.html +0 -19
  270. package/package/sandbox/assets/images/icons/icon-caret-left.png +0 -0
  271. package/package/sandbox/assets/images/icons/icon-complete.png +0 -0
  272. package/package/sandbox/assets/images/icons/icon-cross-remove-sign.png +0 -0
  273. package/package/sandbox/assets/js/index.js +0 -70
  274. package/package/sandbox/assets/scss/app.scss +0 -27
  275. package/package/sandbox/codecept.conf.js +0 -15
  276. package/package/sandbox/config.js +0 -17
  277. package/package/sandbox/package.json +0 -26
  278. package/package/sandbox/server.js +0 -23
  279. package/package/sandbox/yarn.lock +0 -262
  280. package/package/transpiler/index.js +0 -2
  281. package/package/transpiler/lib/aggregate.js +0 -32
  282. package/package/transpiler/lib/build.js +0 -15
  283. package/package/transpiler/lib/compile.js +0 -12
  284. package/package/transpiler/lib/expand-dirs.js +0 -14
  285. package/package/transpiler/lib/write-files.js +0 -24
  286. package/package/utilities/autofill/index.js +0 -189
  287. package/package/utilities/autofill/inputs.js +0 -60
  288. package/package/utilities/countries.js +0 -12
  289. package/package/utilities/helpers/index.js +0 -189
  290. package/package/utilities/index.js +0 -9
  291. package/package/utilities/reqres/index.js +0 -18
  292. package/package/utilities/test-data/data/domain.json +0 -7
  293. package/package/utilities/test-data/data/firstname.json +0 -16
  294. package/package/utilities/test-data/data/lastname.json +0 -10
  295. package/package/utilities/test-data/data/postcode.json +0 -12
  296. package/package/utilities/test-data/data/streetname.json +0 -8
  297. package/package/utilities/test-data/data/streetsuffix.json +0 -7
  298. package/package/utilities/test-data/data/town.json +0 -9
  299. package/package/utilities/test-data/index.js +0 -67
  300. package/package/wizard/behaviours/complete.js +0 -20
  301. package/package/wizard/behaviours/index.js +0 -5
  302. package/package/wizard/index.js +0 -124
  303. package/package/wizard/middleware/back-links.js +0 -68
  304. package/package/wizard/middleware/check-complete.js +0 -13
  305. package/package/wizard/middleware/check-progress.js +0 -139
  306. package/package/wizard/middleware/check-session.js +0 -17
  307. package/package/wizard/middleware/csrf.js +0 -47
  308. package/package/wizard/middleware/session-model.js +0 -11
  309. package/package/wizard/middleware/session.js +0 -9
  310. package/package/wizard/model.js +0 -29
  311. package/package/wizard/util/constants.js +0 -5
  312. package/package/wizard/util/helpers.js +0 -19
@@ -1,23 +0,0 @@
1
- // GOV.UK front end toolkit
2
- // Sass variables, mixins and functions
3
- // https://github.com/alphagov/govuk_frontend_toolkit/tree/master/stylesheets
4
-
5
- // Settings (variables)
6
- @import "govuk_frontend_toolkit/stylesheets/colours"; // Colour variables
7
- @import "govuk_frontend_toolkit/stylesheets/font_stack"; // Font family variables
8
- @import "govuk_frontend_toolkit/stylesheets/measurements"; // Widths and gutter variables
9
-
10
- // Mixins
11
- @import "govuk_frontend_toolkit/stylesheets/conditionals"; // Media query mixin
12
- @import "govuk_frontend_toolkit/stylesheets/device-pixels"; // Retina image mixin
13
- @import "govuk_frontend_toolkit/stylesheets/grid_layout"; // Basic grid layout mixin
14
- @import "govuk_frontend_toolkit/stylesheets/typography"; // Core bold and heading mixins, also external links
15
- @import "govuk_frontend_toolkit/stylesheets/shims"; // Inline block mixin, clearfix placeholder
16
-
17
- // Mixins to generate components (chunks of UI)
18
- @import "govuk_frontend_toolkit/stylesheets/design-patterns/alpha-beta";
19
- @import "govuk_frontend_toolkit/stylesheets/design-patterns/buttons";
20
- @import "govuk_frontend_toolkit/stylesheets/design-patterns/breadcrumbs";
21
-
22
- // Functions
23
- @import "govuk_frontend_toolkit/stylesheets/url-helpers"; // Function to output image-url, or prefixed path (Rails and Compass only)
@@ -1,5 +0,0 @@
1
- // Return ems from a pixel value
2
- // This assumes a base of 19px
3
- @function em($px, $base: 19) {
4
- @return ($px / $base) + em;
5
- }
@@ -1,125 +0,0 @@
1
- #global-header-bar {
2
- @extend %site-width-container;
3
- .inner-block {
4
- padding: 0;
5
- }
6
- }
7
-
8
- #content {
9
- margin: 0;
10
- }
11
-
12
- .main {
13
- @extend %site-width-container;
14
- padding-bottom: $gutter;
15
- @include media(desktop) {
16
- padding-bottom: $gutter*3;
17
- }
18
- }
19
-
20
- .grid-row {
21
- @extend %grid-row;
22
- position: relative;
23
- &#content {
24
- @extend %grid-row;
25
- }
26
- }
27
-
28
- .column-full {
29
- @include grid-column(1);
30
- }
31
-
32
- .column-one-third {
33
- @include grid-column(1/3, $full-width: desktop);
34
- }
35
-
36
- .column-half {
37
- @include grid-column(1/2, $full-width: desktop);
38
- }
39
-
40
- .column-two-thirds {
41
- @include grid-column(2/3, $full-width: desktop);
42
- }
43
-
44
- .column-right {
45
- @include media(desktop) {
46
- float: right;
47
- }
48
- }
49
-
50
- header {
51
- @extend %contain-floats;
52
- }
53
-
54
- .sidebar {
55
- border-top: 10px solid $mainstream-brand;
56
- }
57
-
58
- // layout for ie < 9
59
- $ie8-column-one-third: ( $site-width + $gutter ) / 3;
60
- $ie8-column-half: ( $site-width + $gutter ) / 2;
61
- $ie8-column-two-thirds: $ie8-column-one-third * 2;
62
-
63
- @mixin ie8-grid-column {
64
- float: left;
65
- padding: 0 $gutter-half;
66
- box-sizing: content-box;
67
- }
68
- @mixin ie8-column-two-thirds {
69
- @include ie8-grid-column;
70
- width: $ie8-column-two-thirds - $gutter;
71
- }
72
- @mixin ie8-column-half {
73
- @include ie8-grid-column;
74
- width: $ie8-column-half - $gutter;
75
- }
76
- @mixin ie8-column-one-third {
77
- @include ie8-grid-column;
78
- width: $ie8-column-one-third - $gutter;
79
- }
80
-
81
- .lte-ie8 {
82
- #global-header-bar, #global-breadcrumb {
83
- width: $site-width;
84
- max-width: inherit;
85
- margin: 0 auto;
86
- .inner-block {
87
- margin: 0;
88
- padding: 0;
89
- }
90
- }
91
- #content {
92
- width: $site-width;
93
- max-width: inherit;
94
- margin: 0 auto;
95
- padding-bottom: 3*$gutter;
96
- }
97
- .grid-row {
98
- width: $site-width + $gutter;
99
- }
100
- .column-two-thirds {
101
- @include ie8-column-two-thirds;
102
- .grid-row {
103
- width: $ie8-column-two-thirds;
104
- }
105
- .column-two-thirds {
106
- width: $ie8-column-two-thirds / 3 * 2 - $gutter;
107
- }
108
- .column-one-third {
109
- width: $ie8-column-two-thirds / 3 - $gutter;
110
- }
111
- }
112
- .column-half {
113
- @include ie8-column-half;
114
- }
115
- .column-one-third {
116
- @include ie8-column-one-third;
117
- }
118
- .column-right {
119
- float: right;
120
- }
121
- .phase-banner, #back {
122
- width: $site-width;
123
- margin: 0 auto;
124
- }
125
- }
@@ -1,27 +0,0 @@
1
- // Panels gov.uk elements version 2.0
2
- // ==========================================================================
3
- // Now deprecated
4
-
5
- // Indented panels with a grey left hand border
6
- .panel-indent {
7
- @extend %contain-floats;
8
- clear: both;
9
- border-left: 4px solid $border-colour;
10
-
11
- padding: 10px 0 10px $gutter-half;
12
- margin: ($gutter $gutter-half $gutter*1.5 0);
13
- }
14
-
15
- .panel-indent legend {
16
- margin-top: 0;
17
- }
18
-
19
- // Remove bottom margin on last paragraph
20
- .panel-indent p:only-child,
21
- .panel-indent p:last-child {
22
- margin-bottom: 0;
23
- }
24
-
25
- .panel-indent .form-group:last-child {
26
- margin-bottom: 0;
27
- }
@@ -1,42 +0,0 @@
1
- .pdf {
2
- #global-header,
3
- footer,
4
- #declaration-section,
5
- #skiplink-container
6
- {
7
- display: none;
8
- }
9
-
10
- table {
11
- table-layout: fixed;
12
- width: 100%;
13
- }
14
-
15
- h1 {
16
- font-size: 30px;
17
- margin-top: 20px;
18
- }
19
- img {
20
- width: 240px;
21
- }
22
- table.table-details {
23
- margin-bottom: 0;
24
- border-top: 1px solid #000000;
25
- }
26
- table.table-details:first-of-type {
27
- border-top: none;
28
- }
29
- table td:nth-child(2) {
30
- word-wrap: break-word;
31
- }
32
- table td:nth-child(3) {
33
- display: none;
34
- }
35
- table td {
36
- padding: 10px 0;
37
- border-bottom: 1px #ccc solid;
38
- }
39
- #content {
40
- padding-bottom: 0;
41
- }
42
- }
@@ -1,121 +0,0 @@
1
- .modal-dialog {
2
- display: none;
3
- }
4
-
5
- .modal-dialog--no-js-persistent {
6
- display: inline-block;
7
- }
8
-
9
- .js-enabled {
10
- .modal-dialog--no-js-persistent {
11
- display: none;
12
-
13
- &[open], .dialog-button {
14
- display: inline-block;
15
- }
16
- }
17
-
18
- .modal-dialog[open] {
19
- display: inline-block;
20
- }
21
- }
22
-
23
- .modal-dialog[open] {
24
- overflow-x: hidden;
25
- overflow-y: auto;
26
- max-height: 90vh;
27
- padding: 0;
28
- margin-bottom: 0;
29
- margin-top: 0;
30
- position: fixed;
31
- top: 50% !important;
32
- -webkit-transform: translate(0, -50%);
33
- -ms-transform: translate(0, -50%);
34
- transform: translate(0, -50%);
35
- }
36
-
37
- @media (min-width: 641px) {
38
- .modal-dialog[open] {
39
- padding: 0;
40
- }
41
- }
42
-
43
- .modal-dialog__inner {
44
- padding: 20px;
45
- }
46
-
47
- .modal-dialog #dialog-title {
48
- margin-top: 0;
49
- }
50
-
51
- .dialog-is-open {
52
- overflow: hidden;
53
- }
54
-
55
- dialog {
56
- left: 0;
57
- right: 0;
58
- width: -moz-fit-content;
59
- width: -webkit-fit-content;
60
- width: fit-content;
61
- height: -moz-fit-content;
62
- height: -webkit-fit-content;
63
- height: fit-content;
64
- margin: auto;
65
- border: solid;
66
- padding: 1em;
67
- background: white;
68
- color: black;
69
- display: none;
70
- border: 5px solid black;
71
-
72
- + .backdrop {
73
- position: fixed;
74
- top: 0;
75
- right: 0;
76
- bottom: 0;
77
- left: 0;
78
- background: rgba(0, 0, 0, 0.8);
79
- }
80
-
81
- &[open] {
82
- display: block;
83
- box-sizing: border-box;
84
- margin: 0 auto;
85
- padding: 15px;
86
- width: 90%;
87
-
88
- + .backdrop, &::backdrop {
89
- background: rgba(0, 0, 0, 0.8);
90
- }
91
- }
92
- }
93
-
94
- @media (min-width: 641px) {
95
- dialog[open] {
96
- padding: 30px;
97
- margin: 30px auto;
98
- max-width: 500px;
99
- }
100
- }
101
-
102
- .js-enabled .govuk-timeout-warning-fallback {
103
- display: none;
104
- }
105
-
106
- .tabular-numbers {
107
- font-family: "ntatabularnumbers", "nta", Arial, sans-serif;
108
- }
109
-
110
- .dialog-exit-link {
111
- @include govuk-font($size: 24);
112
- display: inline-block;
113
-
114
- @include govuk-media-query($from: tablet) {
115
- @include govuk-font($size: 19);
116
-
117
- position: relative;
118
- padding: 0.526315em 0.789473em 0.263157em;
119
- line-height: 1.5;
120
- }
121
- }
@@ -1,27 +0,0 @@
1
- .bold {
2
- font-weight: bold;
3
- }
4
- .uppercase {
5
- text-transform: uppercase;
6
- }
7
-
8
- h1 {
9
- @extend .heading-large;
10
- }
11
- h2 {
12
- @extend .heading-medium;
13
- }
14
- h3 {
15
- @extend .heading-small;
16
- }
17
- strong {
18
- font-weight: bold;
19
- }
20
-
21
- .new-window {
22
- padding-right: 17px;
23
- background: file-url("passports/new-window-link.png") right center no-repeat;
24
- &:hover {
25
- background-image: file-url("passports/new-window-link-blue.png");
26
- }
27
- }
@@ -1,11 +0,0 @@
1
- // layout
2
- $header-border-width: 10px;
3
- $header-border: $header-border-width solid $govuk-blue;
4
-
5
- // forms
6
- $focus-border-width: 3px;
7
- $focus-outline: $focus-border-width solid $yellow;
8
-
9
- // validation
10
- $validation-bdr-size: 3px;
11
- $validation-bdr-size-lg: $validation-bdr-size + 1;
@@ -1,43 +0,0 @@
1
- // App styles
2
-
3
- // set the default image directory
4
- $path: "/public/images/" !default;
5
-
6
- // GOV.UK front end toolkit
7
- // Sass variables, mixins and functions
8
- // https://github.com/alphagov/govuk_frontend_toolkit/tree/master/stylesheets
9
- @import "govuk_frontend_toolkit";
10
-
11
- // GOV.UK elements
12
- // https://github.com/alphagov/govuk_elements/blob/master/packages/govuk-elements-sass/public/sass/_elements.scss
13
- @import "govuk-elements-sass/public/sass/elements";
14
-
15
- // Govuk frontend
16
- // https://github.com/alphagov/govuk-frontend-docs
17
- @import "govuk-frontend";
18
-
19
- // Custom
20
- @import "base";
21
- @import "layout";
22
- @import "typography";
23
- @import "variables";
24
- @import "helpers";
25
- @import "cookie-banner";
26
- @import "cookie-settings";
27
- @import "check_your_answers";
28
- @import "pdf";
29
- @import "session-timeout-dialog";
30
-
31
- // Modules
32
- @import "modules/validation";
33
- @import "modules/progressive-reveal";
34
- @import "modules/buttons";
35
- @import "modules/lists";
36
- @import "modules/alerts";
37
- @import "modules/character-count";
38
-
39
- // Pages
40
- @import "modules/confirm-page";
41
-
42
- // Deprecated panel style from gov.uk elements version 2.0
43
- @import "panel-indent";
@@ -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,8 +0,0 @@
1
- .maxlength-hint {
2
- margin-top: 2px;
3
- padding-top: 2px;
4
- }
5
-
6
- .textarea-error {
7
- border: 2px solid $error-colour;
8
- }
@@ -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
- }
@@ -1,17 +0,0 @@
1
- .reveal {
2
- float: left;
3
- width: 100%;
4
- .panel-indent {
5
- margin-top: $gutter-half / 2;
6
- margin-bottom: $gutter-half;
7
- }
8
- }
9
-
10
- fieldset + .reveal {
11
- margin-top: -$gutter-half;
12
- margin-bottom: $gutter-half;
13
- @include media(tablet) {
14
- margin-top: -$gutter;
15
- margin-bottom: $gutter;
16
- }
17
- }
@@ -1,51 +0,0 @@
1
- .validation-summary {
2
- padding-left: $gutter-half - $validation-bdr-size-lg;
3
- padding-right: $gutter-half;
4
- border-width: $validation-bdr-size-lg;
5
-
6
- &:focus {
7
- outline: $focus-outline;
8
- }
9
-
10
- h2 {
11
- margin: 0.3em 0;
12
- }
13
- ul {
14
- margin: 0;
15
- li {
16
- margin: 0;
17
- padding: 3px 0;
18
- }
19
- }
20
- a {
21
- @include bold-19;
22
- }
23
- }
24
-
25
- .govuk-form-group--error {
26
- box-sizing: border-box;
27
- padding-left: $gutter-half - $validation-bdr-size;
28
- //border-left: $validation-bdr-size-lg solid $error-colour;
29
-
30
- &:focus {
31
- outline: $focus-outline;
32
- }
33
-
34
- .form-control {
35
- margin-bottom: $validation-bdr-size;
36
- }
37
- }
38
-
39
- .govuk-error-message {
40
- display: block;
41
- @include media(tablet) {
42
- margin-bottom: 0.5em;
43
- }
44
- @include bold-19;
45
- //color: $error-colour;
46
- }
47
-
48
- .invalid-input,
49
- .govuk-form-group--error .date-input {
50
- border: $validation-bdr-size solid $error-colour;
51
- }
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- govUK: require('./gov-uk')
5
- };