Skip to content

Instantly share code, notes, and snippets.

@widescreenBob
Created September 22, 2014 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save widescreenBob/b3dbcbe7bf612663432a to your computer and use it in GitHub Desktop.
Save widescreenBob/b3dbcbe7bf612663432a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class = "testDiv">TEST</div>
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
$base: ".."
=fontFace($family, $src, $weight: normal, $style: normal)
@font-face
font-family: $family
src: url("#{$base}/fonts/#{$src}.eot")
// IE9 compat
src: url("#{$base}/fonts/#{$src}.eot?#iefix") format("embedded-opentype"), url("#{$base}/fonts/#{$src}.woff") format("woff"), url("#{$base}/fonts/#{$src}.ttf") format("truetype"), url("#{$base}/fonts/#{$src}.svg") format("svg")
// legacy iOS
font-style: $style
font-weight: $weight
+fontFace(tobias-regular, tobias-regular-folder/tobias-regular)
@font-face {
font-family: tobias-regular;
src: url("../fonts/tobias-regular-folder/tobias-regular.eot");
src: url("../fonts/tobias-regular-folder/tobias-regular.eot?#iefix") format("embedded-opentype"), url("../fonts/tobias-regular-folder/tobias-regular.woff") format("woff"), url("../fonts/tobias-regular-folder/tobias-regular.ttf") format("truetype"), url("../fonts/tobias-regular-folder/tobias-regular.svg") format("svg");
font-style: normal;
font-weight: normal;
}
<div class = "testDiv">TEST</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment