/*
 * loading.css: 页面跳转时的加载动画
 */

.loading {
  display: inline-block; /* 将loading显示为行内元素 */
  vertical-align: middle; /* 垂直居中对齐 */
  margin-left: 20px; /* 添加一些间距以与文本分开 */
  position: relative;
  width: 6px;
  height: 10px;
  animation: rectangle infinite 1s ease-in-out -0.2s;
  background-color: #fff;
}

.loading:before,
.loading:after {
  position: absolute;
  width: 6px;
  height: 10px;
  content: "";
  background-color: #fff;
}

.loading:before {
  left: -14px;
  animation: rectangle infinite 1s ease-in-out -0.4s;
}

.loading:after {
  right: -14px;
  animation: rectangle infinite 1s ease-in-out;
}

@keyframes rectangle {
  0%,
  80%,
  100% {
    height: 20px;
    box-shadow: 0 0 #fff;
  }

  40% {
    height: 30px;
    box-shadow: 0 -20px #fff;
  }
}
