From 3782192dfbd5dc4b4110e9beb740800fe0af9037 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Thu, 27 Oct 2022 23:06:51 +0800 Subject: [PATCH] Fix darkmode gitalk color --- source/css/_common/components/third-party/gitalk.styl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/css/_common/components/third-party/gitalk.styl b/source/css/_common/components/third-party/gitalk.styl index 6951d5b..252caa7 100644 --- a/source/css/_common/components/third-party/gitalk.styl +++ b/source/css/_common/components/third-party/gitalk.styl @@ -6,4 +6,12 @@ if (hexo-config('gitalk.enable')) { .gt-container .gt-popup .gt-action.is--active::before { top: .7em; } + + if (hexo-config('darkmode')) { + @media (prefers-color-scheme: dark) { + .gt-container .gt-header-textarea { + background-color: var(--card-bg-color) !important; + } + } + } }