MediaWiki:Common.css

From 3DO World
Revision as of 10:50, 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. THE "ENDS OF THE WORLD" PADDING */
.mw-parser-output .wikitable td, 
.mw-parser-output .wikitable th {
    padding: 10px 15px !important; 
    vertical-align: middle !important;
    text-align: left !important;
}

/* 2. NORMAL VIEW: Shrink the 300px image */
/* This specific path beats the 'Attributes Style' in your inspector */
.mw-parser-output span.coverSmall a img,
.mw-parser-output span.coverSmall img {
    width: 60px !important;
    height: 80px !important;
    object-fit: contain !important; /* Fixes 'Top Left' view */
    display: block !important;
    margin: 0 auto !important;
    position: static !important;
}

/* 3. THE CONTAINER: Forced to be a 60x80 box */
.mw-parser-output .coverSmall {
    display: inline-block !important;
    width: 60px !important;
    height: 80px !important;
    position: relative !important;
    overflow: visible !important;
}

/* 4. HOVER VIEW: Magnify and move */
.mw-parser-output .coverThumb:hover .coverSmall img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 350px !important;
    height: auto !important;
    max-width: none !important;
    
    /* Moves right to clear the thumb and your 15px padding */
    transform: translate(100px, -20px) !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;
}