Reputation: 730
I am using Prepros preprocessor for the first time, I have following mixin in my less file.
.mq_max(@max_width; @rules) {
@media only screen and (max-width: @max_width) {
@rules();
}
}
And I am calling it in my less file like this
.mq_max(1366px {
// My code
});
It always work okay when I compile it with Koala but when I am trying it using Prepros I am getting this error
no matching destination was found for '.mq_max(1366px)'
Any clue what I am doing wrong here ?
Upvotes: 0
Views: 288
Reputation: 74
Add this in your Less file:
@mixin name {
color: red;
font-size: 25px;
font-weight: bold;
border: 1px solid blue;
}
.selector {
@include name;
}
Upvotes: -1