diff options
author | panda-z <panda.hust@gmail.com> | 2019-02-14 20:50:34 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2019-02-14 20:50:34 +0800 |
commit | 4fe268549ac24eeac92143da27a05ecd0eb29ad0 (patch) | |
tree | d8aec3545450dd1fb7aa22e866fe943344a48a2f | |
parent | 920e2eb84bb874a9e48062b1bf4032c8b9c4141a (diff) |
fix(*): code font size and extra mathjax scoll bar (#125)
* style(font): use em for responsive code font size
* style(mathjax): avoid extra horizontal scrollbar
-rw-r--r-- | src/css/_partial/_post/_content.scss | 1 | ||||
-rw-r--r-- | src/css/_variables.scss | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/css/_partial/_post/_content.scss b/src/css/_partial/_post/_content.scss index 9e48177..688a924 100644 --- a/src/css/_partial/_post/_content.scss +++ b/src/css/_partial/_post/_content.scss @@ -192,5 +192,6 @@ .MJXc-display { overflow-x: auto; overflow-y: hidden; + padding-right: 1px; } } diff --git a/src/css/_variables.scss b/src/css/_variables.scss index 6a65623..135844b 100644 --- a/src/css/_variables.scss +++ b/src/css/_variables.scss @@ -190,7 +190,7 @@ $content-table-border-color: darken($deputy-color, 3%) !default; $code-color: #c7254e !default; // Font size of code. -$code-font-size: 13px !default; +$code-font-size: 0.9em !default; // Font family of the code. $code-font-family: Consolas, Monaco, Menlo, "DejaVu Sans Mono", |