MediaWiki:Common.css: Difference between revisions

From yangwa
No edit summary
No edit summary
Line 1: Line 1:
/* 只保留隐藏首页标题和 logo 名字 + 背景颜色 */
/* === 完全隐藏 Main_Page 顶部元素(Logo + 工具栏 + 标签栏)=== */


/* 1. 隐藏首页标题“Main Page” */
/* 1. 隐藏 Logo 图标区域 */
body.page-Main_Page .firstHeading {
body.page-Main_Page #p-logo {
   display: none !important;
   display: none !important;
}
}


/* 2. 隐藏 logo 右侧的 wiki 名字 */
/* 2. 隐藏顶部搜索栏 + 用户名等工具栏 */
body.page-Main_Page .mw-logo-wordmark {
body.page-Main_Page #mw-head,
body.page-Main_Page #p-personal,
body.page-Main_Page #mw-head-base {
   display: none !important;
   display: none !important;
}
}


/* 3. 设置首页背景色(可自定义) */
/* 3. 隐藏顶部标签栏(Main Page / Discussion / Read 等)*/
body.page-Main_Page {
body.page-Main_Page .vector-header-container {
   background-color: #121212 !important; /* 暗色背景,可换成 #fefefe */
   display: none !important;
  color: #eeeeee;
}
}

Revision as of 01:37, 12 April 2025

/* === 完全隐藏 Main_Page 顶部元素(Logo + 工具栏 + 标签栏)=== */

/* 1. 隐藏 Logo 图标区域 */
body.page-Main_Page #p-logo {
  display: none !important;
}

/* 2. 隐藏顶部搜索栏 + 用户名等工具栏 */
body.page-Main_Page #mw-head,
body.page-Main_Page #p-personal,
body.page-Main_Page #mw-head-base {
  display: none !important;
}

/* 3. 隐藏顶部标签栏(Main Page / Discussion / Read 等)*/
body.page-Main_Page .vector-header-container {
  display: none !important;
}