Guest User

Untitled

a guest
Jan 17th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. // Usage: @include font-face("Font-Family-Italic");
  2. // Advanced usage: @include font-face("Roboto", "../fonts/", auto, normal, normal, normal, auto);
  3.  
  4. @mixin font-face($family, $font-path: ".", $display: auto, $style: normal, $weight: normal, $range: U+0-10FFFF, $variation: normal) {
  5. @font-face {
  6. font-display: $display;
  7. font-family: $family;
  8. font-style: $style;
  9. font-weight: $weight;
  10. font-variation-settings: $variation;
  11. src: local($family), url("#{$font-path}#{$family}.woff2") format("woff2"), url("#{$font-path}#{$family}.woff") format("woff"), url("#{$font-path}#{$family}.ttf") format("truetype"), url("#{$font-path}#{$family}.eot") format("embedded-opentype");
  12. unicode-range: $range;
  13. }
  14. }
Add Comment
Please, Sign In to add comment