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

If Statements

Lesson 12
Author : 🦒
Last Updated : October, 2017


Code

Copy@mixin text-style($size) {
     font-size: $size;
@if $size > 20px {
     color: blue;
} @elseif $size = 20px {
     color: red;
} @else {
     color:green;
}

header {
     @include text-style(21px);
}