MediaWiki:Common.css: Difference between revisions
Appearance
m testing dark mode boxes |
m fix for system dark mode |
||
| Line 7: | Line 7: | ||
padding: 1em; | padding: 1em; | ||
width: 400px; | width: 400px; | ||
} | |||
@media (prefers-color-scheme: dark) { | |||
.infobox { | |||
background-color: #383838; | |||
} | |||
} | } | ||
@media screen { | @media screen { | ||
Revision as of 09:48, 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;
}
}
@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;
}