NewDesign Form: move margin from label to input
provide beautiful layouts with or without label between inputs
This commit is contained in:
parent
f0777e166f
commit
9753da8fdd
2 changed files with 2 additions and 7 deletions
|
@ -11,11 +11,6 @@
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
label,
|
|
||||||
input[type=submit] {
|
|
||||||
margin-top: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
label {
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -28,6 +23,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border: solid 1px $border-grey;
|
border: solid 1px $border-grey;
|
||||||
|
margin-bottom: 24px;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
|
|
||||||
&:disabled {
|
&:disabled {
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
%form.form
|
%form.form
|
||||||
%label Nom
|
%label Nom
|
||||||
%input{ type: "text" }
|
%input{ type: "text" }
|
||||||
%label Prénom
|
%input{ type: "text", placeholder: "Prénom: Ivan" }
|
||||||
%input{ type: "text", placeholder: "ex : Ivan" }
|
|
||||||
%label Mot de passe
|
%label Mot de passe
|
||||||
%input{ type: "password", value: "12345678" }
|
%input{ type: "password", value: "12345678" }
|
||||||
%input.button{ type: "submit", value: "Envoyer" }
|
%input.button{ type: "submit", value: "Envoyer" }
|
||||||
|
|
Loading…
Reference in a new issue