Last active
June 5, 2018 14:03
-
-
Save lsauer/7359270 to your computer and use it in GitHub Desktop.
Best CSS blockquote styles / designs for HTML5 websites
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
/*www.lsauer.com, lo sauer 2013 | |
*/ | |
@media screen { | |
blockquote { | |
display: block; | |
margin: 1.5em 0 1.5em -1.5em; | |
padding: .75em .5em .75em 1em; | |
background: #fff; | |
border-left: 0.5em solid #DDD; | |
font-size: 1em; | |
line-height: 1.5; | |
-webkit-box-shadow: 0 0 5px rgba(20,20,20,0.5); | |
-moz-box-shadow: 0 0 5px rgba(20,20,20,0.5); | |
box-shadow: 0 0 5px rgba(20,20,20,0.5); | |
} | |
blockquote:before { | |
display: block; | |
height: 0px; | |
margin-left: -.95em; | |
font: italic 450% serif,Georgia,Cochin; | |
color: #999; | |
position: relative; | |
top: -30px; | |
content: "\""; | |
} | |
blockquote::selection { | |
background: rgba(50,50,50,.5); | |
color: #FFF; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment