MediaWiki:Common.css: Difference between revisions

From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
Content added Content deleted
(2px pad right)
mNo edit summary
Line 60: Line 60:
.mw-collapsible-toggle mw-collapsible-toggle-default mw-collapsible-toggle-expanded {
.mw-collapsible-toggle mw-collapsible-toggle-default mw-collapsible-toggle-expanded {
padding-right:2px;
padding-right:2px;
}

/* Links */
a { color: #00f; } /* normal unvisited links */
a:active { color: orange; } /* active links */
a:visited { color: #00c; } /* visited links */
.mw-parser-output a.extiw { color: #06f; } /* interwiki links */
.mw-parser-output a.extiw:visited { color: #3366BB; }
.mw-parser-output a.external { color: #06f; } /* external links */
.mw-parser-output a.external:visited { color: #0044CC; }

/* infoboxes */
.infobox {
font-size:95%;
margin:0 0 0.5em 1em;
width:300px;
float:right;
background-color: #f8f9fa;
padding: 5px;
}
}

Revision as of 14:50, October 30, 2021

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

$UseCombinedLoginLink true


$wgDefaultSkin MonoBook

/* Changes the default font used for MediaWiki to Verdana (does not include headings or monospaced text): */
body {
  font-family: "Verdana", sans-serif;
}

/* Changes the default font used for MediaWiki headings to Verdana: */
#content h1, 
#content h2 {
  font-family: "Verdana", sans serif;
}

body {
     protected function useCombinedLoginLink() {
         $services = MediaWikiServices::getInstance();
         $authManager = $services->getAuthManager();
         $useCombinedLoginLink = $this->getConfig()->get( 'UseCombinedLoginLink' );
         if ( !$authManager->canCreateAccounts() || !$authManager->canAuthenticateNow() ) {
             // don't show combined login/signup link if one of those is actually not available
             $useCombinedLoginLink = true;
         }
  
         return $useCombinedLoginLink;
     }
  
     protected function buildLoginData( $returnto, $useCombinedLoginLink ) {
         $title = $this->getTitle();
  
         $loginlink = $this->getAuthority()->isAllowed( 'createaccount' )
             && $useCombinedLoginLink ? 'nav-login-createaccount' : 'pt-login';
  
         $login_url = [
             'text' => $this->msg( $loginlink )->text(),
             'href' => self::makeSpecialUrl( 'Userlogin', $returnto ),
             'active' => $title->isSpecial( 'Userlogin' )
                 || $title->isSpecial( 'CreateAccount' ) && $useCombinedLoginLink,
             'icon' => 'logIn'
         ];
  {
         :visited link - 
         interwiki:visited - 
         missing:visited link - #ffe100
         missing link - #ffe100
         local link - #ffe100
         external link - #ffe100

$ COMPOSER=composer.local.json composer require --no-update mediawiki/hit-counters
$ composer update

         	
	
     }

.mw-collapsible-toggle mw-collapsible-toggle-default mw-collapsible-toggle-expanded {
   padding-right:2px;
}