MediaWiki:Vector-2022.css: Difference between revisions
mNo edit summary Tags: Manual revert Reverted |
mNo edit summary Tags: Manual revert Reverted |
||
| Line 2: | Line 2: | ||
.vector-body-before-content > .mw-indicators { | .vector-body-before-content > .mw-indicators { | ||
display: none; | display: none; | ||
} | |||
@media screen and (max-width: 720px) { | |||
.infobox { | |||
float: none !important; | |||
margin: 1em auto !important; /* adds spacing above/below and centers horizontally */ | |||
width: 80% !important; | |||
text-align: center; /* centers text inside the infobox */ | |||
} | |||
.infobox img { | |||
display: block; | |||
margin: 0 auto; /* centers image */ | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
.infobox .infobox-caption { | |||
text-align: center; | |||
font-style: italic; | |||
font-size: 90%; | |||
} | |||
} | } | ||
Revision as of 02:56, 22 May 2025
/* Hide indicators only while they're in the original container */
.vector-body-before-content > .mw-indicators {
display: none;
}
@media screen and (max-width: 720px) {
.infobox {
float: none !important;
margin: 1em auto !important; /* adds spacing above/below and centers horizontally */
width: 80% !important;
text-align: center; /* centers text inside the infobox */
}
.infobox img {
display: block;
margin: 0 auto; /* centers image */
max-width: 100%;
height: auto;
}
.infobox .infobox-caption {
text-align: center;
font-style: italic;
font-size: 90%;
}
}