3 $font-path: '../xstatic/fonts' !default;
5 @mixin font($type, $weight) {
7 font-family: 'Open Sans';
8 src: url('#{$font-path}/#{$type}/OpenSans-#{$type}.woff2') format('woff2'),
9 url('#{$font-path}/#{$type}/OpenSans-#{$type}.woff') format('woff'),
10 url('#{$font-path}/#{$type}/OpenSans-#{$type}.eot?#iefix') format('embedded-opentype'),
11 url('#{$font-path}/#{$type}/OpenSans-#{$type}.ttf?#iefix') format('truetype');
16 font-family: 'Open Sans';
17 @if $type == Regular { // not RegularItalic
18 src: url('#{$font-path}/Italic/OpenSans-Italic.woff2') format('woff2'),
19 url('#{$font-path}/Italic/OpenSans-Italic.woff') format('woff'),
20 url('#{$font-path}/Italic/OpenSans-Italic.eot?#iefix') format('embedded-opentype'),
21 url('#{$font-path}/Italic/OpenSans-Italic.ttf?#iefix') format('truetype');
23 src: url('#{$font-path}/#{$type}Italic/OpenSans-#{$type}Italic.woff2') format('woff2'),
24 url('#{$font-path}/#{$type}Italic/OpenSans-#{$type}Italic.woff') format('woff'),
25 url('#{$font-path}/#{$type}Italic/OpenSans-#{$type}Italic.eot?#iefix') format('embedded-opentype'),
26 url('#{$font-path}/#{$type}Italic/OpenSans-#{$type}Italic.ttf?#iefix') format('truetype');
33 @include font('Light', 300);
34 @include font('Regular', 400);
35 @include font('Semibold', 600);
36 @include font('Bold', 700);
37 @include font('ExtraBold', 800);