fix: long post fade uses mask (text fades out, no white block)
Replace background gradient overlay with mask-image so the text itself fades to transparent toward the bottom; no solid edge color visible.
This commit is contained in:
1 parent
91ab1c6239
commit
b5fafdbc09
3 files changed
+29
-13
No files matched your search
+4
-10
@@ -1926,16 +1926,10 @@ a.btn-secondary {
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
/* 长帖:底部渐变遮罩(提示还有更多内容) */
|
||||
#feed .post-content.has-fade::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 2.2em;
|
||||
background: linear-gradient(180deg, transparent 0%, var(--glass-bg) 100%);
|
||||
pointer-events: none;
|
||||
/* 长帖:文字越往下越透明(渐变消失,无背景色块) */
|
||||
#feed .post-content.has-fade {
|
||||
-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
|
||||
mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
|
||||
}
|
||||
|
||||
/* ===== 全屏加载页 ===== */
|
||||
|
||||
Reference in new issue
Block a user