Created
February 28, 2016 16:17
-
-
Save pikesley/7e0d6a345f740740ba49 to your computer and use it in GitHub Desktop.
I cannot SASS
This file contains 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
tr.foo { | |
background-color: #fa5100; | |
} | |
tr.bar { | |
background-color: #0c58a2; | |
} |
This file contains 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
tr.foo { | |
background-color: $foo; | |
} | |
tr.bar { | |
background-color: $bar; | |
} |
This file contains 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
$foo: #fa5100; | |
$bar: #0c58a2; | |
$things: ('foo', 'bar'); | |
@each $thing in $things { | |
tr.#{$thing} { | |
background-color: unquote("$#{$thing}"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try something like: