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。
/* ===== infotable 信息框样式(2b2t.xin wiki 风格)===== */
.infotable {
float: right;
width: 300px;
margin: 0 0 1em 1em;
border: 1px solid #e3e6ef;
overflow: hidden;
background: #fff;
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
font-size: 14px;
}
.infotable-head {
background: linear-gradient(to top, #bcd4ff, #ffffff);
color: #234785;
padding: 10px 14px;
text-align: center;
font-weight: 700;
font-size: 16px;
border-bottom: 1px solid #cfe0ff;
}
.infotable-figure {
text-align: center;
padding: 12px;
background: #f7f9ff;
border-bottom: 1px solid #eef0f7;
}
.infotable-figure img {
max-width: 100%;
height: auto;
}
.infotable-rows { padding: 4px 0; }
.infotable-row {
display: flex;
padding: 6px 14px;
border-bottom: 1px solid #f0f2f8;
}
.infotable-row:last-child { border-bottom: none; }
.infotable-key { flex: 0 0 36%; color: #555; font-weight: 600; }
.infotable-val { flex: 1; }
/* ===== 全站公告条 ===== */
.site-notice {
background: #fff8e1;
border: 1px solid #f0d488;
border-left: 4px solid #e0a800;
border-radius: 6px;
padding: 10px 14px;
margin: 6px 0 14px;
font-size: 14px;
line-height: 1.6;
}
.site-notice strong { color: #8a6100; margin-right: 6px; }
/* ===== 维护模板提示框 ===== */
.wiki-msg {
border-radius: 6px;
padding: 8px 14px;
margin: 10px 0;
font-size: 14px;
line-height: 1.6;
clear: both;
}
.wiki-msg-stub {
background: #eef3ff;
border: 1px solid #c9d8f5;
border-left: 4px solid #5b7cfa;
}
.wiki-msg-src {
background: #fff8e1;
border: 1px solid #f0d488;
border-left: 4px solid #e0a800;
}
.wiki-msg-good {
background: #eaf7ee;
border: 1px solid #bfe3c9;
border-left: 4px solid #28a745;
}
/* ===== 信息框在窄屏/移动端自适应 ===== */
@media (max-width: 720px) {
.infotable {
float: none;
width: 100%;
margin: 0 0 1em 0;
}
}