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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -