MediaWiki:Common.css

Plmxs42​(留言 | 贡献)2026年10月23日 (五) 15:37的版本

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
  • Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* ===== 时间线年表 ===== */
.timeline-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 1em}
table.timeline{width:100%;border-collapse:collapse;font-size:0.95em}
table.timeline th,table.timeline td{border:1px solid #c8ccd1;padding:6px 8px;vertical-align:top}
table.timeline th{background:#eaecf0;font-weight:bold;white-space:nowrap}
table.timeline td.tl-time{white-space:nowrap;width:7em}
table.timeline td.tl-source,table.timeline td.tl-topic{width:8em;font-size:0.9em}
table.timeline tbody tr:hover td{background:#f8f9fa}

/* ===== 事件信息框 ===== */
div.event-infobox{float:right;clear:right;width:300px;max-width:100%;box-sizing:border-box;margin:0 0 1em 1.5em;border:1px solid #c8ccd1;background:#f8f9fa;font-size:0.9em;line-height:1.5}
div.event-infobox .ei-title{background:#eaecf0;border-bottom:1px solid #c8ccd1;padding:8px 10px;font-weight:bold;text-align:center}
div.event-infobox .ei-row{display:flex;border-top:1px solid #eaecf0}
div.event-infobox .ei-row:first-child{border-top:0}
div.event-infobox .ei-label{flex:0 0 5.5em;padding:6px 8px;background:#f1f3f5;font-weight:bold;color:#54595d}
div.event-infobox .ei-value{flex:1 1 auto;min-width:0;padding:6px 8px;word-break:break-word}

/* ===== 手机端:信息框通栏、年表可横滑 ===== */
@media screen and (max-width:720px){
  div.event-infobox{float:none !important;clear:both;width:auto !important;max-width:100% !important;margin:0 0 1em 0 !important}
  div.event-infobox .ei-label{flex:0 0 4.5em}
  table.timeline{min-width:620px;font-size:0.9em}
}

/* ===== 暗色模式(Vector 2022) ===== */
html.skin-theme-clientpref-night div.event-infobox{background:#27292d;border-color:#54595d}
html.skin-theme-clientpref-night div.event-infobox .ei-title{background:#3c4043;border-color:#54595d}
html.skin-theme-clientpref-night div.event-infobox .ei-label{background:#33363a;color:#c8ccd1}
html.skin-theme-clientpref-night div.event-infobox .ei-row{border-color:#3c4043}
html.skin-theme-clientpref-night table.timeline th,html.skin-theme-clientpref-night table.timeline td{border-color:#54595d}
html.skin-theme-clientpref-night table.timeline th{background:#3c4043}