Koha/koha-tmpl/intranet-tmpl/prog/css/select2.css
Owen Leonard 4369a65bd5
Bug 36545: (follow-up) Style tweaks for Select2 multiple fields
This patch does some fine-tuning of Select2 style on fields which accept
multiple selections. The patch also changes the way the form rows are
displayed on this page. I thought that the Select2 fields should be
wider to accpet multiple selections without the container wrapping onto
another line.

The patch also sets the Select2 "closeOnSelect" option to false on this
page because I think that makes more sense in a situation where multiple
selections might be made.

To test, apply the patch and clear your browser cache.

- Go to item search in the staff client
- Confirm that the form looks good and adjusts well to various browser
  widths.
- Make some selections to confirm that the style of selections looks
  good and that the dropdown stays open as you make multiple selections.

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-04-30 17:09:54 +02:00

46 lines
1.3 KiB
CSS

.select2-container.subfield_not_filled {
background-color: initial;
}
.select2-container.missing .select2-choice,
.select2-container .select2-selection--single.subfield_not_filled,
.select2-container .select2-selection--single.important_subfield_not_filled {
background-color: #FFFF99;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
color: #888;
font-size: 125%;
padding: 0 5px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
border-left: 1px solid #EEE;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
color: #666;
}
.select2-container--default .select2-selection--single .select2-selection__arrow:hover {
background-color: #EEE;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
border-color: #565656 transparent transparent transparent;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
background-color: #F7F7F7;
margin-bottom: 2px;
padding: 3px 8px;
}
.select2-container--default .select2-selection--multiple .select2-selection__clear {
color: #888;
font-size: 125%;
margin-top: 3px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
margin-right: 3px;
}