@import '../../style/index.less';

@modal-file: ~'@{xui-prefix}__modal-file';
@modal-file_admin: ~'@{xui-prefix}__modal-file_admin';
@modal-file_pc: ~'@{xui-prefix}__modal-file_pc';

.@{modal-file_admin}--form {
  padding-top: 30px !important;
}

.@{modal-file_admin}--step-wrap {
  display: flex;
  height: 40px;
  margin: -24px -24px 0;
  border-bottom: 1px solid #f0f0f0;

  .@{modal-file_admin}--step {
    &-item {
      position: relative;
      display: flex;
      flex: 1 1 auto;
      align-items: center;
      justify-content: center;
    }

    &-item-active {
      color: #fff;
      background-color: @primary-color;
    }

    &-item-nofirst-active {
      &::before {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        display: block;
        width: 0;
        height: 0;
        border-top: 19px solid transparent;
        border-right: none;
        border-bottom: 20px solid transparent;
        border-left: 20px solid #fff;
        content: '';
      }
    }

    &-item-nolast-active {
      &::after {
        position: absolute;
        top: 0;
        right: -20px;
        z-index: 1;
        display: block;
        width: 0;
        height: 0;
        border-top: 19px solid transparent;
        border-right: none;
        border-bottom: 20px solid transparent;
        border-left: 20px solid @primary-color;
        content: '';
      }
    }
  }
}

.@{modal-file_admin}--content-wrap {
  padding-top: 30px;

  .@{modal-file_admin}--btn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    border: 1px dashed #ccc;

    .ant-upload-list {
      display: none;
    }
  }

  .@{modal-file_admin}--tip {
    margin: 10px 0 0;
    color: #f32d13;
  }
}

.@{modal-file_pc}--content-wrap {
  .@{modal-file_pc}--step-wrap {
    display: flex;
    margin-bottom: 30px;
    padding: 0 6px;
    font-size: 14px;

    .@{modal-file_pc}--step-label {
      color: #666;
    }

    .@{modal-file_pc}--step-content {
      flex: 1;
      &-btn {
        position: relative;
        top: -5px;
        .ant-upload-list {
          display: none;
        }
        .ant-btn {
          width: 102px;
          height: 30px;
          padding: 0;
          .anticon.anticon-upload {
            position: relative;
            top: 1px;
            margin-right: -4px;
          }
        }
      }
      &-tip {
        margin-left: 4px 0;
        color: #666;
        font-size: 12px;
      }
    }
    &:last-child {
      margin-bottom: 0;
      .@{modal-file_pc}--step-content {
        &-tip {
          margin: 4px 0 12px 0;
        }
      }
    }
  }
}

.@{modal-file}--file-list {
  margin-bottom: 6px;
  .@{modal-file}--file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 3px 5px;
    color: #44a1ff;
    font-size: 12px;
    background: #f5f5f5;
  }
}

.@{modal-file}--result-wrap {
  padding-top: 16px;
}
