Created
December 16, 2010 15:13
-
-
Save jpsirois/743503 to your computer and use it in GitHub Desktop.
Custom Initial and Blockquote (Cross-Browser except IE8 and lower)
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Custom Initial and Blockquote (Cross-Browser except IE8 and lower)</title> | |
<style> | |
/* Reset {{{ */ | |
/* | |
html5doctor.com Reset Stylesheet | |
v1.4.1 | |
2010-03-01 | |
Author: Richard Clark - http://richclarkdesign.com | |
*/ | |
html, body, div, span, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
abbr, address, cite, code, | |
del, dfn, em, img, ins, kbd, q, samp, | |
small, strong, sub, sup, var, | |
b, i, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, canvas, details, figcaption, figure, | |
footer, header, hgroup, menu, nav, section, summary, | |
time, mark, audio, video { | |
background:transparent; | |
border:0; | |
font-size:100%; | |
margin:0; | |
outline:0; | |
padding:0; | |
vertical-align:baseline; | |
} | |
body { | |
line-height:1; | |
} | |
article,aside,canvas,details,figcaption,figure, | |
footer,header,hgroup,menu,nav,section,summary { | |
display:block; | |
} | |
nav ul { | |
list-style:none; | |
} | |
blockquote, q { | |
quotes:none; | |
} | |
blockquote:before, blockquote:after, | |
q:before, q:after { | |
content:''; | |
content:none; | |
} | |
a { | |
background:transparent; | |
border:0; | |
font-size:100%; | |
margin:0; | |
padding:0; | |
vertical-align:baseline; | |
} | |
ins { | |
background-color:#ff9; | |
color:#000; | |
text-decoration:none; | |
} | |
mark { | |
background-color:#ff9; | |
color:#000; | |
font-style:italic; | |
font-weight:bold; | |
} | |
del { | |
text-decoration: line-through; | |
} | |
abbr[title], dfn[title] { | |
border-bottom:1px dotted #000; | |
cursor:help; | |
} | |
table { | |
border-collapse:collapse; | |
border-spacing:0; | |
} | |
hr { | |
border-top:1px solid #cccccc; | |
border:0; | |
display:block; | |
height:1px; | |
margin:1em 0; | |
padding:0; | |
} | |
input, select { | |
vertical-align:middle; | |
} | |
/*}}}*/ | |
/* @Basic {{{ | |
******************************************************************************/ | |
html { font-size: 62.5%; } | |
html, body { height: 100%; } | |
body { | |
color: #737373; | |
font-family: Georgia, Palatino,” Palatino Linotype”, Times, “Times New Roman”, serif; | |
font-size: 150%; | |
line-height: 1.3; | |
position: relative; | |
padding: 5em; | |
} | |
p,blockquote { margin-bottom: 1em; } | |
h1,h2,h3,h4,h5,h6 { | |
line-height: 1.1; | |
text-rendering: optimizeLegibility; | |
font-family: Helvetica, Arial, "Lucida Grande", "Lucida Sans Unicode", Arial, Verdana, sans-serif; | |
font-size: 100%; | |
font-weight: normal; | |
} | |
#main h1 { | |
font-size: 280%; | |
margin: 0 0 0.35em 0; | |
} | |
/*}}}*/ | |
/* Lettrine {{{ | |
******************************************************************************/ | |
#main h1 + .content p:first-child::first-letter { | |
font-size: 280%; | |
letter-spacing:0; | |
text-transform:uppercase; | |
float:left; | |
margin:0.1em 0.2em 0 0; | |
line-height:0.8; | |
} | |
/*}}}*/ | |
/* Blockquote {{{ | |
******************************************************************************/ | |
blockquote { | |
background: #eee; | |
border: 1px solid #dcdcd5; | |
padding: 1em 2.5em; | |
color: #858484; | |
margin-left: 2em; | |
margin-right: 2em; | |
} | |
blockquote::before, | |
blockquote::after { | |
font-size: 200%; | |
letter-spacing:0; | |
text-transform:uppercase; | |
position: relative; | |
top: 0.25ex; | |
line-height:0; | |
color: #9b9999; | |
} | |
blockquote::before { | |
content: "«"; | |
margin: 0 0.2em 0 -0.8em; | |
left: 0em; | |
} | |
blockquote::after { | |
margin: 0 0 0.16em 0.2em; | |
content: "»"; | |
} | |
/*}}}*/ | |
</style> | |
</head> | |
<body> | |
<div id="main" role="main"> | |
<h1>My Page Title</h1> | |
<div class="content groupe"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> | |
<blockquote>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</blockquote> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment