MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 4: | Line 4: | ||
text-decoration: underline; | text-decoration: underline; | ||
cursor: pointer; | cursor: pointer; | ||
display: inline-block; | |||
} | } | ||
Line 9: | Line 10: | ||
display: none; | display: none; | ||
position: absolute; | position: absolute; | ||
top: | top: 25px; | ||
left: 0; | left: 0; | ||
background: white; | background: white; | ||
padding: 5px; | padding: 5px; | ||
Line 17: | Line 17: | ||
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); | box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); | ||
z-index: 1000; | z-index: 1000; | ||
} | |||
.hover-image-wrapper img { | |||
max-width: 200px; /* Adjust as needed */ | |||
height: auto; | |||
} | } | ||
Revision as of 20:49, 12 February 2025
/* CSS placed here will be applied to all skins */ .image-hover { position: relative; text-decoration: underline; cursor: pointer; display: inline-block; } .hover-image-wrapper { display: none; position: absolute; top: 25px; left: 0; background: white; padding: 5px; border: 1px solid #ccc; box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); z-index: 1000; } .hover-image-wrapper img { max-width: 200px; /* Adjust as needed */ height: auto; } .image-hover:hover .hover-image-wrapper { display: block; }