
@keyframes #{$namespace}skeleton-loading {
  0% {
      background-position: 100% 50%
  }

  to {
      background-position: 0 50%
  }
}

.#{$namespace}skeleton {
  width: 100%;
}

.#{$namespace}skeleton__first-line,.#{$namespace}skeleton__paragraph {
  height: $skeleton-paragraph-height;
  margin-top: $skeleton-paragraph-margin-top;
  background: $skeleton-paragraph-background; 
}

.#{$namespace}skeleton.is-animated .#{$namespace}skeleton__item {
  background: linear-gradient(90deg,$skeleton-paragraph-background 25%, $skeleton-paragraph-is-animated-background 37%,$skeleton-paragraph-background 63%);
  background-size: 400% 100%;
  animation: #{$namespace}skeleton-loading 1.4s ease infinite
}

.#{$namespace}skeleton__item {
  background: $skeleton-paragraph-background;
  display: inline-block;
  height: $skeleton-item-height;
  border-radius: $skeleton-item-border-radius; 
  width: 100%;
}

.#{$namespace}skeleton__circle {
  border-radius: $skeleton-circle-border-radius; 
  width: $skeleton-circle-width;
  height:  $skeleton-circle-height;
  line-height: $skeleton-circle-line-height;
}

.#{$namespace}skeleton__circle--lg {
  width: $skeleton-circle-lg-width;
  height: $skeleton-circle-lg-height;
  line-height: $skeleton-circle-lg-line-height;
}

.#{$namespace}skeleton__circle--md {
  width: $skeleton-circle-md-width;
  height: $skeleton-circle-md-height;
  line-height: $skeleton-circle-md-line-height;
}

.#{$namespace}skeleton__button {
  height: $skeleton-button-height; ;
  width: $skeleton-button-width; ;
  border-radius: $skeleton-button-border-radius; 
}

.#{$namespace}skeleton__p {
  width: 100%
}

.#{$namespace}skeleton__p.is-last {
  width: 61%
}

.#{$namespace}skeleton__p.is-first {
  width: 33%
}

.#{$namespace}skeleton__text {
  width: 100%;
  height: $skeleton-text-height;
}

.#{$namespace}skeleton__caption {
  height:$skeleton-caption-height;
}

.#{$namespace}skeleton__h1 {
  height: $skeleton-h1-height;
}

.#{$namespace}skeleton__h3 {
  height:$skeleton-h3-height;
}

.#{$namespace}skeleton__h5 {
  height:$skeleton-h5-height;
}

.#{$namespace}skeleton__image {
  width: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0
}

.#{$namespace}skeleton__image svg {
  fill: #dcdde0;
  width: 22%;
  height: 22%
}