F
F
Freeman02052020-07-08 08:17:29
Sass
Freeman0205, 2020-07-08 08:17:29

When adapting a site for mobile devices in @media queries, how to prescribe classes?

Hello! Please help a novice colleague) When adapting a site for mobile devices (typed using BEM, Vs-code, gulp, scss), I encountered the fact that properties of some classes are not inherited in media queries if I prescribe through &, so I have to prescribe the class completely, this is one task, and the second is that some sections do not change properties during adaptation (specifically Padding and remain crossed out when I look in the developer tools, inheriting from the desktop version. What can be? Please help!
5f055639380a3370999708.png
5f055c6b692fc964114801.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Freeman0205, 2020-07-09
@Freeman0205

Thanks Andrew . The main problem was that in the style.scss file, the media block was not included at the very end. When you move it to the end, all the styles on adaptation are applied and work fine.
5f0707e329591015015425.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question