MediaWiki:Minerva.css: Difference between revisions

From The Reed and Rite
mNo edit summary
Tags: Manual revert Reverted
mNo edit summary
Tag: Manual revert
Line 98: Line 98:
   .wikitable td[style*="background-color: white"],
   .wikitable td[style*="background-color: white"],
   .wikitable th[style*="background-color: white"],
   .wikitable th[style*="background-color: white"],
   .wikitable tr[style*="background-color: white"] {
   .wikitable tr[style*="background-color: white"],
     background-color: #1e1e1e !important; /* Or whatever dark color fits your theme */
  .wikitable td[style*="background:#fff"],
     color: #ebecf0 !important; /* Light text for contrast */
  .wikitable th[style*="background:#fff"],
     border-color: #444 !important; /* Optional: darker border in dark mode */
  .wikitable td[style*="background: white"],
  .wikitable th[style*="background: white"] {
     background-color: #1e1e1e !important;
     color: #ebecf0 !important;
     border-color: #444 !important;
   }
   }



Revision as of 04:41, 27 May 2025

/* 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: 90% !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;
  }
  
/* 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;
  }
}