Skip to content

Instantly share code, notes, and snippets.

@jmlweb
Created July 30, 2013 10:44
Show Gist options
  • Save jmlweb/6111940 to your computer and use it in GitHub Desktop.
Save jmlweb/6111940 to your computer and use it in GitHub Desktop.
Example of control directives in SCSS
i {
$positions: (izq, der);
$colors: (w, b);
@for $i from 1 through 2 {
@each $position in $positions {
@each $color in $colors {
&.#{ $position }_0#{ $i }_#{ $color } {
@include fx_item(#{ $position }_0#{ $i }_#{ $color });
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment