Last active
May 25, 2018 01:39
-
-
Save nooldey/17be26971c17abf9ea5e1061d3598556 to your computer and use it in GitHub Desktop.
Css style for vscode markdow preview
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
@charset "utf-8"; | |
/** * vscode-markdown.css */ | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6, | |
p, | |
blockquote { | |
margin: 0; | |
padding: 0; | |
} | |
body { | |
font-family: "PingFang SC", "Hiragino Sans GB", Helvetica, Arial, sans-serif; | |
padding: 1em; | |
margin: auto; | |
max-width: 42em; | |
color: #737373; | |
background-color: white; | |
margin: 10px 13px 10px 13px; | |
} | |
table { | |
margin: 10px 0 15px 0; | |
border-collapse: collapse; | |
} | |
td, | |
th { | |
border: 1px solid #ddd; | |
padding: 3px 10px; | |
} | |
th { | |
padding: 5px 10px; | |
} | |
a { | |
color: #0069d6; | |
} | |
a:hover { | |
color: #0050a3; | |
text-decoration: none; | |
} | |
a img { | |
border: none; | |
} | |
p { | |
margin-bottom: 9px; | |
} | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
color: #404040; | |
line-height: 36px; | |
} | |
h1 { | |
margin-bottom: 18px; | |
font-size: 30px; | |
} | |
h2 { | |
font-size: 24px; | |
} | |
h3 { | |
font-size: 18px; | |
} | |
h4 { | |
font-size: 16px; | |
} | |
h5 { | |
font-size: 14px; | |
} | |
h6 { | |
font-size: 13px; | |
} | |
hr { | |
margin: 0 0 19px; | |
border: 0; | |
border-bottom: 1px solid #ccc; | |
} | |
blockquote { | |
color: #666666; | |
margin: 0; | |
padding-left: 3em; | |
border-left: 0.5em #EEE solid; | |
font-family: "STKaiti", georgia, serif; | |
} | |
code, | |
pre { | |
font-family: Monaco, Andale Mono, Courier New, monospace; | |
font-size: 12px; | |
} | |
code { | |
background-color: #ffffe0; | |
border: 1px solid orange; | |
color: rgba(0, 0, 0, 0.75); | |
padding: 1px 3px; | |
-webkit-border-radius: 3px; | |
-moz-border-radius: 3px; | |
border-radius: 3px; | |
} | |
pre { | |
display: block; | |
background-color: #f8f8f8; | |
border: 1px solid #2f6fab; | |
border-radius: 3px; | |
overflow: auto; | |
padding: 14px; | |
white-space: pre-wrap; | |
word-wrap: break-word; | |
} | |
pre code { | |
background-color: inherit; | |
border: none; | |
padding: 0; | |
} | |
sup { | |
font-size: 0.83em; | |
vertical-align: super; | |
line-height: 0; | |
} | |
* { | |
-webkit-print-color-adjust: exact; | |
} | |
@media screen and (min-width: 914px) { | |
body { | |
width: 854px; | |
margin: 10px auto; | |
} | |
} | |
@media print { | |
body, | |
code, | |
pre code, | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
color: black; | |
} | |
table, | |
pre { | |
page-break-inside: avoid; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment