@import "~ui/styles/variables";

.spinner {
  margin: 0px auto 0;
  white-space: nowrap;
  text-align: center;
  display: inline;
}

.spinner > div {
  width: 10px;
  height: 10px;
  background-color: @spinner-bg;
  border-radius: 100%;
  display: inline-block;
  -webkit-animation: bouncedelay 1s infinite ease-in-out;
  animation: bouncedelay 1s infinite ease-in-out;
  /* Prevent first frame from flickering when animation starts */
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.navbar .spinner > div {
  background-color: @navbar-default-link-color;
}

.spinner.large > div {
  width: 24px;
  height: 24px;
}

.spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes bouncedelay {
  0%, 80%, 100% { -webkit-transform: scale(0.0) }
  40% { -webkit-transform: scale(1.0) }
}

@keyframes bouncedelay {
  0%, 80%, 100% {
    transform: scale(0.0);
    -webkit-transform: scale(0.0);
  } 40% {
    transform: scale(1.0);
    -webkit-transform: scale(1.0);
  }
}
