MediaWiki:Common.css: Difference between revisions

From Vanilla Plus
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
 
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
.image-link {
.image-hover {
     position: relative;
     position: relative;
     text-decoration: underline;
     text-decoration: none;
    cursor: pointer;
}
}


.hover-image-wrapper {
.image-preview {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px; /* Adjust as needed */
    height: 200px; /* Adjust as needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
     display: none;
     display: none;
    position: absolute;
    top: 20px;
    left: 0;
    max-width: 200px; /* Adjust as needed */
    background: white;
    padding: 5px;
     border: 1px solid #ccc;
     border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
     z-index: 10;
     z-index: 1000;
}
}


.image-hover:hover .hover-image-wrapper {
.image-link:hover + .image-preview {
     display: block;
     display: block;
}
}

Latest revision as of 19:04, 13 February 2025

.image-link {
    position: relative;
    text-decoration: none;
}

.image-preview {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px; /* Adjust as needed */
    height: 200px; /* Adjust as needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
    border: 1px solid #ccc;
    z-index: 10;
}

.image-link:hover + .image-preview {
    display: block;
}