D
D
Dmitry Smirnov2017-09-29 13:29:26
css
Dmitry Smirnov, 2017-09-29 13:29:26

How to organize the correct sass structure?

There was a question concerning the organization of structure in sass. I read that it is necessary that each element retains the structure of the DOM tree, approximately (or probably) like this:

body{
   header{
      .header-content{
            .header-content__logo{
              .logo__link{} 
              }
        }
   }
}

And how would it be more correct to organize the structure of the scss file? Suppose you need to make up several pages, then such a structure as the example above will no longer work.
Are there any examples or guidelines for sass?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question