fixed code block

v1.2.0
kun.peng 2019-10-14 17:20:38 +08:00
parent 52e3b62bd0
commit 5b92639dc6
4 changed files with 9 additions and 6 deletions

View File

@ -421,7 +421,7 @@ img.thumbnail {
}
.content code,
.content pre {
font-size: 0.85em;
font-size: 0.95em;
font-family: 'Fira Sans', monospace, "Microsoft YaHei";
}
.content blockquote footer strong + cite {

View File

@ -369,7 +369,7 @@ img.thumbnail
h5
font-size: 1em
code, pre
font-size: 0.85em
font-size: 0.95em
font-family: family-mono
//code
// color: hsl(348, 100%, 61%)

View File

@ -12,8 +12,8 @@ pre.line-numbers > code {
.line-numbers .line-numbers-rows {
position: absolute;
pointer-events: none;
top: -2rem;
padding-top: 1.6rem;
top: -3rem;
padding-top: 2.6rem;
font-size: 100%;
/*background-color: #EBEDED;*/
left: -3.8em;
@ -23,7 +23,7 @@ pre.line-numbers > code {
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
bottom: -2rem;
bottom: -3rem;
}

View File

@ -16,9 +16,12 @@ pre[class*="language-"] {
overflow-y: hidden;
}
code[class*="language-"],
pre[class*="language-"] {
font-size: 0.95rem;
}
code[class*="language-"],
pre[class*="language-"] {
background: none;
font-size: 0.813rem;
font-weight: 400;
text-align: left;
white-space: pre;