MediaWiki:Common.css: Difference between revisions

From yangwa
No edit summary
No edit summary
Line 1: Line 1:
/* === 完全隐藏 Main_Page 顶部元素(Logo + 工具栏 + 标签栏)=== */
/* === 强制隐藏 Main Page 页面顶部导航栏和标签栏(适配新皮肤)=== */


/* 1. 隐藏 Logo 图标区域 */
/* 隐藏顶部标题栏导航(Main Page / Discussion / Read / Edit) */
body.page-Main_Page #p-logo {
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;
   display: none !important;
}
}


/* 2. 隐藏顶部搜索栏 + 用户名等工具栏 */
/* 保险起见,也隐藏旧皮肤的顶部元素 */
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-head-base {
body.page-Main_Page #mw-head-base,
body.page-Main_Page #mw-panel {
   display: none !important;
   display: none !important;
}
}


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


/* === 隐藏 Main Page 页面顶部标签导航栏 === */
/* 隐藏 logo 区域 */
body.page-Main_Page .vector-header-container {
body.page-Main_Page #p-logo {
   display: none !important;
   display: none !important;
}
}

Revision as of 01:46, 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;
}