MediaWiki:Common.css

Revision as of 01:24, 29 August 2025 by Admin (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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* ===== Infobox (Person) base styles ===== */
.infobox {
  width: 100%;
  max-width: 320px;
  font-size: 90%;
  line-height: 1.45;
  color: #202122;
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  border-collapse: collapse;
  margin: 0 0 1em 1em;   /* float right on desktop */
  float: right;
  clear: right;
}

.infobox caption,
.infobox .infobox-header {
  text-align: center;
  font-weight: 700;
  background: #eaecf0;
  padding: .6em;
}

.infobox td, .infobox th {
  border-top: 1px solid #a2a9b1;
  padding: .35em .6em;
  vertical-align: top;
}

.infobox .infobox-image {
  text-align: center;
  padding: .6em;
}

.infobox .infobox-caption {
  text-align: center;
  font-size: 85%;
  padding-top: .3em;
  color: #54595d;
}

.infobox .nowrap { white-space: nowrap; }

/* Mobile: center the box, don’t float */
@media (max-width: 768px) {
  .infobox {
    float: none;
    margin: 0 auto 1em;
    max-width: 100%;
  }
}