MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
line-height: 1.5em; | line-height: 1.5em; | ||
} | } | ||
. | .sidepos { | ||
float: right; | float: right; | ||
clear: right; | clear: right; | ||
width: 300px; | width: 300px; | ||
} | } | ||
. | .centrepos { | ||
margin-left: auto; | margin-left: auto; | ||
margin-right: auto; | margin-right: auto; | ||
Revision as of 04:38, 21 February 2026
/* CSS placed here will be applied to all skins */
/* Common Infobox Styles */
.myinfo {
margin: 0 0 1em 1em;
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
border-collapse: collapse;
font-size: 88%;
line-height: 1.5em;
}
.sidepos {
float: right;
clear: right;
width: 300px;
}
.centrepos {
margin-left: auto;
margin-right: auto;
float: none; /* Overrides default MediaWiki infobox floating */
display: table; /* Ensures the margins calculate based on content width */
clear: both; /* Prevents sidebars from pushing it to one side */
}
.myinfo th {
background-color: #DFE9F6;
text-align: left;
}
.myinfo th, .myinfo td {
border: 1px solid #a2a9b1;
padding: 0.2em 0.4em;
vertical-align: top;
}