E
E
Evgeny Babkin2015-10-16 21:33:56
css
Evgeny Babkin, 2015-10-16 21:33:56

Splitting styles into multiple files?

Hello. When laying out fixed layouts, he used the well-known "divide and conquer" principle, that is, he set styles in less in a separately created file for each individual block or section, then collected it via import into one less file, which was actually compiled into css. However, when laying out an adaptive layout, doubts began to creep in about the way this principle was applied. It is clear that creating a separate file for each block and duplicating this file for each extension with slightly changed styles is not rational. Actually the question is: does it make sense to "divide and conquer" with adaptive layout and, if so, how to rationally implement this principle without duplicating files.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
Xanzi, 2015-10-16
@Xanzi

There must be a breakpoint library for LESS. At least for Stylus there is Rupture.
https://github.com/jenius/rupture
Read, understand what it is and what it is eaten with, and then look for an analogue for your preprocessor, if this thing can solve your problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question