From 1aed431f5e902c3888d37893aaca97bc4d0c5c4c Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Sun, 30 Sep 2018 22:29:17 +0200 Subject: [PATCH] move submit button to second column in forms closes #148 --- templates/standalone/inputs.lucius | 10 ++++++++++ templates/widgets/form.hamlet | 1 + 2 files changed, 11 insertions(+) diff --git a/templates/standalone/inputs.lucius b/templates/standalone/inputs.lucius index ad6771a38..3edb4ee52 100644 --- a/templates/standalone/inputs.lucius +++ b/templates/standalone/inputs.lucius @@ -30,6 +30,16 @@ } } +.form-group--submit .form-group__input { + grid-column: 2; +} + +@media (max-width: 768px) { + .form-group--submit .form-group__input { + grid-column: 1; + } +} + .form-group--has-error { background-color: rgba(255, 0, 0, 0.1); diff --git a/templates/widgets/form.hamlet b/templates/widgets/form.hamlet index 6431c8c3d..2c0cfc9b8 100644 --- a/templates/widgets/form.hamlet +++ b/templates/widgets/form.hamlet @@ -3,6 +3,7 @@ $newline never $case formLayout $of FormStandard $forall view <- views + $# TODO: add class 'form-group--submit' if this is the submit-button view
$if not (Blaze.null $ fvLabel view)