Using a general purpose selector as a mixin in LESS CSS
I know about mixins and parametric mixins. What we are looking for is a way to make any general purpose selectors in CSS / LESS into a mixin. Eg in Twitter BootStrap , we have here .navbar .nav > li { float: left; } If I have to use it in a class say .mynavbar I want to be able to do this INPUT-> .mynavbar { .navbar .nav >li; } OUTPUT-> .mynavbar { float:left; } Now I know this can't be done with the current version of LESS as the compiler flags a parser error. I wanted someone to help me out on changing the source code of less.js a little so that this is workable. I've managed to reach the