MediaWiki:Common.css
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
/* 这里放置的CSS将应用于所有皮肤 */
/* 白墙纪念馆 Wiki 全站通用美化样式 */
/* 页面整体背景色与字体 */
body {
font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
background-color: #f9f9f9;
color: #333;
line-height: 1.8;
}
/* 页面标题 */
.firstHeading {
font-size: 2rem;
font-weight: bold;
color: #2c3e50;
border-bottom: 2px solid #ccc;
margin-bottom: 1rem;
}
/* 页面内容容器 */
#bodyContent {
background: #ffffff;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* 左侧边栏 */
#mw-panel {
background-color: #f0f0f0;
}
/* 顶部栏 Logo 与背景 */
#p-logo {
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
/* 链接颜色 */
a {
color: #2980b9;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* 页脚优化 */
#footer {
font-size: 0.85rem;
color: #888;
}