2017-05-26 14:19:27 +08:00
|
|
|
/*************表格样式****************/
|
2018-07-10 16:26:25 +08:00
|
|
|
.markdown-body{
|
2018-07-24 17:54:24 +08:00
|
|
|
-webkit-backface-visibility: hidden;
|
2018-09-06 16:13:07 +08:00
|
|
|
font-family: Helvetica, -apple-system, BlinkMacSystemFont, "Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Microsoft Yahei","Helvetica Neue",Helvetica;
|
2018-07-24 17:54:24 +08:00
|
|
|
|
2018-07-10 16:26:25 +08:00
|
|
|
}
|
2018-03-19 15:21:59 +08:00
|
|
|
.editormd-preview-container table {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 24px;
|
|
|
|
width: 100%;
|
|
|
|
overflow: auto;
|
|
|
|
border-bottom: none;
|
|
|
|
line-height: 1.5
|
2017-05-26 14:19:27 +08:00
|
|
|
}
|
2018-03-19 15:21:59 +08:00
|
|
|
|
|
|
|
.editormd-preview-container table td,.editormd-preview-container table th {
|
|
|
|
padding: 8px 13px;
|
|
|
|
border: 1px solid #d9d9d9;
|
|
|
|
word-wrap: break-word;
|
|
|
|
text-align: left
|
2017-05-26 14:19:27 +08:00
|
|
|
}
|
2018-09-04 10:22:02 +08:00
|
|
|
|
2018-03-19 15:21:59 +08:00
|
|
|
.editormd-preview-container table th {
|
|
|
|
background-color: #f2f2f2;
|
|
|
|
color: #333;
|
|
|
|
font-weight: 400;
|
|
|
|
word-break: keep-all
|
|
|
|
}
|
|
|
|
|
|
|
|
.editormd-preview-container table tr {
|
|
|
|
background-color: #fff
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************TOC*******************/
|
2018-09-11 18:36:42 +08:00
|
|
|
.editormd-preview-container{
|
|
|
|
position: relative;
|
|
|
|
height: auto;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article-body .markdown-toc{
|
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
width: 260px;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
.markdown-toc ul{
|
|
|
|
list-style:none;
|
|
|
|
}
|
|
|
|
.markdown-toc .markdown-toc-list>li{
|
|
|
|
padding: 3px 10px 3px 16px;
|
|
|
|
line-height: 18px;
|
|
|
|
border-left: 2px solid #e8e8e8;
|
|
|
|
color: #595959;
|
|
|
|
}
|
|
|
|
.markdown-toc .markdown-toc-list>li.active{
|
|
|
|
border-right: 2px solid #25b864;
|
|
|
|
}
|
|
|
|
|
2018-09-12 11:19:45 +08:00
|
|
|
.article-body .markdown-article,.article-body .attach-list{
|
2018-09-11 18:36:42 +08:00
|
|
|
margin-right: 200px;
|
|
|
|
}
|
|
|
|
.markdown-toc-list .directory-item {
|
|
|
|
padding: 3px 10px 3px 16px;
|
|
|
|
line-height: 18px;
|
|
|
|
border-left: 2px solid #e8e8e8;
|
|
|
|
color: #595959;
|
|
|
|
}
|
|
|
|
.markdown-toc-list .directory-item-link {
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
color: #595959;
|
|
|
|
}
|
|
|
|
.markdown-toc-list .directory-item-link:hover {
|
|
|
|
color: #8C8C8C;
|
|
|
|
}
|
|
|
|
.markdown-toc-list .directory-item-link-1 {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
.markdown-toc-list .directory-item-link-2 {
|
|
|
|
padding-left: 1.2em;
|
|
|
|
}
|
|
|
|
.markdown-toc-list .directory-item-link-3 {
|
|
|
|
padding-left: 2.4em;
|
|
|
|
}
|
|
|
|
.markdown-toc-list .directory-item-link-4 {
|
|
|
|
padding-left: 3.6em;
|
|
|
|
}
|
|
|
|
.markdown-toc-list .directory-item-link-5 {
|
|
|
|
padding-left: 4.8em;
|
|
|
|
}
|
|
|
|
.markdown-toc-list .directory-item-active {
|
2018-09-12 11:19:45 +08:00
|
|
|
border-left: 2px solid #25b864 !important;
|
2018-09-11 18:36:42 +08:00
|
|
|
}
|
|
|
|
.markdown-toc-list .directory-item-active a {
|
|
|
|
color: #25b864;
|
|
|
|
}
|
|
|
|
.markdown-toc-list .directory-item-active a:hover {
|
|
|
|
color: #7CD4A2;
|
2017-05-26 14:19:27 +08:00
|
|
|
}
|
|
|
|
/***********代码样式*****************/
|
|
|
|
.markdown-body .highlight pre, .markdown-body pre{
|
2018-08-07 17:19:56 +08:00
|
|
|
padding: 1em;
|
|
|
|
border: none;
|
|
|
|
overflow: auto;
|
|
|
|
line-height: 1.45;
|
|
|
|
max-height: 35em;
|
|
|
|
position: relative;
|
|
|
|
/*background: url(../editor.md/lib/highlight/blueprint.png) #F6F6F6;*/
|
|
|
|
-moz-background-size: 30px,30px;
|
|
|
|
-o-background-size: 30px,30px;
|
|
|
|
-webkit-background-size: 30px,30px;
|
|
|
|
background-size: 30px,30px;
|
|
|
|
border-radius:4px;
|
|
|
|
word-break:break-all;
|
|
|
|
word-wrap:break-word;
|
|
|
|
}
|
|
|
|
.editormd-preview-container pre.hljs>code {
|
|
|
|
border-radius: 3px;
|
|
|
|
font-size: 1.1em;
|
|
|
|
font-family: "Source Code Pro",Consolas,"Liberation Mono",Menlo,Courier,'Microsoft Yahei',monospace;
|
|
|
|
border: 0;
|
|
|
|
word-break: break-all;
|
|
|
|
overflow-y: auto; overflow-x: hidden;
|
|
|
|
overflow-wrap: normal;
|
|
|
|
white-space: inherit
|
2017-05-26 14:19:27 +08:00
|
|
|
}
|
2018-03-26 13:32:02 +08:00
|
|
|
.editormd-preview-container pre.prettyprint, .editormd-html-preview pre.prettyprint {
|
2017-05-26 14:19:27 +08:00
|
|
|
padding: 0;
|
|
|
|
}
|
2018-08-07 17:19:56 +08:00
|
|
|
|
2017-05-26 14:19:27 +08:00
|
|
|
.editormd-preview-container ol.linenums, .editormd-html-preview ol.linenums{
|
|
|
|
color: #999;
|
|
|
|
}
|
|
|
|
.editormd-preview-container ol.linenums>li:first-child,.editormd-html-preview ol.linenums>li:first-child{
|
|
|
|
padding-top: 10px;
|
|
|
|
}
|
|
|
|
.editormd-preview-container ol.linenums>li:last-child ,.editormd-html-preview ol.linenums>li:last-child{
|
|
|
|
padding-bottom: 10px;
|
|
|
|
}
|
|
|
|
|