Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
Created page with "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; } .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; }"
 
No edit summary
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* 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;
}
.infobox-title {
    font-size: 2em;
    text-align: center;
}
.infobox-image {
    text-align: center;
}
.infobox-table th {
.infobox-table th {
    text-align: right;
     vertical-align: top;
     vertical-align: top;
    width: 120px;
}
}
.infobox-table td {
.infobox-table td {
     vertical-align: top;
     vertical-align: top;
}
.main-page-heading {
    margin-block-start: 0 !important;
}
html.skin-theme-clientpref-night .infobox-table {
background-color: black !important;
color: white !important;
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .infobox-table {
background-color: black !important;
color: white !important;
    }
}
html.skin-theme-clientpref-night .main-page-header {
background-color: #1E1E1E !important;
color: white !important;
        border: 2px solid #a2a9b1 !important;
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .main-page-header {
background-color: #1E1E1E !important;
color: white !important;
        border: 2px solid #a2a9b1 !important;
    }
}
html.skin-theme-clientpref-night .main-page-block {
background-color: black !important;
        border: 2px solid #a2a9b1 !important;
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .main-page-block {
background-color: black !important;
        border: 2px solid #a2a9b1 !important;
    }
}
}

Latest revision as of 06:50, 26 February 2025

/* CSS placed here will be applied to all skins */

.infobox-table th {
    vertical-align: top;
}

.infobox-table td {
    vertical-align: top;
}

.main-page-heading {
    margin-block-start: 0 !important;
}

html.skin-theme-clientpref-night .infobox-table {
		background-color: black !important;
		color: white !important;
}

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .infobox-table {
		background-color: black !important;
		color: white !important;
     }
}

html.skin-theme-clientpref-night .main-page-header {
		background-color: #1E1E1E !important;
		color: white !important;
        border: 2px solid #a2a9b1 !important;
}

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .main-page-header {
		background-color: #1E1E1E !important;
		color: white !important;
        border: 2px solid #a2a9b1 !important;
     }
}

html.skin-theme-clientpref-night .main-page-block {
		background-color: black !important;
        border: 2px solid #a2a9b1 !important;
}

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .main-page-block {
		background-color: black !important;
        border: 2px solid #a2a9b1 !important;
     }
}