0

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 ?

TylerH
  • 20,799
  • 66
  • 75
  • 101
Danish Adeel
  • 728
  • 4
  • 11
  • 27

1 Answers1

-1

Add this in your Less file:

@mixin name {
  color: red;
  font-size: 25px;
  font-weight: bold;
  border: 1px solid blue;
}

.selector {
  @include name;
}
TylerH
  • 20,799
  • 66
  • 75
  • 101
ChandanKr
  • 76
  • 7