MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 275: Line 275:
.image-container {
.image-container {
     position: relative;
     position: relative;
    /* Other styling as needed, e.g., setting width and height */
}
.image-container img {
    width: 100%; /* Adjust as needed */
    height: auto; /* Adjust as needed */
     /* Other styling as needed */
     /* Other styling as needed */
}
}
Line 281: Line 287:
     display: none;
     display: none;
     position: absolute;
     position: absolute;
     top: 50%;
     top: 50%; /* Center vertically */
     left: 30%;
     left: 50%; /* Center horizontally */
     transform: translate(-50%, -50%);
     transform: translate(-50%, -50%); /* Adjust position to truly center */
     opacity: 0;
     color: white; /* Choose a text color that stands out */
     transition: opacity 0.3s ease;
     background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
     font-size: 16pt;
     padding: 10px;
font-style: italic;
}
}


.image-container:hover .caption {
.image-container:hover .caption {
     display: block;
     display: block;
     /* Additional styling for visible caption */
     /* Additional styling as needed */
}
}
.caption-image {
.caption-image {

Navigation menu