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)