You want :not(:last-child)
instead:
&:not(:last-child):after {
content: ">>";
margin-left: 10px;
}
:last
is not a valid CSS selector, and you cannot have more than one simple selector within :not()
. The li
portion can be omitted since your nested selector already uses li
.
:after
, being a pseudo-element, also needs to be placed after :not()
for it to be valid.