MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 30: | Line 30: | ||
background-color: #121212 !important; | background-color: #121212 !important; | ||
color: #f0f0f0 !important; | color: #f0f0f0 !important; | ||
} | |||
/* 🌌 深色主页背景(适配 Vector 2022)*/ | |||
body.skin-vector-2022.page-Main_Page { | |||
background-color: #0a0a0a !important; | |||
color: #f1f1f1 !important; | |||
} | |||
body.skin-vector-2022.page-Main_Page .mw-content-container { | |||
background: transparent !important; | |||
} | |||
/* 🧬 链接颜色适配暗色背景 */ | |||
body.skin-vector-2022.page-Main_Page a { | |||
color: #5ab1f8 !important; | |||
} | |||
body.skin-vector-2022.page-Main_Page a:hover { | |||
color: #72c0ff !important; | |||
} | |||
/* 💬 调整欢迎页文字颜色(覆盖 inline 样式) */ | |||
body.skin-vector-2022.page-Main_Page h1 { | |||
color: #f1f1f1 !important; | |||
} | |||
body.skin-vector-2022.page-Main_Page p { | |||
color: #aaa !important; | |||
} | |||
body.skin-vector-2022.page-Main_Page .login-btn, | |||
body.skin-vector-2022.page-Main_Page .intro-btn { | |||
background-color: #222 !important; | |||
color: #fff !important; | |||
} | |||
body.skin-vector-2022.page-Main_Page .login-btn:hover, | |||
body.skin-vector-2022.page-Main_Page .intro-btn:hover { | |||
background-color: #333 !important; | |||
} | } | ||
Revision as of 02:20, 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: #f0f0f0 !important;
}
/* 🌌 深色主页背景(适配 Vector 2022)*/
body.skin-vector-2022.page-Main_Page {
background-color: #0a0a0a !important;
color: #f1f1f1 !important;
}
body.skin-vector-2022.page-Main_Page .mw-content-container {
background: transparent !important;
}
/* 🧬 链接颜色适配暗色背景 */
body.skin-vector-2022.page-Main_Page a {
color: #5ab1f8 !important;
}
body.skin-vector-2022.page-Main_Page a:hover {
color: #72c0ff !important;
}
/* 💬 调整欢迎页文字颜色(覆盖 inline 样式) */
body.skin-vector-2022.page-Main_Page h1 {
color: #f1f1f1 !important;
}
body.skin-vector-2022.page-Main_Page p {
color: #aaa !important;
}
body.skin-vector-2022.page-Main_Page .login-btn,
body.skin-vector-2022.page-Main_Page .intro-btn {
background-color: #222 !important;
color: #fff !important;
}
body.skin-vector-2022.page-Main_Page .login-btn:hover,
body.skin-vector-2022.page-Main_Page .intro-btn:hover {
background-color: #333 !important;
}