I have a less structure just like this one:
.main1,
.main2,
.main3,
.main4{
& .test1{
background-color: #f00;
}
& .test2{
background-color: #ff0;
}
}
Is there a way to modify the background-color
according to the current parent element? For example for .main1
I would like #f00 as background, and for .main2
instead, #ff0.
Thanks a lot!