46 lines
860 B
Plaintext
46 lines
860 B
Plaintext
/* GENERAL STYLES FOR FORMS */
|
|
form {
|
|
margin: 20px 0;
|
|
}
|
|
|
|
/* FORM GROUPS */
|
|
.form-group {
|
|
position: relative;
|
|
display: flex;
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(150px, max-content));
|
|
grid-auto-columns: minmax(150px, max-content);
|
|
grid-gap: 5px;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
margin: 10px 0;
|
|
padding-left: 10px;
|
|
border-left: 8px solid transparent;
|
|
}
|
|
|
|
.form-group--required {
|
|
border-left: 8px solid var(--lighterbase);
|
|
}
|
|
|
|
.form-group--valid {
|
|
border-left: 8px solid var(--validbase);
|
|
}
|
|
|
|
.form-group--has-error {
|
|
border-left: 8px solid var(--errorbase) !important;
|
|
}
|
|
|
|
@media (max-width: 999px) {
|
|
.form-group {
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: 30px;
|
|
align-items: baseline;
|
|
margin-top: 17px;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
.form-group__label {
|
|
width: 25%;
|
|
}
|