Closed
Description
Hi, I don't know if this is a duplicate request, I tried searching the issues and didn't find anything like this.
Given this less source file:
// Generic menu structure (many details left out for brevity here...)
.menu() { // UL
li {
list-style-type: none;
&:before {
content: "\2022 "; // Unicode for a bullet
}
&:first-child {
&:before {
content: "";
}
}
}
}
// I would like this to be a menu, but with a different separator...
.my-menu { // UL
.menu;
li:before {
content: "|";
}
}
The resulting output is this:
.my-menu li {
list-style-type: none;
}
.my-menu li:before {
content: "\2022 "; // <-- THIS IS OVERRIDDEN BY…
}
.my-menu li:first-child:before {
content: "";
}
.my-menu li:before {
content: "|"; // <-- THIS.
}
Ideally, the duplicate property(-ies) would be removed since we know them to be overridden.