MediaWiki:Citizen.css
MediaWiki界面页面
更多操作
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* ==========================================================================
MsUpload 插件图标重影专项修复
========================================================================== */
/* 1. 剥夺外层 <a> 标签的渲染权限 */
#msupload-select .oo-ui-buttonElement-button {
background-image: none !important;
-webkit-mask-image: none !important;
mask-image: none !important;
}
/* 2. 剥夺可能存在的伪元素渲染 */
#msupload-select .oo-ui-buttonElement-button::before,
#msupload-select .oo-ui-buttonElement-button::after {
content: none !important;
display: none !important;
}
/* 3. 保护内层真正的图标 <span> */
/* 确保只有它能触发 Citizen 的 mask-image 逻辑 */
#msupload-select .oo-ui-iconElement-icon {
display: block !important;
-webkit-mask-size: contain !important;
mask-size: contain !important;
background-color: currentColor !important; /* 维持 Citizen 的图标染色逻辑 */
}
/* 4. 修复高度对齐(防止图标飞出去) */
#msupload-select .oo-ui-buttonElement-button {
display: flex !important;
align-items: center;
justify-content: center;
}