//*****************************// // SELECT 2 //*****************************// .select2-container { display: block !important; width: auto !important; max-width: 100% !important; } .select2.select2-hidden-accessible { width: auto !important; } // Prevents horizontal scrolling on designation select on donation form body:not(.modal-open) { .select2-container--default { z-index: $zindex-dropdown; } } body.modal-open { .modal .select2-container { z-index: $zindex-modal + 2 !important; } // makes select2 dropdown higher than redactor toolbar in modals } .select2-container--default { &.select2-container--focus .select2-selection--multiple, &.select2-container--open .select2-selection--single { border-color: $custom-select-focus-border-color; box-shadow: 0 0 0 ($spacer * .125) transparentize($primary, 0.8); } //** Single select option .select2-selection--single { display: inline-block; width: 100%; height: $custom-select-height !important; padding: $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $custom-select-padding-y $custom-select-padding-x !important; // font-weight: $btn-font-weight; line-height: $custom-select-line-height; color: $custom-select-color; vertical-align: middle; background: $custom-select-bg $custom-select-indicator no-repeat right $custom-select-padding-x center; background-size: $custom-select-bg-size; border: $custom-select-border-width solid $custom-select-border-color; border-radius: $border-radius; outline: none; cursor: pointer; transition: $transition-base; .select2-selection__rendered { padding: 0 !important; line-height: ($spacer * .75) !important; height: $custom-select-height !important; transition: $transition-base; } .select2-selection__arrow { display: none; } } //** Multiple select option .select2-selection--multiple { padding: 8px $input-padding-x 0; min-height: $input-height; font-size: $font-size-base; color: $input-color; border: $border-width solid $input-border-color; border-radius: $input-border-radius; transition: $transition-base; .select2-search--inline { min-height: 18px; font-size: $font-size-base; color: $input-color; line-height: 1; .select2-search__field { margin-top: 0; min-height: 18px; } } .select2-selection__rendered { margin: 0; padding: 0 !important; @include clearfix(); .select2-selection__choice { margin: 0 3px 3px 0; padding: 3px ($spacer * .25); min-width: 14px; font-weight: $badge-font-weight; font-size: $font-size-sm; line-height: 1; background-color: $white; border: $border-width solid $border-color; border-radius: $border-radius; transition: $transition-base; &:hover, &:active { color: $body-color; background-color: $dropdown-link-active-bg; } + li { margin-top: 0; } } } .select2-selection__choice__remove { margin-right: ($spacer * .25); color: $primary; } } //** Dropdown styles .select2-dropdown { padding: $dropdown-padding-y $dropdown-padding-x; font-size: $font-size-base; color: $body-color; text-align: left; list-style: none; background-color: $dropdown-bg; background-clip: padding-box; border: $dropdown-border-width solid $dropdown-border-color; border-radius: $dropdown-border-radius; box-shadow: $dropdown-box-shadow; } .select2-search--dropdown { padding: ($spacer * .25); .select2-search__field { display: block; width: 100%; padding: $input-padding-y $input-padding-x; font-size: $font-size-base; line-height: $input-line-height; color: $input-color; background-color: $input-bg; background-clip: padding-box; border: $input-border-width solid $input-border-color; outline: 0; transition: $transition-base; &:focus { border-color: $primary; } } } .select2-results__option { position: relative; margin-top: 0; display: block; width: 100%; // For `