MediaWiki:Common.css

From 3DO World
Revision as of 09:57, 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. Force all table cells in the 'Cover' column to stay 80px tall */
.wikitable td {
    height: 85px !important;
    min-height: 85px !important;
    max-height: 85px !important;
    overflow: visible !important;
    vertical-align: middle !important;
    padding: 5px !important;
}

/* 2. The Container - This acts as the anchor */
.mw-parser-output .coverSmall {
    display: block !important;
    width: 60px !important;
    height: 80px !important;
    position: relative !important; 
    margin: 0 auto;
}

/* 3. The Image (Normal View) */
.mw-parser-output .coverSmall img {
    width: 60px !important;
    height: 80px !important;
    object-fit: contain !important; /* Shows full pamphlet shrunken down */
    display: block !important;
    transition: none !important; /* Removing transition helps stop the flicker */
}

/* 4. The Magnified View (Hover) */
.mw-parser-output .coverThumb:hover .coverSmall img {
    position: absolute !important;
    top: -10px !important; /* Centers the zoom slightly better */
    left: 0 !important;
    
    /* Magnification Size */
    width: 350px !important; 
    height: auto !important;
    max-width: none !important;
    
    /* Move it right so it doesn't hide the name */
    transform: translate(70px, 0) !important;
    
    /* Critical Fixes */
    pointer-events: none !important; /* Cursor 'ignores' the big image */
    z-index: 10000 !important;
    
    /* Aesthetics */
    background: #fff !important;
    border: 1px solid #888 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

/* 5. Ensure the row stays on top while hovering */
.wikitable tr:hover {
    position: relative;
    z-index: 999;
}