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
No edit summary |
(adj) |
||
Line 66: | Line 66: | ||
} |
} |
||
/* image thumbnail adjustments */ |
|||
img, .results .list-thumb:not(.list-thumb-none), |
|||
.ext-related-articles-card-thumb:not(.ext-related-articles-card-thumb-placeholder) { |
|||
image-rendering: crisp-edges; |
|||
image-rendering: pixelated; |
|||
} |
|||
.downscale img { |
|||
max-width: 100% !important; |
|||
height: auto !important; |
|||
} |
Revision as of 12:53, 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 {
font-family: 'Verdana', sans-serif;
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
.mw-body-content a:link { color: #00FF00; } /* normal unvisited links */
.mw-body-content a:link:visited { color: #00ffbb; } /* visited links */
.mw-body-content a:link:active { color: #FF0000; } /* active links */
.mw-body-content a:link.new { color: #FF0000; } /* new links */
.mw-body-content a:link.extiw { color: #3366BB; } /* interwiki links */
.mw-body-content a:link.external { color: #3366BB; } /* external links */
.mw-body-content a:link.stub { color: #772233; } /* hovered links */
$ COMPOSER=composer.local.json composer require --no-update mediawiki/hit-counters
$ composer update
}
/* image thumbnail adjustments */
img, .results .list-thumb:not(.list-thumb-none),
.ext-related-articles-card-thumb:not(.ext-related-articles-card-thumb-placeholder) {
image-rendering: crisp-edges;
image-rendering: pixelated;
}
.downscale img {
max-width: 100% !important;
height: auto !important;
}