Is it possible inside a mixin box-shadow?

Good afternoon.

Experimenting with box-shadow in scss. You want to add multiple shadows to one element, I want to make some of them using mixins.

Can I make a mixin that depending on the input parameters can generate a similar line:

0 1px 0 0 black, 
0 10px 0 0 white, 
0 20px 0 0 red,


And then use it thus:
Box-shadow: @import mixin(params) 
@import Mixin2(params) 
@import mixin(other params) ;


This code I have not compileda in css. Is there a way? The point is to generate not a set of box-shadow, as they will overlap each other. And to generate a set of parameters and substitute them in the same box-shadow.
April 19th 20 at 12:20
2 answers
April 19th 20 at 12:22
Solution
Good afternoon.
Use a mixin, and function - and you will be happy.
Thank you, what you need. Not used them yet, now understand. - Marquis_Waters commented on April 19th 20 at 12:25
April 19th 20 at 12:24
Less able to mix the composite properties.
And Sass will have the function to use.
Thanks, figured out the functions.
Until you learn one, it makes no sense to go - Marquis_Waters commented on April 19th 20 at 12:27

Find more questions by tags SassCSS