MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Wikipedia css |
Overrule box padding |
||
| Line 33: | Line 33: | ||
line-height: normal; | line-height: normal; | ||
padding-top: 0.2em; | padding-top: 0.2em; | ||
} | |||
.infobox .infobox-header, | |||
.infobox .infobox-subheader, | |||
.infobox .infobox-image, | |||
.infobox .infobox-full-data, | |||
.infobox .infobox-below { | |||
text-align: center; | |||
} | |||
.infobox-header, | |||
.infobox-label, | |||
.infobox-above, | |||
.infobox-full-data, | |||
.infobox-data, | |||
.infobox-below, | |||
.infobox-subheader, | |||
.infobox-image, | |||
.infobox-navbar, | |||
/* Remove element selector when every .infobox thing is using the standard module/templates */ | |||
.infobox th, | |||
.infobox td { | |||
vertical-align: top; | |||
} | } | ||
Revision as of 22:35, 4 March 2025
.infobox {
width: 30em; /* Increased from 22em */
max-width: 40%; /* Increased from 25% */
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
font-size: 88%;
line-height: 1.5em;
}
/* Fix for infobox image centering and proportions */
.mw-parser-output .infobox-image {
text-align: center;
padding: 0.2em;
}
.mw-parser-output .infobox-image img {
max-width: 220px;
height: auto;
display: inline-block;
}
.mw-parser-output .infobox-caption {
text-align: center;
line-height: normal;
padding-top: 0.2em;
}
.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
text-align: center;
}
.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates */
.infobox th,
.infobox td {
vertical-align: top;
}