Created
February 28, 2018 23:41
-
-
Save joe-sullivan/d80c7b4a8a07d4ff55418c8fc3951ac8 to your computer and use it in GitHub Desktop.
Pandoc css for html output
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
/* TO COMPILE: */ | |
/* pandoc -s --toc --css pandoc.css <IN>.md -o <OUT>.html */ | |
/* NOTE: */ | |
/* include % <TITLE> as first line of md file to set html title */ | |
body { | |
font-size: 12px; | |
margin: auto; | |
max-width: 80ch; | |
letter-spacing: .05em; | |
} | |
a { | |
color: #aaa; | |
text-decoration: none; | |
} | |
h1 { | |
display: none; | |
} | |
blockquote { | |
margin: 0; | |
padding-left: 3em; | |
border-left: 0.5em #EEE solid; | |
} | |
ul, ol { | |
list-style-type: none; | |
text-align: center; | |
} | |
table { | |
margin-bottom: 2em; | |
border-bottom: 1px solid #ddd; | |
border-right: 1px solid #ddd; | |
border-spacing: 0; | |
border-collapse: collapse; | |
} | |
table th { | |
padding: .2em 1em; | |
background-color: #eee; | |
border-top: 1px solid #ddd; | |
border-left: 1px solid #ddd; | |
} | |
table td { | |
padding: .2em 1em; | |
border-top: 1px solid #ddd; | |
border-left: 1px solid #ddd; | |
vertical-align: top; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment