MediaWiki:Common.css: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 178: | Line 178: | ||
border-right: 1px solid #a2a9b1; | border-right: 1px solid #a2a9b1; | ||
} | } | ||
/* === Image display on hover over text === */ | /* === Image display on hover over text === */ | ||
| Line 190: | Line 183: | ||
.hover-image-wrapper { | .hover-image-wrapper { | ||
position: relative; | position: relative; | ||
display: inline-block; /* keeps layout stable */ | |||
cursor: help; | cursor: help; | ||
} | } | ||
| Line 199: | Line 192: | ||
left: 0; | left: 0; | ||
z-index: 9999; | z-index: 9999; | ||
background: #fff; | background: #fff; | ||
padding: 4px; | padding: 4px; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
/* | /* Always hidden unless hovered */ | ||
visibility: hidden !important; | |||
opacity: 0 !important; | |||
pointer-events: none !important; | |||
transition: opacity 0.15s ease-in-out; | |||
} | } | ||
.hover-image-wrapper:hover .hover-image-popup { | .hover-image-wrapper:hover .hover-image-popup { | ||
visibility: visible !important; | |||
opacity: 1 !important; | |||
pointer-events: auto !important; | |||
} | } | ||