Skip to content

Instantly share code, notes, and snippets.

@rovizon
Created February 12, 2017 17:36
Show Gist options
  • Save rovizon/8c41838a62c3b65ed99dde686ee6f519 to your computer and use it in GitHub Desktop.
Save rovizon/8c41838a62c3b65ed99dde686ee6f519 to your computer and use it in GitHub Desktop.
// Connect fonts
@mixin cfont($name, $dir, $file-name){
font-family: '#{$name}';
src: url('../fonts/#{$dir}/#{$file-name}.eot');
src: local('☺'),
url('../fonts/#{$dir}/#{$file-name}.woff') format('woff'),
url('../fonts/#{$dir}/#{$file-name}.ttf') format('truetype'),
url('../fonts/#{$dir}/#{$file-name}.svg') format('svg');
font-weight: normal;
font-style: normal;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment