Jump to content

MediaWiki:Common.css

From Dreamon Studios Wiki
Revision as of 11:29, 6 January 2026 by Anders (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.
/* -----------------
--- Infoboxes ---
----------------- */

.infobox {
  background-color: #f8f9fa;
  border: 1px solid #a2a9b1;
  color: #000;
  padding: .2em;
  font-size: .9em;
  line-height: 1.5em;
  border-spacing: 3px;
}

.infobox th,
.infobox td {
  padding: .2em .5em;
  text-align: left;
  vertical-align: top;
}

.infobox .infobox-above,
.infobox .infobox-title {
  font-size: 1.25em;
  font-weight: bold;
  text-align: center !important;
}

.infobox .infobox-caption {
  font-weight: normal !important;
  text-align: center !important;
}

.infobox .infobox-header {
  font-size: 1.1em;
  font-weight: bold;
  text-align: center !important;
}

.infobox .infobox-label {
  font-weight: bold;
}

/* Fixes weird stretching bug with the Vector skin */
.infobox img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .infobox {
    float: none;
    clear: both;
    margin: 0 0 1em 0;
    table-layout: fixed;
  }
/*
  .infobox th.infobox-above,
  .infobox th.infobox-title,
  .infobox th.infobox-header, {
    width: 100% !important;
  }

  .infobox th.infobox-label {
    width: 25% !important;
  }
*/    
  .infobox .nowrap {
    white-space: normal;
  }
}

@media (min-width: 640px) {
  .infobox {
    /* @noflip */
    margin: 0.5em 0 0.5em 1em;
    /* @noflip */
    float: right;
    /* @noflip */
    clear: right;
    width: 22em;
  }
}