MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
.infobox { | .infobox { | ||
background: #999; | background: #999; | ||
border: 1px solid #aaa; | |||
float: right; | |||
margin: 0 0 1em 1em; | |||
padding: 1em; | |||
width: 400px; | |||
} | |||
.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; | |||
} | |||
} | |||
/* CSS placed here will be applied to all skins */ | |||
@media screen and (prefers-color-scheme: light) { | |||
.infobox { | |||
background: #eee; | |||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
float: right; | float: right; | ||
Revision as of 14:25, 27 December 2024
/* CSS placed here will be applied to all skins */
@media screen and (prefers-color-scheme: dark) {
.infobox {
background: #999;
border: 1px solid #aaa;
float: right;
margin: 0 0 1em 1em;
padding: 1em;
width: 400px;
}
.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;
}
}
/* CSS placed here will be applied to all skins */
@media screen and (prefers-color-scheme: light) {
.infobox {
background: #eee;
border: 1px solid #aaa;
float: right;
margin: 0 0 1em 1em;
padding: 1em;
width: 400px;
}
.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;
}
}