Skip to content

Instantly share code, notes, and snippets.

@jaggy
Created August 13, 2014 19:46
Show Gist options
  • Save jaggy/0a2d2f91c3a2384652d6 to your computer and use it in GitHub Desktop.
Save jaggy/0a2d2f91c3a2384652d6 to your computer and use it in GitHub Desktop.
$column-name = col;
$column-count = 32;
$column-width = 2rem;
for $index in 1..$column-count {
.{$column-name}-{$index} {
width: ($index * $column-width)
}
}
@jaggy
Copy link
Author

jaggy commented Aug 13, 2014

.col-1 {
width: 2rem;
}

.col-2 {
width: 4rem;
}

...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment