@import "mixins/mixins";
@import "common/var";
@import "./popper";

@include b(select-dropdown) {
  position: absolute;
  z-index: #{$--index-top + 1};
  border: $--border-base;
  border-radius: $--border-radius-base;
  background-color: $--select-dropdown-background;
  box-shadow: $--select-dropdown-shadow;
  box-sizing: border-box;
  margin: 0;
    .el-select-dropdown__item.selected {
      color: $--select-option-selected-font-color;
      background-color: $--select-dropdown-background;

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

      &::after {
        position: absolute;
        right: 10px;
        top: 0;
        font-family: 'element-icons';
        content: "\e7f0";
        font-size: 12px;
        font-weight: $--font-weight-strengthen;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
      }
    }
    .el-select-dropdown__item.selected.is-disabled {
      color: $--select-option-disabled-color;
    }

  .el-scrollbar.is-empty .el-select-dropdown__list{
    padding: 0;
  }

  @include m(medium) {
    .el-select-dropdown__item{
      height: 32px;
      line-height: 32px;
    }
  }
  @include m(small) {
    .el-select-dropdown__item{
      font-size: 12px;
      height: 30px;
      line-height: 30px;
    }
  }
  @include m(mini) {
    .el-select-dropdown__item{
      font-size: 12px;
      height: 28px;
      line-height: 28px;
    }
  }

  .el-select-dropdown-header-extend{
    border-bottom: 1px solid $--border-color-base;
    padding: 10px;
  }

  .el-select-dropdown-extend{
    border-top: 1px solid $--border-color-base;
    padding: 10px;
  }

  .el-select-overlay{
    position: relative;
    padding:2px 0;
    box-sizing: border-box;
    border-bottom: 1px solid $--border-color-base;
    &::after{
      position: absolute;
      right: 10px;
      top: 10px;
      font-size: 14px;
      color: #666666;
      font-family: "element-icons";
      font-style: normal;
      font-weight: 400;
      font-variant: normal;
      text-transform: none;
      content: "\e811";
    }
    .el-select__input{
      box-sizing: border-box;
      margin-left: 10px;
      width: calc(100% - 40px);
    }
    &.is-small{
      .el-select__input{
        font-size: 12px;
      }
    }
    &.is-mini{
      .el-select__input{
        font-size: 12px;
      }
      &::after{
        top: 7px;
      }
    }
  }
}

@include b(select-dropdown__empty) {
  padding: $--select-dropdown-empty-padding;
  margin: $--select-dropdown-empty-margin;
  text-align: center;
  color: $--select-dropdown-empty-color;
  font-size: $--select-font-size;
}

@include b(select-dropdown__wrap) {
  max-height: $--select-dropdown-max-height;
}

@include b(select-dropdown__list) {
  list-style: none;
  padding: $--select-dropdown-padding;
  margin: 0;
  box-sizing: border-box;
}