MediaWiki:Common.css: Difference between revisions
m Hotfix for darkmode? Tag: Reverted |
mNo edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
border-spacing: 3px; | border-spacing: 3px; | ||
/* @noflip */ | /* @noflip */ | ||
margin: 0.5em 0 0.5em 1em; | margin: 0.5em 0 0.5em 1em; | ||
Line 40: | Line 38: | ||
.infobox td { | .infobox td { | ||
/* @noflip */ | /* @noflip */ | ||
text-align: | text-align: center; | ||
} | } | ||
Line 74: | Line 72: | ||
} | } | ||
. | .infobox-table{ | ||
width: inherit; | |||
} | |||
/* Box and Style for MediaWiki:Sitenotice */ | |||
.sitenotice-box { | |||
display: block; | |||
max-width: 800px; | |||
margin: 20px auto; | |||
padding: 15px; | |||
background-color: #f5f5f5; | |||
color: #333; | |||
text-align: center; | |||
font-size: 16px; | |||
border: 1px solid #333; | |||
border-radius: 5px; | |||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); | |||
} | |||
/* forced nightmode */ | |||
@media screen { | |||
/* DarkMode for MSUpload */ | |||
html.skin-theme-clientpref-night #msupload-div{ | |||
background: none; | |||
} | |||
html.skin-theme-clientpref-night #msupload-list > li{ | |||
background: none; | |||
} | |||
} | |||
/* automatic mode */ | |||
@media screen and (prefers-color-scheme: dark) { | |||
/* DarkMode for MSUpload */ | |||
html.skin-theme-clientpref-os #msupload-div{ | |||
background: none; | |||
} | |||
html.skin-theme-clientpref-os #msupload-list > li{ | |||
background: none; | |||
} | |||
} | } |