Jump to content

MediaWiki:Common.css

From Team Wiki
Revision as of 14:01, 29 September 2026 by Maintenance script (talk | contribs) (Keep large images within page width and preserve proportions across the wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */

/* Images should be responsive */
res-img {
max-width:100%;
height:auto;
}

/* Keep large wiki content images inside the page at their original proportions. */
.mw-parser-output img,
.mw-parser-output .mw-file-element {
    max-width: 100%;
    height: auto;
}

/* Constrain older thumbnails and newer MediaWiki figure wrappers too. */
.mw-parser-output .thumb,
.mw-parser-output .thumbinner,
.mw-parser-output figure {
    max-width: 100%;
    box-sizing: border-box;
}