Created
June 28, 2017 04:21
-
-
Save jssee/3549a0bc7d9ba042149c767277306407 to your computer and use it in GitHub Desktop.
responsive gallery
This file contains hidden or 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
ul#dribbble { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
flex-direction: column; | |
@media (--above-m) { | |
flex-direction: row; | |
flex-wrap: wrap; | |
width: 100vw; | |
} | |
& li { | |
list-style-type: none; | |
margin: 0 var(--u-s); | |
@media (--above-m) { | |
margin: 0 var(--u-xs) 0 0; | |
max-width: 32vw; | |
@nest &:nth-child(3n+3) { | |
margin-right: 0; | |
} | |
} | |
} | |
& img { | |
width: 100%; | |
height: auto; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment