I am trying add some CSS rule which ONLY selects the elements which have the href attribute ends with "/exclusive".
It works OK like this:
#nav li.level0.level-top > a[href$="/exclusive"] { color: #E51837; }
But when try to apply a rule in the li element which is 1 level upper, it doesn't seem to work. I tried adding selectors like (:parent, :before, :has) but nothing:
#nav li.level0.level-top > a[href$="/exclusive"]::before { float: right; }
HTML:
<ul>
<li class="level0 nav-9 level-top parent">
<a class="level-top" href="/moto">
<span>Moto</span>
</a>
</li>
<li class="level0 nav-10 last level-top">
<a class="level-top" href="/exclusive">
<span>Exclusive</span>
</a>
</li>
</ul>