MediaWiki:Common.css

/* CSS placed here will be applied to all skins */ /* Any JavaScript here will be loaded for all users on every page load. */ importArticles( {	type: 'script',	articles: [		'ShowHide/code.js',		'CollapsibleInfobox/code.js',		'DemoScripts.js'	] } ); importScriptPage('ShowHide/code.js', 'dev'); ( function( $ ) {	// CONFIG	var config = window.ShowHideConfig = $.extend( true, { autoCollapse: 2, userLang: true, brackets: '[]', linkBefore: false, // Bulgarian bg: { show: "Покажи", hide: "Скрий", showAll: "Покажи всички", hideAll: "Скрий всички" },		// German de: { show: "anzeigen", hide: "verbergen", showAll: "alle anzeigen", hideAll: "alle verbergen" },		// English en: { show: "show", hide: "hide", showAll: "show all", hideAll: "hide all" },		// Spanish es: { show: "Mostrar", hide: "Ocultar", showAll: "Mostrar todo", hideAll: "Ocultar todo" },		// French fr: { show: "afficher", hide: "masquer", showAll: "tout afficher", hideAll: "tout masquer" },		// Hungarian hu: { show: "kibontás", hide: "elrejtés", showAll: "összes kibontása", hideAll: "összes elrejtése" },		// Italian it: { show: "Mostra", hide: "Nascondi", showAll: "Mostra tutti", hideAll: "Nascondi tutti" },		// Japanese ja: { show: "表示", hide: "非表示", showAll: "すべて表示", hideAll: "すべて非表示" },		// Korean ko: { show: "보이기", hide: "숨기기", showAll: "모두 보이기", hideAll: "모두 숨기기" },		// Dutch nl: { show: "tonen", hide: "verbergen", showAll: "alles tonen", hideAll: "alles verbergen" },		// Polish pl: { show: "Pokaż", hide: "Ukryj", showAll: "Pokaż wszystko", hideAll: "Ukryj wszystko" },		// Portuguese pt: { show: "Mostrar", hide: "Esconder", showAll: "Expandir Todos", hideAll: "Esconder Todos" },		// Brazilian Portuguese 'pt-br': { show: "Mostrar", hide: "Esconder", showAll: "Expandir Todos", hideAll: "Esconder Todos" },		// Russian ru: { show: "Открыть", hide: "Скрыть", showAll: "Открыть все", hideAll: "Скрыть все" },		// Vietnamese vi: { show: "hiện", hide: "ẩn", showAll: "hiện tất cả", hideAll: "ẩn tất cả" },		// Chinese zh: { show: "显示", hide: "隐藏", showAll: "全部显示", hideAll: "全部隐藏" }		// Make a post on the talkpage if you have i18n updates }, window.ShowHideConfig || {} );	// i18n function	function msg( name ) {		if ( config.userLang && wgUserLanguage in config && name in config[wgUserLanguage] ) {			return config[wgUserLanguage][name];		}		if ( wgContentLanguage in config && name in config[wgContentLanguage] ) {			return config[wgContentLanguage][name];		}		return config.en[name];	}	// common	$.fn.onLink = function( fn ) {		return this.bind( 'click keypress', function(e) { if ( e.type === 'click' || ( e.type === 'keypress' && ( e.keyCode === 13 || e.charCode === 32 ) ) ) { fn.call(this, e); }		} );	};	/** Collapsible tables using jQuery	 *	 * Description: Allows tables to be collapsed, showing only the header.	 */	function collapseTable( node, state ) {		var	$table = $( node ),			$button = $table.find( 'tr:first > th:last .collapseLink' );		if ( !$table.length || !$button.length ) {			return false;		}		if ( typeof state === 'boolean' ) {			$table.toggleClass( 'collapsed', !state );		} else {			$table.toggleClass( 'collapsed' );		}		var hidden = $table.hasClass( 'collapsed' );		$table.find( '> * > tr' ).not( ':first, .nocollapse' )[hidden?"hide":"show"];		$button.text( msg( hidden ? "show" : "hide" ) );		return true;	} /* Default style for navigation boxes */ .navbox {                     /* Navbox container style */    box-sizing: border-box;    border: 1px solid #a2a9b1;    width: 100%;    clear: both;    font-size: 88%;    text-align: center;    padding: 1px;    margin: 1em auto 0;       /* Prevent preceding content from clinging to navboxes */ } .navbox .navbox { margin-top: 0;           /* No top margin for nested navboxes */ } .navbox + .navbox { margin-top: -1px;        /* Single pixel border between adjacent navboxes */ } .navbox-inner, .navbox-subgroup { width: 100%; } .navbox-group, .navbox-title, .navbox-abovebelow { padding: 0.25em 1em;     /* Title, group and above/below styles */ line-height: 1.5em; text-align: center; } th.navbox-group {            /* Group style */ white-space: nowrap; /* @noflip */ text-align: right; } .navbox, .navbox-subgroup { background: #fdfdfd;     /* Background color */ } .navbox-list { line-height: 1.5em; border-color: #fdfdfd;   /* Must match background color */ } /* cell spacing for navbox cells */ tr + tr > .navbox-abovebelow, tr + tr > .navbox-group, tr + tr > .navbox-image, tr + tr > .navbox-list {   /* Borders above 2nd, 3rd, etc. rows */ border-top: 2px solid #fdfdfd; /* Must match background color */ } .navbox th, .navbox-title { background: #ccccff;     /* Level 1 color */ } .navbox-abovebelow, th.navbox-group, .navbox-subgroup .navbox-title { background: #ddddff;     /* Level 2 color */ } .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { background: #e6e6ff;     /* Level 3 color */ } .navbox-even { background: #f7f7f7;     /* Even row striping */ } .navbox-odd { background: transparent; /* Odd row striping */ } .navbox .hlist td dl, .navbox .hlist td ol, .navbox .hlist td ul, .navbox td.hlist dl, .navbox td.hlist ol, .navbox td.hlist ul { padding: 0.125em 0;      /* Adjust hlist padding in navboxes */ }

/* Default styling for Navbar template */ .navbar { display: inline; font-size: 88%; font-weight: normal; } .navbar ul { display: inline; white-space: nowrap; } .mw-body-content .navbar ul { line-height: inherit; } .navbar li { word-spacing: -0.125em; } .navbar.mini li abbr[title] { font-variant: small-caps; border-bottom: none; text-decoration: none; cursor: inherit; } /* Navbar styling when nested in infobox and navbox */ .infobox .navbar { font-size: 100%; } .navbox .navbar { display: block; font-size: 100%; } .navbox-title .navbar { /* @noflip */ float: left; /* @noflip */ text-align: left; /* @noflip */ margin-right: 0.5em; }

function createCollapseButtons { var NavigationBoxes = []; $( 'table.collapsible' ).each( function {			NavigationBoxes.push(this);			var	$buttonLink = $( ' ' ).text( msg( "hide" ) ).css({ cursor: "pointer" }).onLink( function( e ) { collapseTable( $(this).closest('table') ); } ),				$button = $( " " ).css( { "float": "right", textAlign: "right", fontWeight: "normal", width: "6em", marginLeft: "-100%" } );			$button.append( document.createTextNode(config.brackets.substr(0, config.brackets.length/2)), $buttonLink, config.brackets.substr(config.brackets.length/2) );			var $header = $( this ).find( 'tr:first > th:last' ).prepend($button);		} ); // if more Navigation Bars found than Default: hide all if ( $( NavigationBoxes ).filter( '.autocollapse' ).length >= config.autoCollapse ) { $( NavigationBoxes ).filter( '.autocollapse' ).each( function { collapseTable( this, false ); } ); }		$( NavigationBoxes ).filter( '.collapsed' ).each( function { collapseTable( this, false ); } ); }	$( createCollapseButtons ); /** Dynamic Navigation Bars with jQuery *	 * Base Description: See Wikipedia:Wikipedia:NavFrame. */	// shows and hides content and picture (if available) of navigation bars function toggleNavigationBar( node ) { var	$navFrame = $( node ), $navToggle = $navFrame.find( '.NavHead:first .collapseLink' ); if ( !$navFrame.length || !$navToggle.length ) { return false; }		$navFrame.toggleClass( 'NavVisible' ); $navFrame.find( '.NavPic, .NavContent' ).not( $navFrame.find( '.NavFrame .NavPic' ) ).not( $navFrame.find( '.NavFrame .NavContent' ) ).slideToggle; $navToggle.text( msg( $navFrame.hasClass( 'NavVisible' ) ? "hide" : "show" ) ); return true; }	// adds show/hide-button to navigation bars function createNavigationBarToggleButton { var NavFrames = $( '.NavFrame' ).addClass( 'NavVisible' ).each( function {			var	$navHead = $( this ).find( '.NavHead:first' ),				$buttonLink = $( ' ' ).text( msg( "hide" ) ).onLink( function ( e ) { toggleNavigationBar( $( this ).closest( '.NavFrame' ) ); } ),				$button = $( ' ' );			$navHead.filter( 'legend' ).append( ' - ' );			if ( config.brackets ) {				$button.append( document.createTextNode(config.brackets.substr(0, config.brackets.length/2)), $buttonLink, config.brackets.substr(config.brackets.length/2) );			} else {				$button.append( $buttonLink );			}			$navHead[config.linkBefore?"prepend":"append"]($button);		} ); // if more Navigation Bars found than Default: hide all if ( NavFrames.length >= config.autoCollapse ) { NavFrames.not( '.noautocollapse' ).each( function { toggleNavigationBar(this); } ); } else { NavFrames.filter( '.collapsed' ).each( function { toggleNavigationBar(this); } ); }		return true; }	$( createNavigationBarToggleButton ); $( function {		$( '.NavGlobal' ).each( function  { $( ' ' ).append(				document.createTextNode( '[' ),				$( ' ' ).text( msg( "showAll" ) ).onLink( function ( e ) { $( '.NavFrame' ).each( function { if ( !$( this ).hasClass( 'NavVisible' ) ) toggleNavigationBar(this); } ); } ),				']'			).appendTo( this ); $( this ).append( ' ' ); $(' ').append(				document.createTextNode( '[' ),				$( ' ' ).text( msg( "hideAll" ) ).onLink( function ( e ) { $( '.NavFrame' ).each( function { if ( $( this ).hasClass( 'NavVisible' ) ) toggleNavigationBar(this); } ); } ),				']'			).appendTo( this ); } );	} ); } )( jQuery ); /*

/* Standard Navigationsleisten, aka box hiding thingy from .de. Documentation at NavFrame. */ div.NavFrame { margin: 0; padding: 4px; border: 1px solid #aaa; text-align: center; border-collapse: collapse; font-size: 95%; } div.NavFrame + div.NavFrame { border-top-style: none; border-top-style: hidden; } div.NavPic { background-color: #fff; margin: 0; padding: 2px; /* @noflip */ float: left; } div.NavFrame div.NavHead { height: 1.6em; font-weight: bold; background-color: #ccf; position: relative; } div.NavFrame p, div.NavFrame div.NavContent, div.NavFrame div.NavContent p { font-size: 90%; } div.NavEnd { margin: 0; padding: 0; line-height: 1px; clear: both; } a.NavToggle { position: absolute; top: 0; /* @noflip */ right: 3px; font-weight: normal; font-size: 90%; }

/* Make the list of references smaller */ ol.references, div.reflist, div.refbegin { font-size: 90%;           /* Default font-size */ margin-bottom: 0.5em; } div.refbegin-90 { font-size: 90%;          /* Option for normal fontsize in  */ } div.reflist ol.references { font-size: 90%;          /* Reset font-size when nested in div.reflist */ margin-bottom: 0;         /* Avoid double margin when nested in dev.reflist */ list-style-type: inherit; /* Enable custom list style types */ }