gestiojeux/mainsite/scss/forms.scss
2020-10-11 22:19:11 +02:00

116 lines
2 KiB
SCSS

form {
display: flex;
align-items: stretch;
flex-direction: column;
.errorlist {
list-style-type: none;
margin: 0;
padding: 0;
font-size: 0.7em;
li {
@include error_box;
margin-bottom: 10px;
}
}
p {
margin: 5px 0;
width: 100%;
}
}
.helptext {
font-size: 0.7em;
color: $help_text_color;
}
input {
display: block;
width: 100%;
font: inherit;
font-size: 0.9em;
color: black;
}
input[type="text"],
input[type="email"],
input[type="password"], {
background-color: white;
border: solid 1px $help_text_color;
padding: 5px 10px;
border-radius: 3px;
box-shadow: none;
&:optional {
border-color: fade-out($help_text_color, .25);
}
&:focus {
border-color: $header_bg_color;
box-shadow: 0 0 1.5px 1px $header_bg_color;
}
&:-moz-ui-invalid {
border-color: $error_box_border_color;
box-shadow: 0 0 1.5px 1px $error_box_border_color;
}
}
input[type="checkbox"],
input[type="radio"] {
width: auto;
margin: 5px 10px;
}
input[type="submit"] {
@include button;
}
select {
-webkit-appearance: none;
appearance: none;
@include button;
width: 100%;
font-size: 0.9em;
margin: 0;
padding: 5px 25px 5px 10px;
text-align: left;
&:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 #000;
}
background-image: url('/static/img/select_arrow.svg');
background-repeat: no-repeat;
background-position: right .7em top 50%, 0 0;
background-size: .65em auto, 100%;
}
.formfield {
padding: 5px;
margin: 10px 0;
}
.error_field {
border-radius: 10px;
background-color: rgba($error_box_color, .4);
}
.checkbox_input {
display: flex;
justify-content: space-evenly;
align-items: center;
.label_line {
order: 1;
flex: 1 1 500px;
}
input {
flex: 0 1 50px;
}
}
.fieldgroup {
margin: 15px 0;
}