MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary Tag: Reverted |
||
Line 25: | Line 25: | ||
margin-left:auto; | margin-left:auto; | ||
margin-right:auto; | margin-right:auto; | ||
} | |||
/* | |||
* This is the CSS for all skins (for both mobile and desktop) on MediaWiki.org. | |||
* Styling inside .mw-parser-output should generally use TemplateStyles. | |||
*/ | |||
/* Public Domain background in the Help namespace */ | |||
.action-view.ns-12 #bodyContent { | |||
background-image: url(//upload.wikimedia.org/wikipedia/commons/6/67/PD-icon-faded.png); | |||
background-repeat: no-repeat; | |||
/* @noflip */ | |||
background-position: right 5em; | |||
} | |||
/* | |||
* Hide elements on the main page. | |||
*/ | |||
.page-MediaWiki #lastmod, | |||
.page-MediaWiki #siteSub, | |||
.page-MediaWiki #contentSub, | |||
.page-MediaWiki .subtitle, | |||
.page-MediaWiki #jump-to-nav, | |||
/* can be removed when Template:Main_page translations are updated. */ | |||
.page-MediaWiki #firstHeading, | |||
[lang="en"] .page-MediaWiki .mw-parser-output h2 { | |||
display: none; | |||
} | |||
[lang="en"] .page-MediaWiki #firstHeading { | |||
font-size: 1.5em; | |||
display: block; | |||
} | |||
/* Give a bit of space to the TOC */ | |||
#toc { | |||
margin: 1em 0; | |||
} | |||
/* Fonts for Persian language for consistency with other Wikimedia wikis */ | |||
:lang(fa) { | |||
font-family: '.Arabic UI Text', Tahoma, 'Iranian Sans', 'Noto Sans Arabic', 'DejaVu Sans', sans-serif; | |||
} | |||
/* Div based "warning" style fmbox messages. */ | |||
div.mw-warning-with-logexcerpt, | |||
div.mw-lag-warn-high, | |||
div.mw-cascadeprotectedwarning, | |||
div#mw-protect-cascadeon, | |||
div.titleblacklist-warning { | |||
clear: both; | |||
margin: 0.2em 0; | |||
border: 1px solid #bb7070; | |||
background-color: #ffdbdb; | |||
padding: 0.25em 0.9em; | |||
box-sizing: border-box; | |||
} | } |
Revision as of 04:59, 8 May 2022
/* CSS placed here will be applied to all skins */ .whitelink a { color: white; } .CountryIB { text-align: right; float: right; width: 300; border: 1px solid black; background-color: #f3f3f3; } .CountryIB th { text-align: right; vertical-align: top; width: 120px; } .CountryIB td { text-align: center; vertical-align: top; font-weight: bold; } table.center { margin-left:auto; margin-right:auto; } /* * This is the CSS for all skins (for both mobile and desktop) on MediaWiki.org. * Styling inside .mw-parser-output should generally use TemplateStyles. */ /* Public Domain background in the Help namespace */ .action-view.ns-12 #bodyContent { background-image: url(//upload.wikimedia.org/wikipedia/commons/6/67/PD-icon-faded.png); background-repeat: no-repeat; /* @noflip */ background-position: right 5em; } /* * Hide elements on the main page. */ .page-MediaWiki #lastmod, .page-MediaWiki #siteSub, .page-MediaWiki #contentSub, .page-MediaWiki .subtitle, .page-MediaWiki #jump-to-nav, /* can be removed when Template:Main_page translations are updated. */ .page-MediaWiki #firstHeading, [lang="en"] .page-MediaWiki .mw-parser-output h2 { display: none; } [lang="en"] .page-MediaWiki #firstHeading { font-size: 1.5em; display: block; } /* Give a bit of space to the TOC */ #toc { margin: 1em 0; } /* Fonts for Persian language for consistency with other Wikimedia wikis */ :lang(fa) { font-family: '.Arabic UI Text', Tahoma, 'Iranian Sans', 'Noto Sans Arabic', 'DejaVu Sans', sans-serif; } /* Div based "warning" style fmbox messages. */ div.mw-warning-with-logexcerpt, div.mw-lag-warn-high, div.mw-cascadeprotectedwarning, div#mw-protect-cascadeon, div.titleblacklist-warning { clear: both; margin: 0.2em 0; border: 1px solid #bb7070; background-color: #ffdbdb; padding: 0.25em 0.9em; box-sizing: border-box; }