Skip to content

Instantly share code, notes, and snippets.

@alexkingorg
Last active June 3, 2016 18:30
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alexkingorg/6313067 to your computer and use it in GitHub Desktop.
Save alexkingorg/6313067 to your computer and use it in GitHub Desktop.
Use SASS variables for selectors.
// Vars - note the quotes around comma separated selectors
$a-tags: 'a, a:active, a:hover, a:visited';
$a-tags-hover: 'a:active, a:hover';
// Usage
#{$a-tags} {
color: red;
font-size: 1em;
text-decoration: none;
}
#{$a-tags-hover} {
color: blue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment