font mixin SCSS

@mixin font ($font: "Karla", $size: 18px, $weight: 400, $style: normal, $line-height: 30px, $color: #000) { font-family: $font, sans-serif; font-size: $size; font-weight: $weight; font-style: $style; line-height: $line-height; color: $color; } // Usage: p { @include font ("Open-Sans", 16px, 400, normal, 25px, #666); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.