MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* 1. TABLE SPACING - | /* 1. TABLE & TEXT SPACING */ | ||
.mw-parser-output .wikitable { | |||
width: 100% !important; | |||
table-layout: auto !important; | |||
} | |||
/* 15px space from the 'ends of the world' (the borders) */ | |||
.mw-parser-output .wikitable td, | .mw-parser-output .wikitable td, | ||
.mw-parser-output .wikitable th { | .mw-parser-output .wikitable th { | ||
| Line 7: | Line 13: | ||
} | } | ||
/* 2. | /* 2. THE IMAGE SIZE (Normal View) */ | ||
.mw-parser-output . | /* Target the image inside our new div structure */ | ||
.mw-parser-output .coverSmall img, | |||
.mw-parser-output .coverSmall a img { | |||
width: 60px !important; | width: 60px !important; | ||
height: 80px !important; | height: 80px !important; | ||
object-fit: contain !important; | object-fit: contain !important; /* Full image, no top-left cropping */ | ||
display: block !important; | display: block !important; | ||
margin: 0 auto !important; | margin: 0 auto !important; | ||
} | } | ||
/* 3. | /* 3. THE CONTAINER BOX */ | ||
/* | .mw-parser-output .coverSmall { | ||
.mw-parser-output .coverThumb:hover .coverSmall | display: inline-block !important; /* Helps it sit correctly in the table */ | ||
width: 60px !important; | |||
height: 80px !important; | |||
position: relative !important; | |||
overflow: visible !important; | |||
} | |||
/* 4. THE HOVER ZOOM */ | |||
.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: 350px !important; | width: 350px !important; | ||
height: auto !important; | height: auto !important; | ||
max-width: none !important; | max-width: none !important; | ||
/* | /* Clear the 60px image + 15px padding + 20px gap = 95px */ | ||
transform: translate(95px, -20px) !important; | transform: translate(95px, -20px) !important; | ||
| Line 34: | 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:46, 29 January 2026
/* 1. TABLE & TEXT SPACING */
.mw-parser-output .wikitable {
width: 100% !important;
table-layout: auto !important;
}
/* 15px space from the 'ends of the world' (the borders) */
.mw-parser-output .wikitable td,
.mw-parser-output .wikitable th {
padding: 10px 15px !important;
vertical-align: middle !important;
text-align: left !important;
}
/* 2. THE IMAGE SIZE (Normal View) */
/* Target the image inside our new div structure */
.mw-parser-output .coverSmall img,
.mw-parser-output .coverSmall a img {
width: 60px !important;
height: 80px !important;
object-fit: contain !important; /* Full image, no top-left cropping */
display: block !important;
margin: 0 auto !important;
}
/* 3. THE CONTAINER BOX */
.mw-parser-output .coverSmall {
display: inline-block !important; /* Helps it sit correctly in the table */
width: 60px !important;
height: 80px !important;
position: relative !important;
overflow: visible !important;
}
/* 4. THE HOVER ZOOM */
.mw-parser-output .coverThumb:hover .coverSmall img {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 350px !important;
height: auto !important;
max-width: none !important;
/* Clear the 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;
}