MediaWiki:Minerva.css
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 */
/*vies131开始端,首页横幅3张图片轮播*/
body.page-Main_Page .mw-page-title-main {
display: block !important;
color: transparent !important;
height: 120px;
margin: 0 calc(-16px + 1mm);
padding: 0;
background-repeat: no-repeat;
background-position: center, center, center;
background-image:
url("//www.chinaenglish.com/images/HomeBanner1.png"),
url("//www.chinaenglish.com/images/HomeBanner2.png"),
url("//www.chinaenglish.com/images/HomeBanner3.png");
animation: bannerRotate 9s infinite;
}
@keyframes bannerRotate {
0%, 30% { background-size: cover, 0 0, 0 0; } /* 只显示第1张 */
33.33%, 63.33% { background-size: 0 0, cover, 0 0; } /* 只显示第2张 */
66.66%, 96.66% { background-size: 0 0, 0 0, cover; } /* 只显示第3张 */
100% { background-size: cover, 0 0, 0 0; } /* 回到第1张 */
}
/* 重置标题上层容器的顶部间距,消除图片上方空白,让首页横幅紧靠菜单栏-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;
}
/*vies131结束端*/
/*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结束端*/