Skip to content

Instantly share code, notes, and snippets.

@vishaltelangre
Forked from nex3/gist:1163471
Last active December 15, 2015 00:59
Show Gist options
  • Save vishaltelangre/5177337 to your computer and use it in GitHub Desktop.
Save vishaltelangre/5177337 to your computer and use it in GitHub Desktop.
Setting selector name dynamically in SASS
@mixin active($selector) {
#{$selector} {
color:black;
}
}
#my-id {
@include active($selector: ".my-class")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment