From c7f4c7cf9b41e86aa2c21715ac18283a2d443721 Mon Sep 17 00:00:00 2001 From: Yash Singh Date: Thu, 4 Feb 2021 20:51:22 -0800 Subject: [PATCH] Fix font-size changing for code in headings (#1456) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Koy Co-authored-by: Anix Co-authored-by: 沈唁 <52o@qq52o.cn> --- src/themes/dark.styl | 4 +++- src/themes/dolphin.styl | 4 +++- src/themes/vue.styl | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/themes/dark.styl b/src/themes/dark.styl index 3785181a..c53e8d9f 100644 --- a/src/themes/dark.styl +++ b/src/themes/dark.styl @@ -99,11 +99,13 @@ body border-radius 2px color #657b83 font-family 'Roboto Mono', Monaco, courier, monospace - font-size 0.8rem margin 0 2px padding 3px 5px white-space pre-wrap +.markdown-section > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code + font-size 0.8rem + .markdown-section pre -moz-osx-font-smoothing initial -webkit-font-smoothing initial diff --git a/src/themes/dolphin.styl b/src/themes/dolphin.styl index 1b000aa2..ded9b16c 100644 --- a/src/themes/dolphin.styl +++ b/src/themes/dolphin.styl @@ -111,11 +111,13 @@ body border-radius 2px color #e96900 font-family 'Roboto Mono', Monaco, courier, monospace - font-size 0.8rem margin 0 2px padding 3px 5px white-space pre-wrap +.markdown-section > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code + font-size 0.8rem + .markdown-section pre -moz-osx-font-smoothing initial -webkit-font-smoothing initial diff --git a/src/themes/vue.styl b/src/themes/vue.styl index ff842a29..35fdaf4c 100644 --- a/src/themes/vue.styl +++ b/src/themes/vue.styl @@ -130,11 +130,13 @@ body .markdown-section code border-radius 2px color #e96900 - font-size 0.8rem margin 0 2px padding 3px 5px white-space pre-wrap +.markdown-section > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code + font-size 0.8rem + .markdown-section pre padding 0 1.4rem line-height 1.5rem