Answer the question
In order to leave comments, you need to log in
Is there a way to do an if in SCSS for the width of the screen?
I have a certain value calculated in SCSS - depending on the width of a certain block. But the width of the block changes depending on the width of the screen (media queries).
Is it possible to write something similar in SCSS?
if ширина экрана > 768, то
var_1 = 500.
if ширина экрана < 769, то
var_1 = 300.
Конец if.
var_2 = var_1 - ... (какой-то другой код)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question