Skip to content

Instantly share code, notes, and snippets.

@elclanrs
Last active September 13, 2021 10:25
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save elclanrs/f49c0a8cf3838c1ffeb3 to your computer and use it in GitHub Desktop.
Save elclanrs/f49c0a8cf3838c1ffeb3 to your computer and use it in GitHub Desktop.
Markdown theme for ReText
body {
color: #333;
font: normal 16px/1.3 Arial, sans-serif;
max-width: 6.5in;
margin: 0 auto;
}
a:link, a:visited {
color: #1B70D1;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
h1,h2,h3,h4 {
font-family: Source Sans Pro, sans-serif;
padding: 0;
margin: .8em 0;
line-height: 1.2;
}
h2 {
margin-bottom: .5em;
}
h3 {
padding: .5em 0 0 0;
font-size: 14px;
text-transform: uppercase;
letter-spacing: .1em;
}
h2 + h3 {
padding-top: 0;
}
pre, code {
font: normal 16px/1.35 Inconsolata;
color: #022054;
background: #F0F5FA;
}
pre {
padding: 1em;
}
code {
text-indent: 0;
display: inline-block;
padding: .1em .25em;
}
blockquote {
margin: 15px 0;
font-style: italic;
border-left: 4px solid #F0F5FA;
}
ul {
list-style: none;
padding-left: 1em;
}
ul ul {
margin: .25em 0 .75em 0;
padding-left: .5em;
}
ul li {
margin: .5em 0;
padding-left: 16px;
background: url(http://www.websitebullets.com/bullet/402/1.gif) 0 .2em no-repeat;
}
ul li li {
margin: .25em 0;
}
p {
text-indent: 1.5em;
margin: 0 0 .5em 0;
}
p:first-child,
h2 + p,
h3 + p,
h4 + p,
pre + p,
blockquote + p {
text-indent: 0;
}
table {
width: 100%;
margin: 1em 0;
border-width: 1px;
border-color: #666666;
border-collapse: collapse;
font-size: inherit;
}
table th {
border-width: 1px;
padding: 8px 12px;
color: #666;
border-style: solid;
border-color: #999;
background-color: #F0F5FA;
font-family: Source Sans Pro, sans-serif;
font-size: 14px;
text-transform: uppercase;
letter-spacing: .1em;
}
table td {
border-width: 0 1px 0 1px;
padding: 8px 12px;
border-style: solid;
border-color: #999;
background-color: #ffffff;
}
table tr:nth-child(even) td {
background-color: #eee;
}
table tr:last-child td {
border-width: 0 1px 1px 1px;
}
table.last td:last-child {
text-align: right;
}
img {
display: block;
margin-top: 30px;
}
.break {
page-break-before: always;
}
@media print {
body {
font-size: 150%;
}
h3 {
font-size: 75%;
}
}
@porjo
Copy link

porjo commented Aug 13, 2018

Thanks for the CSS! The font sizes should use em rather than px otherwise the fonts are tiny when exported to PDF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment