hof 22.8.4 → 22.9.0-beta.v1
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.
- package/CHANGELOG.md +16 -0
- package/README.md +30 -0
- package/config/hof-defaults.js +6 -1
- package/frontend/govuk-template/govuk_template_generated.html +102 -0
- package/frontend/template-partials/views/layout.html +2 -8
- package/frontend/themes/gov-uk/styles/_cookie-banner.scss +0 -3
- package/lib/settings.js +1 -0
- package/package/.eslintignore +1 -0
- package/package/CHANGELOG.md +232 -0
- package/package/LICENSE +21 -0
- package/package/README.md +1887 -0
- package/package/bin/hof-build +10 -0
- package/package/bin/hof-transpiler +12 -0
- package/package/build/helpers/importer.js +29 -0
- package/package/build/helpers/local.js +35 -0
- package/package/build/helpers/resolver/import.js +32 -0
- package/package/build/helpers/resolver/nearest-package-root.js +33 -0
- package/package/build/helpers/resolver/package.js +29 -0
- package/package/build/helpers/resolver.js +16 -0
- package/package/build/index.js +49 -0
- package/package/build/lib/env.js +36 -0
- package/package/build/lib/mkdir.js +9 -0
- package/package/build/lib/run.js +17 -0
- package/package/build/lib/spawn.js +18 -0
- package/package/build/tasks/browserify/compress.js +15 -0
- package/package/build/tasks/browserify/index.js +48 -0
- package/package/build/tasks/build/index.js +6 -0
- package/package/build/tasks/images/index.js +27 -0
- package/package/build/tasks/index.js +8 -0
- package/package/build/tasks/sass/index.js +67 -0
- package/package/build/tasks/translate/index.js +20 -0
- package/package/build/tasks/watch/index.js +161 -0
- package/package/components/address-lookup/default-model.js +76 -0
- package/package/components/address-lookup/defaults.js +25 -0
- package/package/components/address-lookup/index.js +251 -0
- package/package/components/address-lookup/templates/address-lookup.html +14 -0
- package/package/components/address-lookup/templates/address.html +22 -0
- package/package/components/address-lookup/templates/postcode.html +9 -0
- package/package/components/clear-session/Readme.md +46 -0
- package/package/components/clear-session/index.js +26 -0
- package/package/components/combine-and-loop-fields/Readme.md +42 -0
- package/package/components/combine-and-loop-fields/index.js +156 -0
- package/package/components/date/fields.js +16 -0
- package/package/components/date/index.js +172 -0
- package/package/components/date/templates/date.html +20 -0
- package/package/components/emailer/assets/images/govuk_logotype_email.png +0 -0
- package/package/components/emailer/assets/images/ho_crest_27px.png +0 -0
- package/package/components/emailer/assets/images/spacer.gif +0 -0
- package/package/components/emailer/email-service.js +51 -0
- package/package/components/emailer/emailer.js +53 -0
- package/package/components/emailer/index.js +74 -0
- package/package/components/emailer/transports/debug.js +74 -0
- package/package/components/emailer/transports/index.js +8 -0
- package/package/components/emailer/transports/ses.js +36 -0
- package/package/components/emailer/transports/smtp.js +26 -0
- package/package/components/emailer/transports/stub.js +5 -0
- package/package/components/emailer/views/layout.html +63 -0
- package/package/components/homeoffice-countries/index.js +22 -0
- package/package/components/index.js +13 -0
- package/package/components/notify/index.js +62 -0
- package/package/components/notify/notify.js +51 -0
- package/package/components/session-timeout-warning/index.js +67 -0
- package/package/components/summary/index.js +237 -0
- package/package/config/builder-defaults.js +45 -0
- package/package/config/component-defaults.js +13 -0
- package/package/config/hof-defaults.js +65 -0
- package/package/config/rate-limits.js +20 -0
- package/package/config/sanitisation-rules.js +32 -0
- package/package/controller/base-controller.js +296 -0
- package/package/controller/behaviour-hooks.js +51 -0
- package/package/controller/behaviour-session.js +64 -0
- package/package/controller/controller.js +258 -0
- package/package/controller/deprecate-error.js +10 -0
- package/package/controller/formatting/formatters.js +70 -0
- package/package/controller/formatting/index.js +32 -0
- package/package/controller/index.js +17 -0
- package/package/controller/validation/email.js +30 -0
- package/package/controller/validation/index.js +101 -0
- package/package/controller/validation/validators.js +181 -0
- package/package/controller/validation-error.js +14 -0
- package/package/frontend/govuk-template/build/config.js +24 -0
- package/package/frontend/govuk-template/build/govuk_template.html +102 -0
- package/package/frontend/govuk-template/build/index.js +23 -0
- package/package/frontend/govuk-template/govuk_template_generated.html +102 -0
- package/package/frontend/govuk-template/index.js +29 -0
- package/package/frontend/index.js +9 -0
- package/package/frontend/template-mixins/mixins/helpers.js +103 -0
- package/package/frontend/template-mixins/mixins/index.js +37 -0
- package/package/frontend/template-mixins/mixins/render.js +12 -0
- package/package/frontend/template-mixins/mixins/template-mixins.js +520 -0
- package/package/frontend/template-mixins/partials/forms/checkbox-group.html +47 -0
- package/package/frontend/template-mixins/partials/forms/checkbox.html +16 -0
- package/package/frontend/template-mixins/partials/forms/input-submit.html +1 -0
- package/package/frontend/template-mixins/partials/forms/input-text-date.html +37 -0
- package/package/frontend/template-mixins/partials/forms/input-text-group.html +45 -0
- package/package/frontend/template-mixins/partials/forms/option-group.html +43 -0
- package/package/frontend/template-mixins/partials/forms/select.html +17 -0
- package/package/frontend/template-mixins/partials/forms/textarea-group.html +37 -0
- package/package/frontend/template-mixins/partials/mixins/panel.html +4 -0
- package/package/frontend/template-partials/index.js +9 -0
- package/package/frontend/template-partials/translations/index.js +26 -0
- package/package/frontend/template-partials/translations/src/cy/base.json +4 -0
- package/package/frontend/template-partials/translations/src/cy/buttons.json +6 -0
- package/package/frontend/template-partials/translations/src/cy/cookies.json +104 -0
- package/package/frontend/template-partials/translations/src/cy/errorlist.json +6 -0
- package/package/frontend/template-partials/translations/src/cy/errors.json +18 -0
- package/package/frontend/template-partials/translations/src/cy/terms.json +28 -0
- package/package/frontend/template-partials/translations/src/en/accessibility.json +43 -0
- package/package/frontend/template-partials/translations/src/en/base.json +5 -0
- package/package/frontend/template-partials/translations/src/en/buttons.json +10 -0
- package/package/frontend/template-partials/translations/src/en/cookies.json +116 -0
- package/package/frontend/template-partials/translations/src/en/errorlist.json +7 -0
- package/package/frontend/template-partials/translations/src/en/errors.json +35 -0
- package/package/frontend/template-partials/translations/src/en/exit.json +5 -0
- package/package/frontend/template-partials/translations/src/en/fields.json +5 -0
- package/package/frontend/template-partials/translations/src/en/journey.json +6 -0
- package/package/frontend/template-partials/translations/src/en/save-and-exit.json +4 -0
- package/package/frontend/template-partials/translations/src/en/terms.json +28 -0
- package/package/frontend/template-partials/views/404.html +9 -0
- package/package/frontend/template-partials/views/accessibility.html +55 -0
- package/package/frontend/template-partials/views/confirm.html +8 -0
- package/package/frontend/template-partials/views/confirmation.html +19 -0
- package/package/frontend/template-partials/views/content/en/what-happens-next.md +0 -0
- package/package/frontend/template-partials/views/cookie-error.html +1 -0
- package/package/frontend/template-partials/views/cookies.html +84 -0
- package/package/frontend/template-partials/views/email/data-row.html +4 -0
- package/package/frontend/template-partials/views/email/formatted.html +12 -0
- package/package/frontend/template-partials/views/email/layout.html +63 -0
- package/package/frontend/template-partials/views/email/raw.html +11 -0
- package/package/frontend/template-partials/views/email/section-row.html +3 -0
- package/package/frontend/template-partials/views/error.html +20 -0
- package/package/frontend/template-partials/views/exit.html +9 -0
- package/package/frontend/template-partials/views/feedback-submitted.html +11 -0
- package/package/frontend/template-partials/views/layout.html +55 -0
- package/package/frontend/template-partials/views/partials/analytics-table.html +25 -0
- package/package/frontend/template-partials/views/partials/back.html +5 -0
- package/package/frontend/template-partials/views/partials/bullet-list.html +7 -0
- package/package/frontend/template-partials/views/partials/confirmation-alert.html +6 -0
- package/package/frontend/template-partials/views/partials/continue.html +5 -0
- package/package/frontend/template-partials/views/partials/cookie-banner.html +29 -0
- package/package/frontend/template-partials/views/partials/cookie-notification.html +4 -0
- package/package/frontend/template-partials/views/partials/cookie-settings-button.html +1 -0
- package/package/frontend/template-partials/views/partials/cookie-settings-radio.html +8 -0
- package/package/frontend/template-partials/views/partials/details-summary.html +8 -0
- package/package/frontend/template-partials/views/partials/external-link.html +1 -0
- package/package/frontend/template-partials/views/partials/form.html +10 -0
- package/package/frontend/template-partials/views/partials/gatag.html +60 -0
- package/package/frontend/template-partials/views/partials/head.html +31 -0
- package/package/frontend/template-partials/views/partials/heading.html +11 -0
- package/package/frontend/template-partials/views/partials/items-table.html +32 -0
- package/package/frontend/template-partials/views/partials/maincontent-left.html +10 -0
- package/package/frontend/template-partials/views/partials/navigation.html +8 -0
- package/package/frontend/template-partials/views/partials/page.html +23 -0
- package/package/frontend/template-partials/views/partials/panel-indent.html +3 -0
- package/package/frontend/template-partials/views/partials/session-cookies-table.html +28 -0
- package/package/frontend/template-partials/views/partials/session-timeout-warning.html +38 -0
- package/package/frontend/template-partials/views/partials/summary-table-row.html +14 -0
- package/package/frontend/template-partials/views/partials/summary-table.html +8 -0
- package/package/frontend/template-partials/views/partials/table.html +18 -0
- package/package/frontend/template-partials/views/partials/validation-list.html +3 -0
- package/package/frontend/template-partials/views/partials/validation-summary.html +25 -0
- package/package/frontend/template-partials/views/partials/warn.html +7 -0
- package/package/frontend/template-partials/views/rate-limit-error.html +10 -0
- package/package/frontend/template-partials/views/save-and-exit.html +17 -0
- package/package/frontend/template-partials/views/service-unavailable.html +13 -0
- package/package/frontend/template-partials/views/session-timeout.html +7 -0
- package/package/frontend/template-partials/views/step.html +14 -0
- package/package/frontend/template-partials/views/terms.html +26 -0
- package/package/frontend/themes/gov-uk/client-js/cookieSettings.js +145 -0
- package/package/frontend/themes/gov-uk/client-js/govuk-cookies.js +121 -0
- package/package/frontend/themes/gov-uk/client-js/index.js +27 -0
- package/package/frontend/themes/gov-uk/client-js/session-timeout-dialog.js +348 -0
- package/package/frontend/themes/gov-uk/client-js/skip-to-main.js +19 -0
- package/package/frontend/themes/gov-uk/index.js +9 -0
- package/package/frontend/themes/gov-uk/styles/_base.scss +17 -0
- package/package/frontend/themes/gov-uk/styles/_check_your_answers.scss +155 -0
- package/package/frontend/themes/gov-uk/styles/_cookie-banner.scss +111 -0
- package/package/frontend/themes/gov-uk/styles/_cookie-settings.scss +33 -0
- package/package/frontend/themes/gov-uk/styles/_govuk_frontend_toolkit.scss +23 -0
- package/package/frontend/themes/gov-uk/styles/_helpers.scss +5 -0
- package/package/frontend/themes/gov-uk/styles/_layout.scss +125 -0
- package/package/frontend/themes/gov-uk/styles/_panel-indent.scss +27 -0
- package/package/frontend/themes/gov-uk/styles/_pdf.scss +42 -0
- package/package/frontend/themes/gov-uk/styles/_session-timeout-dialog.scss +121 -0
- package/package/frontend/themes/gov-uk/styles/_typography.scss +27 -0
- package/package/frontend/themes/gov-uk/styles/_variables.scss +11 -0
- package/package/frontend/themes/gov-uk/styles/govuk.scss +43 -0
- package/package/frontend/themes/gov-uk/styles/mixins.scss +16 -0
- package/package/frontend/themes/gov-uk/styles/modules/_alerts.scss +73 -0
- package/package/frontend/themes/gov-uk/styles/modules/_buttons.scss +5 -0
- package/package/frontend/themes/gov-uk/styles/modules/_character-count.scss +8 -0
- package/package/frontend/themes/gov-uk/styles/modules/_confirm-page.scss +20 -0
- package/package/frontend/themes/gov-uk/styles/modules/_lists.scss +5 -0
- package/package/frontend/themes/gov-uk/styles/modules/_progressive-reveal.scss +17 -0
- package/package/frontend/themes/gov-uk/styles/modules/_validation.scss +51 -0
- package/package/frontend/themes/index.js +5 -0
- package/package/frontend/toolkit/assets/images/passports/new-window-link-blue.png +0 -0
- package/package/frontend/toolkit/assets/images/passports/new-window-link.png +0 -0
- package/package/frontend/toolkit/assets/images/spinner.gif +0 -0
- package/package/frontend/toolkit/assets/javascript/character-count.js +99 -0
- package/package/frontend/toolkit/assets/javascript/form-focus.js +101 -0
- package/package/frontend/toolkit/assets/javascript/helpers.js +177 -0
- package/package/frontend/toolkit/assets/javascript/progressive-reveal.js +72 -0
- package/package/frontend/toolkit/assets/javascript/validation.js +71 -0
- package/package/frontend/toolkit/assets/javascript/vendor/details.polyfill.js +189 -0
- package/package/frontend/toolkit/assets/javascript/vendor/indexof.polyfill.js +39 -0
- package/package/frontend/toolkit/assets/javascript/vendor/safari-cachebuster.js +6 -0
- package/package/frontend/toolkit/assets/stylesheets/_base.scss +17 -0
- package/package/frontend/toolkit/assets/stylesheets/_helpers.scss +5 -0
- package/package/frontend/toolkit/assets/stylesheets/_layout.scss +118 -0
- package/package/frontend/toolkit/assets/stylesheets/_typography.scss +27 -0
- package/package/frontend/toolkit/assets/stylesheets/_variables.scss +11 -0
- package/package/frontend/toolkit/assets/stylesheets/app.scss +30 -0
- package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_buttons.scss +47 -0
- package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_details.scss +38 -0
- package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_elements-typography.scss +175 -0
- package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_forms.scss +167 -0
- package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_helpers.scss +39 -0
- package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_layout.scss +67 -0
- package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_lists.scss +40 -0
- package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_panels.scss +29 -0
- package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_reset.scss +33 -0
- package/package/frontend/toolkit/assets/stylesheets/govuk-elements/_tables.scss +33 -0
- package/package/frontend/toolkit/assets/stylesheets/govuk-elements/forms/_form-block-labels.scss +63 -0
- package/package/frontend/toolkit/assets/stylesheets/govuk-elements/forms/_form-date.scss +39 -0
- package/package/frontend/toolkit/assets/stylesheets/govuk-elements/forms/_form-validation.scss +63 -0
- package/package/frontend/toolkit/assets/stylesheets/mixins.scss +16 -0
- package/package/frontend/toolkit/assets/stylesheets/modules/_alerts.scss +73 -0
- package/package/frontend/toolkit/assets/stylesheets/modules/_buttons.scss +5 -0
- package/package/frontend/toolkit/assets/stylesheets/modules/_confirm-page.scss +20 -0
- package/package/frontend/toolkit/assets/stylesheets/modules/_lists.scss +5 -0
- package/package/frontend/toolkit/assets/stylesheets/modules/_progressive-reveal.scss +17 -0
- package/package/frontend/toolkit/assets/stylesheets/modules/_validation.scss +51 -0
- package/package/frontend/toolkit/index.js +10 -0
- package/package/index.js +351 -0
- package/package/lib/deindex.js +18 -0
- package/package/lib/encryption.js +23 -0
- package/package/lib/ga-tag.js +89 -0
- package/package/lib/health.js +26 -0
- package/package/lib/helpers.js +66 -0
- package/package/lib/logger.js +65 -0
- package/package/lib/markdown.js +46 -0
- package/package/lib/router.js +111 -0
- package/package/lib/serve-static.js +12 -0
- package/package/lib/sessions.js +82 -0
- package/package/lib/settings.js +74 -0
- package/package/lib/which.js +28 -0
- package/package/middleware/cookies.js +43 -0
- package/package/middleware/deep-translate.js +32 -0
- package/package/middleware/errors.js +119 -0
- package/package/middleware/index.js +10 -0
- package/package/middleware/not-found.js +38 -0
- package/package/middleware/rate-limiter.js +98 -0
- package/package/middleware/service-unavailable.js +64 -0
- package/package/model/apis/axios-settings.js +21 -0
- package/package/model/apis/html-to-pdf-converter.js +35 -0
- package/package/model/apis/index.js +5 -0
- package/package/model/index.js +348 -0
- package/package/package.json +147 -0
- package/package/sandbox/README.md +66 -0
- package/package/sandbox/apps/sandbox/behaviours/clear-session.js +8 -0
- package/package/sandbox/apps/sandbox/behaviours/country-select.js +10 -0
- package/package/sandbox/apps/sandbox/behaviours/international-number.js +22 -0
- package/package/sandbox/apps/sandbox/fields.js +128 -0
- package/package/sandbox/apps/sandbox/index.js +99 -0
- package/package/sandbox/apps/sandbox/lib/staticAppealStages.js +189 -0
- package/package/sandbox/apps/sandbox/sections/summary-data-sections.js +43 -0
- package/package/sandbox/apps/sandbox/translations/src/en/errors.json +5 -0
- package/package/sandbox/apps/sandbox/translations/src/en/exit.json +4 -0
- package/package/sandbox/apps/sandbox/translations/src/en/fields.json +101 -0
- package/package/sandbox/apps/sandbox/translations/src/en/journey.json +7 -0
- package/package/sandbox/apps/sandbox/translations/src/en/pages.json +72 -0
- package/package/sandbox/apps/sandbox/translations/src/en/validation.json +54 -0
- package/package/sandbox/apps/sandbox/views/form-guidance-link.html +8 -0
- package/package/sandbox/apps/sandbox/views/save-and-exit.html +19 -0
- package/package/sandbox/assets/images/icons/icon-caret-left.png +0 -0
- package/package/sandbox/assets/images/icons/icon-complete.png +0 -0
- package/package/sandbox/assets/images/icons/icon-cross-remove-sign.png +0 -0
- package/package/sandbox/assets/js/index.js +70 -0
- package/package/sandbox/assets/scss/app.scss +27 -0
- package/package/sandbox/codecept.conf.js +15 -0
- package/package/sandbox/config.js +17 -0
- package/package/sandbox/package.json +26 -0
- package/package/sandbox/server.js +23 -0
- package/package/sandbox/yarn.lock +262 -0
- package/package/transpiler/index.js +2 -0
- package/package/transpiler/lib/aggregate.js +32 -0
- package/package/transpiler/lib/build.js +15 -0
- package/package/transpiler/lib/compile.js +12 -0
- package/package/transpiler/lib/expand-dirs.js +14 -0
- package/package/transpiler/lib/write-files.js +24 -0
- package/package/utilities/autofill/index.js +189 -0
- package/package/utilities/autofill/inputs.js +60 -0
- package/package/utilities/countries.js +12 -0
- package/package/utilities/helpers/index.js +189 -0
- package/package/utilities/index.js +9 -0
- package/package/utilities/reqres/index.js +18 -0
- package/package/utilities/test-data/data/domain.json +7 -0
- package/package/utilities/test-data/data/firstname.json +16 -0
- package/package/utilities/test-data/data/lastname.json +10 -0
- package/package/utilities/test-data/data/postcode.json +12 -0
- package/package/utilities/test-data/data/streetname.json +8 -0
- package/package/utilities/test-data/data/streetsuffix.json +7 -0
- package/package/utilities/test-data/data/town.json +9 -0
- package/package/utilities/test-data/index.js +67 -0
- package/package/wizard/behaviours/complete.js +20 -0
- package/package/wizard/behaviours/index.js +5 -0
- package/package/wizard/index.js +124 -0
- package/package/wizard/middleware/back-links.js +68 -0
- package/package/wizard/middleware/check-complete.js +13 -0
- package/package/wizard/middleware/check-progress.js +139 -0
- package/package/wizard/middleware/check-session.js +17 -0
- package/package/wizard/middleware/csrf.js +47 -0
- package/package/wizard/middleware/session-model.js +11 -0
- package/package/wizard/middleware/session.js +9 -0
- package/package/wizard/model.js +29 -0
- package/package/wizard/util/constants.js +5 -0
- package/package/wizard/util/helpers.js +19 -0
- package/package.json +5 -6
- package/.editorconfig +0 -10
- package/.github/workflows/automate-publish.yml +0 -38
- package/.github/workflows/automate-tag.yml +0 -78
- package/.istanbul.yml +0 -20
- package/codeReviewChecklist.md +0 -22
- package/pull_request_template.md +0 -16
@@ -0,0 +1,23 @@
|
|
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)
|
@@ -0,0 +1,125 @@
|
|
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
|
+
}
|
@@ -0,0 +1,27 @@
|
|
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
|
+
}
|
@@ -0,0 +1,42 @@
|
|
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
|
+
}
|
@@ -0,0 +1,121 @@
|
|
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
|
+
}
|
@@ -0,0 +1,27 @@
|
|
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
|
+
}
|
@@ -0,0 +1,11 @@
|
|
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;
|
@@ -0,0 +1,43 @@
|
|
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";
|
@@ -0,0 +1,16 @@
|
|
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";
|
@@ -0,0 +1,73 @@
|
|
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
|
+
|
@@ -0,0 +1,20 @@
|
|
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
|
+
}
|
@@ -0,0 +1,17 @@
|
|
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
|
+
}
|
@@ -0,0 +1,51 @@
|
|
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
|
+
}
|
Binary file
|