MediaWiki:Common.css
MediaWiki界面页面
更多操作
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
.homepage-container {
display: grid !important;
grid-template-columns: 1fr 1fr; /* 强制平分两列 */
column-gap: 30px;
row-gap: 10px;
width: 100%;
margin: 20px 0;
}
.homepage-left, .homepage-right {
min-width: 0; /* 防止内容撑破网格 */
}
/* 移动端自动转为单栏 */
@media (max-width: 768px) {
.homepage-container {
grid-template-columns: 1fr;
}
}
/* 首页顶部横幅加固版 */
.hp-banner {
display: flex !important;
justify-content: space-between;
align-items: center;
background: #f8f9fa; /* 维基灰色背景 */
border: 1px solid #a2a9b1; /* 维基标准边框色 */
padding: 25px 35px !important;
margin: 10px 0 25px 0 !important;
border-radius: 2px;
box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.hp-banner-info {
flex: 2;
}
.hp-banner-title {
font-size: 2.2em !important;
font-family: "Linux Libertine", "Georgia", "Times", serif;
font-weight: normal;
color: #000;
margin: 0 0 8px 0 !important;
border: none !important; /* 移除可能的默认标题下划线 */
}
.hp-banner-subtitle {
font-size: 1.1em;
color: #54595d;
margin-bottom: 8px;
}
.hp-banner-stats {
font-size: 0.9em;
color: #72777d;
}
.hp-banner-nav {
flex: 1;
text-align: right;
border-left: 1px solid #c8ccd1;
padding-left: 25px;
line-height: 1.8;
}
/* 手机端横幅适配 */
@media (max-width: 850px) {
.hp-banner {
flex-direction: column;
text-align: center;
padding: 20px !important;
}
.hp-banner-nav {
border-left: none;
border-top: 1px solid #c8ccd1;
margin-top: 15px;
padding: 15px 0 0 0;
text-align: center;
width: 100%;
}
}