MediaWiki:Vector.css:修订间差异

Ztm0929留言 | 贡献
无编辑摘要
Ztm0929留言 | 贡献
无编辑摘要
 
(未显示同一用户的1个中间版本)
第5行: 第5行:


/* 在 MediaWiki:Common.css 或皮肤的 CSS 文件中添加 */
/* 在 MediaWiki:Common.css 或皮肤的 CSS 文件中添加 */
 
.mw-body h1, .mw-body .mw-heading1, .mw-body-content h1, .mw-body-content .mw-heading1, .mw-body-content h2, .mw-body-content .mw-heading2 {
/* 默认浅色模式 - 调整为浅灰色 */
     font-family: 'Source Han Serif SC VF', 'Georgia', 'Times', 'Source Serif Pro', serif;
#footer-poweredbyico img {
    filter: brightness(0) saturate(100%) invert(76%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(76%) contrast(100%);
    transition: filter 0.3s ease;
}
 
/* 深色模式 */
.skin-theme-clientpref-night #footer-poweredbyico img {
    filter: brightness(0) saturate(100%) invert(44%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(44%) contrast(100%);
}
 
/* 也可以支持系统主题 */
@media (prefers-color-scheme: dark) {
     #footer-poweredbyico img {
        filter: brightness(0) saturate(100%) invert(44%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(44%) contrast(100%);
    }
}
}