Skip to content

Commit c7f4c7c

Browse files
Yash-Singh1Koooooo-7anikethsahasy-records
authored
Fix font-size changing for code in headings (#1456)
Co-authored-by: Koy <[email protected]> Co-authored-by: Anix <[email protected]> Co-authored-by: 沈唁 <[email protected]>
1 parent 716a7fa commit c7f4c7c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/themes/dark.styl

+3-1
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,13 @@ body
9999
border-radius 2px
100100
color #657b83
101101
font-family 'Roboto Mono', Monaco, courier, monospace
102-
font-size 0.8rem
103102
margin 0 2px
104103
padding 3px 5px
105104
white-space pre-wrap
106105

106+
.markdown-section > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code
107+
font-size 0.8rem
108+
107109
.markdown-section pre
108110
-moz-osx-font-smoothing initial
109111
-webkit-font-smoothing initial

src/themes/dolphin.styl

+3-1
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,13 @@ body
111111
border-radius 2px
112112
color #e96900
113113
font-family 'Roboto Mono', Monaco, courier, monospace
114-
font-size 0.8rem
115114
margin 0 2px
116115
padding 3px 5px
117116
white-space pre-wrap
118117

118+
.markdown-section > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code
119+
font-size 0.8rem
120+
119121
.markdown-section pre
120122
-moz-osx-font-smoothing initial
121123
-webkit-font-smoothing initial

src/themes/vue.styl

+3-1
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,13 @@ body
130130
.markdown-section code
131131
border-radius 2px
132132
color #e96900
133-
font-size 0.8rem
134133
margin 0 2px
135134
padding 3px 5px
136135
white-space pre-wrap
137136

137+
.markdown-section > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code
138+
font-size 0.8rem
139+
138140
.markdown-section pre
139141
padding 0 1.4rem
140142
line-height 1.5rem

0 commit comments

Comments
 (0)