Jump to content

MediaWiki:Vector-dark.css: Difference between revisions

No edit summary
No edit summary
Line 1,130: Line 1,130:
.pi-media-collection .pi-tab-link.current {
.pi-media-collection .pi-tab-link.current {
    background: #ff851b; /* Bright Orange title text */
    background: #ff851b; /* Bright Orange title text */
}
/* Force the image container to flex center */
.pi-image {
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering (optional, for consistency) */
    width: 100%; /* Take full width of the infobox */
    overflow: hidden; /* In case something gets wild */
}
/* Set max image width so it fits inside the box, but let it scale naturally */
.pi-image img {
    max-width: 95%; /* Keeps a little margin on the sides */
    height: auto; /* Keeps the aspect ratio */
    display: block; /* Makes sure there's no inline weirdness */
}
}
/* Infobox Title */
/* Infobox Title */
Line 1,176: Line 1,161:
     color: #ff851b; /* Bright Orange labels */
     color: #ff851b; /* Bright Orange labels */
}
}
/* Infobox Images */
/* Infobox Images */
.portable-infobox .pi-image img {
.portable-infobox .pi-image img {
Line 1,202: Line 1,186:
.pi-image img {
.pi-image img {
     width: 100%; /* Makes it fill the container */
     width: 100%; /* Makes it fill the container */
     max-width: 320px; /* Set the max width (adjust as needed) */
     max-width: 300px; /* Set the max width (adjust as needed) */
   
     height: auto; /* Maintain aspect ratio */
     height: auto; /* Maintain aspect ratio */
     display: block;
     display: block;
     margin: 0 auto; /* Center the image */
     margin: 2px; /* Center the image */
}
}


Line 1,212: Line 1,197:
     text-align: center;
     text-align: center;
     padding: 5px;
     padding: 5px;
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering (optional, for consistency) */
}
}
@media (max-width: 768px) {
@media (max-width: 768px) {