Skip to content

Instantly share code, notes, and snippets.

@metaskills
Created July 6, 2014 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metaskills/0a59c2a6d6ce7d7ff29e to your computer and use it in GitHub Desktop.
Save metaskills/0a59c2a6d6ce7d7ff29e to your computer and use it in GitHub Desktop.
Solved In Sass 3.4?
@mixin suit-desc($names...) {
$_selectors: ();
@each $_name in $_names {
$_selector: &-#{$_name};
$_selectors: append($_selectors, $_selector, comma);
}
@at-root #{$_selectors} { @content; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment