MediaWiki:Vector-2022.css:修订间差异
外观
Maintenance script(留言 | 贡献) 移动端全局适配 |
Maintenance script(留言 | 贡献) 多断点响应式 |
||
| 第16行: | 第16行: | ||
} | } | ||
/* 移动端适配 */ | /* 移动端适配 */ | ||
/* 隐藏历史标签 */ | /* 隐藏历史标签 */ | ||
#ca-history { display: none !important; } | #ca-history { display: none !important; } | ||
/* 移动端隐藏页脚MediaWiki logo */ | /* 移动端隐藏页脚MediaWiki logo */ | ||
/* 移动端确保logo显示 */ | |||
/* ===== 移动端全局适配 ===== */ | |||
/* ===== 自适应:流式排版 ===== */ | |||
.mw-body-content { | |||
font-size: clamp(16px, 2.5vw, 18px); | |||
line-height: 1.8; | |||
} | } | ||
/* | /* 平板 */ | ||
@media screen and (max-width: | @media screen and (max-width: 1000px) { | ||
.mw- | .mw-category-columns { columns: 2 !important; } | ||
} | } | ||
/* | /* 手机 */ | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
.mw-body-content { overflow-wrap: break-word; } | .mw-body-content { overflow-wrap: break-word; } | ||
.mw-body-content img { max-width: 100%; height: auto; } | .mw-body-content img { max-width: 100%; height: auto; } | ||
.mw-category-columns { columns: 1 !important; } | |||
.mw-body-content > div[style*= | .mw-logo-wordmark { font-size: 1em !important; } | ||
.mw-logo-icon { height: 36px !important; width: 36px !important; display: inline-block !important; } | |||
.mw-footer .mw-poweredby { display: none !important; } | |||
.mw-body-content > div[style*="background"] { | |||
margin-left: -8px !important; | margin-left: -8px !important; | ||
margin-right: -8px !important; | margin-right: -8px !important; | ||
} | } | ||
} | } | ||
/* 隐藏历史标签 */ | |||
#ca-history { display: none !important; } | |||
/* 案例分类页隐藏自动列表 */ | |||
.page-分类_案例分类 .mw-category-generated { display: none; } | |||
2026年10月11日 (日) 00:43的版本
/* 站点头衔样式:与像素猫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;
}
/* 移动端适配 */
/* 隐藏历史标签 */
#ca-history { display: none !important; }
/* 移动端隐藏页脚MediaWiki logo */
/* 移动端确保logo显示 */
/* ===== 移动端全局适配 ===== */
/* ===== 自适应:流式排版 ===== */
.mw-body-content {
font-size: clamp(16px, 2.5vw, 18px);
line-height: 1.8;
}
/* 平板 */
@media screen and (max-width: 1000px) {
.mw-category-columns { columns: 2 !important; }
}
/* 手机 */
@media screen and (max-width: 720px) {
.mw-body-content { overflow-wrap: break-word; }
.mw-body-content img { max-width: 100%; height: auto; }
.mw-category-columns { columns: 1 !important; }
.mw-logo-wordmark { font-size: 1em !important; }
.mw-logo-icon { height: 36px !important; width: 36px !important; display: inline-block !important; }
.mw-footer .mw-poweredby { display: none !important; }
.mw-body-content > div[style*="background"] {
margin-left: -8px !important;
margin-right: -8px !important;
}
}
/* 隐藏历史标签 */
#ca-history { display: none !important; }
/* 案例分类页隐藏自动列表 */
.page-分类_案例分类 .mw-category-generated { display: none; }