Mixins

Lesson 9
Author : Afrixi
Last Updated : October, 2017


Table of Content

Code

Copy@mixin fancy-border($size: 1px, $color: black) {
     border: $size dashed $color;
     border-radius: 5px;
}

header {
     @include fancy-border(10px, blue);
     background-color: yellow;
}