MediaWiki:Minerva.css: Difference between revisions

From ChinaEnglish
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 23: Line 23:
}
}


/* 重置标题上层容器的顶部间距 */
/* 去掉内容区顶部内边距,消除图片上方空白 */
body.page-Main_Page .mw-body,
body.page-Main_Page .content,
body.page-Main_Page .heading-holder,
body.page-Main_Page #content {
body.page-Main_Page .page-heading {
     padding-top: 0;
     padding-top: 0 !important;
    margin-top: 0 !important;
}
}



Revision as of 22:22, 31 October 2026

/* 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 .content,
body.page-Main_Page #content {
    padding-top: 0;
}







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