Skip to content

Instantly share code, notes, and snippets.

@charleyramm
Created August 19, 2015 20:33
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save charleyramm/a10a3386489fbbeb0d4f to your computer and use it in GitHub Desktop.
Save charleyramm/a10a3386489fbbeb0d4f to your computer and use it in GitHub Desktop.
h1 {
font-size: 1.25em;
}
h2 {
font-size: 1.125em;
}
h3 {
font-size: 1.05em;
}
h4, h5, h6 {
font-size: 1em;
margin: 1em 0;
}
figure {
margin: 0;
}
.page.rtl {
direction: rtl;
}
#article {
text-rendering: optimizeLegibility;
}
#article pre {
white-space: pre-wrap;
}
#article * {
/* Scale down anything larger than our view. Max-width maintains aspect ratios on images. */
max-width: 100%;
}
#article img {
/* By default, images are centered on their own line. */
margin: 0.5em auto;
display: block;
height: auto;
}
#article img.reader-image-tiny {
display: inline;
margin: 0;
}
#article .leading-image, figure, .auxiliary {
margin-bottom: .25em;
}
#article .leading-image img {
margin: auto;
display: block;
clear: both;
}
#article .leading-image .credit {
margin: 0;
text-align: right;
}
#article .leading-image .caption,
#article .leading-image .credit,
#article figcaption,
#article .auxiliary figcaption {
font-size: 0.75em;
line-height: 1.5em;
margin-top: 1em;
width: 100%;
}
#article .leading-image .credit + .caption {
margin-top: 0.1em;
}
#article .auxiliary {
display: block;
clear: both;
font-size: 0.75em;
line-height: 1.4em;
text-align: start;
}
#article .auxiliary > * {
-webkit-margin-start: 0;
}
#article .auxiliary img, #article .auxiliary > *:first-child {
margin: 0;
}
/* If the element immediately after an image is inline, it might bump up against the image. */
#article .auxiliary img + * {
display: block;
}
#article .auxiliary figcaption {
font-size: 100%;
}
#article .auxiliary * {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
#article .float.left {
float: left;
margin-right: 20px;
}
#article .float.right {
float: right;
margin-left: 20px;
}
#article .clear {
clear: both;
}
#article ul.list-style-type-none,
#article ol.list-style-type-none,
#article .list-style-type-none > li {
list-style-type: none;
-webkit-padding-start: 0;
}
/* Collapse excess whitespace. */
.page p > p:empty,
.page div > p:empty,
.page p > div:empty,
.page div > div:empty,
.page p + br,
.page p > br:only-child,
.page div > br:only-child,
.page img + br
{
display: none;
}
.title {
display: none;
}
.page:first-of-type .title {
display: block;
}
.page table {
font-size: 0.9em;
text-align: start;
word-wrap: break-word;
border-collapse: collapse;
}
.page table td, .page table th {
padding: 0.25em 0.5em;
border: 1px solid rgba(0, 0, 0, 0.1);
}
.page table th {
background-color: rgba(0, 0, 0, 0.025);
}
.page a {
text-decoration: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment