Last active
November 3, 2018 12:58
-
-
Save papandreou/3fcaf3c3b8e475588036f137065ef91a to your computer and use it in GitHub Desktop.
Load the static fonts as a fallback
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
body { | |
font-family: 'Venn VF', 'Venn', sans-serif; | |
} | |
@supports (font-variation-settings: normal) { | |
@font-face { | |
font-family: 'Venn VF'; | |
src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/814870/Venn_VF.woff2') format('woff2-variations'), /* for Safari */ | |
url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/814870/Venn_VF.woff2') format('woff2'); /* for all other supporting browsers */ | |
font-display: fallback; | |
font-weight: 300 800; /* prevents faux bolding in Safari */ | |
font-stretch: 75 125; | |
} | |
} | |
/* Load the static fonts as a fallback */ | |
@font-face { | |
font-family: 'Venn'; | |
src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/814870/Venn_Regular.woff2') format('woff2'); | |
font-display: fallback; /* has nothing to do with the fact that this is the fallback font */ | |
} | |
@font-face { | |
font-family: 'Venn'; | |
src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/814870/Venn_Bold.woff2') format('woff2'); | |
font-display: fallback; /* has nothing to do with the fact that this is the fallback font */ | |
font-weight: 700; | |
} |
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
<p>Hello, <strong>world</strong>!</p> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment