Skip to content

Instantly share code, notes, and snippets.

@billerickson
Last active July 2, 2018 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/fad6956e8142c662eab5380454a1d948 to your computer and use it in GitHub Desktop.
Save billerickson/fad6956e8142c662eab5380454a1d948 to your computer and use it in GitHub Desktop.
.module.type-large-post-listing .wrap {
@include media(">=tablet", "<medium") {
@include columns( 3 );
article:last-of-type {
display: none;
}
}
@include media(">=medium") {
@include columns( 4 );
@supports( grid-area: auto ) {
grid-template-columns: repeat( 9, 1fr );
grid-gap: 32px;
article:first-of-type {
grid-row: 2 / 5;
grid-column: 1 / span 4;
.entry-content {
padding: 16px;
}
}
article:not(:first-of-type) {
grid-column: span 5 / -1;
display: grid;
grid-template-columns: repeat( 11, 1fr );
grid-column-gap: 16px;
.entry-header {
grid-column: 1 / span 4;
}
.entry-content {
grid-column: span 7 / -1;
align-self: center;
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment