Last active
November 5, 2018 12:20
-
-
Save Damonvvong/5e773d6e0adaa0c8c73d2dc465a2c626 to your computer and use it in GitHub Desktop.
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
/*此属性为全局*/ | |
.output_wrapper { | |
font-size: 16px; | |
color: #3e3e3e; | |
line-height: 2; | |
word-spacing: 0px; | |
letter-spacing: 0px; | |
font-family: "Helvetica Neue",Helvetica,"Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif; | |
} | |
.output_wrapper * { | |
font-size: inherit; | |
color: inherit; | |
line-height: inherit; | |
margin: 0px; | |
padding: 0px; | |
} | |
h1,h2,h3 { | |
text-align: left; | |
} | |
h1 { | |
font-size: 32px; | |
} | |
h2 { | |
line-height: 1.2; | |
color: #ff6633; | |
font-size: 28px; | |
text-align: center; | |
margin: 1em 1em 0.5em 1em !important; | |
padding: 0.2em 0em !important; | |
border-bottom: 1px solid rgb(238, 238, 238) !important | |
} | |
h3 { | |
line-height: 1.5; | |
padding: 0.5em 0em !important; | |
color: #33ccff; | |
font-size: 24px; | |
} | |
ul, ol { padding-left: 32px; } | |
ul { list-style-type: disc; } /*无序列表*/ | |
ol { list-style-type: decimal; } /*有序列表*/ | |
li * { /* color: #3e3e3e;*/ } | |
/*在公众号下,改变不了li符号的属性(如颜色),并会影响其子元素的属性; 而在其它博客平台中,则能正常使用*/ | |
li { margin-bottom: 0.5em; } | |
/*代码块默认size*/ | |
.code_size_default { | |
line-height: 18px; | |
font-size: 14px; | |
font-weight:normal; | |
word-spacing:0px; | |
letter-spacing:0px; | |
} | |
/*代码块紧凑size*/ | |
.code_size_tight | |
{ | |
line-height: 15px; | |
font-size: 11px; | |
font-weight:normal; | |
word-spacing:-3px; | |
letter-spacing:0px; | |
} | |
/*代码块*/ | |
pre code { | |
font-family: Consolas, Inconsolata, Courier, monospace; | |
border-radius: 0px; | |
} | |
/*引用块*/ | |
blockquote { | |
display: block; | |
padding: 15px 1rem; | |
font-size: 0.9em; | |
padding-right: 15px; | |
margin: 1em 0; | |
color: rgb(119, 119, 119); | |
border-left: 3px solid rgb(192, 255, 41); | |
quotes: none; | |
background: #f9ffec; | |
overflow: auto; | |
overflow-scrolling: touch; | |
word-wrap: normal; | |
word-break: normal; | |
} | |
blockquote p { | |
margin: 0px; | |
color: #898989; | |
} | |
/*超链接*/ | |
a { | |
text-decoration: none; | |
color: #1e6bb8; | |
word-wrap:break-word; | |
} | |
h3 a { | |
text-decoration: none; | |
color: #33ccff; | |
word-wrap:break-word; | |
} | |
strong { font-weight: bold; } /*强调*/ | |
em { font-style:italic; } /*斜体*/ | |
del { font-style:italic; } /*删除线*/ | |
strong em { font-weight: bold; } /*强调的斜体*/ | |
/*分隔线*/ | |
hr { | |
height: 1px; | |
margin: 1.5rem 0px; | |
border: none; | |
border-top: 1px dashed #A5A5A5; | |
} | |
/*行内代码*/ | |
code { | |
word-wrap: break-word; | |
padding: 2px 4px; | |
border-radius: 4px; | |
margin:0 2px; | |
color:#ff6633; | |
background:#f8f8f8; | |
} | |
img { | |
display: block; | |
margin:0 auto; /*图片水平居中*/ | |
/* margin:0 0; */ /*图片水平居左,如需要请打开*/ | |
max-width:100%; | |
} | |
/*图片描述文字*/ | |
figcaption { | |
margin-top:10px; | |
text-align:center; | |
/* text-align:left; */ /*当图片水平居左时,请打开*/ | |
color:#999; | |
font-size: 0.7em; | |
} | |
/*================表格开始================*/ | |
table { | |
display:table; | |
width: 100% ; | |
text-align: left; | |
} | |
tbody { | |
border: 0; | |
} | |
table tr { | |
border: 0; | |
border-top: 1px solid #CCC; | |
background-color: white; | |
} | |
/*隔行改变行的背景色,如需要请打开*/ | |
/* | |
table tr:nth-child(2n) { | |
background-color: #F8F8F8; | |
} | |
*/ | |
table tr th, table tr td { | |
font-size: 1em; | |
border: 1px solid #CCC; | |
padding: 0.5em 1em; | |
text-align: left; | |
} | |
/*表头的属性*/ | |
table tr th { | |
font-weight: bold; | |
background-color: #F0F0F0; | |
} | |
/*================表格结束================*/ | |
/*数学公式*/ | |
.katex-display { | |
font-size: 1.5em; | |
} | |
a[href^="#"] sup | |
{/*注脚*/ | |
vertical-align:super; | |
margin:0 2px; | |
padding:1px 3px; | |
color: #ffffff; | |
background:#666666; | |
font-size:0.7em; | |
} | |
/*================任务列表开始================*/ | |
.task-list-list { list-style-type: none; } | |
.task-list-list.checked { color: #3e3e3e; } /*已完成*/ | |
.task-list-list.uncheck { color: #bfc1bf; } /*未完成*/ | |
.task-list-list .icon_uncheck, .task-list-list .icon_check { | |
display: inline-block; | |
vertical-align: middle; | |
margin-right: 10px; | |
} | |
/*已完成*/ | |
.task-list-list .icon_check:before { | |
content: "√"; | |
border: 2px solid #3e3e3e; | |
color:red; | |
} | |
/*未完成*/ | |
.task-list-list .icon_uncheck:before { | |
content: "x"; | |
border: 2px solid #bfc1bf; | |
color: #bfc1bf; | |
} | |
/*标志框*/ | |
.task-list-list .icon_check:before, .task-list-list .icon_uncheck:before { | |
padding:2px; | |
padding-left: 5px; | |
padding-right: 8px; | |
border-radius:5px; | |
} | |
/*================任务列表结束================*/ | |
.toc { margin-left:25px; } /*总目录*/ | |
.toc_item { display:block; } /*每条目录*/ | |
.toc_left { margin-left:25px; } /*每级目录的缩进*/ | |
.num { font-size: 40px; color: #e26a00; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment