遮罩效果

This commit is contained in:
tangly1024
2023-03-26 12:28:42 +08:00
parent e2e93c2a3f
commit e4209f798d
6 changed files with 29 additions and 3 deletions

View File

@@ -13,3 +13,13 @@
color: #928CEE;
}
/* 设置了从上到下的渐变黑色 */
#theme-hexo .header-cover::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 10%, rgba(0,0,0,0) 25%, rgba(0,0,0,0.2) 75%, rgba(0,0,0,0.5) 100%);
}