From 0321812a29e6ec32663556fa7abe2bf2880e5762 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sun, 29 Aug 2021 11:48:16 +0200 Subject: update to https://github.com/sunt-programator/CodeIT/releases/tag/v0.2.0 --- .../CodeIT/assets/css/_partial/_single/_code.scss | 22 +++++++++++++++++----- .../CodeIT/assets/css/_partial/_single/_katex.scss | 4 ++++ 2 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 themes/CodeIT/assets/css/_partial/_single/_katex.scss (limited to 'themes/CodeIT/assets/css/_partial/_single') 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 -- cgit v1.2.3