
$select-w: rem-calc(288);
$select-h: rem-calc(30);
$select-max-h: rem-calc(400);
$select-padding: 0 rem-calc(12);
$select-font-color: $base-font-color-link;
$select-right: rem-calc(12);


.multi-select-menu {
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  
  .select-title,
  .option-item {
    @include ellipsis();
    @include liheight($select-h);
    padding: $select-padding;
  }

  .select-title {
    line-height: rem-calc(28);
  }

  .select-title,
  .select-list {
    border: $base-border-style;
    border-color: $base-border-color;
    background-color: $base-bg;
    border-radius: $base-border-radius;
    cursor: pointer;
  }


  .selected-item {
    color: $select-font-color;

    &:before {
      content: '';
      position: absolute;
      top: 25%;
      right: $select-right;
      border: 2px solid;
      border-top-color: transparent;
      border-right-color: transparent;
      width: 14px;
      height: 7px;
      transform: rotate(315deg);
    }
  }

  .option-item {
    position: relative;
    padding-right: rem-calc(25);
    &:hover {
      color: $base-font-color-deepbg;
      background-color: $base-active-bg;
    }
    [class^="icon-"] {
        margin-right: 6px;
    }
  }

  .select-list {
    display: none;
    padding: $base-list-padding;
    position: absolute;
    z-index: 1;
    width: 100%;
    margin-top: 5px;
    max-height: $select-max-h;
    overflow: auto;
    box-shadow: $base-box-shadow;
  }

  &.open .select-list {
    display: block;
  }


  .select-arrow {
    color: $base-font-color-info;
    @include liheight($select-h);
    position: absolute;
    top: 0;
    right: 0;
    width: $select-h;
    text-align: center;
    cursor: pointer;
  }


}
