Created
September 30, 2014 21:07
-
-
Save garystorey/d23cb7b5366f84e23a1f to your computer and use it in GitHub Desktop.
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
| // ---- | |
| // Sass (v3.3.14) | |
| // Compass (v1.0.1) | |
| // ---- | |
| //helpers | |
| $helpers: ( | |
| fll: ( | |
| float: left | |
| ), | |
| flr: ( | |
| float: right | |
| ) | |
| ); | |
| @each $name, $ruleset in $helpers{ | |
| .h-#{$name} { | |
| @each $prop, $value in $ruleset { | |
| #{$prop}: $value; | |
| } | |
| } | |
| } | |
| // $colors: red pink blue; | |
| // @each $button-color in $colors { | |
| // .button-#{$button-color} { | |
| // color: $button-color; | |
| // } | |
| // } | |
| //Output | |
| .h-fll { | |
| float: left; | |
| } | |
| .h-flr { | |
| float: right; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment