MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Created page with "→CSS placed here will be applied to all skins: →Mobile infobox fix: @media screen and (max-width: 720px) { .infobox { float: none !important; width: 100% !important; margin: 0 0 15px 0 !important; } } →Infobox image scaling: .infobox img { max-width: 100%; height: auto; }" |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* Wikipedia-style mobile infobox behavior */ | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
.infobox { | .infobox { | ||
float: none !important; | float: none !important; | ||
width: 100% !important; | width: 100% !important; | ||
margin: 0 0 | margin: 0 0 1em 0 !important; | ||
} | } | ||
} | } | ||
/* Infobox | /* Infobox images responsive */ | ||
.infobox img { | .infobox img { | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
} | } | ||
Revision as of 06:49, 10 February 2026
/* Wikipedia-style mobile infobox behavior */
@media screen and (max-width: 720px) {
.infobox {
float: none !important;
width: 100% !important;
margin: 0 0 1em 0 !important;
}
}
/* Infobox images responsive */
.infobox img {
max-width: 100%;
height: auto;
}