Skip to content

Instantly share code, notes, and snippets.

@DrMabuse23
Created August 18, 2015 08:12
Show Gist options
  • Save DrMabuse23/a3117bc8eefb8de9f11d to your computer and use it in GitHub Desktop.
Save DrMabuse23/a3117bc8eefb8de9f11d to your computer and use it in GitHub Desktop.
// The path for our ionicons font files, relative to the built & temporary module.css
$fontpath: "../assets/fonts";
$ionicons-font-path: $fontpath !default;
$fonts: 'BoschSans-Black', 'BoschSans-Bold', 'BoschSans-Light', 'BoschSans-Medium', 'BoschSans-Regular';
@each $name in $fonts {
//@debug $name;
$path: '#{$fontpath}/#{$name}';
//@debug $path;
//@debug '#{$path}.eot';
@font-face {
font-family: $name;
src:url('#{$path}.eot');
src:url('#{$path}.eot') format('embedded-opentype'),
url('#{$path}.ttf') format('truetype'),
url('#{$path}.woff') format('woff'),
url('#{$path}.svg') format('svg');
@if ($name == 'BoschSans-Bold') {
font-weight: bold;
font-style: normal;
} @else {
font-weight: normal;
font-style: normal;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment