.Loader {
  border-radius: 4px 4px 0 0;
  display: block;
  overflow-x: hidden;
  width: 100%;
  height: 2px;
  position: absolute;
  z-index: 2;

  &--active:before {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 4px 4px 0 0;
    animation: LoadingBar 1.5s ease-in-out infinite;
    background-image: $color-gradient-loading;
  }
  &--panel,
  &--panel:before {
    border-radius: 4px 4px 0 0;
  }
}

@keyframes LoadingBar {
  0% {
    transform: translateX(-100%);
  }
  45% {
    transform: translateX(0);
  }
  55% {
    transform: translateX(0);
  }
  90% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}
