2017-07-20 10:25:32 +02:00
|
|
|
@import "constants";
|
2017-06-14 17:39:46 +02:00
|
|
|
@import "colors";
|
|
|
|
|
|
|
|
.form {
|
2017-06-20 10:09:19 +02:00
|
|
|
h1 {
|
|
|
|
text-align: center;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
2017-06-14 17:39:46 +02:00
|
|
|
label {
|
2017-07-20 10:25:32 +02:00
|
|
|
margin-bottom: $default-spacer;
|
2017-06-14 17:39:46 +02:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type=text],
|
2017-06-20 10:03:49 +02:00
|
|
|
input[type=email],
|
2017-07-20 09:54:05 +02:00
|
|
|
input[type=password],
|
2017-07-25 14:33:03 +02:00
|
|
|
input[type=date],
|
|
|
|
input[type=number],
|
|
|
|
input[type=tel],
|
|
|
|
textarea,
|
|
|
|
select {
|
2017-06-14 17:39:46 +02:00
|
|
|
display: block;
|
|
|
|
border-radius: 4px;
|
|
|
|
border: solid 1px $border-grey;
|
2017-07-25 14:33:03 +02:00
|
|
|
margin-bottom: 2 * $default-padding;
|
2017-07-20 10:25:32 +02:00
|
|
|
padding: $default-padding;
|
2017-06-20 10:03:49 +02:00
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
background-color: $border-grey;
|
|
|
|
}
|
2017-06-14 17:39:46 +02:00
|
|
|
}
|
2017-07-24 09:46:13 +02:00
|
|
|
|
2017-07-25 14:33:03 +02:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2017-07-26 12:41:23 +02:00
|
|
|
input:invalid,
|
|
|
|
textarea:invalid {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
input.touched:invalid,
|
|
|
|
textarea.touched:invalid {
|
|
|
|
border-color: $dark-red;
|
|
|
|
box-shadow: 0px 0px 5px $dark-red;
|
|
|
|
}
|
|
|
|
|
2017-07-26 13:22:25 +02:00
|
|
|
select,
|
|
|
|
.select2-selection {
|
2017-07-25 14:33:03 +02:00
|
|
|
// hack found here: https://stackoverflow.com/questions/1895476/how-to-style-a-select-dropdown-with-css-only-without-javascript
|
|
|
|
-webkit-appearance: none;
|
|
|
|
-moz-appearance: none;
|
|
|
|
appearance: none;
|
|
|
|
background: image-url("icons/chevron-down.svg") no-repeat;
|
|
|
|
background-size: 14px;
|
|
|
|
background-position: right 10px center;
|
|
|
|
padding-right: 3 * $default-spacer;
|
|
|
|
|
|
|
|
// CAUTION: IE hackery ahead
|
|
|
|
&::-ms-expand {
|
|
|
|
display: none; // remove default arrow in IE 10 and 11 */
|
|
|
|
}
|
|
|
|
|
|
|
|
// target Internet Explorer 9 to undo the custom arrow */
|
|
|
|
@media screen and (min-width:0\0) {
|
|
|
|
select {
|
|
|
|
background: none\9;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-26 13:22:25 +02:00
|
|
|
.select2 {
|
|
|
|
min-width: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container {
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 2 * $default-padding;
|
|
|
|
|
|
|
|
&.select2-container--focus {
|
|
|
|
.select2-selection {
|
|
|
|
border-color: $border-grey;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// scss-lint:disable SelectorFormat
|
|
|
|
.select2-selection__rendered {
|
|
|
|
padding: $default-padding;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-selection__choice {
|
|
|
|
background-color: #FFFFFF;
|
|
|
|
}
|
|
|
|
// scss-lint:enable
|
|
|
|
}
|
|
|
|
|
2017-07-25 14:33:03 +02:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
2017-07-26 12:41:58 +02:00
|
|
|
.send-wrapper {
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
.send {
|
|
|
|
margin-bottom: $default-padding;
|
|
|
|
}
|
2017-07-24 09:46:13 +02:00
|
|
|
}
|
2017-06-14 17:39:46 +02:00
|
|
|
}
|