小无编辑摘要 |
小 (已保护“模板:Main page/featured/styles.css”:高流量页面([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期))) |
||
(未显示同一用户的2个中间版本) | |||
第5行: | 第5行: | ||
#home-featured .home-card__background a { | #home-featured .home-card__background a { | ||
display: block; | display: block; | ||
height: | height: 100%; | ||
} | } | ||
第16行: | 第16行: | ||
display: block; | display: block; | ||
height: 100%; | height: 100%; | ||
opacity: 0.2; | |||
background: linear-gradient( to top, #000, transparent ); | background: linear-gradient( to top, #000, transparent ); | ||
border-radius: 0 0 8px 8px; | border-radius: 0 0 8px 8px; |
2023年9月23日 (六) 22:18的最新版本
#home-featured {
overflow: hidden;
}
#home-featured .home-card__background a {
display: block;
height: 100%;
}
#home-featured .home-card__background:after {
position: absolute;
pointer-events: none;
right: 0;
bottom: 0;
left: 0;
display: block;
height: 100%;
opacity: 0.2;
background: linear-gradient( to top, #000, transparent );
border-radius: 0 0 8px 8px;
content: '';
}
#home-featured .home-card__foreground {
pointer-events: none;
right: 15px;
bottom: 15px;
left: 15px;
}