cas-eleves/cas_eleves/scss/_forms.scss

94 lines
1.5 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: $secondary_color;
box-shadow: 0 0 1.5px 1px $secondary_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;
}
.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;
}