L
L
Larisa2016-11-05 18:20:09
css
Larisa, 2016-11-05 18:20:09

What is the error of using extend in a mixin with a parameter?

We have in LESS

@color-blue: blue;


.mymixin(@color) {      
     
  [email protected]{color} {
  font-size: 1
  }  
  
 .zzz {
  &:extend([email protected]{color});
  }
 
}

.mymixin(blue);

Result
.test-blue {
  font-size: 1;
}

Need to see output
.test-blue, 
.zzz {
  font-size: 1;
}

Here I am debugging

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ankhena, 2016-11-05
@Ankhena

I gave you a link about extend in the last answer. Please read the entire page with examples.
websketches.ru/less/extend

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question