.#{$loading-prefix-cls} {
  &__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  &__content {
    color: $gray-11;
    font-size: .28rem;
    margin-top: .2
  }
}
// @mixin spannerSize($width: $loading-spinner-width, $padding: $loading-spinner-padding, $cellWidth: $loading-spinner-cell-width, $cellHeight: $loading-spinner-cell-height) {
//   width: $width;
//   height: $width;
//   &::after,
//   &::before,
//   i::after,
//   i::before {
//     top: $padding;
//     left: calc(50% - #{$cellWidth}/ 2);
//     width: $cellWidth;
//     height: $cellHeight;
//     border-radius: $cellWidth;
//     transform-origin: 50% $width/2 - $padding;
//     box-shadow: 0 ($width - $cellHeight - $padding * 2)  rgba(15, 118, 253, 1);
//   }
// }
// 指示器为长条圆形
// .#{$loading-prefix-cls}-spanner {
//   position: relative;
//   display: inline-block;
//   padding: .12rem;
//   overflow: hidden;
//   vertical-align: middle;
//   transition: top 0.2s ease;
//   animation: rotation 0.9s infinite steps(8);
//   i:not(:first-child) {
//     display: none;
//   }
//   &::after,
//   &::before,
//   i::after,
//   i::before {
//     position: absolute;
//     content: '';
//   }

//   &::before {
//     background: rgba(15, 118, 253, 0.5);
//   }

//   &::after {
//     background: rgba(15, 118, 253, 0.4);
//     transform: rotate(-45deg);
//   }

//   i::before {
//     background: rgba(15, 118, 253, 0.3);
//     transform: rotate(-90deg);
//   }

//   i::after {
//     background: rgba(15, 118, 253, 0.2);
//     transform: rotate(-135deg);
//   }
//   @include spannerSize($loading-spinner-width,$loading-spinner-padding,$loading-spinner-cell-width,$loading-spinner-cell-height);
//   &--sm {
//     @include spannerSize($loading-spinner-sm-width,$loading-spinner-sm-padding,$loading-spinner-sm-cell-width,$loading-spinner-sm-cell-height);
//   }
//   &--lg {
//     @include spannerSize($loading-spinner-lg-width,$loading-spinner-lg-padding,$loading-spinner-lg-cell-width,$loading-spinner-lg-cell-height);
//   }
// }

.#{$loading-prefix-cls}__core {
  position: static;
  display: inline-block;
  opacity: 1;
}

@mixin dotSize($fontSize, $dotSize, $marginBottom) {
  font-size: $fontSize;
  margin-bottom: $marginBottom;
  i {
    width: $dotSize;
    height: $dotSize;
  }
}

//指示器为点形
.#{$loading-prefix-cls}-dot,
.#{$loading-prefix-cls}-spanner {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  transform: rotate(45deg);
  animation-name: dot-rotation;
  animation-duration: 1.2s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  i {
    position: absolute;
    display: block;
    background-color: #1677ff;
    border-radius: 100%;
    transform: scale(0.75);
    transform-origin: 50% 50%;
    opacity: 0.3;
    animation-name: css-spin-move;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-direction: alternate;
  }

  i:nth-child(1) {
    top: 0;
    inset-inline-start: 0;
  }
  i:nth-child(2) {
    top: 0;
    inset-inline-end: 0;
    animation-delay: 0.4s;
  }
  i:nth-child(3) {
    inset-inline-end: 0;
    bottom: 0;
    animation-delay: 0.8s;
  }
  i:nth-child(4) {
    bottom: 0;
    inset-inline-start: 0;
    animation-delay: 1.2s;
  }

  @include dotSize($loading-font-size,$loading-dot-size, $loading-text-margin-bottom);
  &--sm {
    @include dotSize($loading-font-size-sm,$loading-dot-size-sm, $loading-text-margin-bottom-sm)
  }
  &--lg {
    @include dotSize($loading-font-size-lg,$loading-dot-size-lg, $loading-text-margin-bottom-lg)
  }
}

// animations
@keyframes dot-rotation {
  100% {
    transform: rotate(405deg);
  }
}

@keyframes css-spin-move {
  100% {
    opacity: 1;
  }
}

