Answer the question
In order to leave comments, you need to log in
Is it possible to mixin inside box-shadow?
Good afternoon.
Experimenting with box-shadow in scss. I need to add several shadows for one element, I want to make some of them using mixins.
Can I make a mixin that, depending on the input parameters, will generate strings like this:
0 1px 0 0 black,
0 10px 0 0 white,
0 20px 0 0 red,
Box-shadow: @import mixin(params)
@import Mixin2(params)
@import mixin(other params) ;
Answer the question
In order to leave comments, you need to log in
Good afternoon.
Use not a mixin, but a function - and you will be happy.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question