MediaWiki:Minerva.css

Revision as of 20:26, 27 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.
/* All CSS here will be loaded for users of the MinervaNeue skin */

/* Mobile override for infobox */
.infobox-float {
  float: none !important;
  clear: both !important;
  margin: 1em auto !important;
  display: block !important;
  width: auto !important;
  max-width: 70% !important;
  top: 0 !important;
  position: relative;
}

/* Dark mode override */
@media (prefers-color-scheme: dark) {
  body.skin-minerva .infobox,
  body.skin-minerva .infobox-table,
  body.skin-minerva .infobox-header,
  body.skin-minerva .infobox-image-container,
  body.skin-minerva .infobox-image,
  body.skin-minerva .infobox-caption,
  body.skin-minerva .infobox-data-row {
    background-color: #1e1e1e;
    color: #f8f9fa;
    border-color: #555;
  }
  
  body.skin-minerva .art-infobox,
  body.skin-minerva .art-infobox-table,
  body.skin-minerva .art-infobox-header,
  body.skin-minerva .art-infobox-image-container,
  body.skin-minerva .art-infobox-image,
  body.skin-minerva .art-infobox-caption,
  body.skin-minerva .art-infobox-data-row {
    background-color: #1e1e1e;
    color: #f8f9fa;
    border-color: #555;
  }

  body.skin-minerva .infobox-caption {
    color: #ccc;
  }

  body.skin-minerva .art-infobox-caption {
    color: #ccc;
  }
  
  body.skin-minerva .infobox-data-row th,
  body.skin-minerva .infobox-data-row td {
    color: #f8f9fa;
  }
  
  body.skin-minerva .art-infobox-data-row th,
  body.skin-minerva .art-infobox-data-row td {
    color: #f8f9fa;
  }
  
  body.skin-minerva #editlock {
    background-color: #173a5e !important;
  }
  
  body.skin-minerva #welcome-notice {
    background-color: #2f352a !important;
  }
  
  body.skin-minerva #claim-notice {
    background-color: #4a4a2e !important;
  }
  
  body.skin-minerva #copyright-notice {
    background-color: #2e2f33 !important;
  }
  
  body.skin-minerva #delete-notice {
    background-color: #594800 !important;
  }
  
  body.skin-minerva #spoiler-notice {
    background-color: #5a1a1a !important;
  }
  
  body.skin-minerva #theory-notice {
    background-color: #2d3443 !important;
  }
  
  body.skin-minerva #helptoc {
    background-color: #1e1e1e !important;
    color: #f8f9fa !important;
    border: 1px solid #555 !important;
  }
  
  body.skin-minerva #top-notice {
    background-color: #554400 !important;
  }
  
  body.skin-minerva #rename-notice {
    background-color: #4e5c3f !important;
  }
  
/* Target white backgrounds in wikitables and make them blend with dark theme */
  .wikitable td[style*="background-color: white"],
  .wikitable th[style*="background-color: white"],
  .wikitable tr[style*="background-color: white"],
  .wikitable td[style*="background:#fff"],
  .wikitable th[style*="background:#fff"],
  .wikitable td[style*="background: white"],
  .wikitable th[style*="background: white"] {
    background-color: #1e1e1e !important;
    color: #ebecf0 !important;
    border-color: #444 !important;
  }

/* Default background for wikitable cells without inline styles */
  .wikitable td,
  .wikitable th {
    background-color: #1e1e1e;
    color: #ebecf0;
  }
}

.notice {
  max-width: 90% !important;
  width: auto !important;
}