font weight and style default to false
This commit is contained in:
parent
937a15a41a
commit
fce52690b9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user