Created
March 23, 2017 15:45
-
-
Save ahaywood/a45642aa5ccd76b60d4c03390f0eb8c4 to your computer and use it in GitHub Desktop.
Sass @for loop to create a grid system
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
$class-slug: span !default; | |
@for $i from 1 through 4 { | |
.#{$class-slug}-#{$i} { | |
width: 60px + $i | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment