KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to use string interpolation on my variable to reference another variable: // Set up variable and mixin $foo-baz: 20px; @mixin do-this($bar) { width: $foo-#{$bar}; } // Use mixin by passing 'baz' string as a param for use $foo-baz variable in the mixin @include do-this('baz'); But when I do this, I get the following error: Undefined variable: "$foo-". Does Sass support PHP-style variable variables?
Tags (comma-separated)
Save Edits
Cancel