Add select2 bootstrap 5 theme

This commit is contained in:
2025-01-15 22:39:20 +11:00
parent 026b3f5a20
commit 8b922b2e8b
6 changed files with 40 additions and 3 deletions

22
public/css/fixes.css vendored
View File

@@ -268,4 +268,26 @@ pre code .line::before {
opacity: 0.5;
display: inline-block;
border-right: 1px solid rgba(0, 0, 0, .5);
}
/** select2 rendering fixes */
/* The opened input box */
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
line-height: 1.0;
border: 1px solid #aaa;
}
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
padding: 0.3rem 0.2rem 0.3rem 0.4rem;
font-size: 95%;
}
select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear, .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
width: 0.5rem;
height: 0.5rem;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered .select2-selection__placeholder {
line-height: 1.0;
font-size: 90%;
}