MediaWiki:Common.css
外观
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* ========================================
简中Robloxian Wiki — 临床档案风格
Clinical Records Style v1.0 · 2026-09-06
======================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
background-color: #0e0e0e;
font-size: 14px;
color: #e0e0e0;
}
body, #content, .mw-body, .mw-page-container, #bodyContent, .mw-parser-output {
background-color: #0e0e0e !important;
color: #d8d8d8 !important;
font-family: 'Courier New', 'Noto Sans SC', 'Microsoft YaHei', monospace;
line-height: 1.65;
}
a { color: #b0b0b0; }
a:hover { color: #ffffff; }
.mw-parser-output { background: transparent; }
/* ---------- 顶部横幅(极简档案条) ---------- */
.custom-header {
max-width: 960px;
margin: 0 auto 24px auto;
border-bottom: 1px solid #333;
padding-bottom: 16px;
text-align: center;
}
.custom-header h1 {
font-size: 2em;
font-weight: 900;
letter-spacing: 0.18em;
color: #ccc;
margin: 0 0 6px 0;
text-transform: uppercase;
}
.custom-header .tagline {
font-size: 0.85em;
color: #777;
font-style: italic;
}
.custom-header .ascii-bar {
font-family: 'Courier New', monospace;
font-size: 0.78em;
color: #555;
letter-spacing: 0.1em;
margin: 8px 0;
}
.custom-header .nav-row a {
display: inline-block;
background: #1a1a1a;
border: 1px solid #333;
padding: 5px 14px;
margin: 2px;
color: #bbb;
text-decoration: none;
font-size: 0.8em;
letter-spacing: 0.05em;
}
.custom-header .nav-row a:hover {
background: #222;
color: #fff;
border-color: #c41e3a;
}
.custom-header .disclaimer-link {
display: block;
margin-top: 10px;
font-size: 0.7em;
color: #555;
}
.custom-header .disclaimer-link a { color: #888; }
/* ---------- 两栏主布局 ---------- */
.two-col {
display: flex;
flex-wrap: wrap;
gap: 24px;
max-width: 960px;
margin: 0 auto;
}
.col-main { flex: 2; min-width: 280px; }
.col-side { flex: 1; min-width: 240px; }
/* ---------- 档案面板 ---------- */
.panel {
border: 1px solid #333;
margin-bottom: 20px;
background: #141414;
}
.panel-header {
background: #1a1a1a;
color: #ccc;
padding: 8px 14px;
font-weight: bold;
font-size: 0.95em;
letter-spacing: 0.06em;
border-bottom: 1px solid #333;
}
.panel-header .label {
font-family: 'Courier New', monospace;
color: #888;
font-size: 0.8em;
margin-left: 8px;
letter-spacing: 0.1em;
}
.panel-body { padding: 12px 14px; }
.panel-body p { margin: 0 0 10px 0; }
.panel-body ul { margin: 0; padding-left: 18px; }
.panel-body li { margin-bottom: 4px; font-size: 0.9em; }
/* ---------- 档案强调块 ---------- */
.rec {
border-left: 3px solid #555;
background: #1a1a1a;
padding: 10px 14px;
margin: 10px 0;
font-size: 0.9em;
line-height: 1.65;
}
.rec.warn { border-left-color: #c41e3a; }
.rec.note { border-left-color: #888; }
.rec .label {
font-weight: bold;
color: #aaa;
margin-bottom: 4px;
display: block;
}
/* ---------- 信息卡(人物/组织) ---------- */
.infocard {
float: right;
width: 280px;
margin: 0 0 18px 20px;
border: 1px solid #444;
font-size: 0.85em;
background: #161616;
page-break-inside: avoid;
}
.infocard .ic-header {
background: #1a1a1a;
color: #ccc;
padding: 6px 10px;
font-weight: bold;
font-size: 0.95em;
text-align: center;
border-bottom: 1px solid #444;
letter-spacing: 0.05em;
}
.infocard table { width: 100%; border-collapse: collapse; }
.infocard td, .infocard th {
padding: 4px 8px;
border-bottom: 1px solid #2a2a2a;
vertical-align: top;
font-size: 0.92em;
}
.infocard td.k {
color: #999;
font-weight: bold;
width: 32%;
white-space: nowrap;
}
.infobox-img {
text-align: center;
padding: 8px;
border-bottom: 1px solid #333;
}
.infobox-img img {
max-width: 120px;
height: auto;
filter: grayscale(100%);
}
.infobox-img .cap {
display: block;
font-size: 0.75em;
color: #777;
margin-top: 4px;
}
/* ---------- 涂黑(档案遮盖) ---------- */
.heimu, .heimu a, a .heimu, .heimu a.new {
background-color: #000;
color: #000;
text-shadow: none;
padding: 0 4px;
cursor: default;
}
.heimu:hover, .heimu:active, .heimu.reveal {
color: #ddd !important;
background-color: #000;
}
.heimu:hover a, a:hover .heimu, .heimu:active a, a:active .heimu,
.heimu.reveal a, a.heimu.reveal {
color: #8ab4f8 !important;
}
/* ---------- 模板角标(临床版) ---------- */
.template-badge {
border: 1px solid #444;
background: #141414;
padding: 6px 12px;
margin: 8px 0;
font-size: 0.82em;
color: #aaa;
}
.template-badge .tb-header {
font-weight: bold;
color: #ccc;
font-size: 0.9em;
letter-spacing: 0.05em;
margin-bottom: 6px;
}
.template-badge ul { margin: 0; padding-left: 16px; }
.template-badge li { margin-bottom: 3px; }
.template-badge.in-progress { border-color: #b8860b; }
.template-badge.in-progress .tb-header { color: #d4a017; }
.template-badge.exposed { border-color: #555; }
.template-badge.exposed .tb-header { color: #999; }
.template-badge.wanted { border-color: #8b0000; }
.template-badge.wanted .tb-header { color: #c41e3a; }
.template-badge.under-invest { border-color: #666; }
.template-badge.under-invest .tb-header { color: #bbb; }
.template-badge.record-complete { border-color: #444; }
.template-badge.record-complete .tb-header { color: #888; }
/* ---------- 折叠块 ---------- */
.collapsible-box {
border: 1px solid #333;
margin: 14px 0;
background: #141414;
}
.collapsible-box .cb-header {
background: #1a1a1a;
color: #aaa;
padding: 6px 12px;
cursor: pointer;
font-size: 0.85em;
border-bottom: 1px solid #333;
user-select: none;
}
.collapsible-box .cb-header:hover { background: #222; color: #ccc; }
.collapsible-box .cb-body { padding: 12px; }
/* ---------- 人物/组织页面 ---------- */
.entity-title {
font-size: 1.8em;
font-weight: 900;
letter-spacing: 0.1em;
color: #ccc;
border-bottom: 2px solid #444;
padding-bottom: 8px;
margin: 0 0 16px 0;
}
.record-section {
border-left: 2px solid #333;
padding-left: 14px;
margin: 18px 0;
}
.record-section h3 {
font-size: 1.05em;
color: #bbb;
margin: 0 0 8px 0;
letter-spacing: 0.05em;
}
.record-section h3 .num {
color: #666;
font-weight: bold;
margin-right: 6px;
}
.rec-chrono { font-size: 0.9em; line-height: 1.7; }
.rec-chrono dt { font-weight: bold; color: #aaa; margin-top: 8px; }
.rec-chrono dd { margin-left: 16px; color: #bbb; }
/* ---------- 引用块 ---------- */
.rec-quote {
border-left: 3px solid #444;
background: #181818;
padding: 8px 12px;
margin: 12px 0;
font-size: 0.88em;
color: #aaa;
font-style: italic;
}
.rec-quote cite {
display: block;
margin-top: 6px;
font-size: 0.8em;
color: #777;
font-style: normal;
}
/* ---------- 事件时间线 ---------- */
.timeline {
border-left: 2px solid #333;
padding-left: 14px;
margin: 16px 0;
}
.timeline .t-event {
margin-bottom: 14px;
padding-bottom: 14px;
border-bottom: 1px solid #222;
}
.timeline .t-event:last-child { border-bottom: none; margin-bottom: 0; }
.timeline .t-date {
font-family: 'Courier New', monospace;
font-size: 0.85em;
color: #888;
font-weight: bold;
margin-bottom: 4px;
}
.timeline .t-title { color: #bbb; font-weight: bold; margin-bottom: 4px; }
.timeline .t-body { font-size: 0.9em; color: #aaa; line-height: 1.65; }
/* ---------- 标签 ---------- */
.tag {
display: inline-block;
background: #1a1a1a;
border: 1px solid #333;
color: #aaa;
padding: 2px 8px;
font-size: 0.75em;
letter-spacing: 0.04em;
margin: 1px;
}
.tag.red { border-color: #8b0000; color: #c41e3a; }
.tag.yellow { border-color: #b8860b; color: #d4a017; }
.tag.grey { border-color: #555; color: #999; }
/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
html { font-size: 13px; }
.two-col { flex-direction: column; gap: 12px; }
.infocard { float: none; width: 100%; margin: 12px 0; }
.entity-title { font-size: 1.4em; }
}