Created
June 14, 2015 19:58
-
-
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...
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
#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