W
W
webhero2018-02-14 18:19:46
Sass
webhero, 2018-02-14 18:19:46

Why are media queries not responding to screen sizes?

Good afternoon.
I write styles in Sass, respectively, I connect media queries with a separate document _media.sass to my main style document main.sass, write @ import "media", insert it at the end of the style document, as expected and ..
when writing styles for a specific screen, for example , I prescribe media (max-width: 480px)
styles are applied to absolutely all window sizes. Maybe I'm connecting wrong somehow? The question is very important to me.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2018-02-14
@webhero

It's worth looking at the compiled code.

P
Philip Gaponenko, 2018-02-14
@filgaponenko

@media only screen and (max-width: 480px) { }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question