Skip to content

Instantly share code, notes, and snippets.

@bubbleheadinc
Created June 6, 2013 22:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bubbleheadinc/5725438 to your computer and use it in GitHub Desktop.
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
@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