From 5b92639dc6bb91dae03cda2a4b056d879fc46efb Mon Sep 17 00:00:00 2001 From: "kun.peng" Date: Mon, 14 Oct 2019 17:20:38 +0800 Subject: [PATCH] fixed code block --- source/css/style.css | 2 +- source/css/style.styl | 2 +- source/lib/prism/css/prism-line-numbers.css | 6 +++--- source/lib/prism/css/prism.css | 5 ++++- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/source/css/style.css b/source/css/style.css index 4a4c07a..119a93e 100644 --- a/source/css/style.css +++ b/source/css/style.css @@ -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 { diff --git a/source/css/style.styl b/source/css/style.styl index 6074b4e..1fb999a 100644 --- a/source/css/style.styl +++ b/source/css/style.styl @@ -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%) diff --git a/source/lib/prism/css/prism-line-numbers.css b/source/lib/prism/css/prism-line-numbers.css index 028e758..a476692 100644 --- a/source/lib/prism/css/prism-line-numbers.css +++ b/source/lib/prism/css/prism-line-numbers.css @@ -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; } diff --git a/source/lib/prism/css/prism.css b/source/lib/prism/css/prism.css index 109cdbd..409567e 100644 --- a/source/lib/prism/css/prism.css +++ b/source/lib/prism/css/prism.css @@ -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;