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

@include b(select-dropdown) {
  position: absolute;
  z-index: #{$--index-top + 1};
  border: $--select-dropdown-border;
  border-radius: $--border-radius-base;
  background-color: $--select-dropdown-background;
  box-shadow: $--select-dropdown-shadow;
  box-sizing: border-box;
  margin: 5px 0;

  @include when(multiple) {

    & .el-select-dropdown__item {
      .el-checkbox {
        margin-right: 8px;
      }
    }

    & .el-select-dropdown__item.selected {
      color: $--select-option-selected-font-color;
      background-color: $--select-dropdown-background;

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

      // &::after {
      //   position: absolute;
      //   right: 20px;
      //   font-family: 'element-icons';
      //   content: "\e6da";
      //   font-size: 12px;
      //   font-weight: bold;
      //   -webkit-font-smoothing: antialiased;
      //   -moz-osx-font-smoothing: grayscale;
      // }
    }
  }

  .el-scrollbar.is-empty .el-select-dropdown__list {
    padding: 0;
  }
  .el-input {
    width: calc(100% - 24px);
    height: 32px;
    margin-left: 12px;
    margin-top: 10px;
    margin-bottom: 4px;
    .el-input__icon, .el-input__inner {
      height: 32px;
      line-height: 32px;
    }
  }

}

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

  .el-empty__image {
    width: 80px;
  }
}

@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;
}

@include b(select-dropdown-add) {
  margin: $--select-dropdown-add-margin;
  margin-bottom: 4px;
  color: $--select-option-selected-font-color;
  font-size: $--select-font-size;
  cursor: pointer;
}

@include b(select-dropdown-add__input) {
  display: flex;
  align-items: center;
  margin: $--select-dropdown-add-margin;
  i{
    cursor: pointer;
    font-size: 18px;
    margin-left: 14px;
    color:$--select-dropdown-empty-color;
    &:hover{
      color:$--select-option-selected-font-color
    }
  }
  &_ban{
    cursor: not-allowed !important;
    &:hover{
      color:$--select-dropdown-empty-color !important;
    }
  }
  .el-input {
    flex: 1;
    margin:0px;
  }
}