D
D
Dmitry2017-06-08 21:59:12
Sass
Dmitry, 2017-06-08 21:59:12

SASS. Is it possible to omit the arguments in the mixin so that the default ones are accepted?

SASS. Is it possible to omit the arguments in the mixin so that the default ones are accepted?

@mixin big($a, $b, $c:3, $d:5){
}

you can pass arguments a, b, c and d it will take equal by default. Is it possible to pass a, b, d - so that the argument c is omitted and accepted by default?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2017-06-08
@xDMITRIYx

@include big(1, 2, $d: 4);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question