Answer the question
In order to leave comments, you need to log in
How do you organize your sass files?
Good day! I want to ask experienced web designers (and not only them) how you organize your sass files (if you use preprocessors). For example, I have three different pages (Home, Articles, Contacts). I do this:
style.sass - Main style where files and global styles are
imported _header.sass - Site
header _main.sass - Styles on the main page
_articles.sass - Styles for articles
_contact.sass - Styles for contacts
_footer.sass - Footer of the site
_media.sass - All media styles
Do not judge strictly for the breakdown of files, so to speak, because as an example. I'm actually interested in the main media. I just think it can just write your media at the bottom in each file and not make a separate _media.sass file or do, for example, for 1199px, 991px, etc., separate files.
Thanks in advance for the replies!
Answer the question
In order to leave comments, you need to log in
For sass, I use the unshakable rule 7 to 1 sass-7-1-pattern,
and regarding media, I similarly connect it to this structure, I don’t see the point in dividing it and prescribing styles under each bush, and it’s more convenient for me somehow as a separate file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question