Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // @font-face mixin.
- @mixin font-face ($family, $filename: $family, $weight: normal, $style: normal){
- @font-face{
- font-family: quote($family);
- src:url('fonts/#{$filename}.eot');
- src:url('fonts/#{$filename}.eot?#iefix') format('embedded-opentype'),
- url('fonts/#{$filename}.woff2') format('woff2'),
- url('fonts/#{$filename}.woff') format('woff'),
- url('fonts/#{$filename}.ttf') format('truetype'),
- url('fonts/#{$filename}.svg##{$filename}') format('svg');
- font-weight: $weight;
- font-style: $style;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement