_fonts.scss 761 B

12345678910111213141516171819
  1. // custom @font-face rules are automatically generated from font-config
  2. // ======================================================================
  3. @if variable-exists(font-config) {
  4. @each $font-id, $font-definition in $font-config {
  5. @if map-get($font-definition, fontface) == true {
  6. $fontfile: map-get($font-definition, file);
  7. @font-face {
  8. font-family: map-get($font-definition, family);
  9. font-weight: map-get($font-definition, weight);
  10. font-style: map-get($font-definition, style);
  11. // feel free to add other font-formats here
  12. // if you need to support older browsers
  13. src: url('../fonts/#{$fontfile}.woff2') format('woff2'), url('../fonts/#{$fontfile}.woff') format('woff');
  14. }
  15. }
  16. }
  17. }