MediaWiki:Common.css: Difference between revisions

From yangwa
No edit summary
No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* === 首页专用样式:将顶部导航栏移到底部 === */
/* === Main Page 样式优化:浅色背景 + 黑色文字 + 隐藏顶部 === */


body.page-Main_Page #mw-head-base,
/* 隐藏顶部标题栏导航(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 #mw-head,
body.page-Main_Page #p-personal,
body.page-Main_Page #p-personal,
body.page-Main_Page #mw-navigation {
body.page-Main_Page #mw-head-base,
   position: fixed !important;
body.page-Main_Page #mw-panel {
   top: auto !important;
   display: none !important;
   bottom: 0 !important;
}
  width: 100%;
 
  z-index: 999;
/* 隐藏 Main Page 页面标题 */
   background-color: #f8f9fa;
body.page-Main_Page .firstHeading {
   padding: 10px 20px;
   display: none !important;
   box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}
   display: flex !important;
 
   justify-content: space-between;
/* 隐藏左上角 logo */
   align-items: center;
body.page-Main_Page #p-logo {
   display: none !important;
}
 
/* === 浅色背景设置 === */
body.page-Main_Page,
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 a,
body.skin-vector-2022.page-Main_Page h1,
body.skin-vector-2022.page-Main_Page p {
   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.page-Main_Page #content {
body.skin-vector-2022.page-Main_Page .intro-btn:hover {
   margin-bottom: 130px !important;
   background-color: #555 !important;
}
}


/* 首页:隐藏页面主标题(Main Page) */
/* Dashboard 页面隐藏顶部 */
body.page-Main_Page .firstHeading {
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;
   display: none !important;
}
}


/* 首页:隐藏 logo 旁边的 wiki 名字 */
/* GroupIntro 页面也统一浅色背景并隐藏顶部 */
body.page-Main_Page .mw-logo-wordmark {
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;
   display: none !important;
}
}


/* 首页:可选 - 调整 logo 显示大小 */
body.page-Yangwa_GroupIntro {
body.page-Main_Page .mw-wiki-logo {
  background-color: #ffffff !important;
   background-size: contain !important;
  color: #000000 !important;
   width: 70px !important;
}
   height: 70px !important;
 
   background-repeat: no-repeat !important;
/* 🧼 移除 Main Page 中 mw-body 蓝边框 */
   background-position: center center !important;
body.page-Main_Page .mw-body {
   border: none !important;
  box-shadow: none !important;
   background: none !important;
   padding: 0 !important;
}
 
/* === 全站统一为暗色背景风格 === */
body.skin-vector-2022 {
   background-color: #121212 !important;
  color: #eeeeee !important;
}
 
body.skin-vector-2022 .mw-content-container {
   background-color: transparent !important;
}
 
body.skin-vector-2022 a {
  color: #5ab1f8 !important;
}
}

Latest revision as of 02:17, 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;
}

/* === 浅色背景设置 === */
body.page-Main_Page,
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 a,
body.skin-vector-2022.page-Main_Page h1,
body.skin-vector-2022.page-Main_Page p {
  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;
}

/* 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;
}

/* 🧼 移除 Main Page 中 mw-body 蓝边框 */
body.page-Main_Page .mw-body {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  padding: 0 !important;
}

/* === 全站统一为暗色背景风格 === */
body.skin-vector-2022 {
  background-color: #121212 !important;
  color: #eeeeee !important;
}

body.skin-vector-2022 .mw-content-container {
  background-color: transparent !important;
}

body.skin-vector-2022 a {
  color: #5ab1f8 !important;
}