MediaWiki:Common.css: Difference between revisions
From Harrison County Wiki
Jump to navigationJump to search
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 82: | Line 82: | ||
.infobox-settlement { | .infobox-settlement { | ||
float: right; | float: right !important; | ||
margin-left: 1em; | margin-left: 1em !important; | ||
width: 22em; | width: 22em !important; | ||
font-size: 90%; | font-size: 90% !important; | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1 !important; | ||
background: #f8f9fa; | background: #f8f9fa !important; | ||
color: black; | color: black !important; | ||
} | } | ||
.infobox-settlement .infobox-header { | .infobox-settlement .infobox-header { | ||
background: #dcdcdc; | background: #dcdcdc !important; | ||
color: black; | color: black !important; | ||
text-align: center; | text-align: center; | ||
font-size: 125%; | font-size: 125% !important; | ||
} | } | ||
/* Dark | /* Dark mode override */ | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
.infobox-settlement { | .infobox-settlement { | ||
background: #202122; | background: #202122 !important; | ||
color: white; | color: white !important; | ||
border-color: #444; | border-color: #444 !important; | ||
} | } | ||
.infobox-settlement .infobox-header { | .infobox-settlement .infobox-header { | ||
background: #202122; | background: #202122 !important; | ||
color: white; | color: white !important; | ||
} | } | ||
Revision as of 19:58, 4 August 2025
/* ===== Ambox styles ===== / .ambox { border: 1px solid #aaa; background-color: #f9f9f9 !important; padding: 10px 15px; margin: 1em 0; border-left: 6px solid #36c; box-shadow: 1px 1px 4px rgba(0,0,0,0.1); font-size: 90%; line-height: 1.4em; clear: both; display: table; width: 100%; color: black !important; } .ambox-notice { border-left-color: #36c; } .ambox-warning { border-left-color: #f28500; background-color: #fff8e5 !important; } .ambox-serious { border-left-color: #d33; background-color: #ffeaea !important; } .ambox-content { border-left-color: #6b4; } .ambox-delete { border-left-color: #b32424; } .ambox-move { border-left-color: #9932cc; } .ambox-protect { border-left-color: #00a; } .ambox-style { border-left-color: #f0c000; } .ambox-table { border-collapse: collapse; width: 100%; table-layout: fixed; background-color: transparent !important; color: inherit !important; } .ambox-image { width: 40px; vertical-align: middle; padding-right: 12px; text-align: center; background-color: transparent !important; color: inherit !important; } .ambox-text { vertical-align: middle; word-wrap: break-word; font-family: sans-serif, Arial, Helvetica; background-color: transparent !important; color: black !important; } / Optional: Reset tables and cells inside ambox if your skin uses dark mode */ .ambox-table td { background-color: transparent !important; color: inherit !important; } .infobox-settlement { float: right !important; margin-left: 1em !important; width: 22em !important; font-size: 90% !important; border: 1px solid #a2a9b1 !important; background: #f8f9fa !important; color: black !important; } .infobox-settlement .infobox-header { background: #dcdcdc !important; color: black !important; text-align: center; font-size: 125% !important; } /* Dark mode override */ @media (prefers-color-scheme: dark) { .infobox-settlement { background: #202122 !important; color: white !important; border-color: #444 !important; } .infobox-settlement .infobox-header { background: #202122 !important; color: white !important; } .infobox-settlement td[style*="color:#ccc"] { color: #aaa !important; } }