Mixin Guards

Lesson 6
Author : Afrixi
Last Updated : October, 2017


Table of Content

Code

Copy.p-style(@size) when (@size <= 20) {
     font-size: @size;
     color: red
}

.p-style(@size) when (@size > 20) {
     font-size: @size;
     color: blue
}

p{
     .p-style(30px); 
}