mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
ui: Show disabled form elements as grey for Bootstrap 5
- Same color as in Bootstrap 4 but removed in Bootstrap 5. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
ebcc9595c4
commit
9f9c8879b4
@ -11,6 +11,7 @@
|
|||||||
--progress-color: #3498db; /* Blue */
|
--progress-color: #3498db; /* Blue */
|
||||||
--error-color: #d9534f; /* Red */
|
--error-color: #d9534f; /* Red */
|
||||||
--warning-color: #ec971f; /* Orange */
|
--warning-color: #ec971f; /* Orange */
|
||||||
|
--freedombox-form-disabled-bg-color: #e9ecef; /* Grey */
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
@ -140,6 +141,12 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
color: #737373;
|
color: #737373;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Disabled form elements show as gray, removed in Bootstrap 5 */
|
||||||
|
.form-control:disabled, .form-control[readonly] {
|
||||||
|
background-color: var(--freedombox-form-disabled-bg-color);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* form-horizontal removed in bootstrap, needs updated django-bootstrap-form */
|
/* form-horizontal removed in bootstrap, needs updated django-bootstrap-form */
|
||||||
.form-horizontal > .form-group {
|
.form-horizontal > .form-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user