Difference between revisions of "MediaWiki:Common.css"

From Hablon
Jump to navigation Jump to search
 
(6 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['SkinTemplateNavigation'][] = 'fnHideVariousTabsFromAnonymousVector';
+
#ca-viewsource { display: none !important; }
 
+
#ca-talk { display: none !important; }
function fnHideVariousTabsFromAnonymousVector( SkinTemplate &$sktemplate, array &$links ) {
+
#ca-view { display: none !important; }
// the old '$content_actions' array is thankfully just a
+
#p-tb { display: none !important; }
// sub-array of this one
 
fnHideVariousNamespaceTabsFromAnonymous( $sktemplate, $links['namespaces'] );
 
fnHideVariousActionTabsFromAnonymous( $sktemplate, $links['views'] );
 
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; }