move submit button to second column in forms

closes #148
This commit is contained in:
Felix Hamann 2018-09-30 22:29:17 +02:00
parent 4987d23c1b
commit 1aed431f5e
2 changed files with 11 additions and 0 deletions

View File

@ -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);

View File

@ -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
<div .form-group :fvRequired view:.form-group--required :not $ fvRequired view:.form-group--optional :isJust $ fvErrors view:.form-group--has-error>
$if not (Blaze.null $ fvLabel view)
<label .form-group__label for=#{fvId view}>#{fvLabel view}