Skip to content

Instantly share code, notes, and snippets.

@StefanWallin
Created June 14, 2015 19:58
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 StefanWallin/0aeebb0b645d3be52038 to your computer and use it in GitHub Desktop.
Save StefanWallin/0aeebb0b645d3be52038 to your computer and use it in GitHub Desktop.
Could this be done better? The media query is sooo out of place...
#teamroster {
overflow: hidden;
@media (min-width: 600px) {
.team-display {
float: left;
overflow: hidden;
width: 30.3333333%;
margin-right: 1.5%;
min-width: 30%;
max-width: 100%;
&:nth-child(3n+3) {
margin-right: 0;
}
}
}
.team-display {
border-left: 4px solid transparent;
margin-bottom: 3em;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment