MediaWiki:Common.css

From 3DO World
Revision as of 11:01, 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 & STABILITY */
.mw-parser-output .wikitable td {
    height: 85px !important;
    padding: 10px 15px !important; /* 15px space from first/last letters */
    vertical-align: middle !important;
    overflow: visible !important;
}

/* 2. THE CONTAINER */
.mw-parser-output .coverSmall {
    display: block !important;
    width: 60px !important;
    height: 80px !important;
    margin: 0 auto;
    position: relative !important;
}

/* 3. THE SPACER (Always visible, holds the row open) */
.mw-parser-output .coverSmall img.spacer-img {
    width: 60px !important;
    height: 80px !important;
    object-fit: contain !important;
    display: block !important;
    visibility: visible !important;
}

/* 4. THE ZOOM (Hidden by default) */
.mw-parser-output .coverSmall img.zoom-img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 60px !important;
    height: 80px !important;
    opacity: 0; /* Makes it invisible */
    pointer-events: none; /* Stops it from blocking clicks on the spacer */
}

/* 5. THE HOVER (Show the zoom) */
.mw-parser-output .coverThumb:hover .coverSmall img.zoom-img {
    opacity: 1 !important;
    width: 350px !important; 
    height: auto !important;
    max-width: none !important;
    
    /* Pushes it right to clear the thumb and table padding */
    transform: translate(100px, -20px) !important;
    
    z-index: 10000 !important;
    background: #fff;
    border: 1px solid #888;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}