This repository has been archived by the owner on Apr 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Components/DocumentDefault): add woff2 option to fontFace helper (#…
…197) to fix console error with slick font loading
- Loading branch information
Doğa Gürdal
authored
May 24, 2017
1 parent
9383082
commit d90fb64
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters