-
-
Save frankyonnetti/6cf2797a539702b061558d7fd778104e to your computer and use it in GitHub Desktop.
Scss - use variables for selectors #scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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