Last active
May 20, 2020 01:52
-
-
Save AWtnb/ef12e4addb2d0284d5cf5ecc61eab419 to your computer and use it in GitHub Desktop.
vscode_markdown-preview-enhanced-style
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
.markdown-preview.markdown-preview { | |
@accentColor: #3498db; | |
@backgroundColor: #ffffff; | |
@foregroundColor: #333333; | |
@accentFont: 'Source Han Code JP N', Verdana, Arial, Helvetica, Roboto, sans-serif; | |
@baseFont: "HelveticaNeue", Arial, "HiraginoKakuGothicProN", "HiraginoSans", Meiryo, sans-serif; | |
@borderColor: #aaa; | |
@codeDark: #364352; | |
@codeLight: #f2f2f2; | |
@quoteColor: #5c5c5c; | |
@baseFontSize: 10.5pt; | |
@maxWidth: 50em; | |
background: @backgroundColor; | |
color: @foregroundColor; | |
font-family: @baseFont; | |
font-size: @baseFontSize; | |
font-feature-settings: "pwid"; | |
// index | |
h1, h2, h3, h4, h5, h6 { | |
color: #494949; | |
font-weight: bold; | |
margin-bottom: .25em; | |
margin-top: 1em; | |
} | |
h1 { | |
position: relative; | |
color: white; | |
padding: .5em .25em .5em .5em; | |
background-color: @accentColor * 0.5; | |
border-radius: 15px; | |
border-left: solid 22px @accentColor; | |
} | |
h2 { | |
font-size: (@baseFontSize * 1.5); | |
position: relative; | |
padding: .2em .25em; | |
border-left: 6px solid @accentColor; | |
border-bottom: solid 1px @borderColor; | |
} | |
h3 { | |
font-size: @baseFontSize * 1.25; | |
padding: .2em 2.5em .2em .25em; | |
min-width: 10em; | |
border-left: 4px solid @borderColor; | |
border-bottom: 1px solid @borderColor; | |
display: inline-flex; | |
} | |
h4 { | |
&:first-letter { | |
font-size: @baseFontSize * 1.25; | |
color: @accentColor * 0.75; | |
} | |
font-size: @baseFontSize * 1.1; | |
padding-top: .25em; | |
padding-left: 0; | |
} | |
h5 { | |
&:before { | |
content: '\2714'; | |
font-size: @baseFontSize * 1.5; | |
color: @borderColor; | |
} | |
font-size: @baseFontSize; | |
padding-left: 0; | |
} | |
h6 { | |
&:before { | |
content: '\25c6'; | |
color: @borderColor; | |
} | |
font-size: @baseFontSize; | |
color: @borderColor * 0.5; | |
padding-left: 0; | |
} | |
// table | |
table { | |
font-size: (@baseFontSize - 1.5pt); | |
font-family: @baseFont; | |
margin-left: 2em; | |
border-collapse: collapse; | |
border-spacing: 0; | |
border: solid 1px #cccccc; | |
th { | |
font-size: (@baseFontSize - 1pt); | |
text-align: center !important; | |
background-color: #575757; | |
color: #dddddd; | |
padding: 4px; | |
border: 0; | |
} | |
td { | |
min-width: 3em; | |
padding: .25em .75em; | |
} | |
tr:nth-child(even) { | |
background-color: #f5f5f5; | |
} | |
} | |
// quotation | |
blockquote { | |
color: @quoteColor; | |
font-size: (@baseFontSize * 0.9); | |
background-color: @backgroundColor; | |
border-left: solid 1px @borderColor; | |
max-width: @maxWidth - 2em; | |
margin-bottom: 2em; | |
margin-top: .25em; | |
p { | |
padding-top: .25em; | |
padding-bottom: .25em; | |
line-height: 1.5em; | |
} | |
strong { | |
color: @quoteColor; | |
} | |
} | |
// code block | |
pre[class*="language-"] { | |
padding: 1em; | |
margin: .5em 0; | |
overflow: auto; | |
} | |
:not(pre) > code[class*="language-"], pre[class*="language-"] { | |
code { | |
font-size: (@baseFontSize * 0.9) !important; | |
font-family: @accentFont; | |
color: @codeDark; | |
} | |
background-color: @codeLight; | |
margin-left: 2em; | |
max-width: @maxWidth - 2em; | |
} | |
// inline code | |
:not(pre) > code { | |
font-size: @baseFontSize * 0.8; | |
font-family: @accentFont; | |
padding: .2em; | |
background: @codeDark; | |
color: @codeLight; | |
} | |
// main content | |
p { | |
margin-top: .25em; | |
margin-bottom: .25em; | |
margin-left: 1em; | |
} | |
strong { | |
font-family: @accentFont; | |
} | |
hr { | |
page-break-after: always; | |
} | |
img { | |
box-shadow: 1px 1px 5px 1px @borderColor; | |
margin: 10px; | |
border-radius: 10px; | |
} | |
// list | |
ol, ul { | |
margin-top: .25em; | |
margin-bottom: .25em; | |
} | |
li { | |
max-width: 50em; | |
margin-top: .1em; | |
margin-bottom: .1em; | |
ul { | |
padding-left: 1.5em; | |
} | |
> p{ | |
margin-left: 0; | |
} | |
} | |
.page-separator { | |
page-break-after: always; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment