From 3e3b35136b452e8e7db1d50824507f7b4e6e71c7 Mon Sep 17 00:00:00 2001 From: Yash-Singh1 Date: Sun, 27 Dec 2020 16:06:42 -0800 Subject: [PATCH] Fix font-size changing for code in headings --- 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 3785181a8..c53e8d9f0 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 1b000aa21..ded9b16c4 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 ff842a29c..35fdaf4ce 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