|
|
第1行: |
第1行: |
| /* {{pp|small=y}} */
| | .infobox { |
| /*
| | background: #eee; |
| * This TemplateStyles sheet deliberately does NOT include the full set of
| | border: 1px solid #aaa; |
| * infobox styles. We are still working to migrate all of the manual
| | float: right; |
| * infoboxes. See [[MediaWiki talk:Common.css/to do#Infobox]]
| | margin: 0 0 1em 1em; |
| * DO NOT ADD THEM HERE
| | padding: 1em; |
| */
| | width: 400px; |
| /*
| |
| * not strictly certain these styles are necessary since the modules now
| |
| * exclusively output infobox-subbox or infobox, not both
| |
| * just replicating the module faithfully
| |
| */
| |
| .infobox-subbox { | |
| padding: 0;
| |
| border: none;
| |
| margin: -3px;
| |
| width: auto;
| |
| min-width: 100%;
| |
| font-size: 100%;
| |
| clear: none;
| |
| float: none;
| |
| background-color: transparent;
| |
| } | | } |
| | | .infobox-title { |
| .infobox-3cols-child { | | font-size: 2em; |
| margin: auto;
| | text-align: center; |
| } | | } |
| | | .infobox-image { |
| .infobox .navbar { | | text-align: center; |
| font-size: 100%;
| |
| } | | } |
| | | .infobox-table th { |
| /* T281642 */
| | text-align: right; |
| body.skin-minerva .infobox-header,
| | vertical-align: top; |
| body.skin-minerva .infobox-subheader,
| | width: 120px; |
| 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;
| |
| } | | } |
| | | .infobox-table td { |
| | | vertical-align: top; |
| /* Dark theme: [[William_Wragg]], [[Coral_Castle]] */
| |
| html.skin-theme-clientpref-night .infobox-full-data div {
| |
| background: #1f1f23 !important; | |
| /* switch with var( --color-base ) when supported. */
| |
| color: #f8f9fa;
| |
| }
| |
| | |
| @media (prefers-color-scheme: dark) {
| |
| html.skin-theme-clientpref-os .infobox-full-data div {
| |
| background: #1f1f23 !important;
| |
| /* switch with var( --color-base ) when supported. */
| |
| color: #f8f9fa;
| |
| }
| |
| } | | } |
2024年5月12日 (日) 15:23的版本
.infobox {
background: #eee;
border: 1px solid #aaa;
float: right;
margin: 0 0 1em 1em;
padding: 1em;
width: 400px;
}
.infobox-title {
font-size: 2em;
text-align: center;
}
.infobox-image {
text-align: center;
}
.infobox-table th {
text-align: right;
vertical-align: top;
width: 120px;
}
.infobox-table td {
vertical-align: top;
}