/**
 * Created by hehuizhong on 2018/1/16.
 */
.loading {
  color: $brand-primary;
  vertical-align: middle;
  text-align: center;
&-dot {
    position: relative;
    display: block;
    border-radius: 50%;
    background-color: $brand-primary;
    width: $font-size-base;
    height: $font-size-base;
    animation: ani-loading-bounce 1s 0s ease-in-out infinite;
  }
&-lg &-dot {
    width: $font-size-lg;
    height: $font-size-lg;
  }
&-sm &-dot {
    width: $font-size-sm;
    height: $font-size-sm;
  }
&-fix {
    position: absolute;
    top: 0;
    left: 0;
    z-index: $zindex-loading;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,.9);
  }
&-fullscreen{
    z-index: $zindex-loading-fullscreen;
  &-wrapper{
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
    }
  }
&-fix &-main {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
&-text,
&-show-text &-dot {
    display: none;
  }
&-show-text &-text {
    display: block;
  }
}

@keyframes ani-loading-bounce {
  0% {
    transform: scale(0);
}
  100% {
    transform: scale(1);
  opacity: 0;
}
}
