| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- //
- // Select2
- //
- // Overwrite/Extend styles
- // --------------------------------------------------
- .select2-container {
- .select2-selection--single {
- height: $pbf-height;
- }
- .select2-dropdown {
- border-color: $input-border-color;
- @include border-bottom-radius(3px);
- }
- }
- .select2-container--default {
- .select2-selection--single {
- border-color: $input-border-color;
- border-radius: 3px;
- .select2-selection__rendered {
- padding-left: 12px;
- line-height: $pbf-height;
- .form-material & {
- padding-left: 0;
- }
- }
- .select2-selection__arrow {
- height: $pbf-height;
- }
- .form-material & {
- border: none;
- border-bottom: 1px solid $input-border-color;
- border-radius: 0;
- }
- .select2-selection__placeholder {
- color: $gray-600;
- }
- }
- .select2-selection--multiple {
- border-color: $input-border-color;
- border-radius: 3px;
- min-height: $pbf-height;
- .form-material & {
- border: none;
- border-bottom: 1px solid $input-border-color;
- border-radius: 0;
- }
- & .select2-selection__rendered {
- padding-right: 12px;
- padding-left: 12px;
- .form-material & {
- padding-left: 0;
- }
- }
- }
- &.select2-container--focus .select2-selection--multiple,
- &.select2-container--focus .select2-selection--single {
- border-color: $input-focus-border-color;
- .form-material & {
- border-bottom-color: $input-focus-border-color;
- }
- }
- .is-valid &,
- .is-valid &.select2-container--focus {
- .select2-selection--single,
- .select2-selection--multiple {
- border-color: $brand-success;
- }
- }
- .is-valid .form-control &,
- .is-valid .form-control &.select2-container--focus {
- .select2-selection--single,
- .select2-selection--multiple {
- border-bottom-color: $brand-success;
- }
- }
- .is-invalid &,
- .is-invalid &.select2-container--focus {
- .select2-selection--single,
- .select2-selection--multiple {
- border-color: $brand-danger;
- }
- }
- .is-invalid .form-material &,
- .is-invalid .form-material &.select2-container--focus {
- .select2-selection--single,
- .select2-selection--multiple {
- border-bottom-color: $brand-danger;
- }
- }
- .select2-selection--multiple {
- .select2-selection__choice {
- height: 22px;
- line-height: 22px;
- color: $white;
- font-size: 13px;
- font-weight: 600;
- background-color: $brand-primary;
- border: none;
- border-radius: 3px;
- }
- .select2-selection__choice__remove {
- margin-right: 5px;
- color: rgba(255,255,255,.5);
- @include hover {
- color: rgba(255,255,255,.75);
- }
- }
- }
- .select2-search--dropdown .select2-search__field {
- border-color: $input-border-color;
- }
- .select2-results__option--highlighted[aria-selected] {
- background-color: $brand-primary;
- }
- .select2-search--inline .select2-search__field {
- padding-right: 0;
- padding-left: 0;
- font-family: $font-family-base;
- box-shadow: none;
- .form-material & {
- padding-left: 0;
- }
- }
- }
- .select2-search--dropdown .select2-search__field {
- padding: 6px 12px;
- font-family: $font-family-base;
- border-radius: 3px;
- box-shadow: none;
- }
|