Skip to content

Commit

Permalink
Fix darkmode in local-search (next-theme#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljcbaby committed Nov 26, 2021
1 parent 48143ae commit 3dd21dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/css/_common/components/third-party/search.styl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3dd21dd

Please sign in to comment.