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

@include b(input-box) {
  margin-right: -16px;
  @include e(item) {
    border: 1px solid $--border-color-base;
    background: $--color-white;
    border-radius: 2px;
    box-shadow: $--regular-shadow-b;
    padding-right: 8px;
    position: relative;
    box-sizing: border-box;
    .el-icon-check {
      color: $--color-success;
    }
    .el-icon-close {
      color: $--color-danger;
    }
    &:hover {
      border: 1px solid $--color-primary;
      .el-input-box__operation {
        display: inline-block;
      }
      .el-input-box__icon {
        background: url('https://js.dingdandao.com/library/cdnImage/elementui/sortHover.png') no-repeat;
        background-size: cover;
      }
    }
  }
  @include e(icon) {
    height: 24px;
    width: 5px;
    margin-left: 4px;
    background: url('https://js.dingdandao.com/library/cdnImage/elementui/sortNormal.png') no-repeat;
    background-size: cover;
    flex-shrink: 0;
  }
  @include e(operation) {
    width: 54px;
    display: none;
    .el-icon-delete {
      &:hover {
        color: $--color-danger;
      }
    }
  }
  @include e(label) {
    flex: 1;
  }
  @include e(item__fill) {
    border: 1px dashed $--border-color-base;
    background: $--color-white;
    border-radius: 2px;
    padding-right: 8px;
    position: relative;
    box-sizing: border-box;
  }
}
.move {
  cursor: move;
}
