Skip to content

Instantly share code, notes, and snippets.

@jordanstephens
Created August 29, 2012 20:26
Show Gist options
  • Save jordanstephens/3518425 to your computer and use it in GitHub Desktop.
Save jordanstephens/3518425 to your computer and use it in GitHub Desktop.
Using the parent selector (&) in a SASS mixin
Pleasantly surprised to find that this works with SASS, saved me a lot of typing.
@mixin foo {
& bar {
//...
}
}
baz {
@include foo;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment