Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

simple font-face mixin scss

/* SCSS */
@mixin font-face($name, $file) {
   @font-face {
   font-family: "#{$name}";
   src: url("../fonts/#{$file}.eot");
   src: url("../fonts/#{$file}.eot?#iefix") format("embedded-opentype"),
   url("../fonts/#{$file}.woff") format("woff"),
   url("../fonts/#{$file}.ttf") format("truetype"),
   url("../fonts/#{$file}.svg?#webfont") format("svg");
 }
}
Source by www.developerdrive.com #
 
PREVIOUS NEXT
Tagged: #simple #mixin #scss
ADD COMMENT
Topic
Name
8+6 =