K
K
kDallas12032016-12-07 16:16:17
Sass
kDallas1203, 2016-12-07 16:16:17

How to make a variable with a parameter in less?

help with less
in sass to create a variable or mixin, don't know exactly what it's called I'm using

=mt($time)
  transition: all $time ease

How to do the same in less

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zooks, 2016-12-07
@kDallas1203

This is a mixin:

.mt(@time) {
  transition: all @time ease;
}

.header {
  .mt;
}

Of course, the SASS code is much more logical.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question