:host {
  .mediaUploader {
    position: relative;
    overflow: hidden;
    .annotation {
      padding: 6px 0;
      color: #666;
      width: 100%;
      border-bottom: 1px dashed #e9e9e9;
      .orange {
        color: #ff6f00;
      }
    }
  }
  .body {
    position: relative;
    margin: 10px 0;
    overflow: hidden;
  }
  .img-box {
    margin-bottom: 15px;
    float: left;
    margin-right: 9px;
    padding: 3px;
    border: 1px solid #ebebeb;
    position: relative;
    background-color: #fff;
    box-sizing: content-box;
    .view-img {
      vertical-align: middle;
      height: 100%;
      width: 100%;
      cursor: pointer;
    }
    &.active {
      &:after {
        content: '主图';
        position: absolute;
        bottom: 3px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        color: #fff;
        background-color: rgba(98, 168, 234, 0.8);
        left: 3px;
        right: 3px;
      }
    }
  }
  .img-cont {
    float: left;
    padding: 3px;
    border: 1px solid #ebebeb;
    position: relative;
    text-align: center;
    box-sizing: content-box;
    &:hover {
      border-color: #46be8a
    }
  }
  .del-img {
    line-height: 18px;
    width: 21px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    display: block;
    background: #fff;
    font-weight: 700;
    font-size: 10px;
    cursor: pointer;
    color: #c3c3c3;
    font-style: normal;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    position: absolute;
    right: -6px;
    top: -6px;
    &:hover {
      color: #46be8a
    }
  }
  .uploadBtn {
    cursor: pointer
  }
  .img-empty {
    background-color: #f7f7f7;
    width: 100%;
    height: 100%;
    text-align: center;
    .iconfont {
      top: 50%;
      -webkit-transform: translate3d(0, -50%, 0);
      transform: translate3d(0, -50%, 0);
      color: #dadada;
      width: auto;
      font-size: 40px
    }
  }
  .fileInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    input {
      font-size: 999px;
      opacity: 0;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      cursor: pointer;
    }
  }
  .error {
    .iconfont {
      color: #d01919;
    }
  }
}
