NewDesign Form: move margin from label to input

provide beautiful layouts with or without label between inputs
This commit is contained in:
Simon Lehericey 2017-07-20 09:52:21 +02:00 committed by Mathieu Magnin
parent f0777e166f
commit 9753da8fdd
2 changed files with 2 additions and 7 deletions

View file

@ -11,11 +11,6 @@
font-size: 14px;
}
label,
input[type=submit] {
margin-top: 24px;
}
label {
margin-bottom: 8px;
display: inline-block;
@ -28,6 +23,7 @@
width: 100%;
border-radius: 4px;
border: solid 1px $border-grey;
margin-bottom: 24px;
padding: 16px;
&:disabled {

View file

@ -5,8 +5,7 @@
%form.form
%label Nom
%input{ type: "text" }
%label Prénom
%input{ type: "text", placeholder: "ex : Ivan" }
%input{ type: "text", placeholder: "Prénom: Ivan" }
%label Mot de passe
%input{ type: "password", value: "12345678" }
%input.button{ type: "submit", value: "Envoyer" }