closure-stylesheets
closure-stylesheets copied to clipboard
GSS - local variables in mixin
trafficstars
It should be possible to declare and use local variable somehow in mixin. Right now it's possible declare @def in mixin, BUT it will be global variable. As workaround I can prefix it with mixin name to prevent names conflict, i.e. @def MIXIN_LOCAL 33; but it's very inconvenient.
Yeah, this is not awesome. There are several possible semantics for a @def in a @mixin, so if you have a proposition and are interested in implementing it, let me know.