MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
Tag: Undo |
||
Line 1: | Line 1: | ||
table.infobox{border:1px solid #a2a9b1;background:#f8f9fa;font-size:90%;line-height:1.4em;border-collapse:collapse} | /* Base infobox look */ | ||
table.infobox th,table.infobox td{padding:.25em .5em;vertical-align:top} | table.infobox { | ||
table.infobox th{text-align:left;background:#f2f2f2} | border: 1px solid #a2a9b1; | ||
.infobox-title{text-align:center;font-size:120%;font-weight:bold;background:#cfe3a3} | background-color: #f8f9fa; | ||
@media (prefers-color-scheme: dark){ | color: inherit; | ||
table.infobox{background:#202124;border-color:#5f6368; | font-size: 90%; | ||
table.infobox th{background:#2a2b2e} | line-height: 1.4em; | ||
.infobox-title{background:#466c2c} | 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; } | |||
} | } |
Revision as of 21:38, 1 October 2025
/* 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; } }