|
| 1 | +$font-cdn: 'https://cdn.skauting.cz/fonts'; |
| 2 | + |
| 3 | +@mixin font-face($family, $file, $weight, $style: normal, $svg-id: null) { |
| 4 | + @font-face { |
| 5 | + font-family: quote($family); |
| 6 | + src: url('#{$font-cdn}/#{$file}.eot'); |
| 7 | + src: url('#{$font-cdn}/#{$file}.eot?#iefix') format('embedded-opentype'), |
| 8 | + url('#{$font-cdn}/#{$file}.woff2') format('woff2'), |
| 9 | + url('#{$font-cdn}/#{$file}.woff') format('woff'), |
| 10 | + url('#{$font-cdn}/#{$file}.otf') format('opentype'), |
| 11 | + url('#{$font-cdn}/#{$file}.svg##{if($svg-id, $svg-id, $family)}') format('svg'); |
| 12 | + font-weight: $weight; |
| 13 | + font-style: $style; |
| 14 | + } |
| 15 | +} |
| 16 | + |
| 17 | +@include font-face('themix', 'TheMix_LT_400', 400, normal, 'themix'); |
| 18 | +@include font-face('themix', 'TheMix_LT_400i', 400, italic, 'themix'); |
| 19 | +@include font-face('themix', 'TheMix_LT_700', 700, normal, 'themix'); |
| 20 | +@include font-face('themix', 'TheMix_LT_700i', 700, italic, 'themix'); |
| 21 | + |
| 22 | +@include font-face('skautbold', 'skaut-bold-webfont', normal, normal, 'skautbold'); |
0 commit comments