Answer the question
In order to leave comments, you need to log in
How to type in sass so that everything is in one file?
Good afternoon.
There is a site: here , where there are many pages and one style file for everything.
I'm building with gulp using sass. Can you tell me how to properly layout large sites and what should be the style file?
Should it be one file?
And if you use sass, then how to build a hierarchy in styles?
Let me give you an example:
I usually type with nesting, like
.main{
...
.block{
...
.element{...}
}
}
.main{...}
.block{...}
.element{...}
Answer the question
In order to leave comments, you need to log in
https://sass-guidelin.es/ I think you will like the architecture, it is then assembled into 1 file and as mrusklon said , use bem
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question