peepso grid blog layout

mail@pastecode.io avatar
unknown
css
2 years ago
424 B
14
Indexable
Never
.blog .content__posts {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-column-gap: var(--PADD--MD);
  grid-row-gap: var(--PADD--MD);
}

@media screen and (min-width: 900px) {
  .blog .content__posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog .content__posts .post {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.blog .content__posts .entry-footer {
  margin-top: auto;
}