aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2018-11-26 16:36:16 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-12-05 13:05:11 +0000
commitaa4d40d5ee2a26f4fad9fa3f996dae3b1cb71423 (patch)
tree1413d5b14bd10f748743da1a4f1d0bb8a2923a3e /web
parenta9006239ede89e19b98b061d8454edcd803f6f83 (diff)
Form submit buttons no longer inline with inputs.
This was a cute space-saving feature at the time, but the layout made it look like the button was specific to that input, rather than submitting the whole form. Make similar buttons full width, and improve spacing.
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/sass/_base.scss7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss
index 9f8778c90..ed8ea49ec 100644
--- a/web/cobrands/sass/_base.scss
+++ b/web/cobrands/sass/_base.scss
@@ -893,6 +893,13 @@ input.final-submit {
font-size: 0.8em;
}
+// Most of our forms get their vertical spacing from the margin-top on labels.
+// This means the final submit button can end up uncomfortably close to the
+// bottom of the final input. Add a class of `btn--final` to fix this.
+.btn--final {
+ margin-top: 1.25em; // matches margin-top on `label`
+}
+
.js #js-social-email-hide {
display: none;
}