MediaWiki:Minerva.css

From ChinaEnglish
Revision as of 09:32, 5 November 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 */


/*vies130开始端*/
/* 首页横幅:贴边填满,去掉四周空白 这个viesz1和下面viesz2是一起的,都是解决增加首页横幅的*/
body.page-Main_Page .mw-page-title-main {
    display: block !important;
    color: transparent !important;   /* 关键修改:让标题文字Main Page透明,但保留元素和背景 */
    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;
}

/* 重置标题上层容器的顶部间距,消除图片上方空白,让首页横幅紧靠菜单栏-viesz2 */
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;
}
/*vies130结束端*/


/*viesz88开始端,配合修改移动端左上角边菜单的代码*/
/* 隐藏自定义菜单项的图标占位符,并调整左侧内边距 */
#mw-mf-page-left .custom-custom-menu-item::before {
    display: none !important;
}

#mw-mf-page-left .custom-custom-menu-item {
    /* 因为没了图标,把左侧的 padding 调小一点,文字就不会显得太靠右 */
    padding-left: 16px !important; 
}
/*viesz88结束端*/