Skip to content

Commit 7bcbec4

Browse files
committed
🐛 fix: 标题中代码块显示问题 Thanks @Realzhazha #50
1 parent 0c79e7c commit 7bcbec4

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

onelight.css

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -193,24 +193,6 @@ a.md-toc-inner {
193193
width: inherit;
194194
}
195195

196-
#write code {
197-
background-color: var(--item-hover-bg-color);
198-
color: #eb4c37;
199-
font-family: var(--main-font-family);
200-
font-size: .9rem;
201-
font-size: .9rem;
202-
}
203-
204-
#write li code,
205-
#write p code,
206-
#write span code {
207-
border-radius: var(--radius-small);
208-
margin: 0 2px;
209-
padding: 2px 4px;
210-
word-break: break-all;
211-
word-wrap: break-word
212-
}
213-
214196
/* ---------------->> 图片 <<---------------- */
215197
#write img {
216198
border-left: 0;

onelight/style/code.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,26 @@ code {
165165
.auto-suggest-container li.active,
166166
.auto-suggest-container li:hover {
167167
background-color: var(--item-bg-color-blue);
168+
}
169+
170+
#write code {
171+
background-color: var(--item-hover-bg-color);
172+
color: #eb4c37;
173+
font-family: var(--main-font-family);
174+
font-size: .9rem;
175+
font-size: .9rem;
176+
}
177+
178+
#write li code,
179+
#write p code,
180+
#write span code {
181+
border-radius: var(--radius-small);
182+
margin: 0 2px;
183+
padding: 2px 4px;
184+
word-break: break-all;
185+
word-wrap: break-word
186+
}
187+
188+
#write .md-heading code {
189+
font-size: unset;
168190
}

0 commit comments

Comments
 (0)