Fix darkmode in local-search (#402)

This commit is contained in:
Ljcbaby 2021-11-26 23:28:14 +08:00 committed by GitHub
parent 6120654d73
commit 2265b178ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;