.skeleton-box {
  display: inline-block;
  height: 1em;
  position: relative;
  overflow: hidden;
}

.skeleton-box::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    -75deg,
    rgba(240, 240, 240, 0) 0,
    rgba(240, 240, 240, 0.2) 20%,
    rgba(240, 240, 240, 0.5) 60%,
    rgba(240, 240, 240, 0)
  );
  animation: skeleton-box-shimmer 1s linear infinite;
  content: '';
}

.t_dark .skeleton-box::after {
  background-image: linear-gradient(
    -75deg,
    rgba(30, 30, 30, 0) 0,
    rgba(30, 30, 30, 0.2) 20%,
    rgba(30, 30, 30, 0.5) 60%,
    rgba(30, 30, 30, 0)
  );
}

@keyframes skeleton-box-shimmer {
  100% {
    transform: translateX(100%);
  }
}
