font weight and style default to false

This commit is contained in:
lyuba 2011-07-15 23:31:30 +02:00
parent 937a15a41a
commit fce52690b9

View File

@ -26,8 +26,8 @@
$name,
$font-files,
$eot: false,
$weight: normal,
$style: normal
$weight: false,
$style: false
) {
$iefont: unquote("#{$eot}?iefix");
@font-face {
@ -37,9 +37,13 @@
$font-files: font-url($iefont) unquote("format('eot')"), $font-files;
}
src: $font-files;
@if $weight {
font-weight: $weight;
}
@if $style {
font-style: $style;
}
}
}
// EXAMPLE