mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-09-26 22:49:14 +08:00
fix: 修复占位文本不显示
- 使用类名定位广告卡片而不是属性 - 参考 #5160,广告链接不只一种模式 - 理论上能提高些许性能 - 使用css实现占位文本
This commit is contained in:
parent
8e1ea3581b
commit
6fe8acfe1f
@ -91,6 +91,31 @@ body:not(.preserve-feed-goods) .bili-dyn-content__orig__additional:has(.dyn-good
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.bili-video-card__wrap:has(:is(a[href*='cm.bilibili.com'], a:not([href]))) {
|
||||
// 首页广告、推广
|
||||
.bili-video-card__wrap:has(.bili-video-card__stats > :is(.bili-video-card__stats--text, svg)) {
|
||||
visibility: hidden;
|
||||
pointer-events: none !important;
|
||||
|
||||
// 占位文本
|
||||
& .bili-video-card__image::after {
|
||||
@extend .blocked-ads;
|
||||
|
||||
content: '🚫已屏蔽广告';
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
user-select: none;
|
||||
visibility: hidden;
|
||||
border-radius: 6px;
|
||||
background-color: #eee;
|
||||
|
||||
body.dark & {
|
||||
background-color: #333;
|
||||
}
|
||||
|
||||
body.promotion-show-placeholder & {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user