MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第19行: | 第19行: | ||
} | } | ||
/* | /* 首页顶部横幅加固版 */ | ||
.hp-banner { | .hp-banner { | ||
display: flex !important; | display: flex !important; | ||
justify-content: space-between; | justify-content: space-between; | ||
align-items: center; | align-items: center; | ||
background | background: #f8f9fa; /* 维基灰色背景 */ | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; /* 维基标准边框色 */ | ||
padding: 25px; | padding: 25px 35px !important; | ||
margin- | 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%; | |||
} | |||
} | } | ||
2025年12月21日 (日) 18:23的版本
.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%;
}
}