diff --git a/Components/DocumentDefault/BaseStyles/Mixins/_fontFace.styl b/Components/DocumentDefault/BaseStyles/Mixins/_fontFace.styl index cdb5b2ab..f9d4c3a1 100644 --- a/Components/DocumentDefault/BaseStyles/Mixins/_fontFace.styl +++ b/Components/DocumentDefault/BaseStyles/Mixins/_fontFace.styl @@ -1,6 +1,9 @@ -fontFace($family, $file, $weight = 'normal', $style = 'normal', $basePath = '../../Components/DocumentDefault/Fonts/') +fontFace($family, $file, $weight = 'normal', $style = 'normal', $woff2 = true, $basePath = '../../Components/DocumentDefault/Fonts/') @font-face font-family: $family - src: url($basePath + $file + '.woff2') format('woff2'), url($basePath + $file + '.woff') format('woff'), url($basePath + $file + '.ttf') format('truetype') + if $woff2 + src: url($basePath + $file + '.woff2') format('woff2'), url($basePath + $file + '.woff') format('woff'), url($basePath + $file + '.ttf') format('truetype') + else + src: url($basePath + $file + '.woff') format('woff'), url($basePath + $file + '.ttf') format('truetype') font-style: unquote($style) font-weight: unquote($weight) diff --git a/Components/SliderMedia/style.styl b/Components/SliderMedia/style.styl index d70d55e6..6570fc2a 100644 --- a/Components/SliderMedia/style.styl +++ b/Components/SliderMedia/style.styl @@ -5,7 +5,7 @@ $rupture.anti-overlap = lookup('$globalRuptureAntiOverlap') || -1px $containerPadding = lookup('$globalContainerPadding') || 15px $containerMaxWidth = lookup('$globalContainerMaxWidth') || 1140px -fontFace('slick', 'slick', normal, normal, '../../vendor/slick/') +fontFace('slick', 'slick', normal, normal, false, '../../vendor/slick/') .flyntComponent[is='flynt-slider-media'] *,