I
I
Islam Ibakaev2017-06-20 20:00:02
css
Islam Ibakaev, 2017-06-20 20:00:02

How to correctly organize styles when laying out a multi-page site?

A couple of days ago I prepared a small starter for layout on pug. Not sure how to organize styles? Should I create a separate file for each page of the site?
How do you organize styles when laying out, for example, an online store?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sergey, 2017-06-20
@devellopah

I always use the 7-to-1 rule for gulp-sass builds Template 7-1 - correct and very convenient

A
Andrey Prozorov, 2017-06-20
@i_d_1

I break everything into blocks. BEM blocks. And I'm not attached to the pages. Very comfortably. Under each page I create pug templates where I connect mixins with bamblocks, which include other bamblocks. it turns out such a flexible structure
https://github.com/docentovich/multiPageVerstka

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question