Commit ade9d6f4 by xuchao

Fixed: asset_path for boboto fonts

parent 914beff6
......@@ -5,34 +5,34 @@
@mixin roboto-font($type, $weight, $style) {
@font-face {
font-family: 'Roboto';
src: url(asset_path('#{$roboto-font-path}/Roboto-#{$type}.eot'));
src: url(asset_path("#{$roboto-font-path}/Roboto-#{$type}.eot"));
src: local('Roboto #{$type}'),
local('Roboto-#{$type}'),
url(asset_path('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix')) format('embedded-opentype'),
url(asset_path('#{$roboto-font-path}/Roboto-#{$type}.woff2')) format('woff2'),
url(asset_path('#{$roboto-font-path}/Roboto-#{$type}.woff')) format('woff'),
url(asset_path('#{$roboto-font-path}/Roboto-#{$type}.ttf')) format('truetype'),
url(asset_path('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto')) format('svg');
url(asset_path("#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix")) format('embedded-opentype'),
url(asset_path("#{$roboto-font-path}/Roboto-#{$type}.woff2")) format('woff2'),
url(asset_path("#{$roboto-font-path}/Roboto-#{$type}.woff")) format('woff'),
url(asset_path("#{$roboto-font-path}/Roboto-#{$type}.ttf")) format('truetype'),
url(asset_path("#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto")) format('svg');
font-weight: $weight;
font-style: $style;
}
@font-face {
font-family: 'Roboto-#{$type}';
src: url(asset_path('#{$roboto-font-path}/Roboto-#{$type}.eot'));
src: url(asset_path("#{$roboto-font-path}/Roboto-#{$type}.eot"));
src: local('Roboto #{$type}'),
local('Roboto-#{$type}'),
url(asset_path('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix')) format('embedded-opentype'),
url(asset_path('#{$roboto-font-path}/Roboto-#{$type}.woff2')) format('woff2'),
url(asset_path('#{$roboto-font-path}/Roboto-#{$type}.woff')) format('woff'),
url(asset_path('#{$roboto-font-path}/Roboto-#{$type}.ttf')) format('truetype'),
url(asset_path('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto')) format('svg');
url(asset_path("#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix")) format('embedded-opentype'),
url(asset_path("#{$roboto-font-path}/Roboto-#{$type}.woff2")) format('woff2'),
url(asset_path("#{$roboto-font-path}/Roboto-#{$type}.woff")) format('woff'),
url(asset_path("#{$roboto-font-path}/Roboto-#{$type}.ttf")) format('truetype'),
url(asset_path("#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto")) format('svg');
}
}
@mixin roboto-font-pair($type, $weight) {
@include roboto-font('#{$type}', $weight, normal);
@include roboto-font('#{$type}Italic', $weight, italic);
@include roboto-font("#{$type}", $weight, normal);
@include roboto-font("#{$type}Italic", $weight, italic);
}
@include roboto-font-pair('Thin', 100);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment