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