Owen Leonard
4369a65bd5
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>
70 lines
1 KiB
CSS
70 lines
1 KiB
CSS
.form-field {
|
|
align-items: center;
|
|
display: flex;
|
|
gap: .5em;
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.form-field > * {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
#itemsearchform p {
|
|
margin-left: 6em;
|
|
}
|
|
|
|
label {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.form-field-label {
|
|
display: inline-block;
|
|
font-weight: bold;
|
|
text-align: right;
|
|
width: 10em;
|
|
}
|
|
|
|
.form-field-conjunction[disabled] {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.form-field-radio > * {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.form-actions {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
th.active {
|
|
padding-right: 21px;
|
|
background-repeat: no-repeat;
|
|
background-position: 100% 50%;
|
|
}
|
|
|
|
th select {
|
|
width: 100%;
|
|
font-weight: normal;
|
|
}
|
|
|
|
th#items_title {
|
|
min-width: 12em;
|
|
}
|
|
|
|
#itemsearchform select,
|
|
input[type="text"] {
|
|
background-color: #FFF;
|
|
border: 1px solid #AAAAAA;
|
|
border-radius: 4px;
|
|
color: #495057;
|
|
display: inline-block;
|
|
font-size: 1.5rem;
|
|
height: calc( 1.5em + .75rem + 2px );
|
|
line-height: 1.5;
|
|
padding: .375rem .75rem;
|
|
}
|
|
|
|
.select2.select2-container.select2-container--default {
|
|
flex-grow: 1;
|
|
max-width: 60%;
|
|
}
|