MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* 1. TABLE & TEXT | /* 1. TABLE LAYOUT & TEXT PADDING */ | ||
.mw-parser-output .wikitable { | .mw-parser-output .wikitable { | ||
width: 100% !important; | width: 100% !important; | ||
| Line 5: | Line 5: | ||
} | } | ||
/* Reduced padding: just enough to breathe, not a massive gap */ | |||
.mw-parser-output .wikitable td, | .mw-parser-output .wikitable td, | ||
.mw-parser-output .wikitable th { | .mw-parser-output .wikitable th { | ||
padding: | padding: 4px 8px !important; | ||
vertical-align: middle !important; | vertical-align: middle !important; | ||
} | } | ||
/* 2. THE IMAGE SIZE | /* 2. THE IMAGE SIZE (Normal View) */ | ||
/* We target the image inside the span | /* We target the image inside the span to force it to shrink */ | ||
.mw-parser-output .coverSmall img, | .mw-parser-output .coverSmall img, | ||
.mw-parser-output .coverSmall a img { | .mw-parser-output .coverSmall a img { | ||
width: 60px !important; /* | width: 60px !important; /* Force 300px down to 60px */ | ||
height: 80px !important; /* | height: 80px !important; /* Force 400px down to 80px */ | ||
object-fit: contain !important; | object-fit: contain !important; /* THE FIX for 'top-left' view */ | ||
display: block !important; | display: block !important; | ||
margin: 0 auto !important; | margin: 0 auto !important; | ||
position: static !important; | |||
} | } | ||
/* 3. THE HOVER | /* 3. THE CONTAINER BOX */ | ||
.mw-parser-output .coverSmall { | |||
display: block !important; | |||
width: 60px !important; | |||
height: 80px !important; | |||
position: relative !important; | |||
overflow: visible !important; /* Let the zoom pop out */ | |||
} | |||
/* 4. THE HOVER ZOOM (Magnified) */ | |||
.mw-parser-output .coverThumb:hover .coverSmall img { | .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: | width: 350px !important; /* High quality zoom */ | ||
height: auto !important; | height: auto !important; | ||
max-width: none !important; | max-width: none !important; | ||
/* | /* Move it right to clear the text */ | ||
transform: translate( | transform: translate(80px, -20px) !important; | ||
z-index: 10000 !important; | z-index: 10000 !important; | ||
| Line 40: | Line 50: | ||
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:32, 29 January 2026
/* 1. TABLE LAYOUT & TEXT PADDING */
.mw-parser-output .wikitable {
width: 100% !important;
table-layout: auto !important;
}
/* Reduced padding: just enough to breathe, not a massive gap */
.mw-parser-output .wikitable td,
.mw-parser-output .wikitable th {
padding: 4px 8px !important;
vertical-align: middle !important;
}
/* 2. THE IMAGE SIZE (Normal View) */
/* We target the image inside the span to force it to shrink */
.mw-parser-output .coverSmall img,
.mw-parser-output .coverSmall a img {
width: 60px !important; /* Force 300px down to 60px */
height: 80px !important; /* Force 400px down to 80px */
object-fit: contain !important; /* THE FIX for 'top-left' view */
display: block !important;
margin: 0 auto !important;
position: static !important;
}
/* 3. THE CONTAINER BOX */
.mw-parser-output .coverSmall {
display: block !important;
width: 60px !important;
height: 80px !important;
position: relative !important;
overflow: visible !important; /* Let the zoom pop out */
}
/* 4. THE HOVER ZOOM (Magnified) */
.mw-parser-output .coverThumb:hover .coverSmall img {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 350px !important; /* High quality zoom */
height: auto !important;
max-width: none !important;
/* Move it right to clear the text */
transform: translate(80px, -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;
}