@import '../base/variables';

@keyframes loading-breath {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

.AknLoadingPlaceHolderContainer > * {
  position: relative;
  border: none !important;
  border-radius: 5px;
  overflow: hidden;

  &:after {
    animation: loading-breath 2s infinite;
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;

    background: linear-gradient(270deg, #fdfdfd, #eee);
    background-size: 400% 400%;
    border-radius: 5px;
  }
}

.AknLoadingPlaceHolder {
  position: relative;
  border: none;

  &:after {
    animation: loading-breath 2s infinite;
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;

    background: linear-gradient(270deg, #fdfdfd, #eee);
    background-size: 400% 400%;
    border-radius: 5px;
  }
}

.AknLoadingMask {
  background: rgba(255,255,255,0.8) url("/bundles/pimui/images/loader-V2.svg") no-repeat center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 950;
  background-size: 60px;
  transition-delay: .2s;

  &--hidden {
    opacity: 0;
    height: 0;
    transition-delay: 0s;
  }
}

.AknLoadingIndicator {
  background: url("/bundles/pimui/images/loader-V2.svg") no-repeat center;
  background-size: 50px;
  width: 50px;
  transition: opacity .2s ease-in-out;
  transition-delay: .3s;

  &--hidden {
    opacity: 0;
  }
}
