MediaWiki:Minerva.css

From WikiDoctor
Jump to navigation Jump to search

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.
/* All CSS here will be loaded for users of the MinervaNeue skin */
/* === Wikipedia-style full-width infobox on mobile === */

.infobox {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1em 0 !important;
}

.infobox-above {
  text-align: center;
  font-size: 1.4em;
  padding: 0.6em 0.4em;
}

.infobox-image img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

.infobox-caption {
  text-align: center;
  font-size: 0.9em;
  padding: 0.4em;
}

.infobox th,
.infobox td {
  padding: 0.5em 0.6em;
}

/* Mobile-only full width infobox */
table.infobox {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}