MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第227行: | 第227行: | ||
font-size: 2rem !important; | font-size: 2rem !important; | ||
} | } | ||
.hp-banner { | |||
padding: 20px !important; | |||
flex-direction: column !important; | |||
text-align: center !important; | |||
} | |||
.hp-banner-title { | |||
font-size: 1.8em !important; /* 手机端标题调小 */ | |||
} | |||
.hp-banner-subtitle { | |||
font-size: 1em !important; | |||
} | |||
.hp-banner-stats { | |||
display: block !important; /* 统计信息改为块状 */ | |||
margin: 10px auto !important; | |||
font-size: 0.85em !important; | |||
} | |||
/* 导航框优化:在手机上取消固定宽度,让按钮更饱满 */ | |||
.hp-banner-nav { | |||
border-left: none !important; | |||
border-top: 1px solid rgba(255, 255, 255, 0.2) !important; | |||
margin-left: 0 !important; | |||
margin-top: 15px !important; | |||
padding-left: 0 !important; | |||
padding-top: 15px !important; | |||
width: 100% !important; | |||
} | |||
.hp-nav-box { | |||
width: 100% !important; | |||
box-sizing: border-box !important; | |||
padding: 12px !important; | |||
} | |||
/* 容器降级为单栏布局 */ | |||
.homepage-container { | |||
grid-template-columns: 1fr !important; | |||
gap: 15px !important; | |||
} | |||
/* 让左侧的典范条目在手机上也变单列 */ | |||
.featured-grid { | |||
grid-template-columns: 1fr !important; | |||
} | |||
} | } | ||