S
S
sergemin2017-10-09 09:15:25
Sass
sergemin, 2017-10-09 09:15:25

What is the best way to write adaptability?

Hello!
I am writing a project using gulp and sass and everything seems to be fine. For each section, I create my own sass file, which is then compiled into css
. I'm interested in the issue of adaptability. Need to write responsiveness for a particular section in the same sass file for that section? Or do I need to create a separate responsive .sass file for this section?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Glebov, 2017-10-09
@SkiperX

.class {
    ...
   @media {
        ...
    }
}

conveniently, 1 selector only occurs here and that's it.

E
Egor Zhivagin, 2017-10-09
@Krasnodar_etc

IMHO, it is more convenient in the same file.
There are no standards, do what you like

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question