Created
April 3, 2013 12:09
-
-
Save pyrocat101/5300641 to your computer and use it in GitHub Desktop.
CJK/Western text emphasis
This file contains hidden or 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
/** | |
* CJK/Western text emphasis | |
*/ | |
@font-face { | |
font-family: "Western Italic"; | |
src: local("HoeflerText-Italic"), | |
local("Baskerville-Italic"), | |
local("Georgia Italic"); | |
font-style: normal; | |
font-weight: normal; | |
} | |
@font-face { | |
font-family: "Western Italic"; | |
src: local("HoeflerText-BlackItalic"), | |
local("Baskerville-BoldItalic"), | |
local("Georgia Bold Italic"); | |
font-style: normal; | |
font-weight: bold; | |
} | |
body { | |
font-family: Hoefler Text, serif; | |
} | |
em { | |
font-family: "Western Italic", STKaiti, Kai, Kaiti, serif; | |
font-style: normal; | |
} | |
p { | |
font-size: 3em; | |
margin: 0; | |
line-height: 1.5; | |
} |
This file contains hidden or 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>我<em>爱</em>你</p> | |
<p>I <em>love</em> you</p> | |
<p>I <em>do <strong>love</strong></em> you</p> |
This file contains hidden or 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 hidden or 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":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment