MediaWiki:Common.css: Difference between revisions

From Vanilla Plus
Jump to navigation Jump to search
No edit summary
Tags: Manual revert Reverted
No edit summary
Tag: Manual revert
Line 6: Line 6:
}
}


.image-hover img {
.hover-image-wrapper {
     display: none;
     display: none;
     position: absolute;
     position: absolute;
     top: 20px;
     top: 20px;
     left: 0;
     left: 0;
     max-width: 200px; /* Adjust size as needed */
     max-width: 200px; /* Adjust as needed */
    border: 1px solid #ccc;
     background: white;
     background: white;
     padding: 5px;
     padding: 5px;
     box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    border: 1px solid #ccc;
     box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
     z-index: 1000;
     z-index: 1000;
}
}


.image-hover:hover img {
.image-hover:hover .hover-image-wrapper {
     display: block;
     display: block;
}
}

Revision as of 22:42, 12 February 2025

/* CSS placed here will be applied to all skins */
.image-hover {
    position: relative;
    text-decoration: underline;
    cursor: pointer;
}

.hover-image-wrapper {
    display: none;
    position: absolute;
    top: 20px;
    left: 0;
    max-width: 200px; /* Adjust as needed */
    background: white;
    padding: 5px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.image-hover:hover .hover-image-wrapper {
    display: block;
}