Difference between revisions of "MediaWiki:Common.css"

From LinnDocs
Jump to: navigation, search
m
m
Line 3: Line 3:
 
.tocnumber { display: none; }
 
.tocnumber { display: none; }
  
$wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous';
+
div.vectorTabs ul li#ca-history {
 +
  visibility: hidden;
 +
}
  
function wfHideVariousTabsFromAnonymous( &$hidetabcss ) {
+
div.vectorTabs ul  li#ca-viewsource {
global $wgUser;
+
  visibility: hidden;
 
 
if ( !$wgUser->isLoggedIn() ) {
 
$hidetabcss .= 'li#ca-history, li#ca-viewsource, li#ca-edit, li#ca-talk, .vectorMenu { display: none; }';
 
}
 
 
 
return true;
 
 
}
 
}

Revision as of 14:07, 19 March 2019

/* CSS placed here will be applied to all skins */

.tocnumber { display: none; }

div.vectorTabs ul li#ca-history {
   visibility: hidden;
}

div.vectorTabs ul  li#ca-viewsource {
   visibility: hidden;
}