@import '../variables.scss';
@import './variables.scss';
@import '../utils.scss';
@import '../input/variables.scss';
@import "~@alifd/next/lib/core/index-noreset";
@import '~@alifd/next/lib/select/scss/variable';
@import '~@alifd/next/lib/menu/scss/variable';
@import '~@alifd/next/lib/select/scss/mixin';
@import '~@alifd/next/lib/menu/scss/mixin';
//默认带打勾的去掉，改在menu,focus背景色改在menu

//select 清除按钮
#{$select-prefix} {
  .#{$css-prefix}select-clear {
    .#{$css-prefix}icon-delete-filling {
      &::before {
        content: $input-feedback-clear-icon;
        // content: '\E81B';
      }
    }
  }

  .#{$css-prefix}input.#{$css-prefix}focus {
    box-shadow: none;
  }

  &-popup-wrap,
  &-single-menu,
  &-auto-complete-menu,
  &-multiple-menu {

    margin-top: $s-2;
  }

  //select中tag的样式
  &.#{$css-prefix}xs {
    #{$select-prefix}-inner {
      // height: $b-design-form-element-xs-height;

      #{$select-prefix}-values {
        @include select-size($b-design-form-element-xs-height, $select-s-lineheight);
        padding: auto $s-3;
      }
    }

  }

  &-multiple,
  &-tag {
    &.#{$css-prefix}xs {
      #{$select-prefix}-values {
        @include select-size($b-design-form-element-xs-height, $select-s-lineheight);
      }

      #{$select-prefix}-values-compact {
        height: $b-design-form-element-xs-height !important;
      }

      #{$tag-prefix} {
        border: 0;
        @include select-tag-size($select-s-lineheight, calc(0px - 1px));

        &-body {
          line-height: $select-s-lineheight;
        }
      }

      .#{$css-prefix}input-label,
      .#{$css-prefix}input-control,
      #{$select-prefix}-tag-compact {
        line-height: calc(#{$b-design-form-element-xs-height} - 2px);
      }
    }
  }

  &.#{$css-prefix}white {
    .next-select-inner {
      .#{$css-prefix}tag {
        border-color: white !important;
        background-color: white !important;

        &:hover {
          .#{$css-prefix}tag-close-btn {
            .next-icon::after {
              background-color: $b-design-select-white-tag-hover-close-btn-bg !important;
            }
          }
        }

      }
    }



  }

  &.#{$css-prefix}grey {
    .#{$css-prefix}input {
      border: $input-border-width solid $b-design-input-grey-bg-color;
      background-color: $b-design-input-grey-bg-color;

      &.#{$css-prefix}focus {
        border-color: $input-focus-border-color;
        box-shadow: none;
      }
    }
  }

}

#{$menu-prefix} {
  &-item {
    &:not(.#{$css-prefix}disabled):not(.#{$css-prefix}selected).#{$css-prefix}focused {
      color: $menu-color;
    }
  }
}

.#{$css-prefix}select-menu,
.#{$css-prefix}select-menu-wrapper {
  border: 0px;

  &::-webkit-scrollbar-thumb {
    background-color: $color-fill1-3;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
  }

  &:hover::-webkit-scrollbar-thumb {
    background-color: $color-fill1-3;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
  }

  &::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background-color: white;
  }

  &::-webkit-scrollbar-track {
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
  }
}