Created
February 27, 2014 21:13
-
-
Save crswll/9259685 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.3.0.rc.5) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@mixin columnize ( $width, $end: 4 ) { | |
@for $i from 2 through $end { | |
@media ( min-width: $width * $i ) { | |
width: 100% / $i; | |
} | |
} | |
} | |
.foo { | |
@include columnize( 200px, 6 ); | |
} |
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
@media (min-width: 400px) { | |
.foo { | |
width: 50%; | |
} | |
} | |
@media (min-width: 600px) { | |
.foo { | |
width: 33.33333%; | |
} | |
} | |
@media (min-width: 800px) { | |
.foo { | |
width: 25%; | |
} | |
} | |
@media (min-width: 1000px) { | |
.foo { | |
width: 20%; | |
} | |
} | |
@media (min-width: 1200px) { | |
.foo { | |
width: 16.66667%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment