Answer the question
In order to leave comments, you need to log in
How to do something like ol > li in SASS?
I have this structure in HTML:
ol
--li
----ul
------li
I want to apply a certain style only to ul > li, first level elements. In plain CSS, I would just write ul>li: margin: 10px 0;
How to do it in SASS? In a normal tree structure, this property applies to all child li's.
Answer the question
In order to leave comments, you need to log in
ol
& > li
& > ul
& > li
стили
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question