Debian Codegraph @

sass-spec/spec/libsass/bourbon/lib/css3/_font-face.scss

raw
1 // Order of the includes matters, and it is: normal, bold, italic, bold+italic.
2
3 @mixin font-face($font-family, $file-path, $weight: normal, $style: normal, $asset-pipeline: false ) {
4 @font-face {
5 font-family: $font-family;
6 font-weight: $weight;
7 font-style: $style;
8
9 @if $asset-pipeline == true {
10 src: font-url('#{$file-path}.eot');
11 src: font-url('#{$file-path}.eot?#iefix') format('embedded-opentype'),
12 font-url('#{$file-path}.woff') format('woff'),
13 font-url('#{$file-path}.ttf') format('truetype'),
14 font-url('#{$file-path}.svg##{$font-family}') format('svg');
15 } @else {
16 src: url('#{$file-path}.eot');
17 src: url('#{$file-path}.eot?#iefix') format('embedded-opentype'),
18 url('#{$file-path}.woff') format('woff'),
19 url('#{$file-path}.ttf') format('truetype'),
20 url('#{$file-path}.svg##{$font-family}') format('svg');
21 }
22 }
23 }