MediaWiki:Common.css
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ===== Infobox (light theme default) ===== */
table.infobox{
width:22em; /* fixed like enwiki */
max-width:22em;
box-sizing:border-box; /* include border in the 270px */
float:right; clear:right;
margin:0 0 1em 1em;
border:1px solid #a2a9b1;
background:#f8f9fa;
color:inherit;
font-size:90%;
line-height:1.5em; /* enwiki-ish line height */
border-collapse:collapse;
}
table.infobox th, table.infobox td{
padding:.2em .4em; /* enwiki padding */
vertical-align:top;
}
table.infobox th{ text-align:left; }
table.infobox th.infobox-title{
/* title styling (light mode); center + 125% */
text-align:center;
font-size:125%;
font-weight:bold;
background:var(--ib-title-bg, #cfe3a3); /* uses |color= if set */
}
/* Wrap very long strings/URLs so width stays 270px */
table.infobox td{ overflow-wrap:anywhere; word-break:break-word; }
/* ===== Dark theme via skin toggle ===== */
html.skin-theme-clientpref-night table.infobox{
background:#202124; border-color:#5f6368; color:#e8eaed;
}
html.skin-theme-clientpref-night table.infobox th{
background:#2a2b2e; color:#e8eaed;
}
html.skin-theme-clientpref-night table.infobox th.infobox-title{
background:#323f2b; color:#e8eaed; /* ignore |color= in dark */
}
/* Optional: link colors inside infobox in dark */
html.skin-theme-clientpref-night table.infobox a{ color:#8ab4f8; }
html.skin-theme-clientpref-night table.infobox a:visited{ color:#c58af9; }
/* phone styles */
@media (max-width:600px){ table.infobox{ width:100%; max-width:none; float:none; margin:0 0 1em 0; } }