R
R
Ramil2016-08-23 18:13:59
css
Ramil, 2016-08-23 18:13:59

How to make nested styles in sass through a loop?

It is necessary to set a different level of shadow for the nested menu sub-items in the loop.
You can of course manually, but not hunting.

ul {
 li {
  padding-left: 10px;
  ul {
   li {
    padding-left: 20px;
   }
  }
 }
}

For example, in this code, with each nesting, the left indent will grow. How to do the same thing only in a sass loop.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
Justin Bieber, 2016-05-30
@JustinBieber

if without animation, then bootstrap grid

D
Dmitry Kolyada, 2016-05-30
@dimqakolyada

In my opinion, flexbox will help you, look at the lessons on YouTube Or, as mentioned above, bootstrap, foundation and other frameworks with grids.

I
Ivan Vodyanov, 2016-05-30
@IvanVodka

bootstrap

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question