Skip to content

Instantly share code, notes, and snippets.

@awestmoreland
Last active July 13, 2017 14:40
Show Gist options
  • Save awestmoreland/580e4248aa63c380271134019ab3d99a to your computer and use it in GitHub Desktop.
Save awestmoreland/580e4248aa63c380271134019ab3d99a to your computer and use it in GitHub Desktop.
.page-our-members {
.member-grid {
width: 100%;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
grid-auto-flow: dense;
grid-gap: 20px;
figure {
width: auto;
margin: 0;
&.resident {
grid-column-end: span 3;
grid-row-end: span 3;
}
&.basic {
grid-column-end: span 2;
grid-row-end: span 2;
}
}
}
}
@awestmoreland
Copy link
Author

Convert floated elements to use grid responsively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment