MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
(关闭圆角,标题栏改为浅蓝渐变(下深蓝→上淡白)) |
(新增全站公告条、维护模板提示框样式,信息框窄屏自适应) |
||
| 第38行: | 第38行: | ||
.infotable-key { flex: 0 0 36%; color: #555; font-weight: 600; } | .infotable-key { flex: 0 0 36%; color: #555; font-weight: 600; } | ||
.infotable-val { flex: 1; } | .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; | |||
} | |||
} | |||
2026年9月16日 (三) 21:35的版本
/* ===== 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;
}
}