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

sql - VB.NET Operand type clash: date is incompatible with int error -

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

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -