ui: forms: Fix margins for form labels for Bootstrap 5

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2024-11-16 11:28:21 -08:00 committed by Veiko Aasa
parent adc615bc32
commit c898e4e3bf
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -167,6 +167,12 @@ h6:not(:first-child) {
padding-left: 1.4rem;
}
/* label styling moved to .form-label in Bootstrap 5, needs updated
django-bootstrap-form */
label {
margin-bottom: 0.5rem;
}
/* Form error display was changed in bootstrap 4, provide compatibility */
.has-error .help-block,
.has-error .control-label,