If Statements

Lesson 12
Author : Afrixi
Last Updated : October, 2017


Table of Content

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