Answer the question
In order to leave comments, you need to log in
How to pass styles as a parameter to a mixin?
I want to write a mixin like this:
@mixin media(device, styles) {}
which is called like this
$gte-xxl = 1200
@mixin media(gte-xxl, styles);
Does anyone know how to do this or what are the project development practices to avoid doing this?
I can't afford to write min-width/max-width every time, knowing that tomorrow we will start supporting a new device and half of the styles will have to be rewritten.
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