AdminLTE/build/less/select2.less

124 lines
2.6 KiB
Plaintext
Raw Normal View History

2015-06-13 01:36:04 +02:00
/*
* Plugin: Select2
* ---------------
*/
2016-07-04 17:48:51 +02:00
// Import variables and mixins as a reference for separate plugins version
@import (reference) "../bootstrap-less/mixins";
@import (reference) "../bootstrap-less/variables";
@import (reference) "variables";
@import (reference) "mixins";
2015-06-13 01:36:04 +02:00
//Signle select
.select2-container--default,
.select2-selection {
&.select2-container--focus,
&:focus,
2015-09-19 20:05:54 +02:00
&:active {
2015-06-13 01:36:04 +02:00
outline: none;
}
.select2-selection--single {
2017-01-08 21:37:30 +01:00
border: 1px solid @gray-lte;
2015-06-13 01:36:04 +02:00
border-radius: @input-radius;
padding: 6px 12px;
height: 34px;
}
}
2015-09-19 20:05:54 +02:00
2015-06-13 01:36:04 +02:00
.select2-container--default.select2-container--open {
border-color: @light-blue;
}
2015-09-19 20:05:54 +02:00
2015-06-13 01:36:04 +02:00
.select2-dropdown {
2017-01-08 21:37:30 +01:00
border: 1px solid @gray-lte;
2015-06-13 01:36:04 +02:00
border-radius: @input-radius;
}
2015-09-19 20:05:54 +02:00
2015-06-13 01:36:04 +02:00
.select2-container--default .select2-results__option--highlighted[aria-selected] {
background-color: @light-blue;
color: white;
}
2015-09-19 20:05:54 +02:00
2015-06-13 01:36:04 +02:00
.select2-results__option {
padding: 6px 12px;
user-select: none;
2015-09-19 20:05:54 +02:00
-webkit-user-select: none;
}
2015-06-13 01:36:04 +02:00
.select2-container .select2-selection--single .select2-selection__rendered {
padding-left: 0;
padding-right: 0;
height: auto;
margin-top: -4px;
}
2015-09-19 20:05:54 +02:00
2015-06-13 01:36:04 +02:00
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
padding-right: 6px;
padding-left: 20px;
}
2015-09-19 20:05:54 +02:00
2015-06-13 01:36:04 +02:00
.select2-container--default .select2-selection--single .select2-selection__arrow {
height: 28px;
right: 3px;
}
2015-09-19 20:05:54 +02:00
2015-06-13 01:36:04 +02:00
.select2-container--default .select2-selection--single .select2-selection__arrow b {
margin-top: 0;
}
2015-09-19 20:05:54 +02:00
2015-06-13 01:36:04 +02:00
.select2-dropdown,
.select2-search--inline {
.select2-search__field {
2017-01-08 21:37:30 +01:00
border: 1px solid @gray-lte;
2015-06-13 01:36:04 +02:00
&:focus {
outline: none;
border: 1px solid @light-blue;
}
}
}
2015-09-19 20:05:54 +02:00
2015-06-13 01:36:04 +02:00
.select2-container--default .select2-results__option[aria-disabled=true] {
color: #999;
}
2015-09-19 20:05:54 +02:00
2015-06-13 01:36:04 +02:00
.select2-container--default .select2-results__option[aria-selected=true] {
background-color: #ddd;
&,
&:hover {
color: #444;
}
}
//Multiple select
.select2-container--default {
.select2-selection--multiple {
2017-01-08 21:37:30 +01:00
border: 1px solid @gray-lte;
2015-06-13 01:36:04 +02:00
border-radius: @input-radius;
&:focus {
border-color: @light-blue;
}
}
&.select2-container--focus .select2-selection--multiple {
2017-01-08 21:37:30 +01:00
border-color: @gray-lte;
2015-06-13 01:36:04 +02:00
}
}
2015-09-19 20:05:54 +02:00
2015-06-13 01:36:04 +02:00
.select2-container--default .select2-selection--multiple .select2-selection__choice {
background-color: @light-blue;
border-color: darken(@light-blue, 5%);
padding: 1px 10px;
color: #fff;
}
2015-09-19 20:05:54 +02:00
2015-06-13 01:36:04 +02:00
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
margin-right: 5px;
2015-09-19 20:05:54 +02:00
color: rgba(255, 255, 255, .7);
2015-06-13 01:36:04 +02:00
&:hover {
color: #fff;
}
2015-07-12 15:42:26 +02:00
}
2015-09-19 20:05:54 +02:00
2015-07-23 20:58:16 +02:00
.select2-container .select2-selection--single .select2-selection__rendered {
padding-right: 10px;
}