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.
/* Padding only (keep your numbers) */
.mw-parser-output .wikitable td,
.mw-parser-output .wikitable th{
padding: 8px 12px !important;
vertical-align: middle !important;
}
/* Ensure cover cell can overflow for preview */
.mw-parser-output .wikitable td:first-child,
.mw-parser-output .wikitable th:first-child{
overflow: visible !important;
position: relative; /* helps stacking */
}
/* Thumb wrapper */
.mw-parser-output .coverThumb{
display: inline-block;
position: relative;
z-index: 1;
}
/* The actual image */
.mw-parser-output img.coverImg{
transition: transform 120ms ease;
transform-origin: top left;
}
/* Hover preview (triggered when hovering the wrapper) */
.mw-parser-output .coverThumb:hover img.coverImg{
transform: translate(105px, -20px) scale(4) !important;
z-index: 99999 !important;
background: #fff;
border: 1px solid #888;
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
pointer-events: none;
}