MediaWiki:Gadget-site.css

/* This is the CSS for all skins (for all users) on MediaWiki.org.

SECTIONS: 1. Indication of namespaces 2. Color classes for content 3. Special pages 4. Main page styling 5. Wikitables, warnings, and other such stylings 6. Templates 7. Some other small things

/** * 1. INDICATION OF NAMESPACES * - */

/* #content for Vector and Monobook, #mw-content for Timeless */

/* NS Help (Public Domain icon) */ .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; }

/** * 3. SPECIAL PAGES * - */

/* * Hide elements on the main page. */ .page-MediaWiki #lastmod, .page-MediaWiki #siteSub, .page-MediaWiki #contentSub, .page-MediaWiki .subtitle, .page-MediaWiki #jump-to-nav, .page-MediaWiki .firstHeading { display: none; }

/** * 5. WIKITABLES, WARNINGS AND OTHER SUCH STYLINGS * - */

/** * Code conventions examples * Usage: CC/JS, CC/CSS *  */ .tpl-code-positive.mw-highlight pre, .tpl-code-negative.mw-highlight pre { /* Reset default browser margin of pre (usually margin: 1em 0;) to be all around */ margin: 1em; } /* Use a double selector to override mw-highlight default background color */ .tpl-code-positive.mw-highlight { background: #fff; border: 2px solid #00af89; } .tpl-code-negative.mw-highlight { background: #fff; border: 2px solid #d33; }

/** * 6. TEMPLATES * - */ /* Template:Extension, Template:Skin */ .tpl-infobox { box-sizing: border-box; border: 2px solid #a2a9b1; width: 280px; /* @noflip */ clear: right; /* @noflip */ float: right; margin: 0 0 0.5em 0.5em; border-collapse: collapse; background-color: white; } .tpl-infobox td { border: 2px none #a2a9b1; padding: 0.2em 0.5em; border-bottom: 1px solid #f0f0f0 !important; } .tpl-infobox-header { background-color: #a2a9b1; color: white; text-align: left; } .tpl-infobox-header td { padding-top: 0.5em; } .ext-infobox-header img { padding: 0 0.2em 0 0.5em; } .ext-status-unstable, .ext-status-unstable td { border-color: #d33; } .ext-status-unstable .ext-infobox-header { background-color: #d33; color: #fff; } .ext-status-unstable .ext-infobox-header a { color: #fff; } .ext-status-experimental, .ext-status-experimental td { border-color: #ff4500; } .ext-status-experimental .ext-infobox-header { background-color: #ff4500; } .ext-status-beta, .ext-status-beta td { border-color: #fc3; } .ext-status-beta .ext-infobox-header { color: #000; background-color: #fc3; }

.ext-status-stable, .ext-status-stable td { border-color: #00af89; } .ext-status-stable .ext-infobox-header { background-color: #00af89; } .ext-status-stable .ext-infobox-header a { color: #fff; } .ext-status-unmaintained, .ext-status-unmaintained td { border-color: #ac6600; } .ext-status-unmaintained .ext-infobox-header { background-color: #ac6600; } .ext-status-unmaintained .ext-infobox-header a { color: #fff; }

.skin-infobox, .skin-infobox td { border-color: #a7d7f9; } .skin-infobox-header { color: #000; background: #e2f4ff; }

/* Template:Navbox */ .navbox { /* Navbox container style */ border: 1px solid #aaa; width: 100%; margin: auto; clear: both; font-size: 88%; text-align: center; padding: 1px; } .navbox-inner, .navbox-subgroup { width: 100%; } table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */ margin-top: -1px; /* (doesn't work for IE6, but that's okay) */ } .navbox th, .navbox-title, .navbox-abovebelow { text-align: center; /* Title and above/below styles */ padding-left: 1em; padding-right: 1em; } th.navbox-group { /* Group style */ white-space: nowrap; /* @noflip */ text-align: right; } .navbox, .navbox-subgroup { background: #fdfdfd; } .navbox-list { /* Must match background color */ border-color: #fdfdfd; } .navbox th, .navbox-title { /* Level 1 color */ background: #eaeeff; } .navbox-abovebelow, th.navbox-group, .navbox-subgroup .navbox-title { /* Level 2 color */ background: #ddddff; } .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { /* Level 3 color */ background: #e6e6ff; } .navbox-even { /* Even row striping */ background: #f7f7f7; } .navbox-odd { /* Odd row striping */ background: transparent; } .navbox .hlist td dl, .navbox .hlist td ol, .navbox .hlist td ul, .navbox td.hlist dl, .navbox td.hlist ol, .navbox td.hlist ul { /* Adjust hlist padding in navboxes */ padding: 0.125em 0; } .navbox .hlist dd, .navbox .hlist dt, .navbox .hlist li { /* Nowrap list items in navboxes */ white-space: nowrap; } .navbox .hlist dd dl, .navbox .hlist dt dl, .navbox .hlist li ol, .navbox .hlist li ul { /* But allow parent list items to be wrapped */ white-space: normal; } ol + table.navbox, ul + table.navbox { /* Prevent lists from clinging to navboxes */ margin-top: 0.5em; }

/** * 7. SOME OTHER SMALL THINGS * - */

/* Give a bit of space to the TOC */ margin: 1em 0; }
 * 1) toc {

/* * Styling for links generated by MediaWiki:Edittools * @source www.mediawiki.org/wiki/Extension:CharInsert#Styling * @updated 2012-02-29 */ .mw-charinsert-buttons { margin-top: 10px; border: 1px solid #a2a9b1; padding: 1px; text-align: center; font-size: 110%; } .mw-charinsert-buttons a { color: black; background-color: #cde !important; font-weight: bold; font-size: .9em; text-decoration: none; border: thin #069 outset; padding: 0 .1em .1em; } .mw-charinsert-buttons a:hover, .mw-charinsert-buttons a:active { background-color: #bcd; border-style: inset; } .client-js .mw-edittools-section { display: inline; } .client-js .mw-edittools-section input[type="button"] { font-size: 0.9em; padding-left: 1px; padding-right: 1px; margin-left: 1px; }

/* * Infoboxes */ .infobox { float: right; clear: right; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; border: 1px solid #AAA; background: #f8f9fa; color: black; }

.infobox td, .infobox th { vertical-align: top; }

.infobox caption { margin-left: inherit; font-size: larger; }

.infobox.bordered { border-collapse: collapse; }

.infobox.bordered td, .infobox.bordered th { border: 1px solid #AAA; }

.infobox.bordered .borderless td, .infobox.bordered .borderless th { border: 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; }

/** * Style for horizontal lists (separator following item). * @source mediawiki.org/wiki/Snippets/Horizontal_lists * @revision 6 (2014-05-09) * @author User:Edokter */ .hlist dl, .hlist ol, .hlist ul { margin: 0; padding: 0; } /* Display list items inline */ .hlist dd, .hlist dt, .hlist li { margin: 0; display: inline; } /* Display nested lists inline */ .hlist.inline, .hlist.inline dl, .hlist.inline ol, .hlist.inline ul, .hlist dl dl, .hlist dl ol, .hlist dl ul, .hlist ol dl, .hlist ol ol, .hlist ol ul, .hlist ul dl, .hlist ul ol, .hlist ul ul { display: inline; } /* Generate interpuncts */ .hlist dt:after { content: ": "; } .mw-parser-output .hlist dd:after, .mw-parser-output .hlist li:after { content: " · "; font-weight: bold; } .hlist dd:last-child:after, .hlist dt:last-child:after, .hlist li:last-child:after { content: none; } /* Add parentheses around nested lists */ .hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before, .hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before, .hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before { content: " (";	font-weight: normal; } .hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after, .hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after, .hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {	content: ") "; font-weight: normal; } /* Put ordinals in front of ordered list items */ .hlist ol { counter-reset: listitem; } .hlist ol > li { counter-increment: listitem; } .hlist ol > li:before { content: " " counter(listitem) " "; white-space: nowrap; } .hlist dd ol > li:first-child:before, .hlist dt ol > li:first-child:before, .hlist li ol > li:first-child:before { content: " (" counter(listitem) " "; } /* end hlist */

/* Unbulleted lists */ .plainlist ul { line-height: inherit; list-style: none none; margin: 0; } .plainlist ul li { margin-bottom: 0; }