@import './../../theme/vars.scss';
@import './../../mixins/scrollbar.scss';

$selectPrefixCls: #{$vender-prefix}-select;

.#{$selectPrefixCls}-search-input {
  width: 100%;
  padding: 5px;
}

.#{$selectPrefixCls}-title {
  padding-left: 10px;

  .#{$selectPrefixCls}-option:hover {
    background: inherit;
  }
}

.#{$selectPrefixCls}-placeholder {
  color: $placeholder-color;
}

.#{$selectPrefixCls}-sm {
  height: 22px;
  line-height: 20px;
}

.#{$selectPrefixCls}-lg {
  height: 40px;
  line-height: 38px;
}

.#{$selectPrefixCls}-options {
  max-height: 180px;
  padding: 0;
  margin: 0;
  overflow: auto;
}

.#{$selectPrefixCls}-option {
  padding: 0 10px;
  padding-right: 28px;
  line-height: 30px;
  cursor: pointer;

  &:hover {
    background-color: $select-option-bg;
  }
}

.#{$selectPrefixCls}-option-selected {
  position: relative;
  color: $primary-color-deep;
}

.#{$selectPrefixCls}-option-active,
.#{$selectPrefixCls}-option-active:hover {
  background-color: $primary-color-light;
}

.#{$selectPrefixCls}-option-icon-selected {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-block;
  margin-top: -15px;
}

.#{$selectPrefixCls}-pretty {
  &-options {
    @include pretty-scrollbar(6px, 6px, $scrollOutColor, $scrollInnerColor, 5px);
  }
}
