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 --- themes/CodeIT/assets/css/_page/_single.scss | 11 ++++++++++- themes/CodeIT/assets/css/_partial/_header.scss | 2 ++ .../CodeIT/assets/css/_partial/_single/_code.scss | 22 +++++++++++++++++----- .../CodeIT/assets/css/_partial/_single/_katex.scss | 4 ++++ 4 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 themes/CodeIT/assets/css/_partial/_single/_katex.scss (limited to 'themes/CodeIT/assets/css') diff --git a/themes/CodeIT/assets/css/_page/_single.scss b/themes/CodeIT/assets/css/_page/_single.scss index d425774..737c752 100644 --- a/themes/CodeIT/assets/css/_page/_single.scss +++ b/themes/CodeIT/assets/css/_page/_single.scss @@ -116,7 +116,15 @@ > h2 > .header-mark::before { content: "#"; } - + > h3 > .header-mark::before { + content: "##"; + } + > h4 > .header-mark::before { + content: "###"; + } + > h5 > .header-mark::before { + content: "####"; + } p { margin: 0.5rem 0; } @@ -278,6 +286,7 @@ @import "../_partial/_single/mapbox"; @import "../_partial/_single/music"; @import "../_partial/_single/bilibili"; + @import "../_partial/_single/katex"; hr { margin: 1rem 0; diff --git a/themes/CodeIT/assets/css/_partial/_header.scss b/themes/CodeIT/assets/css/_partial/_header.scss index 3b17916..0693318 100644 --- a/themes/CodeIT/assets/css/_partial/_header.scss +++ b/themes/CodeIT/assets/css/_partial/_header.scss @@ -96,6 +96,8 @@ header { .search-toggle { left: 0.5rem; right: auto; + top: -1.125rem; + bottom: -1.125rem; } .search-loading { 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