-
-
Save pluma/6b51b2601ddea34d5abf to your computer and use it in GitHub Desktop.
Stylesheet for markdown
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
body {max-width: 106ex; margin: 0 auto; padding: 1em 1ex; font-family: monospace; color: rgb(64,64,64)} | |
h1:before, h2:before, h3:before, h4:before, h5:before, h6:before {color: rgb(192,0,0)} | |
h1, h2, h3, h4, h5, h6 {font-weight: bold; color: black; font-size: 1.2em; margin: 2em 0 1em 0} | |
h1 {text-indent: -2ex; font-size: 2em} | |
h2 {text-indent: -3ex; font-size: 1.5em} | |
h3 {text-indent: -4ex; font-size: 1.2em} | |
h4 {text-indent: -5ex; font-size: 1em} | |
h5 {text-indent: -6ex; font-size: 1em} | |
h6 {text-indent: -7ex; font-size: 1em} | |
h1:before {content: '# '} | |
h2:before {content: '## '} | |
h3:before {content: '### '} | |
h4:before {content: '#### '} | |
h5:before {content: '##### '} | |
h6:before {content: '###### '} | |
p {margin: 1em 0; max-width: 80ex} | |
strong, b {font-weight: bold; color: black} | |
strong:before, b:before, strong:after, b:after {content: '**'; color: rgb(192,0,0)} | |
em, i {font-style: italic} | |
em:before, em:after, i:before, i:after {content: '*'; color: rgb(192,0,0)} | |
code {font-weight: bold; color: black} | |
code:before, code:after {content: '`'; color: rgb(192,0,0)} | |
pre {background: rgba(0,0,0,0.05); color: black; padding: 2ex; margin: 0 -2ex; max-width: 100ex; overflow: auto} | |
pre code {font-weight: inherit; display: block; background: white; font-size: 1.25em} | |
pre code:before, pre code:after {content: ''} | |
ul, ol {margin: 2em 2ex; padding: 0; counter-reset: list} | |
li {list-style-type: none; max-width: 80ex; margin-left: 2ex; margin-bottom: 1em; text-indent: -2ex} | |
li:before {content: '* '; font-weight: bold; color: rgb(192,0,0)} | |
ol {counter-reset: list} | |
ol>li {counter-increment: list; text-indent: -3ex} | |
ol>li:before {content: counter(list) '. '} | |
a {color: rgb(0,0,192); text-decoration: none; font-weight: bold} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment