Created
March 24, 2015 16:04
-
-
Save DimazzzZ/602d172ebe3de236944e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
$column-count-middle: 3; | |
$max-weights: (1000: 3, 800: 2, 400: 1); | |
@each $weight, $count in $max-weights { | |
@media (max-width: #{$weight}px) { | |
#screnshotGrid { | |
-moz-column-count: $count; | |
-webkit-column-count: $count; | |
column-count: $count; | |
} | |
} | |
} |
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
@media (max-width: 1000px) { | |
#screnshotGrid { | |
-moz-column-count: 3; | |
-webkit-column-count: 3; | |
column-count: 3; | |
} | |
} | |
@media (max-width: 800px) { | |
#screnshotGrid { | |
-moz-column-count: 2; | |
-webkit-column-count: 2; | |
column-count: 2; | |
} | |
} | |
@media (max-width: 400px) { | |
#screnshotGrid { | |
-moz-column-count: 1; | |
-webkit-column-count: 1; | |
column-count: 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment