LESS parent selector chain in list -


can store (ampersand) parent selector chain in list? not (finally) enable (only) immediate parent selector?

.parentpart(@n) {   // actually, shouldn't "&" string parent selector chain.   @part: extract(~"&", @n);   @{part} {     color: red;   } }  .a {   .b {     .parentpart(1);   } } 

for now, output

.a .b & {   color: red; } 

but love this

.a {   color: red; } 

(or, actually, .b{color:red;} passing 2 if able parent selector chain extract function …


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -