Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I haven't heard about css guards, but they are in the less preprocessor. In fact, these are conditions, the fulfillment or non-fulfillment of which leads to different results. A simple example from the less documentation:
.mixin(@a) when (@media = mobile) { ... }
.mixin(@a) when (@media = desktop) { ... }
loop(@counter) when (@counter > 0) {
.loop((@counter - 1)); // next iteration
width: (10px * @counter); // code for each iteration
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question