MediaWiki:Common.css

From 3DO World
Revision as of 10:52, 29 January 2026 by Elliogle (talk | contribs)
Jump to navigation Jump to search

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 PADDING (The space from the 'ends of the world') */
.mw-parser-output .wikitable td {
    padding: 10px 15px !important; /* Creates the 15px gap from borders */
    vertical-align: middle !important;
    overflow: visible !important;
}

/* 2. NORMAL VIEW: Force the 300px image to shrink to 60px */
/* This targets the 300px width attribute directly */
.mw-parser-output .coverThumb img,
.mw-parser-output .coverThumb a img,
.mw-parser-output img[width="300"] {
    width: 60px !important;
    height: 80px !important;
    object-fit: contain !important; /* THE FIX: Shows full image, not just top-left */
    display: block !important;
    margin: 0 auto !important;
    position: static !important;
}

/* 3. THE HOVER ZOOM (Magnified) */
.mw-parser-output .coverThumb:hover img,
.mw-parser-output .coverThumb:hover a img {
    position: absolute !important;
    top: -20px !important;
    left: 0 !important;
    width: 350px !important; /* Quality zoom */
    height: auto !important;
    max-width: none !important;
    
    /* Move right to clear the thumb and the 15px padding */
    transform: translate(95px, 0) !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;
}

/* 4. THE ANCHOR */
.mw-parser-output .coverThumb {
    display: inline-block !important;
    width: 60px !important;
    height: 80px !important;
    position: relative !important;
}