Skip to content

Instantly share code, notes, and snippets.

@aarongustafson
Last active September 8, 2016 17:49
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 aarongustafson/de9483a9f4b3fdebde3c74d0647a65b2 to your computer and use it in GitHub Desktop.
Save aarongustafson/de9483a9f4b3fdebde3c74d0647a65b2 to your computer and use it in GitHub Desktop.
@media (min-width: 20em) {
.gallery__item {
float: left;
width: 45%;
width: calc( 50% - 0.69rem);
margin: 1.375rem 0 0 1.375rem;
flex: 0 0 calc( 50% - 0.69rem);
}
}
@media (min-width: 20em) and (max-width: 29.9375em) {
.gallery__item:nth-child(odd) {
margin-left: 0;
clear: left;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment