A
A
Andrey Ivanov2019-05-13 09:34:30
React
Andrey Ivanov, 2019-05-13 09:34:30

How to make a media query?

Faced such a problem.
On mobile resolution, based on the state of the filter is open, I hang up the class. How to ignore this condition for desktop resolution? Write a media query in js or is there an elegant way?
5cd90fe7a60a1575793042.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-05-13
@rockon404

What is the problem to describe everything in css?

.filter__panel {
  &_show {
    @media screen and (max-width: 767px) {
      // mobile styles
    }    
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question