funky-framadate-front/src/assets/scss/atoms/_forms.scss

60 lines
935 B
SCSS
Raw Normal View History

@charset "UTF-8";
2019-08-12 21:54:40 +02:00
input,
select,
textarea {
padding: 1rem;
2019-09-06 10:41:48 +02:00
border: 1px solid $secondary_color;
border-bottom: 3px solid $primary_color;
2019-09-06 10:41:48 +02:00
}
input,
2019-08-12 21:54:40 +02:00
select {
display: inline-block;
2019-09-06 11:32:45 +02:00
margin-bottom:10px;
margin-left:5px;
}
textarea {
2019-08-12 21:54:40 +02:00
width: 100%;
border-left: 3px solid $primary_color;
}
2019-08-11 17:06:07 +02:00
2019-08-12 21:54:40 +02:00
select,
option {
// delete default display
-webkit-appearance : none;
-moz-appearance : none;
background: none;
border-radius: 0;
2019-08-15 20:44:42 +02:00
background-color: transparent;
2019-09-06 10:50:54 +02:00
background-image: url("./assets/img/fleche_bas.svg");
2019-09-06 11:04:54 +02:00
padding-right:1.5rem;
2019-08-15 20:44:42 +02:00
background-repeat: no-repeat;
background-size: 9px 8px;
2019-09-06 11:04:54 +02:00
background-position: right 1rem center;
2019-08-15 20:44:42 +02:00
background-clip: border-box;
// TODO -> check what angular can do
2019-08-12 21:54:40 +02:00
}
2019-08-11 17:06:07 +02:00
label {
&[for] {
cursor: pointer;
}
&:not([for]) {
color: $dusty-orange;
&:before {
content: "ce label n'a pas d'attribut for, c'est mal.";
color: $violet;
}
}
}