Last active
November 21, 2019 22:56
-
-
Save bradsiefert/903925e8099c936322a4f209970b1cdb to your computer and use it in GitHub Desktop.
Github Markdown CSS #remix
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
<style> | |
body { | |
font-size: 1rem; | |
background-color: white; | |
color: #333; | |
box-sizing: border-box; | |
margin: 0 auto; | |
padding: 48px; | |
} | |
a { | |
color: #4183C4; | |
text-decoration: none; | |
} | |
h1, h2, h3, h4, h5, h6 { | |
margin: 24px 0 8px; | |
padding: 0; | |
font-weight: bold; | |
color: black; | |
-webkit-font-smoothing: antialiased; | |
position: relative; | |
} | |
h2:first-child, h1:first-child, h1:first-child + h2, h3:first-child, h4:first-child, h5:first-child, h6:first-child { | |
margin-top: 0; | |
padding-top: 0; | |
} | |
h1 { | |
font-size: 2.5rem; | |
font-weight: 800; | |
margin-bottom: 8px; | |
} | |
h2 { | |
font-size: 1.75rem; | |
color: 600; | |
margin: 32px 0 16px; | |
} | |
h3 { | |
font-size: 1.5rem; | |
color: 600; | |
} | |
h4 { | |
font-size: 1.25rem; | |
color: 500; | |
} | |
h5 { | |
font-size: 1.1rem; | |
color: 600; | |
margin-bottom: 8px; | |
text-transform: uppercase; | |
} | |
h6 { | |
color: #555; | |
font-size: 0.9375rem; | |
font-weight: 600; | |
margin-bottom: 8px; | |
} | |
p, blockquote, ul, ol, dl, table, pre { | |
margin: 16px 0; | |
} | |
li { | |
margin: 0 0 8px; | |
} | |
hr { | |
border: 0 none; | |
color: #cccccc; | |
height: 1px; | |
padding: 0; | |
} | |
li p.first { | |
display: inline-block; | |
} | |
a | |
ul, ol { | |
padding-left: 32px; | |
} | |
ul :first-child, ol :first-child { | |
margin-top: 0; | |
} | |
ul :last-child, ol :last-child { | |
margin-bottom: 0; | |
} | |
dl { | |
padding: 0; | |
} | |
dl dt { | |
font-size: 0.9375rem; | |
font-weight: bold; | |
font-style: italic; | |
padding: 0; | |
margin: 16px 0 4px; | |
} | |
dl dt:first-child { | |
padding: 0; | |
} | |
dl dt > :first-child { | |
margin-top: 0; | |
} | |
dl dt > :last-child { | |
margin-bottom: 0; | |
} | |
dl dd { | |
margin: 0 0 16px; | |
padding: 0 16px; | |
} | |
dl dd > :first-child { | |
margin-top: 0; | |
} | |
dl dd > :last-child { | |
margin-bottom: 0; | |
} | |
blockquote { | |
padding: 16px; | |
color: #777777; | |
border: 0; | |
background-color: #fafafa; | |
font-style: italic; | |
} | |
blockquote > :first-child { | |
margin-top: 0; | |
} | |
blockquote > :last-child { | |
margin-bottom: 0; | |
} | |
table { | |
padding: 0; | |
border-collapse: collapse; | |
} | |
table tr { | |
border-top: 1px solid #cccccc; | |
background-color: white; | |
margin: 0; | |
padding: 0; | |
} | |
table tr:nth-child(2n) { | |
background-color: #f8f8f8; | |
} | |
table tr th { | |
font-weight: bold; | |
border: 1px solid #cccccc; | |
text-align: left; | |
margin: 0; | |
padding: 6px 12px; | |
} | |
table tr td { | |
border: 1px solid #cccccc; | |
text-align: left; | |
margin: 0; | |
padding: 6px 12px; | |
} | |
table tr th :first-child, table tr td :first-child { | |
margin-top: 0; | |
} | |
table tr th :last-child, table tr td :last-child { | |
margin-bottom: 0; | |
} | |
img { | |
max-width: 100%; | |
} | |
code, tt { | |
margin: 0 2px; | |
padding: 0 4px; | |
white-space: nowrap; | |
border: 1px solid #eaeaea; | |
background-color: #f8f8f8; | |
border-radius: 3px; | |
} | |
pre code { | |
margin: 0; | |
padding: 0; | |
white-space: pre; | |
border: none; | |
background: transparent; | |
} | |
.highlight pre { | |
background-color: #f8f8f8; | |
border: 1px solid #cccccc; | |
font-size: 12px; | |
line-height: 19px; | |
overflow: auto; | |
padding: 6px 8px; | |
border-radius: 3px; | |
} | |
pre { | |
background-color: #f8f8f8; | |
border: 1px solid #cccccc; | |
font-size: 12px; | |
line-height: 19px; | |
overflow: auto; | |
padding: 6px 8px; | |
border-radius: 3px; | |
} | |
pre code, pre tt { | |
background-color: transparent; | |
border: none; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment