MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* Padding only (keep your numbers) */ | ||
.mw-parser-output .wikitable td, | .mw-parser-output .wikitable td, | ||
.mw-parser-output .wikitable th { | .mw-parser-output .wikitable th{ | ||
padding: 8px 12px !important; | padding: 8px 12px !important; | ||
vertical-align: middle !important; | vertical-align: middle !important; | ||
} | } | ||
/* | /* Ensure cover cell can overflow for preview */ | ||
.mw-parser-output .wikitable td:first-child, | .mw-parser-output .wikitable td:first-child, | ||
.mw-parser-output .wikitable th:first-child { | .mw-parser-output .wikitable th:first-child{ | ||
overflow: visible !important; | |||
position: relative; /* helps stacking */ | |||
} | } | ||
/* | /* Thumb wrapper */ | ||
.mw-parser-output .coverThumb { | .mw-parser-output .coverThumb{ | ||
display: inline-block; | display: inline-block; | ||
position: relative; | position: relative; | ||
z-index: 1; | |||
} | } | ||
/* | /* The actual image */ | ||
.mw-parser-output . | .mw-parser-output img.coverImg{ | ||
transition: transform 120ms ease; | transition: transform 120ms ease; | ||
transform-origin: top left; | transform-origin: top left; | ||
} | } | ||
/* | /* Hover preview (triggered when hovering the wrapper) */ | ||
.mw-parser-output .coverThumb:hover | .mw-parser-output .coverThumb:hover img.coverImg{ | ||
. | |||
transform: translate(105px, -20px) scale(4) !important; | transform: translate(105px, -20px) scale(4) !important; | ||
z-index: 99999 !important; | |||
background: #fff; | background: #fff; | ||
border: 1px solid #888; | border: 1px solid #888; | ||
Revision as of 11:05, 29 January 2026
/* Padding only (keep your numbers) */
.mw-parser-output .wikitable td,
.mw-parser-output .wikitable th{
padding: 8px 12px !important;
vertical-align: middle !important;
}
/* Ensure cover cell can overflow for preview */
.mw-parser-output .wikitable td:first-child,
.mw-parser-output .wikitable th:first-child{
overflow: visible !important;
position: relative; /* helps stacking */
}
/* Thumb wrapper */
.mw-parser-output .coverThumb{
display: inline-block;
position: relative;
z-index: 1;
}
/* The actual image */
.mw-parser-output img.coverImg{
transition: transform 120ms ease;
transform-origin: top left;
}
/* Hover preview (triggered when hovering the wrapper) */
.mw-parser-output .coverThumb:hover img.coverImg{
transform: translate(105px, -20px) scale(4) !important;
z-index: 99999 !important;
background: #fff;
border: 1px solid #888;
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
pointer-events: none;
}