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:
/* Force the table to allow the breakout */
/* Target the image strictly by its parent hierarchy */
.mw-parser-output .wikitable td {
    overflow: visible !important;
}
 
/* The Container */
.mw-parser-output .coverSmall {
    display: block !important;
    width: 60px !important;
    height: 80px !important;
    overflow: hidden !important; /* This is what creates the 'window' */
    position: relative !important;
    border: 1px solid #ddd;
}


/* The Image in NORMAL view */
/* 1. The Normal State: Force the 300px/400px image to shrink */
.mw-parser-output .coverSmall img.zoom-img {
.mw-parser-output .coverThumb .coverSmall a img,
     width: 60px !important;  /* Force it to shrink to the box width */
.mw-parser-output .coverThumb .coverSmall img {
     height: 80px !important;  /* Force it to shrink to the box height */
     width: 60px !important;  /* Force shrink width */
     object-fit: contain !important; /* Ensure the WHOLE image fits */
     height: 80px !important;  /* Force shrink height */
     object-fit: contain !important; /* Fit the whole image in the box */
     display: block !important;
     display: block !important;
     position: static !important; /* Keep it inside the box for now */
     transition: transform 0.2s ease !important;
    transform: none !important;
}
 
/* The Image on HOVER */
.mw-parser-output .coverThumb:hover .coverSmall {
    overflow: visible !important;
}
}


.mw-parser-output .coverThumb:hover .coverSmall img.zoom-img {
/* 2. The Hover State: Blow it back up */
.mw-parser-output .coverThumb:hover .coverSmall img {
     position: absolute !important;
     position: absolute !important;
     top: 0 !important;
     top: 0 !important;
     left: 0 !important;
     left: 0 !important;
     width: 300px !important; /* Show it at the full resolution we requested */
   
    /* This makes it use its natural 300px/400px size again */
     width: 300px !important;  
     height: auto !important;
     height: auto !important;
    max-width: none !important;
   
    /* Move it to the right so it doesn't block the text */
    transform: translate(70px, -20px) !important;
      
      
    transform: translate(70px, -20px) !important;
     z-index: 10000 !important;
     z-index: 10000 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    border: 1px solid #888 !important;
     background: #fff !important;
     background: #fff !important;
     border: 1px solid #888 !important;
     max-width: none !important;
     box-shadow: 0 5px 25px rgba(0,0,0,0.5) !important;
}
 
/* 3. Ensure the table doesn't hide the zoom */
.mw-parser-output .wikitable td {
     overflow: visible !important;
}
 
.mw-parser-output .coverThumb:hover .coverSmall {
    overflow: visible !important;
}
}

Revision as of 09:51, 29 January 2026

/* Target the image strictly by its parent hierarchy */

/* 1. The Normal State: Force the 300px/400px image to shrink */
.mw-parser-output .coverThumb .coverSmall a img,
.mw-parser-output .coverThumb .coverSmall img {
    width: 60px !important;   /* Force shrink width */
    height: 80px !important;  /* Force shrink height */
    object-fit: contain !important; /* Fit the whole image in the box */
    display: block !important;
    transition: transform 0.2s ease !important;
}

/* 2. The Hover State: Blow it back up */
.mw-parser-output .coverThumb:hover .coverSmall img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    
    /* This makes it use its natural 300px/400px size again */
    width: 300px !important; 
    height: auto !important;
    
    transform: translate(70px, -20px) !important;
    z-index: 10000 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    border: 1px solid #888 !important;
    background: #fff !important;
    max-width: none !important;
}

/* 3. Ensure the table doesn't hide the zoom */
.mw-parser-output .wikitable td {
    overflow: visible !important;
}

.mw-parser-output .coverThumb:hover .coverSmall {
    overflow: visible !important;
}