MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 26: | Line 26: | ||
} | } | ||
/* === | /* === 浅色背景设置(Main_Page)=== */ | ||
body.page-Main_Page { | body.page-Main_Page { | ||
background-color: #ffffff !important; | background-color: #ffffff !important; | ||
| Line 58: | Line 58: | ||
} | } | ||
/* Dashboard | /* ✅ 修复 Main Page 页脚黑底问题 */ | ||
body.skin-vector-2022.page-Main_Page .mw-footer, | |||
body.skin-vector-2022.page-Main_Page .vector-footer { | |||
background-color: #ffffff !important; | |||
color: #555 !important; | |||
border-top: none !important; | |||
box-shadow: none !important; | |||
} | |||
/* ✅ 修复顶部导航容器的残留白上黑渐变边 */ | |||
body.skin-vector-2022.page-Main_Page .vector-header-container { | |||
background-color: #ffffff !important; | |||
box-shadow: none !important; | |||
border-bottom: none !important; | |||
} | |||
/* === Dashboard 页面隐藏顶部元素 === */ | |||
body.page-Yangwa_Dashboard .firstHeading, | body.page-Yangwa_Dashboard .firstHeading, | ||
body.page-Yangwa_Dashboard #p-logo, | body.page-Yangwa_Dashboard #p-logo, | ||
| Line 68: | Line 84: | ||
} | } | ||
/* GroupIntro | /* === GroupIntro 页面样式优化 === */ | ||
body.page-Yangwa_GroupIntro #mw-head, | body.page-Yangwa_GroupIntro #mw-head, | ||
body.page-Yangwa_GroupIntro #p-logo, | body.page-Yangwa_GroupIntro #p-logo, | ||
Revision as of 01:58, 14 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;
}
/* 隐藏 Main Page 页面标题 */
body.page-Main_Page .firstHeading {
display: none !important;
}
/* 隐藏左上角 logo */
body.page-Main_Page #p-logo {
display: none !important;
}
/* === 浅色背景设置(Main_Page)=== */
body.page-Main_Page {
background-color: #ffffff !important;
color: #000000 !important;
}
body.skin-vector-2022.page-Main_Page {
background-color: #ffffff !important;
color: #000000 !important;
}
body.skin-vector-2022.page-Main_Page .mw-content-container {
background-color: transparent !important;
}
body.skin-vector-2022.page-Main_Page h1,
body.skin-vector-2022.page-Main_Page p,
body.skin-vector-2022.page-Main_Page a {
color: #000000 !important;
}
body.skin-vector-2022.page-Main_Page .login-btn,
body.skin-vector-2022.page-Main_Page .intro-btn {
background-color: #333 !important;
color: white !important;
}
body.skin-vector-2022.page-Main_Page .login-btn:hover,
body.skin-vector-2022.page-Main_Page .intro-btn:hover {
background-color: #555 !important;
}
/* ✅ 修复 Main Page 页脚黑底问题 */
body.skin-vector-2022.page-Main_Page .mw-footer,
body.skin-vector-2022.page-Main_Page .vector-footer {
background-color: #ffffff !important;
color: #555 !important;
border-top: none !important;
box-shadow: none !important;
}
/* ✅ 修复顶部导航容器的残留白上黑渐变边 */
body.skin-vector-2022.page-Main_Page .vector-header-container {
background-color: #ffffff !important;
box-shadow: none !important;
border-bottom: none !important;
}
/* === Dashboard 页面隐藏顶部元素 === */
body.page-Yangwa_Dashboard .firstHeading,
body.page-Yangwa_Dashboard #p-logo,
body.page-Yangwa_Dashboard .mw-logo-wordmark,
body.page-Yangwa_Dashboard .mw-indicators,
body.page-Yangwa_Dashboard .vector-header-container,
body.page-Yangwa_Dashboard .vector-page-toolbar-container {
display: none !important;
}
/* === GroupIntro 页面样式优化 === */
body.page-Yangwa_GroupIntro #mw-head,
body.page-Yangwa_GroupIntro #p-logo,
body.page-Yangwa_GroupIntro .mw-logo-wordmark,
body.page-Yangwa_GroupIntro .vector-header-container,
body.page-Yangwa_GroupIntro .vector-page-toolbar-container,
body.page-Yangwa_GroupIntro .firstHeading {
display: none !important;
}
body.page-Yangwa_GroupIntro {
background-color: #ffffff !important;
color: #000000 !important;
}