代码中字体增加降级字体

This commit is contained in:
virusdefender 2016-04-07 17:23:15 +08:00
parent a5a440b9df
commit 4566f544d1

View File

@ -11,7 +11,7 @@
url('/static/css/fonts/source_code_pro/TTF/SourceCodePro-Regular.ttf') format('truetype');
}
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6 {
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, pre, code, .CodeMirror-code {
font-family: source_code_pro, "PingFangSC-Regular", "Heiti SC", "Microsoft Yahei", monospace;
}
@ -53,14 +53,12 @@ label {
pre, code {
font-family: "source_code_pro";
background-color: white;
white-space: pre-wrap;
word-wrap: break-word;
}
.CodeMirror-code{
font-family: "source_code_pro";
background-color: white;
}