Skip to content

Commit 8c700ea

Browse files
committed
change font of <code>
1 parent 6fbe92c commit 8c700ea

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

github-markdown.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
}
174174

175175
.cnblogs-markdown code,.cnblogs-post-body code {
176-
font-family: "Courier New",sans-serif!important;
176+
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace !important;
177177
font-size: 12px!important;
178178
line-height: 20px;
179179
background-color: #f6f8fa!important;
@@ -724,3 +724,10 @@
724724
.cnblogs-markdown hr {
725725
border-bottom-color: #eee;
726726
}
727+
728+
.cnblogs-markdown .hljs,.cnblogs-post-body .hljs {
729+
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace !important;
730+
font-size: 12px!important;
731+
line-height: 1.5!important;
732+
padding: 5px!important
733+
}

0 commit comments

Comments
 (0)