MediaWiki:Minerva.css

From ChinaEnglish
Revision as of 15:24, 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 */


/* ========== 仅首页隐藏Main Page标题(移动端MinervaNeue) ========== */
body.page-Main_Page .mw-page-title-main {
    display: none !important;
}

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



body.page-Main_Page .mw-page-title-main {
    display: block !important;
    visibility:hidden; /* 文字保留占位,不会塌陷,SEO更好 */
    height:120px;      /* 改成你图片的高度 */
    background-image: url("//www.chinaenglish.com/images/HomeBanner.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position:center;
}