Skip to content

Instantly share code, notes, and snippets.

@Rplus
Created March 18, 2014 13:26
Show Gist options
  • Select an option

  • Save Rplus/9619972 to your computer and use it in GitHub Desktop.

Select an option

Save Rplus/9619972 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.3)
// Compass (v1.0.0.alpha.18)
// ----
@import "compass/css3";
@mixin lazy-font($font-name, $font-path, $fw: normal, $fs: normal) {
@include font-face($font-name,
font-files($font-path + ".ttf", $font-path + ".otf"),
$font-path + ".eot",
$fw,
$fs
);
}
@include lazy-font('Nexa', "font/gg", bold);
@include lazy-font('Nexa', "font/gg-i", normal, italic);
@font-face {
font-family: "Nexa";
src: url('/fonts/font/gg.eot');
src: url('/fonts/font/gg.eot?#iefix') format('embedded-opentype'), url('/fonts/font/gg.ttf') format('truetype'), url('/fonts/font/gg.otf') format('opentype');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: "Nexa";
src: url('/fonts/font/gg-i.eot');
src: url('/fonts/font/gg-i.eot?#iefix') format('embedded-opentype'), url('/fonts/font/gg-i.ttf') format('truetype'), url('/fonts/font/gg-i.otf') format('opentype');
font-weight: normal;
font-style: italic;
}
@Rplus

Rplus commented Oct 29, 2014

Copy link
Copy Markdown
Author

sassmaster 存檔測試

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment