MediaWiki:Vector-2022.css
外观
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* 站点头衔样式:与像素猫logo协调 */
.mw-logo-wordmark {
color: #3a3226 !important;
font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif !important;
font-weight: 600 !important;
letter-spacing: 0.08em !important;
font-size: 1.35em !important;
}
a.mw-logo:hover .mw-logo-wordmark {
color: #5a4e38 !important;
text-decoration: none !important;
}
/* 案例分类页:隐藏自动子分类列表,只显示手动分组 */
.page-分类_案例分类 .mw-category-generated {
display: none;
}
/* 移动端适配 */
@media screen and (max-width: 720px) {
.mw-body-content {
font-size: 17px !important;
line-height: 1.8 !important;
}
.mw-body-content p {
margin-bottom: 1em !important;
}
.mw-logo-wordmark {
font-size: 1.1em !important;
}
}
/* 隐藏历史标签 */
#ca-history { display: none !important; }
/* 移动端隐藏页脚MediaWiki logo */
@media screen and (max-width: 720px) {
.mw-footer .mw-poweredby { display: none !important; }
}
/* 移动端确保logo显示 */
@media screen and (max-width: 720px) {
.mw-logo-icon { display: inline-block !important; }
}
/* ===== 移动端全局适配 ===== */
@media screen and (max-width: 720px) {
/* 防止横向溢出 */
.mw-body-content { overflow-wrap: break-word; }
.mw-body-content img { max-width: 100%; height: auto; }
/* 案例信息块全宽 */
.mw-body-content > div[style*='background'] {
margin-left: -8px !important;
margin-right: -8px !important;
}
/* 标题字号 */
.mw-body-content h1 { font-size: 1.5em !important; }
.mw-body-content h2 { font-size: 1.25em !important; }
/* 分类页列表 */
.mw-category-columns { columns: 1 !important; }
/* 页眉紧凑 */
.mw-logo-wordmark { font-size: 1em !important; }
.mw-logo-icon { height: 36px !important; width: 36px !important; }
}