Created
December 4, 2013 15:59
-
-
Save pixelchar/7790060 to your computer and use it in GitHub Desktop.
Loop syntax for SCSS
http://blog.codepen.io/2013/12/04/loops-preprocessor-syntaxes/
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
@for $i from 1 through 15 { | |
div { | |
&:nth-child(#{$i}) { | |
&:after { | |
content: "#{$i}"; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment