Difference between revisions of "MediaWiki:Common.css"

From Hablon
Jump to navigation Jump to search
 
(7 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 */
$wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous';
+
#ca-viewsource { display: none !important; }
 
+
#ca-talk { display: none !important; }
function wfHideVariousTabsFromAnonymous( &$hidetabcss ) {
+
#ca-view { display: none !important; }
global $wgUser;
+
#p-tb { display: none !important; }
 
 
if ( !$wgUser->isLoggedIn() ) {
 
$hidetabcss .= 'li#ca-history, li#ca-viewsource, li#ca-edit, li#ca-talk, .vectorMenu { display: none; }';
 
}
 
 
 
return true;
 
}
 

Latest revision as of 08:32, 18 April 2021

/* CSS placed here will be applied to all skins */
#ca-viewsource { display: none !important; }
#ca-talk { display: none !important; }
#ca-view { display: none !important; }
#p-tb { display: none !important; }