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

Mixin Guards

Lesson 6
Author : Mike Dane
Last Updated : October, 2017


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