@import 'src/styles/variables';

@keyframes fade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.3;
  }
}

.wrap {
  user-select: none;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;

  &::after {
    content: ' ';
    position: absolute;
    background: linear-gradient(transparent, $content_bg);
    border-radius: 0 0 $radius $radius;
    height: 100px;
    width: 100%;
    left: 0;
    bottom: 0;
  }

  &.loading {
    opacity: 1;

    .card {
      background: $placeholder_bg;
      animation: fade 0.5s infinite alternate;
    }
  }

  @include tablet {
    display: none;
  }
}

.card {
  opacity: 0.3;
  border-radius: $radius;
  height: 96px;
  background: $placeholder_bg;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 $comment_height;
}

.nothing {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font: $font_18_semibold;
  text-transform: uppercase;
  color: $gray_75;
  height: 20px;
  margin-top: 0 !important;
  text-align: center;
  width: 100%;
}
