MediaWiki:Citizen.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* ========================================================================== | /* ========================================================================== | ||
MsUpload 插件图标重影专项修复 | |||
========================================================================== */ | ========================================================================== */ | ||
/* 1. | /* 1. 剥夺外层 <a> 标签的渲染权限 */ | ||
.oo-ui-buttonElement-button | #msupload-select .oo-ui-buttonElement-button { | ||
background-image: none !important; | |||
-webkit-mask-image: none !important; | -webkit-mask-image: none !important; | ||
mask-image: none !important; | mask-image: none !important; | ||
} | } | ||
/* 2. | /* 2. 剥夺可能存在的伪元素渲染 */ | ||
.oo-ui- | #msupload-select .oo-ui-buttonElement-button::before, | ||
#msupload-select .oo-ui-buttonElement-button::after { | |||
content: none !important; | |||
display: none !important; | |||
display: | |||
} | } | ||
/* 3. | /* 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. | /* 4. 修复高度对齐(防止图标飞出去) */ | ||
#msupload-select .oo-ui-buttonElement-button { | |||
display: flex !important; | |||
align-items: center; | |||
justify-content: center; | |||
} | } | ||
2026年4月2日 (四) 21:46的版本
/* ==========================================================================
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;
}