This commit is contained in:
David Štaleker
2025-07-18 05:33:16 +02:00
parent 401a367e5d
commit db0cc8d3de
14776 changed files with 9251484 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
@import "../../css/_appwork/functions";
@mixin select2-variant($background, $color: null) {
$color: if($color, $color, yiq($background));
.select2-container--default .select2-selection--multiple .select2-selection__choice {
background: $background;
color: $color;
}
}
@mixin select2-validation-state($state, $border) {
.is-#{$state} .select2-container--default .select2-selection,
.is-#{$state}.select2-container--default .select2-selection {
border-color: $border;
}
}
@mixin select2-theme($background, $color: null) {
$color: if($color, $color, yiq($background));
.default-style .select2-container--default {
.select2-results__option--highlighted[aria-selected] {
background-color: $background !important;
color: $color !important;
}
&.select2-container--focus .select2-selection,
&.select2-container--open .select2-selection {
border-color: $background !important;
}
}
.default-style .select2-primary {
@include select2-variant($background, $color);
}
}
@mixin material-select2-theme($background, $color: null) {
$color: if($color, $color, yiq($background));
.material-style .select2-container--default {
.select2-results__option--highlighted[aria-selected] {
background-color: $background !important;
color: $color !important;
}
&.select2-container--focus:not(.select2-container--disabled) .select2-selection,
&.select2-container--open:not(.select2-container--disabled) .select2-selection {
border-color: $background !important;
box-shadow: 0 -1px 0 0 $background inset !important;
}
}
.material-style .select2-primary {
@include select2-variant($background, $color);
}
}