Answer the question
In order to leave comments, you need to log in
How to change return in a function with @media?
Hello, in general, is it possible to somehow combine a function and a media query, like this:
@function названиеФункции (что-то) {
@return какой-то код
@media (max-width: 720px) {
@return а вот тут уже другой код
}
}
Answer the question
In order to leave comments, you need to log in
No, It is Immpossible.
The function executes at compile time. The media query fires in the browser, in ready-made CSS.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question