MediaWiki:Vector-2022.css:修订间差异
外观
Maintenance script(留言 | 贡献) 移动端logo |
Maintenance script(留言 | 贡献) 移动端全局适配 |
||
| 第37行: | 第37行: | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
.mw-logo-icon { display: inline-block !important; } | .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; } | |||
} | } | ||
2026年10月10日 (六) 15:13的版本
/* 站点头衔样式:与像素猫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; }
}