ui: css: New style for select all checkbox

- Make the box look different from the rest of the options so that this it does
not look like an option without label.

- Give it the appearance of a button so that it is becomes an operation rather
than option.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2021-01-21 20:33:34 -05:00
1 parent 9b8388734d
commit d79f97f752
2 files changed
+12

No files matched your search

+11
View File
@@ -699,6 +699,17 @@ input[type='submit'].running-status-button {
padding-left: 2rem;
}
/*
* Select all checkbox for multiple checkboxes field.
*/
.select-all-label {
border: 1px solid var(--neutral-dark-color);
background-color: var(--neutral-light-color);
border-radius: 0.25rem;
padding: 0.5rem 1rem 0.25rem;
margin-left: -1rem;
}
/*
* Button toolbar
*/
+1
View File
@@ -132,6 +132,7 @@ document.addEventListener('DOMContentLoaded', function(event) {
let label = document.createElement('label');
label.for = "select_all";
label.setAttribute('class', 'select-all-label');
let checkbox = document.createElement('input');
checkbox.type = "checkbox";