Module:Documentation/styles.css:修订间差异

删除的内容 添加的内容
新增 .documentation-clear / .documentation-container 样式规则
修复 CSS:匹配模块实际 HTML 输出,补 toolbar 样式,加暗色模式
 
第1行:
/* Module:Documentation/styles.css */
/* 基于 zhwiki 版,匹配本站模块实际 HTML 结构 */
/* 类名与 enwiki 版 Module:Documentation 的 config 键值严格对应 */
 
.documentation {,
.documentation-containermetadata {
clear: both;
margin: 1em 0 0 0;
border: 1px solid #a2a9b1;
background-color: #ecfcf4;
paddingclear: 0both;
}
 
.documentation-startbox {
margin-bottom: 1em 0 0 0.2em;
padding: 5px1em;
background-color: #ecfcf4;
border-bottom: 1px solid #a2a9b1;
}
 
.documentation-headingmetadata {
margin: 1em 0 0.2em 0;
font-size: 110%;
font-weightsize: bold85%;
padding: 0.25em4em 0.9em1em;
display: inline;
}
 
.documentation-bodystartbox {
padding-bottom: 5px3px;
background-color: #fff;
border-bottom: 1px solid #a2a9b1;
margin-topbottom: 1em1ex;
}
 
.documentation-metadataheading {
font-weight: normalbold;
padding: 0.25em 0.9em;
font-size: 110125%;
background-color: #ecfcf4;
font-size: 90%;
}
 
.documentation-sandboxtoolbar {
marginfont-bottomstyle: 0.5emnormal;
font-size: 9085%;
}
 
第43行 ⟶ 第40行:
}
 
@media screen {
.documentation-container {
html.skin-theme-clientpref-night .documentation,
margin-top: 1em;
html.skin-theme-clientpref-night .documentation-metadata {
background-color: #ecfcf40b1e1c;
}
}
 
@media screen and (prefers-color-scheme: dark) {
.documentation .mw-editsection-like {
html.skin-theme-clientpref-os .documentation,
font-size: 85%;
html.skin-theme-clientpref-os .documentation-metadata {
font-weight: normal;
background-color: #fff0b1e1c;
margin-left: 0.5em;
}
vertical-align: middle;
}