Module:Documentation/styles.css:修订间差异
外观
删除的内容 添加的内容
创建 TemplateStyles 样式表 |
修复 CSS:匹配模块实际 HTML 输出,补 toolbar 样式,加暗色模式 |
||
| (未显示同一用户的2个中间版本) | |||
| 第1行: | 第1行: | ||
/* Module:Documentation/styles.css */ |
/* Module:Documentation/styles.css */ |
||
/* 基于 zhwiki 版,匹配本站模块实际 HTML 结构 */ |
|||
/* TemplateStyles 样式表,配合中文维基版 Module:Documentation */ |
|||
. |
.documentation, |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
border: 1px solid #a2a9b1; |
border: 1px solid #a2a9b1; |
||
background-color: #ecfcf4; |
background-color: #ecfcf4; |
||
clear: both; |
|||
} |
} |
||
. |
.documentation { |
||
margin |
margin: 1em 0 0 0; |
||
padding: |
padding: 1em; |
||
} |
|||
| ⚫ | |||
.documentation-metadata { |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
} |
|||
.documentation-startbox { |
|||
| ⚫ | |||
border-bottom: 1px solid #a2a9b1; |
border-bottom: 1px solid #a2a9b1; |
||
| ⚫ | |||
} |
} |
||
. |
.documentation-heading { |
||
font-size: 110%; |
|||
font-weight: bold; |
font-weight: bold; |
||
font-size: 125%; |
|||
} |
} |
||
. |
.documentation-toolbar { |
||
| ⚫ | |||
| ⚫ | |||
font-size: 85%; |
|||
border-bottom: 1px solid #a2a9b1; |
|||
} |
} |
||
. |
.documentation-clear { |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
font-size: 90%; |
|||
} |
} |
||
@media screen { |
|||
| ⚫ | |||
html.skin-theme-clientpref-night .documentation, |
|||
| ⚫ | |||
html.skin-theme-clientpref-night .documentation-metadata { |
|||
| ⚫ | |||
} |
|||
} |
} |
||
@media screen and (prefers-color-scheme: dark) { |
|||
.template-documentation .mw-editsection-like { |
|||
html.skin-theme-clientpref-os .documentation, |
|||
| ⚫ | |||
html.skin-theme-clientpref-os .documentation-metadata { |
|||
| ⚫ | |||
| ⚫ | |||
margin-left: 0.5em; |
|||
} |
|||
vertical-align: middle; |
|||
} |
} |
||
2026年6月21日 (日) 00:37的最新版本
/* Module:Documentation/styles.css */
/* 基于 zhwiki 版,匹配本站模块实际 HTML 结构 */
.documentation,
.documentation-metadata {
border: 1px solid #a2a9b1;
background-color: #ecfcf4;
clear: both;
}
.documentation {
margin: 1em 0 0 0;
padding: 1em;
}
.documentation-metadata {
margin: 0.2em 0;
font-size: 85%;
padding: 0.4em 1em;
}
.documentation-startbox {
padding-bottom: 3px;
border-bottom: 1px solid #a2a9b1;
margin-bottom: 1ex;
}
.documentation-heading {
font-weight: bold;
font-size: 125%;
}
.documentation-toolbar {
font-style: normal;
font-size: 85%;
}
.documentation-clear {
clear: both;
}
@media screen {
html.skin-theme-clientpref-night .documentation,
html.skin-theme-clientpref-night .documentation-metadata {
background-color: #0b1e1c;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .documentation,
html.skin-theme-clientpref-os .documentation-metadata {
background-color: #0b1e1c;
}
}