Difference between revisions of "MediaWiki:Common.css"

From Materia Islamica
Jump to: navigation, search
(Created page with "CSS placed here will be applied to all skins: div#mw-panel div.portal div.body ul li a { font-size:12px; color: #000000; } div#mw-panel div.portal div.body ul li...")
 
Line 38: Line 38:
 
div#mw-panel div.portal div.body ul li a:visited {
 
div#mw-panel div.portal div.body ul li a:visited {
 
   color: #;
 
   color: #;
 +
}
 +
 +
$wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous';
 +
 +
function wfHideVariousTabsFromAnonymous( &$hidetabcss ) {
 +
global $wgUser;
 +
 +
if ( !$wgUser->isLoggedIn() ) {
 +
$hidetabcss .= 'li#ca-history, li#ca-viewsource, li#ca-edit, li#ca-talk, .vectorMenu { display: none; }';
 +
}
 +
 +
return true;
 
}
 
}

Revision as of 06:10, 1 October 2016

/* CSS placed here will be applied to all skins */
div#mw-panel div.portal div.body ul li a {
    font-size:12px;
    color: #000000;
}
div#mw-panel div.portal div.body ul li a:visited {
    color: #000000;
}

/* Bring the text to 14px */
#bodyContent {
  font-size: 0.85em;
}

/* keep superscript and subscript text from breaking the line-spacing */
#bodyContent sup {
    font-size: smaller;
    vertical-align: baseline;
    position: relative;
    bottom: 0.33em;
}
#bodyContent sub {
    font-size: smaller;
    vertical-align: baseline;
    position: relative;
    bottom: -0.25em;;
}

/* MediaWiki.css page background colour change*/
pre, .mw-code {
    background-color: #EFE1BC;
}

div#mw-panel div.portal div.body ul li a {
   font-size:16px;
   color: #;
}
div#mw-panel div.portal div.body ul li a:visited {
   color: #;
}

$wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous';

function wfHideVariousTabsFromAnonymous( &$hidetabcss ) {
	global $wgUser;

	if ( !$wgUser->isLoggedIn() ) {
		$hidetabcss .= 'li#ca-history, li#ca-viewsource, li#ca-edit, li#ca-talk, .vectorMenu { display: none; }';
	}

	return true;
}