Add inputs & labels to patron
This commit is contained in:
parent
765be88d6d
commit
a82994f00f
2 changed files with 38 additions and 0 deletions
27
app/assets/stylesheets/new_design/forms.scss
Normal file
27
app/assets/stylesheets/new_design/forms.scss
Normal file
|
@ -0,0 +1,27 @@
|
|||
@import "colors";
|
||||
|
||||
.form {
|
||||
label,
|
||||
input {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
label,
|
||||
input[type=submit] {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
label {
|
||||
margin-bottom: 8px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
input[type=text],
|
||||
input[type=password] {
|
||||
display: block;
|
||||
width: 100%;
|
||||
border-radius: 4px;
|
||||
border: solid 1px $border-grey;
|
||||
padding: 16px;
|
||||
}
|
||||
}
|
|
@ -1,6 +1,17 @@
|
|||
.patron
|
||||
%h1 Patron
|
||||
|
||||
%h2 Formulaires
|
||||
|
||||
%form.form
|
||||
%label Nom
|
||||
%input{ type: "text" }
|
||||
%label Prénom
|
||||
%input{ type: "text", placeholder: "ex : Ivan" }
|
||||
%label Mot de passe
|
||||
%input{ type: "password", value: "12345678" }
|
||||
%input{ type: "submit", value: "Envoyer" }
|
||||
|
||||
%h2 Boutons
|
||||
|
||||
%p
|
||||
|
|
Loading…
Reference in a new issue