L
L
liltrill2019-11-03 22:01:20
Less
liltrill, 2019-11-03 22:01:20

How to do this in less?

Here is the code from scss:

@mixin fit-content ($attribute) {
  #{$attribute}: -moz-fit-content;
  #{$attribute}: -webkit-fit-content;
  #{$attribute}: fit-content;
}

how to do this in less?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2019-11-03
@liltrill

.fit-content(@attribute) {
  @{attribute}: -moz-fit-content;
  @{attribute}: -webkit-fit-content;
  @{attribute}: fit-content;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question