Skip to content

Commit

Permalink
Merge pull request #1619 from Henry-ZHR/dev
Browse files Browse the repository at this point in the history
fix: 代码字体先 fallback 到 monospace 再到中文和 sans-serif
  • Loading branch information
jerryc127 authored Dec 7, 2024
2 parents 247c1b6 + f420487 commit 13db106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/css/var.styl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $theme-toc-color = $themeColorEnable && hexo-config('theme_color.toc_color') ? c

$chinseFont = $language == 'zh-CN' ? 'Microsoft YaHei' : 'Microsoft JhengHei'
$dafault-font-family = -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Lato, Roboto, 'PingFang SC', $chinseFont, sans-serif
$dafault-code-font = consolas, Menlo, 'PingFang SC', $chinseFont, sans-serif
$dafault-code-font = consolas, Menlo, monospace, 'PingFang SC', $chinseFont, sans-serif

$font-family = hexo-config('font.font_family') ? unquote(hexo-config('font.font_family')) : $dafault-font-family
$code-font-family = hexo-config('font.code_font_family') ? unquote(hexo-config('font.code_font_family')) : $dafault-code-font
Expand Down

0 comments on commit 13db106

Please sign in to comment.