MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* 1. TABLE PADDING (The | /* 1. TABLE & TEXT PADDING (The 'Ends of the World' fix) */ | ||
.mw-parser-output .wikitable td { | .mw-parser-output .wikitable td, | ||
padding: 10px 15px !important; | .mw-parser-output .wikitable th { | ||
padding: 10px 15px !important; | |||
vertical-align: middle !important; | vertical-align: middle !important; | ||
} | } | ||
/* 2. NORMAL VIEW: Force the 300px image to shrink | /* 2. NORMAL VIEW: Force the 300px image to shrink */ | ||
/* This targets the | /* This targets the image regardless of whether it's in a link or span */ | ||
.mw-parser-output .coverThumb img, | .mw-parser-output .coverThumb img, | ||
.mw-parser-output .coverThumb a img | .mw-parser-output .coverThumb a img { | ||
width: 60px !important; | width: 60px !important; | ||
height: 80px !important; | height: 80px !important; | ||
| Line 16: | Line 15: | ||
display: block !important; | display: block !important; | ||
margin: 0 auto !important; | margin: 0 auto !important; | ||
position: | max-width: none !important; | ||
} | |||
/* 3. THE CONTAINER BOX */ | |||
.mw-parser-output .coverThumb { | |||
display: inline-block !important; | |||
width: 60px !important; | |||
height: 80px !important; | |||
position: relative !important; | |||
overflow: visible !important; | |||
} | } | ||
/* | /* 4. THE HOVER ZOOM (Magnified) */ | ||
.mw-parser-output .coverThumb:hover img, | .mw-parser-output .coverThumb:hover img, | ||
.mw-parser-output .coverThumb:hover a img { | .mw-parser-output .coverThumb:hover a img { | ||
position: absolute !important; | position: absolute !important; | ||
top: - | top: -10px !important; | ||
left: 0 !important; | left: 0 !important; | ||
width: 350px !important; | width: 350px !important; | ||
height: auto !important; | height: auto !important; | ||
/* Move right to clear the thumb and the 15px padding */ | /* Move right to clear the thumb and the 15px padding */ | ||
| Line 37: | Line 44: | ||
border: 1px solid #888 !important; | border: 1px solid #888 !important; | ||
box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; | box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; | ||
} | } | ||
Revision as of 10:53, 29 January 2026
/* 1. TABLE & TEXT PADDING (The 'Ends of the World' fix) */
.mw-parser-output .wikitable td,
.mw-parser-output .wikitable th {
padding: 10px 15px !important;
vertical-align: middle !important;
}
/* 2. NORMAL VIEW: Force the 300px image to shrink */
/* This targets the image regardless of whether it's in a link or span */
.mw-parser-output .coverThumb img,
.mw-parser-output .coverThumb a img {
width: 60px !important;
height: 80px !important;
object-fit: contain !important; /* THE FIX: Shows full image, not just top-left */
display: block !important;
margin: 0 auto !important;
max-width: none !important;
}
/* 3. THE CONTAINER BOX */
.mw-parser-output .coverThumb {
display: inline-block !important;
width: 60px !important;
height: 80px !important;
position: relative !important;
overflow: visible !important;
}
/* 4. THE HOVER ZOOM (Magnified) */
.mw-parser-output .coverThumb:hover img,
.mw-parser-output .coverThumb:hover a img {
position: absolute !important;
top: -10px !important;
left: 0 !important;
width: 350px !important;
height: auto !important;
/* Move right to clear the thumb and the 15px padding */
transform: translate(95px, 0) !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;
}