ovw2ya
Last Updated: February 25, 2016
·
332
· alettieri

Compass Face Mixin

Little helper mixin that I like to use in my projects.

/* =Font Embed */
@mixin face( $name, $src, $weight: normal, $style: normal, $eot: true ) {

    $eotFont: false !default;

    @if $eot {
        $eotFont: "#{$src}.eot";
    } 

    @include font-face( $name, font-files( "#{$src}.woff", "#{$src}.svg" ), $eot: $eotFont, $weight: $weight, $style: $style );
}