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 { | ||
position: relative; | position: relative; | ||
text-decoration: none; | |||
} | } | ||
. | .hover-image:hover::after { | ||
content: attr(data-image); | |||
position: absolute; | position: absolute; | ||
top: | top: 20px; | ||
left: | left: 20px; | ||
background: | width: 200px; /* Adjust size as needed */ | ||
border: 1px solid | height: auto; | ||
background-size: cover; | |||
background-position: center; | |||
background-repeat: no-repeat; | |||
display: block; | |||
border: 1px solid #ccc; | |||
padding: 5px; | padding: 5px; | ||
background-color: white; | |||
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); | |||
box-shadow: | |||
} | } | ||
Revision as of 03:13, 12 February 2025
/* CSS placed here will be applied to all skins */
.hover-image {
position: relative;
text-decoration: none;
}
.hover-image:hover::after {
content: attr(data-image);
position: absolute;
top: 20px;
left: 20px;
width: 200px; /* Adjust size as needed */
height: auto;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
display: block;
border: 1px solid #ccc;
padding: 5px;
background-color: white;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}