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.
/* Base container */
.mw-parser-output .coverThumb {
display: inline-block;
position: relative;
line-height: 0; /* helps avoid extra line spacing */
}
/* The image inside (with link or without) */
.mw-parser-output .coverThumb img.mw-file-element {
transition: transform 0.15s ease;
transform-origin: top left;
box-sizing: border-box;
}
/* Hover — scale the image directly */
.mw-parser-output .coverThumb:hover img.mw-file-element {
transform: scale(3.5); /* adjust 3–4.5 depending on taste */
z-index: 9999;
background: #fff;
border: 1px solid #aaa;
box-shadow: 0 8px 24px rgba(0,0,0,0.5);
pointer-events: none;
}
/* Optional: if you want it centered-ish instead of top-left growth */
.mw-parser-output .coverThumb:hover img.mw-file-element {
transform-origin: center center;
transform: scale(3.5);
}