Skip to content

Commit

Permalink
feat: code line numbers use code-font
Browse files Browse the repository at this point in the history
  • Loading branch information
Keldos-Li committed Oct 2, 2024
1 parent 9323e0f commit 6c02fbf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/scss/code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ li code {

/* 代码块样式 */
.md-fences,
.CodeMirror pre {
font-size: 1em;
}
.CodeMirror pre,
.CodeMirror-wrap {
/* padding: 10px; */ // FIXME 当代码太长跨页的时候好像也会有点问题
font-size: 1em;
}
.CodeMirror-code pre {
.CodeMirror-code pre,
.CodeMirror-sizer {
font-family: var(--code-font), var(--ui-font), monospace;
}

0 comments on commit 6c02fbf

Please sign in to comment.