Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #94 from hooktstudios/font-face

Add @font-face mixin to addons
  • Loading branch information...
commit b30169818b3a0df863a350ea7720bf03eea6d0f0 2 parents 4be440e + a42ff51
Phil LaPier authored
View
1  app/assets/stylesheets/_bourbon.scss
@@ -30,6 +30,7 @@
// Addons & other mixins
@import "addons/button";
@import "addons/clearfix";
+@import "addons/font-face";
@import "addons/font-family";
@import "addons/hide-text";
@import "addons/html5-input-types";
View
12 app/assets/stylesheets/addons/_font-face.scss
@@ -0,0 +1,12 @@
+@mixin font-face($font-family, $file-path, $weight: normal, $style: normal ) {
+ @font-face {
+ font-family: $font-family;
+ src: url('#{$file-path}.eot');
+ src: url('#{$file-path}.eot?#iefix') format('embedded-opentype'),
+ url('#{$file-path}.woff') format('woff'),
+ url('#{$file-path}.ttf') format('truetype'),
+ url('#{$file-path}.svg##{$font-family}') format('svg');
+ font-weight: $weight;
+ font-style: $style;
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.