MediaWiki:Common.css: Difference between revisions
Hide the "Switch to old look" link |
Article images: same width as the infobox |
||
| Line 741: | Line 741: | ||
} | } | ||
/* Uniform size for all article images (thumb/frame) across the site — | /* Uniform size for all article images (thumb/frame) across the site — same outer width as the infobox (22em ≈ 271px) */ | ||
.mw-parser-output figure[typeof~="mw:File/Thumb"] > a > img, | .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/Thumb"] > span > img, | ||
.mw-parser-output figure[typeof~="mw:File/Frame"] > a > img, | .mw-parser-output figure[typeof~="mw:File/Frame"] > a > img, | ||
.mw-parser-output figure[typeof~="mw:File/Frame"] > span > img { | .mw-parser-output figure[typeof~="mw:File/Frame"] > span > img { | ||
width: | width: 263px !important; | ||
height: auto !important; | height: auto !important; | ||
max-width: 100%; | max-width: 100%; | ||
| Line 752: | Line 752: | ||
.mw-parser-output figure[typeof~="mw:File/Thumb"] > figcaption, | .mw-parser-output figure[typeof~="mw:File/Thumb"] > figcaption, | ||
.mw-parser-output figure[typeof~="mw:File/Frame"] > figcaption { | .mw-parser-output figure[typeof~="mw:File/Frame"] > figcaption { | ||
max-width: | max-width: 263px; | ||
} | } | ||
.mw-parser-output .infobox figure img { width: auto !important; } | .mw-parser-output .infobox figure img { width: auto !important; } | ||