Module:Infobox/styles.css:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 标签:已被回退 |
无编辑摘要 标签:已被回退 |
||
| 第11行: | 第11行: | ||
padding: 0.4em; | padding: 0.4em; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
} | |||
.infobox { | |||
float: right; | |||
clear: right; | |||
margin: 0 0 1em 1em; | |||
} | } | ||
2025年6月28日 (六) 18:34的版本
/*
* Infobox 基础样式
*/
.infobox,
.ib-country {
border: 1px solid var(--border-color-base, #a2a9b1);
background-color: var(--background-color-infobox, #f9f9f9);
width: 22em;
font-size: 88%;
line-height: 1.5em;
padding: 0.4em;
border-collapse: collapse;
}
.infobox {
float: right;
clear: right;
margin: 0 0 1em 1em;
}
.infobox td,
.infobox th {
border: 1px solid var(--border-color-base, #a2a9b1);
padding: 0.4em 0.6em;
text-align: left; /* 默认左对齐,可改为 center */
}
.infobox th {
text-align: center;
}
.infobox .infobox-above,
.infobox .infobox-title,
.infobox th[style*="colspan"] {
text-align: center;
font-size: 125%;
font-weight: bold;
}
/*
* 子 infobox 样式
*/
.infobox-subbox {
padding: 0;
border: none;
margin: -3px;
width: auto;
min-width: 100%;
font-size: 100%;
clear: none;
float: none;
background-color: transparent;
}
.infobox-3cols-child {
margin: auto;
}
.infobox .navbar {
font-size: 100%;
}
/*
* 支持 Minerva 皮肤中的居中标题(移动端)
*/
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;
}
/*
* 深色模式支持(Vector 2022 等现代皮肤)
*/
@media screen {
html.skin-theme-clientpref-night .infobox-full-data:not(.notheme) > div:not(.notheme)[style] {
background: #1f1f23 !important;
color: #f8f9fa;
}
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .infobox-full-data:not(.notheme) div:not(.notheme) {
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 (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 (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .infobox td div.NavHead:not(.notheme)[style] {
background: transparent !important;
}
}
/*
* 响应式皮肤支持(infobox-table)
*/
@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;
}
}