From e01a2043b7101793cfa8972205b37e30ac7084fe Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Tue, 23 Jun 2020 00:34:00 +0800 Subject: [PATCH] Optimize Gemini & highlight style --- .../scaffolding/highlight/highlight.styl | 3 +-- source/css/_schemes/Gemini/index.styl | 24 +------------------ 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/source/css/_common/scaffolding/highlight/highlight.styl b/source/css/_common/scaffolding/highlight/highlight.styl index 20b4f06..807fd53 100644 --- a/source/css/_common/scaffolding/highlight/highlight.styl +++ b/source/css/_common/scaffolding/highlight/highlight.styl @@ -32,6 +32,7 @@ pre, code { code { @extend $code-inline; border-radius: 3px; + font-size: $table-font-size; padding: 2px 4px; word-wrap(); } @@ -99,7 +100,6 @@ kbd { } .code pre { - background: var(--highlight-background); padding-left: 10px; width: 100%; } @@ -120,7 +120,6 @@ pre { code { background: none; - font-size: $table-font-size; padding: 0; text-shadow: none; } diff --git a/source/css/_schemes/Gemini/index.styl b/source/css/_schemes/Gemini/index.styl index 4ca257c..830fdd6 100644 --- a/source/css/_schemes/Gemini/index.styl +++ b/source/css/_schemes/Gemini/index.styl @@ -19,9 +19,6 @@ // P.S. If u want to change this paddings u may set this variables into `custom_file_path.variable` (in theme _config.yml). // So, it will 12px in Desktop, 10px in Tablets and 8px in Mobiles for all possible paddings. -// ================================================== -// Read values from NexT config and set they as local variables to use as string variables (in any CSS section). -$use-seo = hexo-config('seo'); // ================================================== // Desktop layout styles. @@ -82,15 +79,6 @@ $use-seo = hexo-config('seo'); padding: 10px 0 10px; } -// Footer alignment. -.main { - padding-bottom: initial; -} - -.footer { - bottom: auto; -} - // Sub-menu(s). .sub-menu { border-bottom: initial; @@ -120,17 +108,7 @@ $use-seo = hexo-config('seo'); } h3 { - if ($use-seo) { - border-bottom: 1px solid $body-bg-color; - } else { - border-bottom: 1px dotted $body-bg-color; - } - } - - h4 { - if ($use-seo) { - border-bottom: 1px dotted $body-bg-color; - } + border-bottom: 1px dotted $body-bg-color; } }