MediaWiki:Common.css: Difference between revisions
Appearance
m fix for system dark mode |
m fix for infobox in light mode |
||
| Line 11: | Line 11: | ||
.infobox { | .infobox { | ||
background-color: #383838; | background-color: #383838; | ||
} | |||
.skin-theme-clientpref-night .infobox { | |||
background: #eee; | |||
} | } | ||
} | } | ||
Revision as of 09:53, 12 April 2025
/* CSS placed here will be applied to all skins */
.infobox {
background: #eee;
border: 1px solid #aaa;
float: right;
margin: 0 0 1em 1em;
padding: 1em;
width: 400px;
}
@media (prefers-color-scheme: dark) {
.infobox {
background-color: #383838;
}
.skin-theme-clientpref-night .infobox {
background: #eee;
}
}
@media screen {
.skin-theme-clientpref-night .infobox {
background-color: #383838;
}
}
.infobox-title {
font-size: 2em;
text-align: center;
}
.infobox-image {
text-align: center;
}
.infobox-table th {
text-align: right;
vertical-align: top;
width: 120px;
}
.infobox-table td {
vertical-align: top;
}