MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 24: | Line 24: | ||
body.page-Main_Page #p-logo { | body.page-Main_Page #p-logo { | ||
display: none !important; | display: none !important; | ||
} | |||
/* 🔥 强制主页背景暗色 */ | |||
body.page-Main_Page { | |||
background-color: #121212 !important; | |||
color: #eeeeee !important; | |||
} | } | ||
Revision as of 02:00, 12 April 2025
/* === 强制隐藏 Main Page 页面顶部导航栏和标签栏(适配新皮肤)=== */
/* 隐藏顶部标题栏导航(Main Page / Discussion / Read / Edit) */
body.page-Main_Page header.vector-header,
body.page-Main_Page .vector-header-container,
body.page-Main_Page .vector-page-toolbar-container {
display: none !important;
}
/* 保险起见,也隐藏旧皮肤的顶部元素 */
body.page-Main_Page #mw-head,
body.page-Main_Page #p-personal,
body.page-Main_Page #mw-head-base,
body.page-Main_Page #mw-panel {
display: none !important;
}
/* 隐藏主标题 Welcome */
body.page-Main_Page .firstHeading {
display: none !important;
}
/* 隐藏 logo 区域 */
body.page-Main_Page #p-logo {
display: none !important;
}
/* 🔥 强制主页背景暗色 */
body.page-Main_Page {
background-color: #121212 !important;
color: #eeeeee !important;
}