@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;
  margin: 0;

  @include when(multiple) {
    & .el-select-dropdown__item.selected {
      color: $--border-color-hover;
      font-weight: normal;
      background-color: $--select-dropdown-background;
      &.hover {
        background-color: $--select-option-hover-background;
      }

      // &::after {
      //   position: absolute;
      //   right: 20px;
      //   font-family: 'element-icons';
      //   content: "\E611";
      //   font-size: 12px;
      //   font-weight: bold;
      //   -webkit-font-smoothing: antialiased;
      //   -moz-osx-font-smoothing: grayscale;
      // }
    }
  }
  .checkbox-isCheck {
    /deep/ .el-checkbox__inner {
      background-color: #40C87F!important;
      border-color:  #40C87F!important;
    }
  }
  .el-select__input_wrapper {
    position: relative;
    font-size: 14px;
    display: inline-block;
    width: 100%;
    i {
      position: absolute;
      height: 100%;
      right: 15px;
      top: 4px;
      text-align: center;
      color: #e5e5e5;
      transition: all .3s;
      pointer-events: none;
      font-size: 22px;
    }
  }
  .el-select-dropdown__btn {
    text-align: right;
    height: 40px;
    line-height: 40px;
    border-top: 1px solid #e5e5e5;
    & >button {
      padding: 5px 16px;
    }
    button:nth-child(2) {
      margin-right: 5px;
    }
  }
  .el-scrollbar.is-empty .el-select-dropdown__list{
    padding: 0;
  }
}

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

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