mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
ui: Fix styling in dismiss button in form errors for Bootstrap 5
- Since django-bootstrap-form still generates styling for Bootstrap 3, we need to adapt styling for Bootstrap 5 for it. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
36c5ffd3af
commit
fb95c5dce2
@ -128,6 +128,29 @@ h6:not(:first-child) {
|
||||
color: #737373;
|
||||
}
|
||||
|
||||
/* .close was renamed to .alert-dismissable.btn-close in Bootstrap 5, needs
|
||||
updated django-bootstrap-from */
|
||||
form .alert {
|
||||
padding-right: 3rem;
|
||||
}
|
||||
|
||||
form .alert .close {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 2;
|
||||
padding: 1.25rem 1rem;
|
||||
cursor: pointer;
|
||||
color: transparent;
|
||||
box-sizing: content-box;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
|
||||
border: 0;
|
||||
border-radius: 0.375rem;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
/* Disabled form elements show as gray, removed in Bootstrap 5 */
|
||||
.form-control:disabled, .form-control[readonly] {
|
||||
background-color: var(--freedombox-form-disabled-bg-color);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user