MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* | /* 只保留隐藏首页标题和 logo 名字 + 背景颜色 */ | ||
/* 1 | /* 1. 隐藏首页标题“Main Page” */ | ||
body.page-Main_Page .firstHeading { | body.page-Main_Page .firstHeading { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* 2. 隐藏 logo 右侧的 wiki 名字 */ | ||
body.page-Main_Page .mw-logo-wordmark { | body.page-Main_Page .mw-logo-wordmark { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* 3. 设置首页背景色(可自定义) */ | ||
body.page-Main_Page { | body.page-Main_Page { | ||
background-color: #121212 !important; /* | background-color: #121212 !important; /* 暗色背景,可换成 #fefefe */ | ||
color: #eeeeee; | color: #eeeeee; | ||
} | } |
Revision as of 01:33, 12 April 2025
/* 只保留隐藏首页标题和 logo 名字 + 背景颜色 */ /* 1. 隐藏首页标题“Main Page” */ body.page-Main_Page .firstHeading { display: none !important; } /* 2. 隐藏 logo 右侧的 wiki 名字 */ body.page-Main_Page .mw-logo-wordmark { display: none !important; } /* 3. 设置首页背景色(可自定义) */ body.page-Main_Page { background-color: #121212 !important; /* 暗色背景,可换成 #fefefe */ color: #eeeeee; }