Skip to content

Commit b75be08

Browse files
committed
兼容黑暗模式
1 parent fb48c4f commit b75be08

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/.vitepress/components/Home.vue

+6
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,10 @@ import 'vitepress/dist/client/theme-default/styles/components/vp-doc.css'
4343
padding: 7px 14px;
4444
}
4545
}
46+
47+
@media (prefers-color-scheme: dark) {
48+
.home .vp-doc ul p {
49+
background: transparent;
50+
}
51+
}
4652
</style>

0 commit comments

Comments
 (0)