Created
June 6, 2013 22:15
-
-
Save bubbleheadinc/5725438 to your computer and use it in GitHub Desktop.
Mixin loop to spit out span classes based on # of grid columns for JustifyGrid.com SCSS
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
@mixin grid-spans($col-span){ | |
@while $col-span > 0{ | |
.grid-span-#{$col-span}{ | |
width: grid-span($col-span); | |
} | |
$col-span: $col-span - 1; | |
} | |
} | |
@include grid-spans($columns); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment