From 67f5f78c281434ecababa404acf28641bab79e71 Mon Sep 17 00:00:00 2001 From: Junru Date: Sun, 13 Mar 2022 12:52:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dcode=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/doc.scss | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/styles/doc.scss b/src/styles/doc.scss index 7ae4ba52..1e3cd816 100644 --- a/src/styles/doc.scss +++ b/src/styles/doc.scss @@ -346,8 +346,8 @@ h1:hover .anchor svg, h2:hover .anchor svg, h3:hover .anchor svg, h4:hover .anch .markdown-body .gatsby-highlight { position: relative; & pre { - max-height: 350px; - overflow-y: hidden; + max-height: 500px; + overflow-y: auto; padding-right: 60px; } & pre.language-shell, & pre.language-bash { @@ -467,10 +467,13 @@ h1:hover .anchor svg, h2:hover .anchor svg, h3:hover .anchor svg, h4:hover .anch color: #6a737d; } -.markdown-body .language-text { +.markdown-body .language-text:not(pre) { background: transparent !important; color: #454CAC; } +.markdown-body pre.language-text .language-text { + color: #657b83; +} .markdown-body .pl-c1, .markdown-body .pl-s .pl-v { -- Gitee