Created
May 30, 2013 13:50
-
-
Save onealtang/5677957 to your computer and use it in GitHub Desktop.
13. 花俏地CSS3 Pull-Quotes Pull-quotes不同于页面里的blockquote,它们通常用在文章中来引用文本。
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
| .has-pullquote:before { | |
| /* Reset metrics. */ | |
| padding: 0; | |
| border: none; | |
| /* Content */ | |
| content: attr(data-pullquote); | |
| /* Pull out to the right, modular scale based margins. */ | |
| float: rightright; | |
| width: 320px; | |
| margin: 12px -140px 24px 36px; | |
| /* Baseline correction */ | |
| position: relative; | |
| top: 5px; | |
| /* Typography (30px line-height equals 25% incremental leading) */ | |
| font-size: 23px; | |
| line-height: 30px; | |
| } | |
| .pullquote-adelle:before { | |
| font-family: "adelle-1", "adelle-2"; | |
| font-weight: 100; | |
| top: 10px !important; | |
| } | |
| .pullquote-helvetica:before { | |
| font-family: "Helvetica Neue", Arial, sans-serif; | |
| font-weight: bold; | |
| top: 7px !important; | |
| } | |
| .pullquote-facit:before { | |
| font-family: "facitweb-1", "facitweb-2", Helvetica, Arial, sans-serif; | |
| font-weight: bold; | |
| top: 7px !important; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment