D
D
Danil Fliginskiy2020-08-04 16:57:50
css
Danil Fliginskiy, 2020-08-04 16:57:50

Should all media styles be written in one file?

I make websites using GULP. I compile all files into one style.min.css I got
to adaptation and a question appeared.
I used to write all media styles in one media.scss file.
But this is inconvenient, because you need to search for the necessary code fragment in a large code, and here, in fact, the question is:
Is there a difference how to write styles? I can write my own styles in each file, or I can combine everything into one file. There is a difference?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Dvoryanov, 2020-08-04
@Raxen

In scss you can do this in any file

.item {
  ...

  @media (max-width: 1040px) {
    ...
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question