Difference between revisions of "MediaWiki:Common.css"

From LinnDocs
Jump to: navigation, search
m
m
Line 19: Line 19:
 
<!-- No [view source] tab on protected pages for users who can not delete -->
 
<!-- No [view source] tab on protected pages for users who can not delete -->
 
<?php global $wgTitle, $wgUser; if( $wgTitle->isProtected('edit') && !$wgUser->isAllowed('delete') ) { ?>
 
<?php global $wgTitle, $wgUser; if( $wgTitle->isProtected('edit') && !$wgUser->isAllowed('delete') ) { ?>
      <style type="text/css">
 
 
         div.vectorTabs ul li#ca-viewsource {  visibility: hidden;}
 
         div.vectorTabs ul li#ca-viewsource {  visibility: hidden;}
 
         div.vectorTabs ul li#ca-history {  visibility: hidden;}
 
         div.vectorTabs ul li#ca-history {  visibility: hidden;}
      </style>
 
 
     <?php } ?>  
 
     <?php } ?>  
  

Revision as of 08:03, 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') ) { ?>
        div.vectorTabs ul li#ca-viewsource {  visibility: hidden;}
        div.vectorTabs ul li#ca-history {  visibility: hidden;}
    <?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;
}