Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save frankyonnetti/6cf2797a539702b061558d7fd778104e to your computer and use it in GitHub Desktop.
Save frankyonnetti/6cf2797a539702b061558d7fd778104e to your computer and use it in GitHub Desktop.
Scss - use variables for selectors #scss
// 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