2015-10-31 22:00:16 +01:00
|
|
|
/*
|
|
|
|
* Plugin: Select2
|
|
|
|
* ---------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
//Signle select
|
|
|
|
.select2-container--default,
|
|
|
|
.select2-selection {
|
|
|
|
&.select2-container--focus,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
.select2-selection--single {
|
2016-10-22 21:32:28 +02:00
|
|
|
border: 1px solid $gray-x-light;
|
|
|
|
//border-radius: $input-radius;
|
2015-10-31 22:00:16 +01:00
|
|
|
padding: 6px 12px;
|
|
|
|
height: 34px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container--default.select2-container--open {
|
2018-02-04 00:45:19 +01:00
|
|
|
border-color: theme-color("primary");
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.select2-dropdown {
|
2016-10-22 21:32:28 +02:00
|
|
|
border: 1px solid $gray-x-light;
|
|
|
|
//border-radius: $input-radius;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container--default .select2-results__option--highlighted[aria-selected] {
|
2018-02-04 00:45:19 +01:00
|
|
|
background-color: theme-color("primary");
|
2015-10-31 22:00:16 +01:00
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-results__option {
|
|
|
|
padding: 6px 12px;
|
|
|
|
user-select: none;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container .select2-selection--single .select2-selection__rendered {
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
height: auto;
|
|
|
|
margin-top: -4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
|
|
|
|
padding-right: 6px;
|
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
|
|
|
height: 28px;
|
|
|
|
right: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-dropdown,
|
|
|
|
.select2-search--inline {
|
|
|
|
.select2-search__field {
|
2016-10-22 21:32:28 +02:00
|
|
|
border: 1px solid $gray-x-light;
|
2015-10-31 22:00:16 +01:00
|
|
|
&:focus {
|
|
|
|
outline: none;
|
2018-02-04 00:45:19 +01:00
|
|
|
border: 1px solid theme-color("primary");
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container--default .select2-results__option[aria-disabled=true] {
|
|
|
|
color: #999;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container--default .select2-results__option[aria-selected=true] {
|
|
|
|
background-color: #ddd;
|
|
|
|
&,
|
|
|
|
&:hover {
|
|
|
|
color: #444;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Multiple select
|
|
|
|
.select2-container--default {
|
|
|
|
.select2-selection--multiple {
|
2016-10-22 21:32:28 +02:00
|
|
|
border: 1px solid $gray-x-light;
|
|
|
|
//border-radius: $input-radius;
|
2015-10-31 22:00:16 +01:00
|
|
|
&:focus {
|
2018-02-04 00:45:19 +01:00
|
|
|
border-color: theme-color("primary");
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.select2-container--focus .select2-selection--multiple {
|
2016-10-22 21:32:28 +02:00
|
|
|
border-color: $gray-x-light;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
2018-02-04 00:45:19 +01:00
|
|
|
background-color: theme-color("primary");
|
|
|
|
border-color: darken(theme-color("primary"), 5%);
|
2015-10-31 22:00:16 +01:00
|
|
|
padding: 1px 10px;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
|
|
|
|
margin-right: 5px;
|
|
|
|
color: rgba(255, 255, 255, 0.7);
|
|
|
|
&:hover {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.select2-container .select2-selection--single .select2-selection__rendered {
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|