google-webfont.scss 662 B

12345678910111213141516171819202122232425
  1. /**
  2. * Includes a google webfont for use in your theme.
  3. * @param {string} $font-name The name of the font. If the font name contains spaces
  4. * use "+" instead of space.
  5. * @param {string} [$font-weights=400] Comma-separated list of font weights to include.
  6. *
  7. * Example usage:
  8. *
  9. * @include google-webfont(
  10. * $font-name: Exo,
  11. * $font-weights: 200 300 400
  12. * );
  13. *
  14. * Outputs:
  15. *
  16. * @import url(//fonts.googleapis.com/css?family=Exo:200,300,400);
  17. *
  18. * @member Global_CSS
  19. */
  20. @mixin google-webfont(
  21. $font-name,
  22. $font-weights: 400
  23. ) {
  24. @import url('//fonts.googleapis.com/css?family=#{$font-name}:#{$font-weights}');
  25. }