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。
/* 现代首页容器 */
.home-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-top: 20px;
}
/* 侧边栏与主内容比例 */
.home-main { flex: 3; min-width: 300px; }
.home-sidebar { flex: 1; min-width: 250px; }
/* 欢迎区域 */
.home-welcome {
background: linear-gradient(135deg, #36b 0%, #2a4b8d 100%);
color: white;
padding: 30px;
border-radius: 8px;
margin-bottom: 20px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.home-welcome h1 { color: white; border-bottom: none; margin-top: 0; font-weight: bold; }
/* 快速导航按钮 */
.home-nav {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 10px;
margin-bottom: 20px;
}
.home-nav-item {
background: #f8f9fa;
border: 1px solid #a2a9b1;
padding: 15px;
text-align: center;
border-radius: 6px;
transition: all 0.2s;
}
.home-nav-item:hover {
background: #eaf3ff;
border-color: #36b;
text-decoration: none !important;
transform: translateY(-2px);
}