MediaWiki:Common.css
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.
/* 1. TABLE CORE */
.mw-parser-output .wikitable {
width: 100% !important;
table-layout: auto !important;
border-collapse: collapse !important;
}
/* 2. THE PADDING (small space before/after text) */
.mw-parser-output .wikitable td,
.mw-parser-output .wikitable th {
padding-top: 8px !important;
padding-bottom: 8px !important;
padding-left: 10px !important;
padding-right: 10px !important;
vertical-align: middle !important;
text-align: left !important;
}
/* 3. COLUMN WIDTHS (The 'World' boundaries) */
/* This ensures the Manufacturer and Type columns stay wide enough */
.mw-parser-output .wikitable td:nth-child(2) { min-width: 200px !important; } /* Name */
.mw-parser-output .wikitable td:nth-child(3) { min-width: 100px !important; } /* Type */
.mw-parser-output .wikitable td:nth-child(4) { min-width: 150px !important; } /* Manufacturer */
/* 4. THE IMAGE & ZOOM (Keeping your working fix) */
.mw-parser-output .imageWrapper img {
width: 60px !important;
height: 80px !important;
object-fit: contain !important;
display: block !important;
margin: 0 auto !important;
}
.mw-parser-output .coverThumb:hover .imageWrapper img {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 350px !important;
transform: translate(110px, -20px) !important;
z-index: 10000 !important;
pointer-events: none !important;
background: #fff !important;
border: 1px solid #888 !important;
box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}
.mw-parser-output .coverSmall {
display: block !important;
width: 60px !important;
height: 80px !important;
position: relative !important;
}