MediaWiki:Custom-Common.less/infobox.less

// /* =================      Infoboxes ================= */

.infobox { border: 1px solid #aaa; background-color: #f9f9f9; color: inherit !important; margin: 0 0 0.5em 2em !important; padding: 0.2em; float: right; clear: right;

td, th { vertical-align: top; }

caption { font-size: larger; padding-bottom: 10px !important; margin-left: 0 !important; color: inherit !important; }

&.bordered { border-collapse: collapse;

td, th { border: 1px solid #aaa; }

.borderless { td, th { border: 0; }       }    }

// fix awkward margins for lists in infoboxes ul { margin: 0.3em 0 0 1.6em; }

// fix for nested collapsible wikitables in infoboxes // @todo fix monster infoboxes so we don't need this .wikitable.mw-collapsible { margin: -1px; width: ~"calc(100% + 2px)" !important; }

// keep infobox images from sticking together a.image + a.image { margin-left: 3px; }

// remove effect of any spaces when there's File File to let margins do all the work .infoboximage { word-spacing: -4px; }

// let red links have normal spacing td .new { word-spacing:0; } }