index.less 4.87 KB
@import '~antd/es/style/themes/default.less';

.qx-import-modal {
  .ant-modal-content {
    overflow: hidden;
    border-radius: 8px;
  }
  .ant-modal-header {
    height: 48px;
    color: #333;
    font-weight: 500;
    font-size: 16px;
  }
  .ant-modal-body {
    padding: 22px 0 0;
  }
  .ant-steps {
    .ant-steps-item-icon {
      width: 24px;
      height: 24px;
      line-height: 24px;
      .ant-steps-icon {
        top: -1.5px;
      }
    }
    .ant-steps-item-tail {
      top: 8px;
    }
    .ant-steps-item-title {
      color: #999 !important;
      font-size: 16px;
      line-height: 24px;
      text-align: center;
    }
    .ant-steps-item-active,
    .ant-steps-item-finish {
      .ant-steps-item-title {
        color: #3499ff !important;
      }
    }
  }
}
.qx-import {
  position: relative;
  min-height: 520px;
  padding-bottom: 56px;
  .qx-import-button {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 56px;
    padding-right: 24px;
    line-height: 56px;
    text-align: right;
    border-top: 1px solid #f0f0f0;
    button {
      width: 74px;
      height: 32px;
      margin-left: 8px;
    }
  }
  .qx-import-step {
    padding: 24px 24px 0;
    &-title {
      margin-bottom: 16px;
      color: #333;
      font-weight: 500;
      font-size: 14px;
      line-height: 14px;
    }
    &-status {
      margin-bottom: 20px;
    }
    &-describe {
      padding: 8px 16px;
      background: #f9f9f9;
      border-radius: 4px;
      ul {
        margin: 0;
        padding: 0;
        li {
          display: flex;
          color: #595959;
          font-size: 14px;
          > div:nth-child(1) {
            margin-right: 8px;
          }
          span {
            color: @primary-color;
            cursor: pointer;
          }
        }
      }
    }
    .qx-import-step-describe ul li div {
      padding: 4px 0;
      line-height: 22px;
    }
    .more-describe > div:nth-child(1) {
      padding: 4px 0 2px 0;
    }
    .more-describe > div:not(:first-child) {
      padding: 2px 0;
    }
    &-upload {
      height: 112px;
      .ant-upload-drag {
        width: 100%;
        height: 88px;
        background-color: #fff;
      }
      .ant-upload-drag-hover {
        background: rgba(52, 153, 255, 0.1) !important;
        border-color: #3499ff !important;
      }
      &-drag {
        display: flex;
        align-items: center;
        justify-content: center;
        .drag-span {
          display: block;
          margin-left: 6px;
          color: #aeb1b8;
          font-size: 13px;
          line-height: 18px;
        }
      }
    }
  }
  .qx-import-check {
    &-data {
      text-align: center;
      > img {
        width: 288px;
        height: 190px;
      }
      .check-describe,
      .ant-checkbox-wrapper {
        margin-top: 18px;
        color: #666;
        font-size: 14px;
        line-height: 14px;
      }
    }
    &-loading {
      display: flex;
      align-items: start;
      justify-content: center;
    }
    .dot {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 24px;
      margin-left: 3px;
    }
    .dot-item {
      width: 2px;
      height: 2px;
      margin: 0 4px;
      background-color: #666;
      border-radius: 50%;
      animation: dot 0.5s linear infinite;
    }
    .dot1 {
      animation-delay: 0s;
    }
    .dot2 {
      animation-delay: 0.1s;
    }
    .dot3 {
      animation-delay: 0.2s;
    }
    @keyframes dot {
      0% {
        margin-bottom: 0;
      }
      50% {
        margin-bottom: 10px;
      }
      100% {
        margin-bottom: 0;
      }
    }
  }
  .qx-import-check,
  .qx-import-finish {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 508px;
    padding-bottom: 56px;
  }
  .qx-import-finish {
    &-main {
      text-align: center;
    }
    .anticon-check-circle {
      color: #52c41a;
    }
    .anticon-close-circle {
      color: #ff4d4f;
    }
    &-icon {
      .anticon-check-circle {
        font-size: 46px;
      }
    }
    &-text {
      margin: 19px 0 8px 0;
      color: #333;
      font-size: 16px;
      line-height: 22px;
    }
    &-success,
    &-error {
      margin-bottom: 8px;
      padding: 0 20px;
      color: #666;
      font-size: 16px;
      line-height: 22px;
      letter-spacing: 0;
      svg {
        margin-right: 9px;
      }
    }
    .qx-import-finish-success span {
      color: #52c41a;
    }
    .qx-import-finish-error span {
      color: #ff4d4f;
    }
  }
  .qx-import-hide {
    display: none;
  }
  .qx-import-appear {
    display: block;
  }
  .qx-import-step-upload-file {
    display: flex;
    align-items: center;
    width: 100%;
    .anticon-delete {
      margin-left: 20px;
      padding: 0 10px;
      color: #999;
      cursor: pointer;
      opacity: 0;
    }
  }
  .qx-import-step-upload-file:hover {
    .anticon-delete {
      opacity: 1;
    }
  }
}