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; + } + } + } }