Jump to content

MediaWiki:Common.css

From Yusupov's House
Revision as of 21:23, 1 October 2025 by Mvuijlst (talk | contribs) (Created page with "Base infobox look: table.infobox { border: 1px solid #a2a9b1; background-color: #f8f9fa; color: inherit; font-size: 90%; line-height: 1.4em; border-collapse: collapse; } table.infobox th, table.infobox td { padding: 0.25em 0.5em; vertical-align: top; } table.infobox th { text-align: left; background: #f2f2f2; } .infobox-title { text-align: center !important; font-size: 120% !important; font-weight: bold; background: #cfe3a3; /* light gree...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.
/* Base infobox look */
table.infobox {
  border: 1px solid #a2a9b1;
  background-color: #f8f9fa;
  color: inherit;
  font-size: 90%;
  line-height: 1.4em;
  border-collapse: collapse;
}
table.infobox th, table.infobox td {
  padding: 0.25em 0.5em;
  vertical-align: top;
}
table.infobox th {
  text-align: left;
  background: #f2f2f2;
}
.infobox-title {
  text-align: center !important;
  font-size: 120% !important;
  font-weight: bold;
  background: #cfe3a3; /* light green, nlwiki-like */
}

/* Dark mode tweak */
@media (prefers-color-scheme: dark) {
  table.infobox { background-color: #202124; border-color: #5f6368; }
  table.infobox th { background: #2a2b2e; color: #e8eaed; }
  .infobox-title { background: #466c2c; color: #e8eaed; }
}