2018-02-20 21:56:34 +00:00
|
|
|
@import 'constants';
|
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
/* (1) Champs de texte */
|
|
|
|
input[type=text], .neutral > input[type=text],
|
|
|
|
input[type=mail], .neutral > input[type=mail],
|
|
|
|
input[type=password], .neutral > input[type=password],
|
|
|
|
select, .neutral > select,
|
|
|
|
input[type=text].neutral,
|
|
|
|
input[type=mail].neutral,
|
|
|
|
input[type=password].neutral,
|
|
|
|
select.neutral{
|
|
|
|
|
2018-02-20 21:56:34 +00:00
|
|
|
display: inline-block;
|
2018-03-01 12:16:22 +00:00
|
|
|
margin: 1em;
|
|
|
|
padding: .5em 1em;
|
2018-02-20 21:56:34 +00:00
|
|
|
|
|
|
|
border-radius: 3px;
|
2018-03-01 12:16:22 +00:00
|
|
|
border: 1px dashed $form-neutral-color;
|
2018-02-20 21:56:34 +00:00
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
color: $form-neutral-color;
|
2018-02-20 21:56:34 +00:00
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
transition: border .2s ease-in-out,
|
|
|
|
color .2s ease-in-out;
|
2018-02-20 21:56:34 +00:00
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
&:focus, &:hover{
|
|
|
|
border-color: darken($form-neutral-color, 10%);
|
|
|
|
color: $primary-color;
|
2018-02-20 21:56:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
select{
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
background: #fff;
|
|
|
|
|
|
|
|
option{
|
|
|
|
padding: .5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Champs valides
|
|
|
|
.valid > input[type=text],
|
|
|
|
.valid > input[type=mail],
|
|
|
|
.valid > input[type=password],
|
|
|
|
.valid > select,
|
|
|
|
input.valid[type=text],
|
|
|
|
input.valid[type=mail],
|
|
|
|
input.valid[type=password],
|
|
|
|
select.valid{
|
2018-03-01 12:16:22 +00:00
|
|
|
|
|
|
|
border-color: darken($form-valid-color, 0%);
|
|
|
|
|
|
|
|
|
|
|
|
&:focus, &:hover{
|
|
|
|
border-color: darken($form-valid-color, 10%);
|
2018-02-20 21:56:34 +00:00
|
|
|
}
|
2018-03-01 12:16:22 +00:00
|
|
|
|
2018-02-20 21:56:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Champs neutres
|
2018-03-01 12:16:22 +00:00
|
|
|
.invalid > input[type=text],
|
|
|
|
.invalid > input[type=mail],
|
|
|
|
.invalid > input[type=password],
|
|
|
|
.invalid > select,
|
|
|
|
input.invalid[type=text],
|
|
|
|
input.invalid[type=mail],
|
|
|
|
input.invalid[type=password],
|
|
|
|
select.invalid{
|
|
|
|
|
|
|
|
border-color: darken($form-invalid-color, 0%);
|
|
|
|
|
|
|
|
|
|
|
|
&:focus, &:hover{
|
|
|
|
border-color: darken($form-invalid-color, 10%);
|
2018-02-20 21:56:34 +00:00
|
|
|
}
|
2018-03-01 12:16:22 +00:00
|
|
|
|
2018-02-20 21:56:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Champs neutres
|
|
|
|
.search > input[type=text],
|
|
|
|
.search > input[type=mail],
|
|
|
|
.search > input[type=password],
|
|
|
|
.search > select,
|
|
|
|
input.search[type=text],
|
|
|
|
input.search[type=mail],
|
|
|
|
input.search[type=password]{
|
2018-03-01 12:16:22 +00:00
|
|
|
|
|
|
|
border-color: darken($form-search-color, 0%);
|
|
|
|
|
|
|
|
|
|
|
|
&:focus, &:hover{
|
|
|
|
border-color: darken($form-search-color, 10%);
|
2018-02-20 21:56:34 +00:00
|
|
|
}
|
2018-03-01 12:16:22 +00:00
|
|
|
|
2018-02-20 21:56:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* (2) Boutons */
|
2018-03-01 12:16:22 +00:00
|
|
|
button, .neutral > button,
|
|
|
|
input[type=button], .neutral > input[type=button],
|
|
|
|
input[type=submit], .neutral > input[type=submit],
|
|
|
|
button.neutral,
|
|
|
|
input[type=button].neutral,
|
|
|
|
input[type=submit].neutral{
|
|
|
|
|
2018-02-20 21:56:34 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
padding: .5em 1em;
|
2018-02-20 21:56:34 +00:00
|
|
|
|
|
|
|
border-radius: 3px;
|
2018-03-01 12:16:22 +00:00
|
|
|
border: 1px dashed $form-neutral-color;
|
2018-02-20 21:56:34 +00:00
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
background: $bg-color center center no-repeat;
|
|
|
|
text-transform: uppercase;
|
2018-02-20 21:56:34 +00:00
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
color: $form-neutral-color;
|
2018-02-20 21:56:34 +00:00
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
transition: color .2s ease-in-out,
|
|
|
|
border-color .2s ease-in-out,
|
|
|
|
background .2s ease-in-out;
|
2018-02-20 21:56:34 +00:00
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
&:hover, &:focus{
|
|
|
|
color: darken($form-neutral-color, 10%);
|
|
|
|
border-color: $primary-color;
|
2018-02-20 21:56:34 +00:00
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Boutons grisés
|
2018-03-01 12:16:22 +00:00
|
|
|
button:disabled,
|
|
|
|
button.grey, .grey > button,
|
|
|
|
input[type=button].grey, .grey > input[type=button],
|
|
|
|
input[type=submit].grey, .grey > input[type=submit]{
|
2018-02-20 21:56:34 +00:00
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
border-color: $form-grey-color;
|
2018-02-20 21:56:34 +00:00
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
cursor: default;
|
2018-02-20 21:56:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Boutons valides
|
2018-03-01 12:16:22 +00:00
|
|
|
button.valid, .valid > button,
|
|
|
|
input[type=button].valid, .valid > input[type=button],
|
|
|
|
input[type=submit].valid, .valid > input[type=submit]{
|
2018-02-20 21:56:34 +00:00
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
border-color: $form-valid-color;
|
2018-02-20 21:56:34 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
// Boutons invalides
|
|
|
|
button.invalid, .invalid > button,
|
|
|
|
input[type=button].invalid, .invalid > input[type=button],
|
|
|
|
input[type=submit].invalid, .invalid > input[type=submit]{
|
2018-02-20 21:56:34 +00:00
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
border-color: $form-invalid-color;
|
2018-02-20 21:56:34 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Boutons recherche
|
2018-03-01 12:16:22 +00:00
|
|
|
button.search, .search > button,
|
|
|
|
input[type=button].search, .search > input[type=button],
|
|
|
|
input[type=submit].search, .search > input[type=submit]{
|
2018-02-20 21:56:34 +00:00
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
border-color: $form-search-color;
|
2018-02-20 21:56:34 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Boutons quand action validee
|
|
|
|
.invalid > button.active,
|
|
|
|
button.invalid.active,
|
|
|
|
button.active{
|
|
|
|
background-color: #fff;
|
|
|
|
background-image: url('/src/static/container/active@#{$rd-form-invalid-color}.svg') !important;
|
|
|
|
background-size: 1em auto;
|
|
|
|
|
|
|
|
color: transparent !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
button.valid.active,
|
|
|
|
.valid > button.active{
|
|
|
|
background-image: url('/src/static/container/active@#{$rd-form-valid-color}.svg') !important;
|
|
|
|
}
|
|
|
|
button.neutral.active,
|
|
|
|
.neutral > button.active{
|
|
|
|
background-image: url('/src/static/container/active@#{$rd-form-neutral-color}.svg') !important;
|
|
|
|
}
|
|
|
|
button.search.active,
|
|
|
|
.search > button.active{
|
|
|
|
background-image: url('/src/static/container/active@#{$rd-form-search-color}.svg') !important;
|
2018-02-22 14:17:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Liens
|
|
|
|
a{
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:after{
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
width: 0%;
|
|
|
|
height: .1em;
|
|
|
|
|
|
|
|
background-color: #ddd;
|
|
|
|
|
|
|
|
transition: width .1s ease-in-out;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover:after{
|
|
|
|
width: 100%;
|
|
|
|
}
|
2018-02-20 21:56:34 +00:00
|
|
|
}
|