mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Update special danmaku styles (fix #3886)
This commit is contained in:
parent
e2084715f4
commit
469bb6dd04
@ -4,7 +4,6 @@ import {
|
|||||||
OptionsOfMetadata,
|
OptionsOfMetadata,
|
||||||
} from '@/components/define'
|
} from '@/components/define'
|
||||||
import { ComponentEntry } from '@/components/types'
|
import { ComponentEntry } from '@/components/types'
|
||||||
import { toggleStyle } from '@/components/styled-component'
|
|
||||||
import { playerUrls } from '@/core/utils/urls'
|
import { playerUrls } from '@/core/utils/urls'
|
||||||
import { addComponentListener } from '@/core/settings'
|
import { addComponentListener } from '@/core/settings'
|
||||||
|
|
||||||
@ -33,10 +32,18 @@ const entry: ComponentEntry<Options> = ({ metadata, settings }) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const name = 'disableSpecialDanmaku'
|
||||||
export const component = defineComponentMetadata({
|
export const component = defineComponentMetadata({
|
||||||
|
name,
|
||||||
|
entry,
|
||||||
displayName: '禁用特殊弹幕样式',
|
displayName: '禁用特殊弹幕样式',
|
||||||
tags: [componentsTags.style],
|
tags: [componentsTags.style],
|
||||||
...toggleStyle('disableSpecialDanmaku', () => import('./special-danmaku.scss'), entry),
|
instantStyles: [
|
||||||
|
{
|
||||||
|
name,
|
||||||
|
style: () => import('./special-danmaku.scss'),
|
||||||
|
},
|
||||||
|
],
|
||||||
urlInclude: playerUrls,
|
urlInclude: playerUrls,
|
||||||
description: {
|
description: {
|
||||||
'zh-CN': '移除高赞弹幕或 UP 主弹幕的特殊样式, 弹幕内容不会移除.',
|
'zh-CN': '移除高赞弹幕或 UP 主弹幕的特殊样式, 弹幕内容不会移除.',
|
||||||
|
|||||||
@ -1,21 +1,30 @@
|
|||||||
body.disable-highlight-danmaku-style .b-danmaku-high {
|
body.disable-highlight-danmaku-style {
|
||||||
|
.bili-dm.bili-high,
|
||||||
|
.b-danmaku-high {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
line-height: 1.125 !important;
|
line-height: 1.125 !important;
|
||||||
|
.bili-high-icon,
|
||||||
.b-danmaku-high-icon {
|
.b-danmaku-high-icon {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
.bili-high-text,
|
||||||
.b-danmaku-high-text {
|
.b-danmaku-high-text {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
text-shadow: inherit;
|
text-shadow: inherit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
body.disable-up-danmaku-style .b-danmaku-up {
|
}
|
||||||
|
body.disable-up-danmaku-style {
|
||||||
|
.bili-dm.bili-up,
|
||||||
|
.b-danmaku-up {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
line-height: 1.125 !important;
|
line-height: 1.125 !important;
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
border-radius: 0 !important;
|
border-radius: 0 !important;
|
||||||
|
.bili-up-tip,
|
||||||
.b-danmaku-up-tip {
|
.b-danmaku-up-tip {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user