[require]添加代码块行号,以及monokai主题

This commit is contained in:
percychen
2018-10-04 16:59:43 +08:00
parent ba928e2970
commit 2dfaf7feb2
11 changed files with 75 additions and 5 deletions

View File

@@ -18,4 +18,33 @@
border-radius: .8rem;
background: #49b1f5;
content: "";
}
.hljs {
border: 0;
font-family: "Consulas", "Courier New", Courier, mono, serif;
font-size: 12px;
background: #eee !important;
display: block;
padding: 1px;
margin: 0;
width: 100%;
font-weight: 200;
color: #333;
white-space: pre-wrap
}
.hljs ul {
list-style: decimal;
padding: 0px;
}
.hljs ul li {
list-style: decimal;
border-left: 3px solid #6ce26c !important;
padding: 5px!important;
margin: 0 !important;
line-height: 14px;
word-break: break-all;
word-wrap: break-word;
}
.hljs ul li:nth-of-type(even) {
color: inherit;
}