Module:Infobox/styles.css:修订间差异
外观
删除的内容 添加的内容
Maintenance script(留言 | 贡献) 补 infobox 基础样式:边框、背景色、内边距 |
压缩标签栏宽度 6em→4.5em |
||
| (未显示同一用户的1个中间版本) | |||
| 第127行: | 第127行: | ||
padding-right: inherit; |
padding-right: inherit; |
||
} |
} |
||
} |
|||
/* 分组标题与字段行样式(zhwiki 标准:浅蓝 header + 标签底色) */ |
|||
.infobox-header { |
|||
background: #ccf; |
|||
color: #1a1a6e; |
|||
text-align: center; |
|||
font-weight: bold; |
|||
padding: 4px 8px; |
|||
} |
|||
.infobox-label { |
|||
background: #f4f6ff; |
|||
padding: 2px 4px; |
|||
vertical-align: top; |
|||
text-align: left; |
|||
width: 4.5em; |
|||
min-width: 4.5em; |
|||
max-width: 4.5em; |
|||
white-space: nowrap; |
|||
font-size: 0.95em; |
|||
} |
|||
.infobox-data { |
|||
padding: 4px 8px; |
|||
vertical-align: top; |
|||
} |
} |
||
2026年8月1日 (六) 19:16的最新版本
/*
* 融合版 Module:Infobox/styles.css
* 基底:enwiki(基础布局 + hiddenrow)
* 补充:zhwiki(Minerva 修复 + 暗色主题完整版)
*/
/* ---------- 基础表格样式 ---------- */
.infobox {
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
color: black;
padding: 0.2em;
font-size: 88%;
line-height: 1.5em;
}
.infobox th,
.infobox td {
vertical-align: top;
}
@media (min-width: 640px) {
.infobox {
margin-left: 1em;
float: right;
clear: right;
width: 22em;
}
}
.infobox-subbox {
padding: 0;
border: none;
margin: -3px;
width: auto;
min-width: 100%;
font-size: 100%;
clear: none;
float: none;
background-color: transparent;
color: inherit;
}
.infobox-3cols-child {
margin: -3px;
}
.infobox .navbar {
font-size: 100%;
}
.infobox-hiddenrow,
body.skin--responsive.skin--responsive .infobox .infobox-hiddenrow {
display: none;
}
/* Minerva 手机端居中修复(zhwiki) */
body.skin-minerva .infobox-header,
body.skin-minerva .infobox-subheader,
body.skin-minerva .infobox-above,
body.skin-minerva .infobox-title,
body.skin-minerva .infobox-image,
body.skin-minerva .infobox-full-data,
body.skin-minerva .infobox-below {
text-align: center;
}
/* 暗色主题(zhwiki 完整版) */
@media screen {
html.skin-theme-clientpref-night .infobox-full-data:not(.notheme) > div:not(.notheme)[style] {
background: #1f1f23 !important;
color: #f8f9fa;
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .infobox-full-data:not(.notheme) > div:not(.notheme)[style] {
background: #1f1f23 !important;
color: #f8f9fa;
}
}
html.skin-theme-clientpref-night .infobox td div:not(.notheme)[style] {
background: transparent !important;
color: var(--color-base,#202122);
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .infobox td div:not(.notheme)[style] {
background: transparent !important;
color: var(--color-base,#202122);
}
}
html.skin-theme-clientpref-night .infobox td div.NavHead:not(.notheme)[style] {
background: transparent !important;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .infobox td div.NavHead:not(.notheme)[style] {
background: transparent !important;
}
}
/* .infobox-table 响应式(enwiki/zhwiki 共同) */
@media (min-width: 640px) {
body.skin--responsive .infobox-table {
display: table !important;
}
body.skin--responsive .infobox-table > caption {
display: table-caption !important;
}
body.skin--responsive .infobox-table > tbody {
display: table-row-group;
}
body.skin--responsive .infobox-table tr {
display: table-row !important;
}
body.skin--responsive .infobox-table th,
body.skin--responsive .infobox-table td {
padding-left: inherit;
padding-right: inherit;
}
}
/* 分组标题与字段行样式(zhwiki 标准:浅蓝 header + 标签底色) */
.infobox-header {
background: #ccf;
color: #1a1a6e;
text-align: center;
font-weight: bold;
padding: 4px 8px;
}
.infobox-label {
background: #f4f6ff;
padding: 2px 4px;
vertical-align: top;
text-align: left;
width: 4.5em;
min-width: 4.5em;
max-width: 4.5em;
white-space: nowrap;
font-size: 0.95em;
}
.infobox-data {
padding: 4px 8px;
vertical-align: top;
}