From 60683e99f96aa1d2fe0c803160a1e48e610e4fa8 Mon Sep 17 00:00:00 2001 From: festoney8 Date: Sat, 11 Jan 2025 15:22:12 +0800 Subject: [PATCH] fix: festival video page danmaku style --- CHANGELOG.md | 2 +- src/modules/rules/festival/groups/danmaku.scss | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae24403..61c0a84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## 4.1.2 - 新增:播放页 使用短域名分享 -- 新增:活动播放页 播放器相关净化功能与播放页同步 +- 新增:活动播放页 支持播放器相关净化功能 - 更新:评论过滤 适配新版空间页,移除旧版适配 ## 4.1.1 diff --git a/src/modules/rules/festival/groups/danmaku.scss b/src/modules/rules/festival/groups/danmaku.scss index 9ba77e7..82cee49 100644 --- a/src/modules/rules/festival/groups/danmaku.scss +++ b/src/modules/rules/festival/groups/danmaku.scss @@ -1,15 +1,19 @@ -/* 测试视频 https://www.bilibili.com/video/av487000361/ */ +/* 测试视频 https://www.bilibili.com/festival/bnj2024?bvid=BV1iU421d7aG/ */ // 弹幕字体 html[video-page-danmaku-font-family] { - .bili-danmaku-x-dm { - --fontFamily: var(--video-page-danmaku-font-family) !important; + .bili-danmaku-x-dm, + .bili-dm, + .bili-dm * { + font-family: var(--video-page-danmaku-font-family) !important; } } // 弹幕字重 html[video-page-danmaku-font-weight] { - .bili-danmaku-x-dm { - --fontWeight: var(--video-page-danmaku-font-weight) !important; + .bili-danmaku-x-dm, + .bili-dm, + .bili-dm * { + font-weight: var(--video-page-danmaku-font-weight) !important; } }