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