MediaWiki讨论:Gadget-large-font.css
添加话题![]() |
为什么要默认所有人启用
[编辑]我记得很多人都曾经觉得不好看吧?--SolidBlock留言以签名时间为准,距离中考还有-25天。 2017年7月11日 (二) 01:44 (UTC)
大字体小工具导致 2017 维基文本编辑器“显示预览”功能正文字体过小
[编辑]- 下列讨论已经关闭,请勿修改。如有任何意见,请至合适的讨论页进行,并不要再次编辑本讨论。
如题所述。问题仅限于 Vector 皮肤,我目前想到的最简单的解决方案是在 MediaWiki:Gadget-large-font.css 增加一个字母,如下:
.skin-vector .mw-body-content {
font-size: 0.938rem;
}
现征求社群意见。--Tranve (✉) 2021年5月10日 (一) 12:55 (UTC)
- 本讨论已经关闭,请勿修改。如有任何意见,请至合适的讨论页进行,并不要再次编辑本讨论。
Please test update
[编辑]Hey @Diskdance thanks for the Phabricator ping and sorry for the inconvenience of breaking the font size on Vector 2022. I hope that didn't cause too many problems or work for the community.
I've now corrected the CSS selector (in my capacity as WMF staff). Hopefully, it's working as expected now? Please ping me here if not, and I'll follow up.
I notice the font rendering is not exactly 15px which I assume is the intended default font size here? Would it be acceptable to change it to 0.9375rem ?--Jdlrobson(留言) 2024年2月22日 (四) 05:48 (UTC) PS. Sorry I meant to write this under my staff account, but got my tabs mixed up!
编辑请求 2025-05-16
[编辑]
![]() | 正在请求他人代为编辑受保护的页面(编辑:仅允许界面管理员;移动:仅允许界面管理员(保护日志)) 注意:本模板不是用于请求开放页面给予编辑,相关请求请至请求解除保护页申请;本模板是用于请求可以编辑的用户帮忙修改内容。 请求时请列明理由及内容,对于模板、模块、MediaWiki命名空间的修改请求,请阅读相关方针。(工具:处理) 如果您想直接展示给管理员修改后的页面及清楚地列出编辑差异,请将本模板改为 {{Editprotected|patch=}} ,点击“显示预览”并按照提示进一步操作。 |
将vector的改成覆盖--font-size-small
、,即
--font-size-medium
body.skin-vector-legacy .mw-body-content,
html.vector-feature-custom-font-size-clientpref-0 .mw-body-content {
--font-size-small: 0.938rem;
}
--SunAfterRain 2025年5月16日 (五) 11:45 (UTC)
- @SunAfterRain:效果为何?—— Eric Liu 創造は生命(留言・留名・学生会) 2025年5月24日 (六) 06:32 (UTC)