I
I
Igor Che2016-10-21 20:07:10
css
Igor Che, 2016-10-21 20:07:10

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

1 answer(s)
V
VisualIdeas, 2016-10-21
@chewarer

ol 
    & > li 
        & > ul 
            & > li 
                стили

But in general, this is a very bad style of writing styles (sorry for the tautology)
Read about BEM

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question