Created
February 10, 2016 19:25
-
-
Save Fresh-Dev/2a11ae2e1e9e57d2a378 to your computer and use it in GitHub Desktop.
Fancy CSS3 Pull-Quotes
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: right; | |
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