From 1080ca7d04de9b486d78d54a0aebf1066f2b2e31 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Fri, 15 Dec 2023 16:14:46 +0800 Subject: [PATCH] [opt] css --- source/css/_layout/tag-plugins/common.styl | 7 +++++-- source/css/_layout/tag-plugins/note.styl | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source/css/_layout/tag-plugins/common.styl b/source/css/_layout/tag-plugins/common.styl index 0222392..2e313f5 100644 --- a/source/css/_layout/tag-plugins/common.styl +++ b/source/css/_layout/tag-plugins/common.styl @@ -13,8 +13,9 @@ set_text_black() set_dynamic_color($theme) --theme: $theme - --theme-block: hsl(hue($theme), 90, 92) --theme-border: hsl(hue($theme), 50, 80) + --theme-block: hsl(hue($theme), 90, 92) + --theme-codeblock: hsl(hue($theme), 50, 96) --text-p0: hsl(hue($theme), 55, 16) --text-p1: hsl(hue($theme), 55, 20) --text-p2: hsl(hue($theme), 90, 24) @@ -23,6 +24,7 @@ set_dynamic_color($theme) --theme: var(--text-p1) --theme-border: var(--block-border) --theme-block: var(--block) + --theme-codeblock: var(--block) .colorful[color='red'] set_dynamic_color($c-red) @@ -63,8 +65,9 @@ set_dynamic_color($theme) set_darkmode_tags() set_dynamic_color($theme) --theme: $theme - --theme-block: hsl(hue($theme), 16, 16) --theme-border: hsl(hue($theme), 50, 24) + --theme-block: hsl(hue($theme), 16, 16) + --theme-codeblock: hsl(hue($theme), 12, 18) --text-p0: hsl(hue($theme), 100, 85) --text-p1: hsl(hue($theme), 50, 75) --text-p2: hsl(hue($theme), 80, 72) diff --git a/source/css/_layout/tag-plugins/note.styl b/source/css/_layout/tag-plugins/note.styl index 43c18ce..9800963 100644 --- a/source/css/_layout/tag-plugins/note.styl +++ b/source/css/_layout/tag-plugins/note.styl @@ -31,6 +31,7 @@ background: var(--block-hover) .md-text .tag-plugin.note[child=codeblock] padding: 0 + background: var(--theme-codeblock) >.title, >.body:only-child margin-top: 0 >.body