diff --git a/source/css/_common/components/third-party/search.styl b/source/css/_common/components/third-party/search.styl index 7eab790..d5b6a15 100644 --- a/source/css/_common/components/third-party/search.styl +++ b/source/css/_common/components/third-party/search.styl @@ -56,6 +56,11 @@ if (hexo-config('local_search.enable') or hexo-config('algolia_search.enable')) .search-header { background: $gainsboro; + if (hexo-config('darkmode')) { + @media (prefers-color-scheme: dark) { + background: $grey-dim; + } + } border-top-left-radius: 5px; border-top-right-radius: 5px; display: flex;