Skip to content
Browse files

Merge pull request #94 from hooktstudios/font-face

Add @font-face mixin to addons
  • Loading branch information...
2 parents 4be440e + a42ff51 commit b30169818b3a0df863a350ea7720bf03eea6d0f0 Phil LaPier committed
Showing with 13 additions and 0 deletions.
  1. +1 −0 app/assets/stylesheets/_bourbon.scss
  2. +12 −0 app/assets/stylesheets/addons/_font-face.scss
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;
+ }
+}

0 comments on commit b301698

Please sign in to comment.
Something went wrong with that request. Please try again.