MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Manual revert |
No edit summary |
||
| Line 1: | Line 1: | ||
/* 1. TABLE | /* 1. TABLE SPACING - Space from the 'ends of the world' */ | ||
.mw-parser-output .wikitable td, | .mw-parser-output .wikitable td, | ||
.mw-parser-output .wikitable th { | .mw-parser-output .wikitable th { | ||
padding: 10px 15px !important; | padding: 10px 15px !important; | ||
vertical-align: middle !important; | vertical-align: middle !important; | ||
| Line 15: | Line 7: | ||
} | } | ||
/* | /* 2. NORMAL VIEW - The 60x80 Thumbnail */ | ||
. | |||
.mw-parser-output .imageWrapper img { | .mw-parser-output .imageWrapper img { | ||
width: 60px !important; | width: 60px !important; | ||
| Line 30: | Line 16: | ||
} | } | ||
.mw-parser-output .coverThumb:hover .imageWrapper img { | /* 3. HOVER VIEW - The Big Zoom */ | ||
/* We use the full hover path to ensure it triggers */ | |||
.mw-parser-output .coverThumb:hover .coverSmall .imageWrapper img { | |||
position: absolute !important; | position: absolute !important; | ||
top: 0 !important; | top: 0 !important; | ||
left: 0 !important; | left: 0 !important; | ||
width: 350px !important; | width: 350px !important; /* Back to big size */ | ||
transform: translate( | height: auto !important; | ||
max-width: none !important; | |||
/* Move right: 60px (image) + 15px (padding) + 20px (gap) = 95px */ | |||
transform: translate(95px, -20px) !important; | |||
z-index: 10000 !important; | z-index: 10000 !important; | ||
pointer-events: none !important; | pointer-events: none !important; | ||
| Line 43: | Line 36: | ||
} | } | ||
/* 4. CONTAINERS */ | |||
.mw-parser-output .coverSmall { | .mw-parser-output .coverSmall { | ||
display: block !important; | display: block !important; | ||
| Line 48: | Line 42: | ||
height: 80px !important; | height: 80px !important; | ||
position: relative !important; | position: relative !important; | ||
overflow: visible !important; | |||
} | } | ||
Revision as of 10:45, 29 January 2026
/* 1. TABLE SPACING - Space from the 'ends of the world' */
.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 - The 60x80 Thumbnail */
.mw-parser-output .imageWrapper img {
width: 60px !important;
height: 80px !important;
object-fit: contain !important;
display: block !important;
margin: 0 auto !important;
}
/* 3. HOVER VIEW - The Big Zoom */
/* We use the full hover path to ensure it triggers */
.mw-parser-output .coverThumb:hover .coverSmall .imageWrapper img {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 350px !important; /* Back to big size */
height: auto !important;
max-width: none !important;
/* Move right: 60px (image) + 15px (padding) + 20px (gap) = 95px */
transform: translate(95px, -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;
}
/* 4. CONTAINERS */
.mw-parser-output .coverSmall {
display: block !important;
width: 60px !important;
height: 80px !important;
position: relative !important;
overflow: visible !important;
}