feat: adapt to dark theme for moments page

* refactor: separate styles for comments section
This commit is contained in:
Hakadao
2023-09-03 13:46:44 +08:00
parent 9c7a1560d9
commit 8338f1a9d1
9 changed files with 116 additions and 62 deletions

View File

@@ -80,6 +80,8 @@ function injectApp() {
|| /https?:\/\/(www.)?bilibili.com\/list\/ml.*/.test(currentUrl)
// search page
|| /https?:\/\/search.bilibili.com\.*/.test(currentUrl)
// moments
|| /https?:\/\/t.bilibili.com\.*/.test(currentUrl)
) {
// const originalPageContent = document.querySelector('#i_cecream')
// if (originalPageContent)

View File

@@ -140,6 +140,7 @@ onMounted(() => {
document.body.style.setProperty('background-color', 'unset', 'important')
document.documentElement.style.setProperty('background-color', 'unset', 'important')
}
document.documentElement.style.setProperty('font-size', '14px')
if (mainAppRef.value) {
mainAppRef.value.addEventListener('scroll', () => {