diff options
author | leonhe <lhe868@gmail.com> | 2020-03-12 08:11:17 +0300 |
---|---|---|
committer | leonhe <lhe868@gmail.com> | 2020-03-12 08:11:17 +0300 |
commit | 2620f5f6510127d43d7352f3456ae7623b6e3629 (patch) | |
tree | 4ded68ea0ccafd00b6db372b91a2ff1e2057abe9 | |
parent | d4677800c4721bedb288fa5065e896d4ad00147f (diff) |
update display font
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | static/css/style.css | 36 |
2 files changed, 15 insertions, 23 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 86781ae..0261a5f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -34,7 +34,7 @@ $('div.src').each(function(i, block) { hljs.highlightBlock(block); }); -$("code").each(function(){ +$("div.src").each(function(){ $(this).html("<ul><li>" + $(this).html().replace(/\n/g,"\n</li><li>") +"\n</li></ul>"); }); }); diff --git a/static/css/style.css b/static/css/style.css index d6eea03..95f489a 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -9,7 +9,7 @@ body { padding-top: 25px; padding-bottom: 0px; - font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif + font-family: -apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif,system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei" } @@ -119,26 +119,18 @@ } /* for block of numbers */ - pre td.hljs-ln-numbers { - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - text-align: center; - color: #ccc; - border-right: 1px solid #CCC; - vertical-align: top; - padding-right: 5px; - /* your custom style here */ - } - pre td.hljs-ln-code { - padding-left: 10px; - } - - +.hljs { + border: 0; + font-family: "Consulas", "Courier New", Courier, mono, serif; + font-size: 12px; + display: block; + padding: 1px; + margin: 0; + width: 100%; + font-weight: 200; + white-space: pre-wrap +} .hljs ul { list-style: decimal; margin: 0px 0px 0 40px !important; @@ -146,6 +138,7 @@ } .hljs ul li { list-style: decimal-leading-zero; + border-left: 1px solid #ddd !important; padding: 5px!important; margin: 0 !important; line-height: 14px; @@ -155,8 +148,7 @@ .hljs ul li:nth-of-type(even) { color: inherit; } - - blockquote { + blockquote { font-weight: bold; font-style: italic; border-left: 5px solid #ffa68c; |