Sha256: 09dee60f1a523856ac18344e0d0337fecaf577ed59fe2bbc5cb7af830b07d7d4
Contents?: true
Size: 925 Bytes
Versions: 3
Compression:
Stored size: 925 Bytes
Contents
// Used for creating the source string for fonts using @font-face // Reference: http://goo.gl/Ru1bKP @function font-url-prefixer($asset-pipeline) { @if $asset-pipeline == true { @return font-url; } @else { @return url; } } @function font-source-declaration( $font-family, $file-path, $asset-pipeline, $file-formats, $font-url) { $src: null; $formats-map: ( eot: $font-url + "(\"#{$file-path}.eot?#iefix\")" format("embedded-opentype"), woff2: $font-url + "(\"#{$file-path}.woff2\")" format("woff2"), woff: $font-url + "(\"#{$file-path}.woff\")" format("woff"), ttf: $font-url + "(\"#{$file-path}.ttf\")" format("truetype"), svg: $font-url + "(\"#{$file-path}.svg##{$font-family}\")" format("svg") ); @each $format, $file-path in $formats-map { @if contains($file-formats, $format) { $src: append($src, $file-path, comma); } } @return $src; }
Version data entries
3 entries across 3 versions & 2 rubygems