MediaWiki:Vector-2022.css

From The Reed and Rite
Revision as of 02:44, 22 May 2025 by TheRoman (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.
/* Hide indicators only while they're in the original container */
.vector-body-before-content > .mw-indicators {
    display: none;
}

@media screen and (max-width: 720px) {
  /* Infobox container styling */
  .infobox {
    margin-bottom: 1.5em;
    width: 80%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Name (header) centered */
  .infobox-header {
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    padding: 0.5em;
    background-color: #f8f9fa;
  }

  /* Image container centered */
  .infobox-image-container {
    text-align: center;
  }

  /* Caption centered */
  .infobox-caption {
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
    padding-top: 0.3em;
    padding-bottom: 0.5em;
  }

  /* Data rows stay left aligned (default) */
  .infobox-table td:not(.infobox-header):not(.infobox-image):not(.infobox-caption) {
    text-align: left;
  }
}