Skip to content

Commit

Permalink
fix: festival video page danmaku style
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Jan 11, 2025
1 parent a04da6b commit 60683e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## 4.1.2

- 新增:播放页 使用短域名分享
- 新增:活动播放页 播放器相关净化功能与播放页同步
- 新增:活动播放页 支持播放器相关净化功能
- 更新:评论过滤 适配新版空间页,移除旧版适配

## 4.1.1
Expand Down
14 changes: 9 additions & 5 deletions src/modules/rules/festival/groups/danmaku.scss
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 60683e9

Please sign in to comment.