Mixin Guards
Lesson 6Author : GOUP
Last Updated : September, 2020
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);
}