doc/docs/stylesheets/background.css
sairate ee8cb6e71f docs: 更新文档配置并添加启动脚本
- 修改 mkdocs.yml 文件,调整文档结构和主题设置
- 新增 start.py脚本,用于启动 MkDocs服务器
2025-05-29 20:10:53 +08:00

27 lines
722 B
CSS

/* 背景图 + 模糊 + 透明效果 */
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-image: url("../images/wallhaven-o35exm.webp"); /* 替换为你的图片路径 */
background-size: cover;
background-position: center;
background-repeat: no-repeat;
filter: blur(8px) brightness(0.8); /* 模糊 + 调暗一点更清晰 */
z-index: -2;
}
/* 主体半透明,让背景透出来 */
.md-main {
background-color: rgba(255, 255, 255, 0.6); /* light mode 半透明白 */
backdrop-filter: blur(2px);
}
[data-md-color-scheme="slate"] .md-main {
background-color: rgba(0, 0, 0, 0.3); /* dark mode 半透明黑 */
backdrop-filter: blur(2px);
}