mirror of
https://github.com/handsomezhuzhu/handsomezhuzhu.github.io.git
synced 2026-02-20 20:00:14 +00:00
多背景轮训+淡入淡出
This commit is contained in:
@@ -6,16 +6,17 @@
|
||||
|
||||
// 自定义首页背景图
|
||||
&::before {
|
||||
background-size: cover;
|
||||
// 默认是暗色模式的背景
|
||||
background-image: url(/bg.webp);
|
||||
display: none;
|
||||
// background-size: cover;
|
||||
// // 默认是暗色模式的背景
|
||||
// background-image: url(/bg.webp);
|
||||
}
|
||||
}
|
||||
|
||||
// 亮色模式下切换背景
|
||||
html:not(.dark) .VPHome::before {
|
||||
background-image: url(/bgw.webp);
|
||||
}
|
||||
// html:not(.dark) .VPHome::before {
|
||||
// background-image: url(/bgw.webp);
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user