MediaWiki:Common.css: Difference between revisions

From 3DO World
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* 1. The Container - Holds the relative position */
/* 1. Fix the Table Cell height so it never collapses */
.mw-parser-output .wikitable td {
    height: 80px !important;
    padding: 0 !important;
    vertical-align: middle !important;
    overflow: visible !important;
}
 
/* 2. The Container */
.mw-parser-output .coverSmall {
.mw-parser-output .coverSmall {
    position: relative !important;
     display: block !important;
     display: inline-block !important;
     width: 60px !important;
     width: 60px !important;
     height: 80px !important;
     height: 80px !important;
     vertical-align: middle;
     margin: 0 auto;
    position: relative !important;
}
}


/* 2. The Spacer - This image stays in the table flow to hold the row open */
/* 3. The Image (Normal View) */
.mw-parser-output .spacer-img {
.mw-parser-output .coverSmall img {
     width: 60px !important;
     width: 60px !important;
     height: 80px !important;
     height: 80px !important;
     object-fit: contain !important;
    /* This forces all images to fill the 60x80 box perfectly */
     visibility: visible;
     object-fit: cover !important;
    display: block !important;
     transition: transform 0.1s ease-in-out !important;
}
}


/* 3. The Zoom Image - Hidden by default, sits on top of the spacer */
/* 4. The Zoom (Hover) */
.mw-parser-output .zoom-img {
.mw-parser-output .coverThumb:hover .coverSmall img {
     position: absolute !important;
     position: absolute !important;
     top: 0;
     top: 0;
     left: 0;
     left: 0;
     width: 60px !important;
      
     height: 80px !important;
     /* Zoomed Size */
    opacity: 0; /* Hidden but clickable */
     width: 350px !important;  
    transition: transform 0.1s ease-in-out !important;
}
 
/* 4. The Hover State */
.mw-parser-output .coverThumb:hover .zoom-img {
    opacity: 1;
     width: 350px !important;
     height: auto !important;
     height: auto !important;
     max-width: none !important;
     max-width: none !important;
     transform: translate(70px, -20px) !important;
   
    /* Switch back to 'contain' so you see the FULL image when zoomed */
    object-fit: contain !important;
   
     transform: translate(75px, -10px) !important;
     z-index: 10000 !important;
     z-index: 10000 !important;
     pointer-events: none; /* Prevents flickering if mouse moves over the zoom */
     pointer-events: none !important;
      
      
    /* Aesthetics */
     background: #fff;
     background: #fff;
     border: 1px solid #888;
     border: 1px solid #888;
     box-shadow: 0 10px 30px rgba(0,0,0,0.5);
     box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
/* 5. Keep the spacer visible during hover so the row doesn't collapse */
.mw-parser-output .coverThumb:hover .spacer-img {
    visibility: visible !important;
}
}

Revision as of 10:01, 29 January 2026

/* 1. Fix the Table Cell height so it never collapses */
.mw-parser-output .wikitable td {
    height: 80px !important;
    padding: 0 !important;
    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 Image (Normal View) */
.mw-parser-output .coverSmall img {
    width: 60px !important;
    height: 80px !important;
    /* This forces all images to fill the 60x80 box perfectly */
    object-fit: cover !important; 
    display: block !important;
    transition: transform 0.1s ease-in-out !important;
}

/* 4. The Zoom (Hover) */
.mw-parser-output .coverThumb:hover .coverSmall img {
    position: absolute !important;
    top: 0;
    left: 0;
    
    /* Zoomed Size */
    width: 350px !important; 
    height: auto !important;
    max-width: none !important;
    
    /* Switch back to 'contain' so you see the FULL image when zoomed */
    object-fit: contain !important; 
    
    transform: translate(75px, -10px) !important;
    z-index: 10000 !important;
    pointer-events: none !important;
    
    background: #fff;
    border: 1px solid #888;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}