MediaWiki:Common.css:修订间差异
IdleTap-bot(留言 | 贡献) 修复:补充通用 .navbar ul/li 内联规则,修复查/论/编在非 Navbox 场景竖排 |
CaelLab-import(留言 | 贡献) 补齐 Module:Infobox 使用的新类名(infobox-title/-above/-label/-data/-image/-full-data/-subheader/-below/-navbar)样式,样式块移植自 zh.wikipedia.org 的 Common.css(原先只给旧类名 infobox-header 写了样式) |
||
| (未显示2个用户的2个中间版本) | |||
| 第321行: | 第321行: | ||
table.ombox.ombox-disambig { background-color: #fefefe; border-left-color: #999999; } | table.ombox.ombox-disambig { background-color: #fefefe; border-left-color: #999999; } | ||
/* ============================================ | /* ============================================ | ||
全局字体 | |||
============================================ */ | ============================================ */ | ||
:root { | :root { | ||
| 第349行: | 第349行: | ||
display: inline; | display: inline; | ||
word-spacing: -0.125em; | word-spacing: -0.125em; | ||
} | |||
.hatnote { | |||
font-size: small; | |||
font-style: italic; | |||
color: #555; | |||
margin-bottom: 0.5em; | |||
padding-left: 1.5em; | |||
text-indent: -1.5em; | |||
} | |||
.hatnote::before { | |||
content: "→ "; | |||
color: #888; | |||
} | |||
/* ============================================ | |||
infobox 图片与描述文字对齐修复 | |||
============================================ */ | |||
/* 使信息框内缩略图图片不浮动、水平居中 */ | |||
.infobox figure[typeof~="mw:File/Thumb"], | |||
.infobox figure[typeof~="mw:File/Frame"] { | |||
float: none !important; | |||
margin: 0 auto !important; | |||
} | |||
/* 使信息框图片行的描述文字水平居中,与图片对齐 */ | |||
.infobox td.infobox-data-without-label { | |||
text-align: center; | |||
} | |||
/* === Infobox: standard module classes (ported from zh.wikipedia.org Common.css, 2026-10-14) === */ | |||
/* Module:Infobox emits infobox-title/-above/-label/-data/-image/-full-data/-subheader/-below/-navbar; | |||
the local sheet only styled the old .infobox-header name, so those cells had no styling. */ | |||
.infobox-header, | |||
.infobox-label, | |||
.infobox-above, | |||
.infobox-full-data, | |||
.infobox-data, | |||
.infobox-below, | |||
.infobox-subheader, | |||
.infobox-image, | |||
.infobox-navbar, | |||
/* Remove element selector when every .infobox thing is using the standard module/templates */ | |||
.infobox th, | |||
.infobox td { | |||
vertical-align: top; | |||
} | |||
.infobox-label, | |||
.infobox-data, | |||
/* Remove element selector when every .infobox thing is using the standard module/templates */ | |||
.infobox th, | |||
.infobox td { | |||
/* @noflip */ | |||
text-align: left; | |||
} | |||
/* Remove .infobox when element selectors above are removed */ | |||
.infobox .infobox-above, | |||
.infobox .infobox-title, | |||
/* Remove element selector when every .infobox thing is using the standard module/templates */ | |||
.infobox caption { | |||
font-size: 125%; | |||
font-weight: bold; | |||
text-align: center; | |||
} | |||
.infobox-title, | |||
/* Remove element selector when every .infobox thing is using the standard module/templates */ | |||
.infobox caption { | |||
padding: 0.2em; | |||
} | |||
/* Remove .infobox when element selectors above are removed */ | |||
.infobox .infobox-header, | |||
.infobox .infobox-subheader, | |||
.infobox .infobox-image, | |||
.infobox .infobox-full-data, | |||
.infobox .infobox-below { | |||
text-align: center; | |||
} | |||
/* Remove .infobox when element selectors above are removed */ | |||
.infobox .infobox-navbar { | |||
/* @noflip */ | |||
text-align: right; | |||
} | |||
.infobox.bordered { | |||
border-collapse: collapse; | |||
} | |||
.infobox.bordered td, | |||
.infobox.bordered th { | |||
border: 1px solid var(--border-color-base, #a2a9b1); | |||
} | |||
.infobox.bordered .borderless td, | |||
.infobox.bordered .borderless th { | |||
border: 0; | |||
} | |||
/* styles for bordered infobox with merged rows */ | |||
.infobox.bordered .mergedtoprow td, | |||
.infobox.bordered .mergedtoprow th { | |||
border: 0; | |||
border-top: 1px solid var(--border-color-base, #a2a9b1); | |||
border-right: 1px solid var(--border-color-base, #a2a9b1); | |||
} | |||
.infobox.bordered .mergedrow td, | |||
.infobox.bordered .mergedrow th { | |||
border: 0; | |||
border-right: 1px solid var(--border-color-base, #a2a9b1); | |||
} | } | ||