MediaWiki:Common.css

Revision as of 21:09, 9 October 2025 by Shovon (talk | contribs)

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 */
/* Make infobox responsive */
.infobox {
  max-width: 100% !important;
  width: 270px;
  float: right;
  margin: 0 0 1em 1em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

/* Force images inside infobox to scale */
.infobox img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* Make header flexible */
.infobox th {
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

/* Center infobox on mobile */
@media screen and (max-width: 600px) {
  .infobox {
    float: none !important;
    margin: 0 auto;
  }
}