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.
/* Hover cover preview (zoom the existing thumb) */
.coverThumb{
position: relative;
display: inline-block;
z-index: 1;
}
.coverSmall{
width: 60px;
height: 80px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
/* smooth zoom */
.coverSmall img{
transition: transform 120ms ease;
transform-origin: top left;
}
/* allow zoom to escape the box */
.coverThumb:hover .coverSmall{
overflow: visible;
z-index: 99999;
}
/* zoom + move to the right like a popup */
.coverThumb:hover .coverSmall img{
transform: translate(70px,-10px) scale(3);
background: #fff;
border: 1px solid #aaa;
box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}