From 9d140fa4575a89d5c0cb28d61ed6aeceff5baec1 Mon Sep 17 00:00:00 2001 From: viviSoltus Date: Mon, 24 Oct 2022 18:57:07 +0800 Subject: [PATCH] =?UTF-8?q?Android=20Pad=20=E7=AB=AF=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=BD=A9=E6=9D=A1=20#122?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- style/Block-CodeBlock.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/style/Block-CodeBlock.css b/style/Block-CodeBlock.css index 79559ba..67f1379 100644 --- a/style/Block-CodeBlock.css +++ b/style/Block-CodeBlock.css @@ -148,8 +148,9 @@ code.hljs { margin-left: 13px; } } -@media screen and (max-width: 600px) { - /* 代码块顶部添加风格元素 ,适配手机端*/ +@media screen and (max-width: 960px) { + /* 代码块顶部添加风格元素 ,适配移动端*/ + body.body--desktop .code-block::after, body.body--mobile .code-block::after { content: " "; position: absolute; @@ -162,11 +163,13 @@ code.hljs { width: 13px; z-index: 1; } - /* 代码块行号,适配手机端 */ + /* 代码块行号,适配移动端 */ + body.body--desktop .protyle-linenumber__rows body.body--mobile .protyle-linenumber__rows { padding: 22px 4px; width: 1.3em; } + body.body--desktop .protyle-linenumber body.body--mobile .protyle-linenumber { margin-left: 1.3em; }