Skip to content

Instantly share code, notes, and snippets.

@leizongmin
Last active December 13, 2017 02:01
Show Gist options
  • Save leizongmin/25a1ef74028f738f364a38ed321a638e to your computer and use it in GitHub Desktop.
Save leizongmin/25a1ef74028f738f364a38ed321a638e to your computer and use it in GitHub Desktop.
Typora Theme - Lei
html, body {
font-family: "Biaodian Pro Sans CNS","Helvetica Neue",Helvetica,Arial,"Zhuyin Heiti","Han Heiti",sans-serif;
-webkit-font-smoothing: subpixel-antialiased;
line-height: 1.7;
word-break: break-word;
color: #333;
background-color: #f3f2ee;
}
h1,
h2,
h3,
h4,
h5,
h6,
b,
strong {
font-weight: 400;
color: #333;
}
b,
strong {
font-weight: 600;
border-bottom: 1px dashed #333;
}
em {
color: rgba(0, 0, 0, 0.6);
}
code {
padding: 0 0.25em;
word-break: break-word;
font-family: "Fira Code";
text-rendering: optimizeSpeed;
border-radius: 3px;
white-space: pre-wrap;
color: #0086b3;
-webkit-font-smoothing: antialiased;
}
pre {
line-height: 1.45;
padding: 16px;
border-radius: 3px;
white-space: pre-wrap;
overflow-x: scroll;
}
pre code {
padding: 0;
color: rgba(0, 0, 0, .9);
display: block;
min-width: 700px;
}
h2 {
border-bottom: 2px solid rgba(0, 39, 59, .08);
margin-top: 52px;
}
ul {
list-style-position: outside;
padding: 0 2em;
}
a {
display: inline;
border-bottom: 1px dashed #008E59;
padding: 0 0.25em;
color: #008E59;
text-decoration: none;
}
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
margin: 0;
border: none;
padding: 0;
}
hr {
border: none;
border-bottom: 2px solid #CCC;
margin: 20px 0 40px 0;
}
table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
border: 1px solid #CCC;
padding: 4px 16px;
}
li> p {
margin-top: 5px;
margin-bottom: 0.4em;
}
img {
display: block;
max-width: 100%;
margin: auto;
}
code, pre code {
font-family: "Fira Code";
font-feature-settings: "calt" 1;
text-rendering: optimizeLegibility;
white-space: pre-wrap;
word-break: break-all;
}
blockquote {
margin-left: 1rem;
margin-right: 0;
padding: 0.5em;
}
blockquote {
margin: 0 0 1.11111rem;
padding: 0.5rem 1.11111rem 0 1.05556rem;
border-left: 1px solid gray;
}
blockquote,
blockquote p {
line-height: 1.6;
color: #6f6f6f;
}
html, body {
-webkit-font-smoothing: subpixel-antialiased;
line-height: 1.7;
word-break: break-word;
font-size: 14px;
margin: auto;
font-family: "Source Sans Pro",sans-serif;
color: #3f3f3f;
}
h1,
h2,
h3,
h4,
h5,
h6,
b,
strong {
font-weight: 400;
color: #3f3f3f;
}
h2,
h3,
h4,
h5,
h6 {
color: #008E59;
}
h2 {
text-align: center;
}
b,
strong {
font-weight: 600;
}
em {
color: rgba(0, 0, 0, 0.6);
}
code {
padding: 0 0.25em;
word-break: break-word;
/*font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif !important;*/
font-family: -apple-system-font,"Helvetica Neue","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif !important;
text-rendering: optimizeSpeed;
border-radius: 3px;
white-space: pre-wrap;
color: #0086b3;
word-wrap: break-word!important;
-webkit-font-smoothing: antialiased;
}
pre {
padding: 16px;
border-radius: 3px;
white-space: pre-wrap;
overflow-x: scroll;
word-wrap: break-word!important;
}
pre code {
padding: 0;
color: rgba(0, 0, 0, .9);
display: block;
width: 670px;
word-wrap: break-word!important;
font-size: 14px;
}
h2 {
border-bottom: 2px solid rgba(0, 39, 59, .08);
margin-top: 52px;
}
ul {
list-style-position: outside;
padding: 0 2em;
}
a {
display: inline;
border-bottom: 1px dashed #008E59;
padding: 0 0.25em;
color: #008E59;
text-decoration: none;
}
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
margin: 0;
border: none;
padding: 0;
}
hr {
border: none;
border-bottom: 2px solid #CCC;
margin: 20px 0 40px 0;
}
table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
border: 1px solid #CCC;
padding: 4px 16px;
}
li> p {
margin-top: 5px;
margin-bottom: 0.4em;
}
img {
display: block;
max-width: 100%;
margin: auto;
}
code, pre code {
font-family: Avenir, -apple-system-font, 微软雅黑, sans-serif;
font-feature-settings: "calt" 1;
text-rendering: optimizeLegibility;
white-space: pre-wrap;
word-break: break-all;
}
blockquote {
border-left-width: 10px;
background-color: rgba(128,128,128,.05);
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
padding: 15px 20px;
border-left: 5px solid rgba(128,128,128,.075);
}
.CodeMirror-linenumber {
display: none;
}
pre {
background: #f7f7f8 !important;
padding: 12px 8px !important;
}
pre pre {
padding: 0 !important;
}
.md-fences {
padding: 0;
}
pre.md-fences {
background: #f7f7f8 !important;
padding: 12px 8px !important;
}
h2, h3 {
font-size: 1.4rem;
}
h4, h5, h6 {
font-size: 1rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment