From 700929c650731fe0de80f70d2ddacade3b55a1c4 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 23 Jun 2021 13:41:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DiOS=E4=B8=8A=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=AD=97=E4=BD=93=E5=A4=A7=E5=B0=8F=E9=94=99=E4=B9=B1?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/css/_common/highlight.styl | 2 -- source/css/_layout/md.styl | 8 +++++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/source/css/_common/highlight.styl b/source/css/_common/highlight.styl index c5c20d7..fc82f3f 100644 --- a/source/css/_common/highlight.styl +++ b/source/css/_common/highlight.styl @@ -1,8 +1,6 @@ article.md .highlight margin: 1rem 0 border-radius: $border-block - -webkit-font-smoothing: auto - -moz-osx-font-smoothing: auto overflow: hidden background: var(--block) border: 1px solid var(--block-border) diff --git a/source/css/_layout/md.styl b/source/css/_layout/md.styl index 48b5846..47d8eb1 100644 --- a/source/css/_layout/md.styl +++ b/source/css/_layout/md.styl @@ -70,6 +70,8 @@ article.md p article.md code -webkit-font-smoothing: auto -moz-osx-font-smoothing: auto + -webkit-text-size-adjust: 100% + -ms-text-size-adjust: 100% color: var(--text-code) font-family: $ff-code word-break: break-all @@ -77,7 +79,11 @@ article.md code background: var(--block) padding: .2em .4em border-radius: 2px - // border: 1px solid var(--block-border) +article.md pre + -webkit-font-smoothing: auto + -moz-osx-font-smoothing: auto + -webkit-text-size-adjust: 100% + -ms-text-size-adjust: 100% // div article.md>div