@import 'src/global/styles/var';
glue-skeleton {
  display: block;
}
.glue-skeleton {
  display: flex;
  padding: 0 @padding-md;

  &__avatar {
    flex-shrink: 0;
    width: @skeleton-avatar-size;
    height: @skeleton-avatar-size;
    margin-right: @padding-md;
    background-color: @skeleton-avatar-background-color;

    &--round {
      border-radius: @border-radius-max;
    }
  }

  &__content {
    width: 100%;
  }

  &__avatar + &__content {
    padding-top: @padding-xs;
  }

  &__row,
  &__title {
    height: @skeleton-row-height;
    background-color: @skeleton-row-background-color;
  }

  &__title {
    width: @skeleton-title-width;
    margin: 0;
  }

  &__row {
    &:not(:first-child) {
      margin-top: @skeleton-row-margin-top;
    }
  }

  &__title + &__row {
    margin-top: 20px;
  }

  &--animate {
    animation: glue-skeleton-blink @skeleton-animation-duration ease-in-out
      infinite;
  }

  &--round {
    .glue-skeleton__row,
    .glue-skeleton__title {
      border-radius: @border-radius-max;
    }
  }
}

@keyframes glue-skeleton-blink {
  50% {
    opacity: 0.6;
  }
}
