.select2-container--bootstrap4 {
.select2-selection--multiple {
// height of input box
min-height: $input-height !important;
padding-bottom: 5px;
text-overflow: ellipsis;
overflow: hidden;
// input box
.select2-selection__rendered {
box-sizing: border-box;
list-style: none;
margin: 0;
// padding-right: 5px;
width: 100%;
.select2-search__field {
width: 100% !important;
background-color: $card-bg;
}
}
// each selected item in input box
.select2-selection__choice {
color: $body-color;
// border: 1px solid $input-border-color;
@include border-radius($input-border-radius-sm);
background: $body-bg;
padding: 0;
padding-right: 5px;
cursor: pointer;
float: left;
margin-top: 5px;
margin-left: 5px;
padding-bottom: 2px;
}
// x button of each selected item in input box
.select2-selection__choice__remove {
color: $body-color;
font-weight: 400;
margin-left: 3px;
margin-right: 1px;
padding-right: 3px;
padding-left: 3px;
float: left;
border: none;
cursor: pointer;
background: transparent;
&:hover {
color: $primary;
}
}
// all clear button
.select2-selection__clear {
// overwrite layout.scss
float: none;
margin-right: 0;
position: absolute !important;
top: 0;
right: 0.7em;
}
}
.select2-search--inline {
float: left;
.select2-search__field {
// display: none;
width: 100% !important;
background: none;
color: $body-color;
}
}
}