Difference between revisions of "MediaWiki:Common.css"
m |
m |
||
Line 9: | Line 9: | ||
/* history tab */ | /* history tab */ | ||
− | div.vectorTabs ul li#ca-history { | + | /*div.vectorTabs ul li#ca-history { |
visibility: hidden; | visibility: hidden; | ||
− | } | + | }*/ |
+ | |||
+ | #ca-nstab-main { display:none!important; } | ||
/* Source code tab*/ | /* Source code tab*/ | ||
− | div.vectorTabs ul li#ca-viewsource { | + | <!-- No [view source] tab on protected pages for users who can not delete --> |
+ | <?php global $wgTitle, $wgUser; if( $wgTitle->isProtected('edit') && !$wgUser->isAllowed('delete') ) { ?> | ||
+ | <style type="text/css"> | ||
+ | #ca-viewsource { display: block!important; } | ||
+ | #ca-history {display: block!important; } | ||
+ | </style> | ||
+ | <?php } ?> | ||
+ | |||
+ | /* div.vectorTabs ul li#ca-viewsource { | ||
visibility: hidden; | visibility: hidden; | ||
− | } | + | } */ |
/* Hide discussion tab */ | /* Hide discussion tab */ |
Revision as of 07:59, 8 April 2019
/* CSS placed here will be applied to all skins */ /*.tocnumber { display: none; } */ .noautonum .tocnumber { display: none; } /* history tab */ /*div.vectorTabs ul li#ca-history { visibility: hidden; }*/ #ca-nstab-main { display:none!important; } /* Source code tab*/ <!-- No [view source] tab on protected pages for users who can not delete --> <?php global $wgTitle, $wgUser; if( $wgTitle->isProtected('edit') && !$wgUser->isAllowed('delete') ) { ?> <style type="text/css"> #ca-viewsource { display: block!important; } #ca-history {display: block!important; } </style> <?php } ?> /* div.vectorTabs ul li#ca-viewsource { visibility: hidden; } */ /* Hide discussion tab */ div.vectorTabs ul li#ca-talk { display: none!important; } /*User Read tab */ /*div.vectorTabs ul li#ca-view { display:none!important; }*/ /* User Page tab */ div.vectorTabs ul li#ca-nstab-user { display: none!important; } /* Add arrows to toggle-blocks for collapsible elements */ .mw-collapsible-toggle-expanded.mw-collapsible-arrowtoggle, .mw-collapsible-toggle-expanded .mw-collapsible-arrowtoggle { padding-left: 20px !important; background-image: url('//docs.linn.co.uk/wiki/images/d/dd/SmallArrowDown.png'); background-repeat: no-repeat; background-position: left center; } .mw-collapsible-toggle-collapsed.mw-collapsible-arrowtoggle, .mw-collapsible-toggle-collapsed .mw-collapsible-arrowtoggle { padding-left: 20px !important; background-image: url('//docs.linn.co.uk/wiki/images/f/f7/SmallArrowRight.png'); background-repeat: no-repeat; background-position: left center; }