diff options
Diffstat (limited to 'themes/CodeIT/assets/css/_partial/_single')
-rw-r--r-- | themes/CodeIT/assets/css/_partial/_single/_code.scss | 22 | ||||
-rw-r--r-- | themes/CodeIT/assets/css/_partial/_single/_katex.scss | 4 |
2 files changed, 21 insertions, 5 deletions
diff --git a/themes/CodeIT/assets/css/_partial/_single/_code.scss b/themes/CodeIT/assets/css/_partial/_single/_code.scss index 0590bd3..9d0ef5f 100644 --- a/themes/CodeIT/assets/css/_partial/_single/_code.scss +++ b/themes/CodeIT/assets/css/_partial/_single/_code.scss @@ -34,10 +34,10 @@ pre, .highlight table, .highlight tr, .highlight td { - background: $code-background-color; + background: $code-background-color !important; [theme="dark"] & { - background: $code-background-color-dark; + background: $code-background-color-dark !important; } } @@ -54,7 +54,7 @@ pre, margin: 0; padding: 0; border: none !important; - white-space: nowrap; + white-space: pre; } } } @@ -229,7 +229,15 @@ pre, .gist-file, .gist-data, .gist-meta { - border: none; + background: none; + } + + .gist-file { + border-color: $global-font-secondary-color; + + [theme="dark"] & { + border-color: $global-font-secondary-color-dark; + } } .gist-meta { @@ -243,10 +251,14 @@ pre, } } + color: $global-font-color; + [theme="dark"] & { + color: $global-font-color-dark; + // imported from https://github.com/lonekorean/gist-syntax-themes/blob/master/stylesheets/one-dark.css .highlight { - background: #141414; + background: none; } .blob-num, .blob-code-inner, diff --git a/themes/CodeIT/assets/css/_partial/_single/_katex.scss b/themes/CodeIT/assets/css/_partial/_single/_katex.scss new file mode 100644 index 0000000..fd20d83 --- /dev/null +++ b/themes/CodeIT/assets/css/_partial/_single/_katex.scss @@ -0,0 +1,4 @@ +.katex, .katex-display{ + overflow-x: auto; + overflow-y: hidden; +}
\ No newline at end of file |