-
-
Save netzgestaltung/aafa16fce1523f47b976b9a73955c2ff to your computer and use it in GitHub Desktop.
CSS for Open Sans
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
/** | |
* CSS for Open Sans | |
* ================= | |
* @Install | |
* https://google-webfonts-helper.herokuapp.com/fonts/open-sans?subsets=latin | |
* use modern browser option and subsets you need | |
* download fonts and upload to your themes font directory | |
* add the CSS on top of you stylesheet and edit the paths to the current version and relative path of your themes font directory | |
* | |
* @Usage | |
* add "font-family:'Open Sans';" everywhere you want the font. | |
* you don't need to care about the font-style in the name. | |
* instead use: | |
* "font-weight:bold;" | |
* "font-style:italic;" | |
* and so on | |
* as with a non-webfont | |
*/ | |
/* open-sans-300 - latin */ | |
@font-face{ | |
font-family: 'Open Sans'; | |
font-style: normal; | |
font-weight: 300; | |
src: local('Open Sans Light'), local('OpenSans-Light'), | |
url('../fonts/open-sans/open-sans-v15-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ | |
url('../fonts/open-sans/open-sans-v15-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | |
} | |
/* open-sans-300italic - latin */ | |
@font-face{ | |
font-family: 'Open Sans'; | |
font-style: italic; | |
font-weight: 300; | |
src: local('Open Sans Light Italic'), local('OpenSans-LightItalic'), | |
url('../fonts/open-sans/open-sans-v15-latin-300italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ | |
url('../fonts/open-sans/open-sans-v15-latin-300italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | |
} | |
/* open-sans-regular - latin */ | |
@font-face{ | |
font-family: 'Open Sans'; | |
font-style: normal; | |
font-weight: 400; | |
src: local('Open Sans Regular'), local('OpenSans-Regular'), | |
url('../fonts/open-sans/open-sans-v15-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ | |
url('../fonts/open-sans/open-sans-v15-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | |
} | |
/* open-sans-italic - latin */ | |
@font-face{ | |
font-family: 'Open Sans'; | |
font-style: italic; | |
font-weight: 400; | |
src: local('Open Sans Italic'), local('OpenSans-Italic'), | |
url('../fonts/open-sans/open-sans-v15-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ | |
url('../fonts/open-sans/open-sans-v15-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | |
} | |
/* open-sans-600 - latin */ | |
@font-face{ | |
font-family: 'Open Sans'; | |
font-style: normal; | |
font-weight: 600; | |
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), | |
url('../fonts/open-sans/open-sans-v15-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ | |
url('../fonts/open-sans/open-sans-v15-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | |
} | |
/* open-sans-600italic - latin */ | |
@font-face{ | |
font-family: 'Open Sans'; | |
font-style: italic; | |
font-weight: 600; | |
src: local('Open Sans SemiBold Italic'), local('OpenSans-SemiBoldItalic'), | |
url('../fonts/open-sans/open-sans-v15-latin-600italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ | |
url('../fonts/open-sans/open-sans-v15-latin-600italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | |
} | |
/* open-sans-700 - latin */ | |
@font-face{ | |
font-family: 'Open Sans'; | |
font-style: normal; | |
font-weight: 700; | |
src: local('Open Sans Bold'), local('OpenSans-Bold'), | |
url('../fonts/open-sans/open-sans-v15-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ | |
url('../fonts/open-sans/open-sans-v15-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment