2023-08-20 08:49:27 +02:00
|
|
|
/* Customize the Select2 container */
|
|
|
|
.select2-container {
|
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Customize the dropdown */
|
|
|
|
.select2-dropdown {
|
|
|
|
background-color: var(--SmartThemeBlurTintColor);
|
2023-09-16 08:42:26 +02:00
|
|
|
border: 1px solid var(--SmartThemeBorderColor) !important;
|
2023-08-20 08:49:27 +02:00
|
|
|
border-radius: 10px;
|
|
|
|
box-shadow: 0 0 5px black;
|
|
|
|
text-shadow: 0px 0px calc(var(--shadowWidth) * 1px) var(--SmartThemeShadowColor);
|
|
|
|
backdrop-filter: blur(calc(var(--SmartThemeBlurStrength)*2));
|
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
z-index: 40000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-selection__clear {
|
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
}
|
|
|
|
|
2023-09-10 03:08:15 +02:00
|
|
|
.select2-container .select2-search__field {
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
|
|
|
|
2024-06-14 14:50:54 +02:00
|
|
|
.select2-selection--single .select2-selection__placeholder {
|
|
|
|
color: var(--SmartThemeEmColor);
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container--classic .select2-selection--single .select2-selection__placeholder {
|
|
|
|
color: var(--SmartThemeEmColor);
|
|
|
|
}
|
|
|
|
|
2023-09-10 03:08:15 +02:00
|
|
|
.select2-container .select2-selection--single .select2-selection__rendered {
|
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
line-height: revert;
|
|
|
|
padding-left: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container .select2-results>.select2-results__options {
|
|
|
|
max-height: 300px;
|
|
|
|
}
|
|
|
|
|
2023-08-20 08:49:27 +02:00
|
|
|
.select2-container .select2-selection--multiple .select2-selection__choice__remove {
|
|
|
|
padding: revert;
|
2023-09-16 08:42:26 +02:00
|
|
|
border-right: 1px solid var(--SmartThemeBorderColor);
|
2023-08-20 08:49:27 +02:00
|
|
|
font-size: 1.1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container .select2-selection--multiple .select2-selection__choice__display {
|
|
|
|
padding-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Customize the search input */
|
|
|
|
.select2-search__field {
|
|
|
|
background-color: var(--black30a);
|
|
|
|
color: var(--SmartThemeBodyColor);
|
2023-09-16 08:42:26 +02:00
|
|
|
border: 1px solid var(--SmartThemeBorderColor);
|
2023-08-20 08:49:27 +02:00
|
|
|
border-radius: 7px;
|
|
|
|
font-family: "Noto Sans", "Noto Color Emoji", sans-serif;
|
|
|
|
padding: 3px 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Customize the selected option */
|
|
|
|
.select2-selection--single {
|
|
|
|
border: 1px solid var(--SmartThemeShadowColor);
|
|
|
|
border-radius: 4px;
|
|
|
|
background-color: var(--SmartThemeBlurTintColor);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Customize the selected option text */
|
|
|
|
.select2-selection__rendered {
|
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Customize the option list item */
|
|
|
|
.select2-results__option {
|
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
background-color: var(--SmartThemeBodyColor);
|
|
|
|
}
|
|
|
|
|
2023-09-10 03:08:15 +02:00
|
|
|
.select2-container .select2-selection--multiple,
|
|
|
|
.select2-container .select2-selection--single {
|
2023-08-20 08:49:27 +02:00
|
|
|
background-color: var(--black30a);
|
|
|
|
color: var(--SmartThemeBodyColor);
|
2023-09-16 08:42:26 +02:00
|
|
|
border: 1px solid var(--SmartThemeBorderColor);
|
2023-08-20 08:49:27 +02:00
|
|
|
border-radius: 7px;
|
|
|
|
font-family: "Noto Sans", "Noto Color Emoji", sans-serif;
|
|
|
|
padding: 3px 5px;
|
|
|
|
}
|
|
|
|
|
2023-09-10 03:08:15 +02:00
|
|
|
.select2-container.select2-container--focus .select2-selection--multiple,
|
|
|
|
.select2-container.select2-container--focus .select2-selection--single {
|
2023-09-16 08:42:26 +02:00
|
|
|
border: 1px solid var(--SmartThemeBorderColor);
|
2023-08-20 08:49:27 +02:00
|
|
|
}
|
|
|
|
|
2023-09-10 03:08:15 +02:00
|
|
|
.select2-container .select2-selection--multiple .select2-selection__choice,
|
|
|
|
.select2-container .select2-selection--single .select2-selection__choice {
|
2023-08-20 08:49:27 +02:00
|
|
|
border-radius: 5px;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 1px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
background-color: var(--black30a);
|
2023-09-16 08:42:26 +02:00
|
|
|
border-color: var(--SmartThemeBorderColor);
|
2023-08-20 08:49:27 +02:00
|
|
|
font-size: calc(var(--mainFontSize) - 5%);
|
|
|
|
text-shadow: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-results .select2-results__option--selectable {
|
|
|
|
background-color: unset;
|
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
opacity: 0.5;
|
|
|
|
transition: opacity 200ms ease-in-out;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2024-01-11 19:27:59 +01:00
|
|
|
.select2-results .select2-results__option--group {
|
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
background-color: var(--SmartThemeBlurTintColor);
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2023-08-20 08:49:27 +02:00
|
|
|
/* Customize the hovered option list item */
|
|
|
|
.select2-results .select2-results__option--highlighted.select2-results__option--selectable {
|
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
background-color: unset;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2024-01-11 19:27:59 +01:00
|
|
|
.select2-results__option.select2-results__option--group::before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-08-20 08:49:27 +02:00
|
|
|
/* Customize the option list item */
|
|
|
|
.select2-results__option {
|
|
|
|
padding-left: 30px;
|
|
|
|
/* Add some padding to make room for the checkbox */
|
|
|
|
}
|
|
|
|
|
2024-01-11 19:27:59 +01:00
|
|
|
.select2-results .select2-results__option--group .select2-results__options--nested .select2-results__option {
|
|
|
|
padding-left: 2em;
|
|
|
|
}
|
|
|
|
|
2023-08-20 08:49:27 +02:00
|
|
|
/* Add the custom checkbox */
|
2023-12-22 01:22:09 +01:00
|
|
|
.select2-results__option::before {
|
2023-08-20 08:49:27 +02:00
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
left: 6px;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -7px;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2023-09-16 08:42:26 +02:00
|
|
|
border: 1px solid var(--SmartThemeBorderColor);
|
2023-08-20 08:49:27 +02:00
|
|
|
background-color: var(--SmartThemeBlurTintColor);
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
|
2023-09-10 03:08:15 +02:00
|
|
|
.select2-container .select2-selection--multiple .select2-selection__choice__remove,
|
|
|
|
.select2-container .select2-selection--single .select2-selection__choice__remove {
|
2023-08-20 08:49:27 +02:00
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Add the custom checkbox checkmark */
|
2023-12-22 01:22:09 +01:00
|
|
|
.select2-results__option--selected.select2-results__option::before {
|
2023-08-20 08:49:27 +02:00
|
|
|
content: '\2713';
|
|
|
|
font-weight: bold;
|
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
background-color: var(--SmartThemeBlurTintColor);
|
|
|
|
text-align: center;
|
|
|
|
line-height: 14px;
|
2023-12-22 01:22:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.select2-results__option.select2-results__message {
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-results__option.select2-results__message::before {
|
|
|
|
display: none;
|
|
|
|
}
|
2024-05-07 05:44:18 +02:00
|
|
|
|
|
|
|
.select2-selection__choice__display {
|
|
|
|
/* Fix weird alignment on the left side */
|
|
|
|
margin-left: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Styling for choice remove icon */
|
|
|
|
span.select2.select2-container .select2-selection__choice__remove {
|
|
|
|
cursor: pointer;
|
|
|
|
transition: background-color 0.3s;
|
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
background-color: var(--black50a);
|
|
|
|
}
|
|
|
|
|
|
|
|
span.select2.select2-container .select2-selection__choice__remove:hover {
|
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
background-color: var(--white30a);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Custom class to support styling to show clickable choice options */
|
|
|
|
.select2_choice_clickable+span.select2-container .select2-selection__choice__display {
|
|
|
|
cursor: pointer;
|
2024-05-10 00:42:35 +02:00
|
|
|
}
|
2024-06-14 14:50:54 +02:00
|
|
|
|
2024-05-10 00:42:35 +02:00
|
|
|
.select2_choice_clickable_buttonstyle+span.select2-container .select2-selection__choice__display {
|
|
|
|
cursor: pointer;
|
2024-05-07 05:44:18 +02:00
|
|
|
transition: background-color 0.3s;
|
|
|
|
color: var(--SmartThemeBodyColor);
|
|
|
|
background-color: var(--black50a);
|
2024-06-01 01:05:42 +02:00
|
|
|
white-space: break-spaces;
|
|
|
|
word-break: break-all;
|
2024-05-07 05:44:18 +02:00
|
|
|
}
|
|
|
|
|
2024-05-10 00:42:35 +02:00
|
|
|
.select2_choice_clickable_buttonstyle+span.select2-container .select2-selection__choice__display:hover {
|
2024-05-07 05:44:18 +02:00
|
|
|
background-color: var(--white30a);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Custom class to support same line multi inputs of select2 controls */
|
|
|
|
.select2_multi_sameline+span.select2-container .select2-selection--multiple {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2024-06-14 14:50:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.select2_multi_sameline+span.select2-container .select2-selection--multiple .select2-search--inline {
|
2024-05-07 05:44:18 +02:00
|
|
|
/* Allow search placeholder to take up all space if needed */
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2_multi_sameline+span.select2-container .select2-selection--multiple .select2-selection__rendered {
|
|
|
|
/* Fix weird styling choice or huge margin around selected options */
|
|
|
|
margin-block-start: 2px;
|
|
|
|
margin-block-end: 2px;
|
2024-06-01 01:05:42 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
row-gap: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2_multi_sameline+span.select2-container .select2-selection--multiple .select2-selection__choice {
|
|
|
|
margin-top: 0px;
|
2024-05-07 05:44:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.select2_multi_sameline+span.select2-container .select2-selection--multiple .select2-search__field {
|
|
|
|
/* Min height to reserve spacing */
|
|
|
|
min-height: calc(var(--mainFontSize) + 13px);
|
|
|
|
/* Min width to be clickable */
|
|
|
|
min-width: 4em;
|
|
|
|
align-content: center;
|
|
|
|
/* Fix search textarea alignment issue with UL elements */
|
|
|
|
margin-top: 0px;
|
|
|
|
height: unset;
|
2024-05-15 23:28:35 +02:00
|
|
|
/* Prevent height from jumping around when input is focused */
|
|
|
|
line-height: 1;
|
2024-05-07 05:44:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.select2_multi_sameline+span.select2-container .select2-selection--multiple .select2-selection__rendered {
|
|
|
|
/* Min height to reserve spacing */
|
|
|
|
min-height: calc(var(--mainFontSize) + 13px);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Make search bar invisible unless the select2 is active, to save space */
|
|
|
|
.select2_multi_sameline+span.select2-container .select2-selection--multiple .select2-search--inline {
|
|
|
|
height: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2_multi_sameline+span.select2-container.select2-container--focus .select2-selection--multiple .select2-search--inline {
|
|
|
|
height: unset;
|
2024-06-14 14:50:54 +02:00
|
|
|
}
|