Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 开启自定义颜色以后所有页面字体变超级大 #70

Closed
wyj5211 opened this issue Jul 15, 2023 · 2 comments
Closed

[Bug]: 开启自定义颜色以后所有页面字体变超级大 #70

wyj5211 opened this issue Jul 15, 2023 · 2 comments

Comments

@wyj5211
Copy link
Contributor

wyj5211 commented Jul 15, 2023

是否从release页下的主题? | Is the theme download from Release Page?

是 (Yes)

使用的 Butterfly 版本? | What version of Butterfly are you use?

1.7.6

是否修改过主题文件? | Has the theme files been modified?

是 (Yes)

使用的浏览器? | What browse are you using?

Edge

博客的运行环境? | What the running environment of the blog?

Other

问题描述 | Describe the bug

运行环境:linux,php8.0+,typecho1.2.1,apache
改过index.css的字体部分,去掉了JhengHei

如题,在设置开启自定义颜色以后所有页面字体变得超级大(F12看到变成25px)
后台截图:
屏幕截图 2023-07-15 194958
开启自定义颜色后页面截图:
屏幕截图(8)
未开启自定义颜色时候正常的截图:
屏幕截图(9)
F12检查发现,所有页面的第261行写死在HTML里面的css被加了一条--global-font-size: 25px!important;导致字体字号异常:
pC5fW8g.png
手动关闭这条css后恢复正常:
pC5fhvj.png

另外,建议index.cssfont-family的字体部分在简中环境下去掉Microsoft JhengHei或将其顺序调到YaHei后面,我的浏览器在Windows11下会优先用JhengHei渲染字体(不知道是不是我的问题),简中文字用繁中字体显示非常奇怪

@wyj5211
Copy link
Contributor Author

wyj5211 commented Jul 15, 2023

查找源码发现是header_com.php的问题,不知道是不是作者调试完忘记删了
屏幕截图 2023-07-15 201816

@wyj5211
Copy link
Contributor Author

wyj5211 commented Jul 15, 2023

提了一个PR
#71

@wehaox wehaox closed this as completed Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants