// image-preview
.cc-image-preview {
  &-header {
    position: absolute;
    width: 100%;
    padding: 15px;
    top: 0;
    left: 0;
    line-height: 20px;
    text-align: center;
    font-size: 16px;
    z-index: 99;
    color: #f0f0f0;
    h3 {
      position: absolute;
      left: 15px;
      z-index: auto;
    }
  }
  &-close {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 5px;
    right: 15px;
    z-index: 100;
    line-height: 30px;
    text-align: center;
    font-size: 40px;
    color: #fff;
    cursor: pointer;

    &:hover {
      color: @pink;
    }
  }
  &-body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: auto;
    overflow: hidden;
  }
  &-imgs {
    position: absolute;
    width: 600px;
    box-shadow: 0px 24px 36px 0px rgba(0, 0, 0, 0.3);
    cursor: move;
    transition: width, height, transform 0.1s linear;
    z-index: 8;
    &-nosition {
      transition: none;
    }
    > img {
      display: block;
      width: 100%;
    }
  }
  &-guide {
    position: absolute;
    width: 80px;
    height: 80px;
    line-height: 80px;
    top: 50%;
    margin-top: -80px;
    text-align: center;
    color: #d0d0d0;
    z-index: 9;
    cursor: pointer;
    font-size: 60px;

    &:hover {
      color: #fff;
      border-color: #b0b0b0;
    }
    > i {
      margin-top: -5px;
    }
    &-prev {
      left: 0;
    }
    &-next {
      right: 0;
    }
  }
  &-footer {
    position: absolute;
    width: 100%;
    height: 60px;
    bottom: 0;
    left: 0;
    padding: 10px;
    text-align: center;
    font-size: 30px;
    color: #d0d0d0;
    z-index: 99;
    li {
      display: inline-block;
      vertical-align: top;
      height: 40px;
      width: 40px;
      line-height: 40px;
      margin: 0 5px;
      cursor: pointer;
      transition: transform 0.2s linear;
    }
    li:hover {
      color: #fff;
      transform: scale(1.1, 1.1);
    }
    li.li-disabled {
      cursor: not-allowed;
      color: #d0d0d0 !important;
      transform: none !important;
    }
  }

  // view-ui
  .ivu-modal-content {
    background: transparent;
  }
  .ivu-modal-header {
    display: none;
  }
  .ivu-modal-body {
    top: 0;
  }
  .ivu-modal-close {
    display: none;
  }
  .ivu-modal-mask {
    background: rgba(55, 55, 55, 0.8);
  }
}

// image-edit-upload
.image-edit-upload {
  position: relative;
  height: 400px;
  background: #fff;
  padding-bottom: 30px;
  box-sizing: content-box;
}
.cc-edit-upload {
  &-main {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 8;

    .el-upload-dragger {
      height: auto;
    }
    .el-upload-input {
      display: none;
    }
  }
  &-cover {
    height: 400px;
    > img {
      display: block;
      height: 100%;
      width: auto;
      margin: 0 auto;
    }
  }
  &-dcover {
    padding: 109px 0;
    > i {
      font-size: 160px;
      color: #999;
    }
  }
  &-edit {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9;
  }

  &-edit-box {
    height: 350px;
    position: relative;
    .img-progress {
      position: absolute;
      height: 10px;
      width: 100%;
      bottom: 0;
      left: 0;
      z-index: 7;
    }
  }
  &-edit-btns {
    height: 50px;
    padding-top: 10px;
    text-align: center;
    button {
      margin: 0 10px;
    }
  }
  &-tips {
    position: absolute;
    top: 405px;
    left: 0;
    font-size: 14px;
    z-index: 9;
  }
}

// import-file
.cc-import-file {
  &-tips {
    height: 20px;
    line-height: 20px;
  }
  &-footer {
    padding: 10px 0;
    font-size: 14px;
    a:hover {
      color: @mainColor;
    }
  }
}

// rich-editor
.cc-editor {
  .ql-editor {
    max-height: 500px !important;
    height: 300px;
    overflow: auto;
  }
}

// tips
.cc-tips {
  &-success {
    color: @mainColor;
  }
  &-error {
    color: @pink;
  }
}
