MediaWiki:Common.css: Difference between revisions
Abhishek.it (talk | contribs) No edit summary |
Uniform 250px size for all article images across the site |
||
| Line 740: | Line 740: | ||
} | } | ||
} | } | ||
/* Uniform size for all article images (thumb/frame) across the site — 250px, like the default thumbnail size */ | |||
.mw-parser-output figure[typeof~="mw:File/Thumb"] > a > img, | |||
.mw-parser-output figure[typeof~="mw:File/Thumb"] > span > img, | |||
.mw-parser-output figure[typeof~="mw:File/Frame"] > a > img, | |||
.mw-parser-output figure[typeof~="mw:File/Frame"] > span > img { | |||
width: 250px !important; | |||
height: auto !important; | |||
max-width: 100%; | |||
} | |||
.mw-parser-output figure[typeof~="mw:File/Thumb"] > figcaption, | |||
.mw-parser-output figure[typeof~="mw:File/Frame"] > figcaption { | |||
max-width: 250px; | |||
} | |||
.mw-parser-output .infobox figure img { width: auto !important; } | |||