@import '~ng-devui/styles-var/devui-var.scss';
$len: 170px;
$time: 1800ms;

section {
  d-button {
    margin-right: 16px;
  }

  span {
    display: inline-block;
    width: 80px;
  }
}

.devui-infinity-loading {
  svg {
    position: absolute;
    top: 0;
    bottom: 0 !important;
    left: 0;
    right: 0;
    margin: auto;
  }
}

#infinity-outline {
  stroke-dasharray: $len * 0.01, $len;
  stroke-dashoffset: 0;
  animation: anim $time linear infinite;
  opacity: 1;
}

#infinity-bg {
  stroke: #3b5885;
}

@keyframes anim {
  0% {
    stroke-dasharray: $len * 0, $len;
    stroke-dashoffset: -$len * 0;
  }

  55% {
    stroke-dasharray: $len * 0.24, $len;
    stroke-dashoffset: -$len * 0.36;
  }

  100% {
    stroke-dasharray: -$len * 0.93, $len;
    stroke-dashoffset: -$len * 0.93;
  }
}

.devui-circle-loading-container {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.devui-circle-loading-container-2 {
  position: absolute;
  right: -20px;
  top: 0;
}

.devui-circle-loading {
  animation: loadingCircle 1s linear infinite;
}

@keyframes loadingCircle {
  0% {
    stroke-dasharray: 1, 50;
    stroke-dashoffset: 0;
  }

  60% {
    stroke-dasharray: 30, 50;
    stroke-dashoffset: -30;
  }

  100% {
    stroke-dasharray: 1, 50;
    stroke-dashoffset: -50;
  }
}

.loading-container {
  height: 150px;
}
