MediaWiki:Minerva.css

From ChinaEnglish
Revision as of 22:16, 31 October 2026 by Chinaenglish (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* All CSS here will be loaded for users of the MinervaNeue skin */










/* 首页横幅:贴边填满,去掉四周空白 */
body.page-Main_Page .mw-page-title-main {
    display: block !important;
    color: transparent !important;   /* 关键修改:让文字透明,但保留元素和背景 */
    height: 120px;
    margin: 0 -16px;        /* 左右贴边:抵消内容区左右 padding,-16px 为示例值 */
    padding: 0;
    background-image: url("//www.chinaenglish.com/images/HomeBanner.png");
    background-size: cover; /* 关键:填满整个区域,不再留白 */
    background-repeat: no-repeat;
    background-position: center;
}

/* 重置标题上层容器的顶部间距 */
body.page-Main_Page .mw-body,
body.page-Main_Page .heading-holder,
body.page-Main_Page .page-heading {
    padding-top: 0 !important;
    margin-top: 0 !important;
}







/* MinervaNeue 移动端强制展开所有章节,去掉折叠箭头 */
.mf-section-body {
    display: block !important;
}
.mf-section-heading .mf-icon--expand {
    display: none !important;
}