/*******************************************************************************
 * Copyright (c) Lenovo 2020.
 * 
 *  LIMITED AND RESTRICTED RIGHTS NOTICE: If data or software is delivered
 *  pursuant a General Services Administration (GSA) contract, use, reproduction, or
 *  disclosure is subject to restrictions set forth in Contract No. GS-35F-05925.
 ******************************************************************************/

@import "./variables.scss";

// This is the round loading spinner

.lds-ring {
  display: flex;
  position: relative;
  width: 64px;
  height: 64px;
}
.lds-ring div:not(:nth-child(4)) {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 51px;
  height: 51px;
  margin: 6px;
  border: 6px solid $accent-color;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: $accent-color transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

// This is the table loading spinner

.ngx-datatable.material .datatable-body .progress-linear .container {
  background-color: $default-gray;
}

.ngx-datatable.material .datatable-body .progress-linear .container .bar {
  background-color: $accent-color;
  transition: transform 1s linear, -webkit-transform 1s linear;
}

@media (min-width: $sm-break) {
  div.progress-linear > div.container {
    max-width: inherit;
  }
}

@media (min-width: $md-break) {
  div.progress-linear > div.container {
    max-width: inherit;
  }
}

@media (min-width: $lg-break) {
  div.progress-linear > div.container {
    max-width: inherit;
  }
}

@media (min-width: $xl-break) {
  div.progress-linear > div.container {
    max-width: inherit;
  }
}

// Span for progress
span[id$="progressSpan"] {
  font-weight: bold;
  font-size: 12px;
}

// Blink dots

@keyframes blink {
  0% {
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

.saving span {
  animation-name: blink;
  animation-duration: 1.4s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.saving span:nth-child(2) {
  animation-delay: 0.2s;
}

.saving span:nth-child(3) {
  animation-delay: 0.4s;
}
