Created
March 11, 2015 11:20
-
-
Save fiinix/121485d2d4a517a88192 to your computer and use it in GitHub Desktop.
Quick, dirty and minimal CSS Grid Generator
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
/* Column placeholder */ | |
%column { | |
display: inline-block; | |
vertical-align: top; | |
} | |
$column-count: 12; | |
@for $i from 1 through $column-count { | |
[class~="span-#{$i}/#{$column-count}"] { | |
@extend %column; | |
width: percentage($i/$column-count); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment