I have created an HTML structure as outlined below:
<ul class="list list--sm">
<li class="list__item list__item--draggable">
List item 1
<ul>
<li class="list__item list__item--draggable">
List item 1.1
<ul>
<li class="list__item list__item--draggable">
List item 1.1.1
</li>
</ul>
</li>
</ul>
</li>
</ul>
In this scenario, my goal is to target elements with the class list__item--draggable
that do not have a parent or grandparent with the same class, specifically referring to the element displaying "List item 1". I intend to accomplish this using LESS without utilizing the > selector due to potential complexities in nested structures with additional divs and elements.
I am currently struggling to devise a solution for this dilemma. Is there a way to achieve this task?