Skip to content

Commit 32d2acb

Browse files
authored
Org: Select all, deselect all are spread over the full width
TYPE: Bugfix LINK: ogc-3253
1 parent bf4978d commit 32d2acb

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

src/onegov/org/theme/styles/org.scss

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,10 +819,6 @@ table {
819819
form style customizations
820820
*/
821821
form {
822-
label {
823-
min-width: 75%;
824-
}
825-
826822
label > ul,
827823
.upload-widget > ul,
828824
.group-label > ul {
@@ -944,6 +940,21 @@ form {
944940
}
945941
}
946942

943+
// The "select all / deselect all" controls that multicheckbox.js prepends
944+
// as a list item without its own checkbox. Keep the three labels grouped on
945+
// one line. The standard form macro already does this via
946+
// `.group-label > ul li` (flex), but the search filter renders the
947+
// multicheckbox outside that wrapper, so its item needs `display: flex`
948+
// here too.
949+
ul:has(li input[type="checkbox"]) > li:first-child:not(:has(input)) {
950+
display: flex;
951+
align-items: baseline;
952+
953+
label {
954+
flex: 0 0 auto;
955+
}
956+
}
957+
947958
input[type="radio"] {
948959
margin: .29rem .4rem 0 0 !important;
949960
}

0 commit comments

Comments
 (0)