更新模板樣式CSS過濾器,允許在模板中使用較新的CSS (Community Wishlist/W350/zh)
Appearance
Done
Description
目前,模板樣式(TemplateStyles)不允許使用許多現代格式和樣式(CSS)技術,包括:
- 現代單位如
lh,維基模板能用它來適應不同外觀使用的不同行高值 var()的某些調用,讓模板適應深色模式的關鍵函數width: fit-content,讓模板無需強制設有預設固定寬度或跨越頁面的完整寬度- 出現在MediaWiki CSS中的媒體查詢,例如
@supports ( mask-image: none; ),如果我們想要覆寫某些核心CSS樣式(例如CategoryTree),就需要使用這些查詢。
This is a great source of frustration for template creators and maintainers, and leads to either (a) the creation of hacky workarounds which will no doubt break on some devices and/or when skins change, or (b) resorting to placing styles in MediaWiki:Common.css, increasing page sizes and adding to maintenance burden.
CSS過濾器需要定期更新。
此外,為了避免浪費時間,我們需要在預覽時就看到過濾器警告,而非儲存後才出現。
Assigned focus area
Unassigned
Type of wish
I'm not sure or I don't know
Tags
Affected users
模板編輯者與維護者、(間接影響)介面管理員——以及最終受益於現代化、無障礙且自適應樣式設計的讀者們
Phabricator tasks
Other details
- Created: 2025年1月9日 (四) 11:30
- Last updated: 2025年10月13日 (一) 01:51
- Author: This, that and the other (talk)
Voting
此愿望目前有 0 supporters。 Supporting this wish is currently disabled.