less.js
less.js copied to clipboard
Can I get my mixin name in variable by JavaScript evaluation?
For example I have .border() {@name;} mixin. Can I get "border" by something akin to .border() {@name: ~'this.Mixin';}
Thanks.
No..
Why do you want it?
Nothing. I broke my brain when trying write @keyframes mixin. I found other way - .@{name} { ... }, but eventually it is bad idea. I dont believe, that write this mixin impossible. I thought correctly! =) https://github.com/less/less.js/issues/1264#issuecomment-18784233
Thanks LESS Team Sorry for disturbing