Mixin Guards
Lesson 6Author : 🦒
Last Updated : October, 2017
Code
.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);
}