Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
Wikiadmin (talk | contribs)
Created page with "→CSS placed here will be applied to all skins: →====== Universal Infobox Styles ======: .infobox { border: 1px solid #aaa; background-color: var(--infobox-bg, #f9f9f9); color: var(--infobox-text, #000); padding: 10px; margin: 1em 0; width: 280px; font-size: 90%; line-height: 1.6em; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } →Header styling: .infobox-header { font-weight: bold; font-size: 120%; text-align: center;..."
 
Wikiadmin (talk | contribs)
No edit summary
Tag: Reverted
Line 31: Line 31:
}
}
.infobox-image img {
.infobox-image img {
   max-width: 250px;
   max-width: 400px;
   height: auto;
   height: auto;
   border: 1px solid #ddd;
   border: 1px solid #ddd;

Revision as of 08:31, 10 October 2025

/* CSS placed here will be applied to all skins */

/* ====== Universal Infobox Styles ====== */
.infobox {
  border: 1px solid #aaa;
  background-color: var(--infobox-bg, #f9f9f9);
  color: var(--infobox-text, #000);
  padding: 10px;
  margin: 1em 0;
  width: 280px;
  font-size: 90%;
  line-height: 1.6em;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Header styling */
.infobox-header {
  font-weight: bold;
  font-size: 120%;
  text-align: center;
  margin-bottom: 8px;
  padding: 4px;
  border-bottom: 1px solid #ccc;
}

/* Image block */
.infobox-image {
  text-align: center;
  margin: 10px 0;
}
.infobox-image img {
  max-width: 400px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
}

/* Row styling */
.infobox-row {
  margin: 6px 0;
}

/* ====== Specific Classes (all inherit base .infobox) ====== */
.mod-infobox     { background-color: var(--infobox-bg, #f9f9f9); }
.enemy-infobox   { background-color: var(--infobox-bg, #f9f9f9); }
.utility-infobox { background-color: var(--infobox-bg, #f9f9f9); }
.modder-infobox  { background-color: var(--infobox-bg, #f9f9f9); }

/* ====== Dark mode overrides (if skin supports CSS variables) ====== */
html[data-theme='dark'] {
  --infobox-bg: #1e1e1e;
  --infobox-text: #e0e0e0;
}