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 );
}
Written by Antonio Lettieri
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Compass
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#