Sha256: c475348935165386e4785c3c1cf513dbb67219e6893ff9a022f009393c06f8bc

Contents?: true

Size: 925 Bytes

Versions: 4

Compression:

Stored size: 925 Bytes

Contents

.RecentPosts {
  &__title {
    display: inline-block;
  }

  &__list {
    display: grid;
    grid-template: auto;
    gap: var(--site-owl-spacing);
  }

  &__item {
    display: flex;
    flex-direction: column;
    max-height: 20rem;
  }

  &__excerpt {
    flex: 1;
    overflow: hidden;
    position: relative;

    &::before {
      background-image: linear-gradient(to top, #fff, transparent);
      content: "";
      display: block;
      height: 3rem;
      position: absolute;
        bottom: 0;
      width: 100%;
    }

    > p {
      margin: 0;
    }
  }

  .Button {
    align-self: flex-end;
    display: block;
    width: 100%;
  }
}

@include breakpoint("medium") {
  .RecentPosts__list {
    grid-template: auto / repeat(2, 1fr);
  }
  .RecentPosts .Button {
    font-size: 1rem;
    width: auto;
  }
}

@include breakpoint("large") {
  .RecentPosts__list {
    grid-template: auto / repeat(3, 1fr);
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
oscailte-3.1.0 _sass/oscailte/components/_recentposts.scss
oscailte-3.0.3 _sass/oscailte/components/_recentposts.scss
oscailte-3.0.2 _sass/oscailte/components/_recentposts.scss
oscailte-3.0.0 _sass/oscailte/components/_recentposts.scss