MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* === | /* === 首页专用样式:将顶部导航栏移到底部 === */ | ||
body.page-Main_Page #mw-head-base, | body.page-Main_Page #mw-head-base, | ||
body.page-Main_Page #mw-head, | body.page-Main_Page #mw-head, | ||
body.page-Main_Page #p-personal, | body.page-Main_Page #p-personal, | ||
Line 59: | Line 12: | ||
background-color: #f8f9fa; | background-color: #f8f9fa; | ||
padding: 10px 20px; | padding: 10px 20px; | ||
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05); | |||
display: flex !important; | display: flex !important; | ||
justify-content: space-between; | justify-content: space-between; | ||
align-items: center; | align-items: center; | ||
} | } | ||
/* | /* 首页:内容区底部留白,避免被底部导航遮住 */ | ||
body.page-Main_Page #content { | body.page-Main_Page #content { | ||
margin-bottom: | margin-bottom: 130px !important; | ||
} | } | ||
/* 首页:隐藏 logo | /* 首页:隐藏页面主标题(Main Page) */ | ||
body.page-Main_Page .firstHeading { | |||
display: none !important; | |||
} | |||
/* 首页:隐藏 logo 旁边的 wiki 名字 */ | |||
body.page-Main_Page .mw-logo-wordmark { | body.page-Main_Page .mw-logo-wordmark { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* 首页:可选 - 调整 logo 显示大小 */ | ||
body.page-Main_Page .mw-wiki-logo { | body.page-Main_Page .mw-wiki-logo { | ||
background-size: contain !important; | background-size: contain !important; | ||
Line 81: | Line 39: | ||
height: 70px !important; | height: 70px !important; | ||
background-repeat: no-repeat !important; | background-repeat: no-repeat !important; | ||
background-position: center; | background-position: center center !important; | ||
} | } |
Revision as of 08:42, 11 April 2025
/* === 首页专用样式:将顶部导航栏移到底部 === */ body.page-Main_Page #mw-head-base, body.page-Main_Page #mw-head, body.page-Main_Page #p-personal, body.page-Main_Page #mw-navigation { position: fixed !important; top: auto !important; bottom: 0 !important; width: 100%; z-index: 999; background-color: #f8f9fa; padding: 10px 20px; box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05); display: flex !important; justify-content: space-between; align-items: center; } /* 首页:内容区底部留白,避免被底部导航遮住 */ body.page-Main_Page #content { margin-bottom: 130px !important; } /* 首页:隐藏页面主标题(Main Page) */ body.page-Main_Page .firstHeading { display: none !important; } /* 首页:隐藏 logo 旁边的 wiki 名字 */ body.page-Main_Page .mw-logo-wordmark { display: none !important; } /* 首页:可选 - 调整 logo 显示大小 */ body.page-Main_Page .mw-wiki-logo { background-size: contain !important; width: 70px !important; height: 70px !important; background-repeat: no-repeat !important; background-position: center center !important; }