@import "mixins/mixins";
@import "common/var";
@import "progress";
@import "dialog";
@import "upload";

@include b(upload-image) {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 96px;
  height: 96px;
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  &--solid {
    border: 1px solid #d9d9d9;
  }
  &--error {
    color: #ff3b30;
    border: 1px solid #ff3b30;
  }
  &__icon {
    font-size: 28px;
    margin-top: 20px;
  }
  &__tip {
    font-size: 16px;
    margin-top: 12px;
  }
  &__progress {
    width: 72px;
    margin-top: 26px;
  }
  &__image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
  }
  &__imgwrap {
    position: relative;
    margin-top: 8px;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    &:hover {
      .el-upload-image__hover {
        opacity: 1;
      }
    }
  }
  &__hover {
    transition: all 0.5s;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    &__icon {
      color: #fff;
      cursor: pointer;
    }
  }
  .el-icon-delete {
    margin-left: 17px;
  }
  .el-icon-warning-outline {
    margin-top: 15px;
  }
  .el-button--text{
    font-size: $--font-size-extra-small;
  }
  .el-icon-del{
    margin-left: 5px;
  }
}
