Created
May 28, 2015 21:02
-
-
Save luckyshot/eae1f5e4d64c96a5e4d2 to your computer and use it in GitHub Desktop.
Readability CSS
This file contains 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
html { | |
color: #444; | |
background: #FDFDFF; | |
font-family: 'Helvetica Neue', HelveticaNeue, sans-serif; | |
font-size: 16px; | |
line-height: 1.618em; | |
margin: 0 auto; | |
max-width: 50em; | |
text-rendering: optimizeLegibility; | |
} | |
h1,h2,h3,h4,h5,h6 { | |
margin: 2em 0 .5em; | |
max-width: 35em; /* 35-60em */ | |
color: #000; | |
line-height: 1; | |
} | |
h1 { | |
font-size: 1000%; | |
margin: .5em; | |
text-align: center; | |
text-shadow: 0 0.1em 1em #b4e7f8; | |
color: white; | |
letter-spacing: -.1em; | |
text-transform: capitalize; | |
} | |
h2 { | |
font-size: 400%; | |
font-weight: 100; | |
} | |
h2 small, | |
h3 small, | |
h4 small, | |
h5 small, | |
h6 small { | |
font-size: 50%; | |
opacity: .5; | |
} | |
h3 { font-size: 250%; } | |
h4 { font-size: 200%; } | |
h5 { font-size: 150%; } | |
h6 { font-size: 130%; opacity: .9; } | |
p, li, td, th { | |
margin: 0.8125em 0; | |
max-width: 40em; | |
text-align: justify; | |
line-height: 1.66; | |
font-size: 18px; | |
} | |
li { | |
list-style-type: circle; | |
} | |
strong,b,i,em,th { | |
color: #000; | |
} | |
blockquote { | |
width: 120%; | |
margin: auto -15%; | |
} | |
blockquote p { | |
max-width: 50em; | |
font-size: 200%; | |
font-style: italic; | |
line-height: 1.33; | |
text-align: center; | |
} | |
section { | |
background: #eee; | |
padding: 2em; | |
opacity: .8; | |
border-radius: .3em; | |
} | |
section *:first-child { | |
margin-top: 0; | |
} | |
a { | |
color: inherit; | |
border-bottom: 3px solid #b4e7f8; | |
text-decoration: none; | |
} | |
a:hover { | |
background: #b4e7f8; | |
} | |
mark { | |
padding: .1em .2em; | |
background-color: bisque; | |
border-radius: 0.3em; | |
font-size: 105%; | |
} | |
table { | |
width: 120%; | |
margin: auto -10%; | |
border: 2px solid #ccc; | |
background-color: #fbfbfb; | |
} | |
table th, | |
table td { | |
padding: .5em; | |
text-align: left; | |
vertical-align: top; | |
} | |
img { | |
max-width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment