Difference between revisions of "MediaWiki:Common.css"

(Created page with "→‎CSS placed here will be applied to all skins: if ( !$wgUser->isLoggedIn() ) { #n-templates { display: none; }")
 
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
if ( !$wgUser->isLoggedIn() ) {
+
 
#n-templates { display: none; }
+
<!-- No [view source] tab for anonymous users -->
 +
<?php global $wgUser; if( $wgUser->isAnon() ) { ?>
 +
      <style type="text/css">
 +
        #ca-viewsource { display: none !important; }
 +
      </style>
 +
    <?php } ?>

Revision as of 03:55, 23 January 2018

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

<!-- No [view source] tab for anonymous users -->
<?php global $wgUser; if( $wgUser->isAnon() ) { ?>
      <style type="text/css">
        #ca-viewsource { display: none !important; }
      </style> 
    <?php } ?>