MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
(Created page with "→CSS placed here will be applied to all skins: #ca-nstab-main { display: none !important; } #ca-talk { display: none !important; }") |
mNo edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
#ca-nstab-main { display: none !important; } | #ca-nstab-main { display: none !important; } | ||
#ca-talk { display: none !important; } | #ca-talk { display: none !important; } | ||
#ca-history { display: none !important;} | |||
#ca-watch { display: none !important; } | |||
#ca-viewsource { display: none !important; } | |||
#ca-view { display: none !important; } | |||
$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; | |||
} |
Latest revision as of 09:31, 5 December 2022
/* CSS placed here will be applied to all skins */ #ca-nstab-main { display: none !important; } #ca-talk { display: none !important; } #ca-history { display: none !important;} #ca-watch { display: none !important; } #ca-viewsource { display: none !important; } #ca-view { display: none !important; } $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; }