Less - Style a Website
This course covers the basics of styling a website using Less. Work your way through the videos/articles and I'll teach you everything you need to know to style a basic website!

Mixin Guards

Lesson 6
Author : GOUP
Last Updated : September, 2020


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); 
}