Last active
July 13, 2017 14:40
-
-
Save awestmoreland/580e4248aa63c380271134019ab3d99a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Convert floated elements to use grid responsively.