Form: add various champs html and style

This commit is contained in:
Simon Lehericey 2017-07-25 14:33:03 +02:00 committed by Mathieu Magnin
parent 62894175ae
commit 9c2e71afa3
27 changed files with 282 additions and 8 deletions

View file

@ -6,7 +6,8 @@
body,
input,
textarea {
textarea,
select {
@extend %new-type;
font-size: 16px;
line-height: 1.42857143;

View file

@ -0,0 +1,17 @@
@import "constants";
@import "colors";
.dossier-link {
.help-block > p {
margin-top: - $default-padding;
margin-bottom: 2 * $default-padding;
}
.text-info {
color: $blue;
}
.text-warning {
color: $dark-red;
}
}

View file

@ -17,12 +17,15 @@
input[type=text],
input[type=email],
input[type=password],
textarea {
input[type=date],
input[type=number],
input[type=tel],
textarea,
select {
display: block;
width: 100%;
border-radius: 4px;
border: solid 1px $border-grey;
margin-bottom: 4 * $default-spacer;
margin-bottom: 2 * $default-padding;
padding: $default-padding;
&:disabled {
@ -30,6 +33,60 @@
}
}
input[type=text],
input[type=email],
input[type=password],
input[type=date],
input[type=number],
input[type=tel],
textarea {
width: 100%;
}
input[type=email],
input[type=number],
input[type=tel], {
max-width: 500px;
}
input[type=checkbox],
input[type=radio] {
margin-bottom: 2 * $default-padding;
}
input[type=date] {
max-width: 180px;
}
.datetime {
input[type=date] {
display: inline-block;
}
select {
display: inline-block;
}
}
.header-section {
color: #4393F3;
font-weight: bold;
font-size: 20px;
margin-bottom: 2 * $default-padding;
}
.explication-libelle {
font-weight: bold;
font-size: 20px;
margin-bottom: $default-padding;
}
.explication {
background-color: $light-grey;
padding: $default-padding;
margin-bottom: 2 * $default-padding;
}
.send {
float: right;
margin-bottom: $default-padding;