Jump to content

MediaWiki:Vector-dark.css: Difference between revisions

No edit summary
No edit summary
Line 1,267: Line 1,267:
}
}
.portable-infobox {
.portable-infobox {
    width: 280px; /* Change to desired width */
    width: 320px; /* Change to desired width */
     max-width: 100%; /* Prevent overflow on smaller screens */
     max-width: 100%; /* Prevent overflow on smaller screens */
     margin: 0 auto; /* Center it horizontally */
     margin: 0 auto; /* Center it horizontally */
}
.pi-image img {
    width: 100%; /* Makes it fill the container */
    max-width: 320px; /* Set the max width (adjust as needed) */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto; /* Center the image */
}
/* Optional: Adjust the image container if needed */
.pi-image {
    text-align: center;
    padding: 5px;
}
}
@media (max-width: 768px) {
@media (max-width: 768px) {