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
Post a Comment