ui: Fix form error styling using bootstrap 3 style

This is a temporary fix until proper bootstrap 4 forms are generated by
django-bootstrap-form.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2020-12-18 18:37:03 -08:00 committed by Veiko Aasa
parent 3114347163
commit b00c5994a3
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -147,6 +147,25 @@ h1, h2, h3, h4, h5, h6 {
padding-left: 1.4rem;
}
/* Form error display was changed in bootstrap 4, provide compatibility */
.has-error .help-block,
.has-error .control-label,
.has-error .radio,
.has-error .checkbox,
.has-error .radio-inline,
.has-error .checkbox-inline,
.has-error.radio label,
.has-error.checkbox label,
.has-error.radio-inline label,
.has-error.checkbox-inline label {
color: #a94442;
}
.has-error .form-control {
border-color: #a94442;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
/*
* Basic styling
*/