Difference between revisions of "MediaWiki:Common.css"

From Mustachian Hacks
Jump to navigation Jump to search
(trying to follow this page https://www.mediawiki.org/wiki/Manual:$wgFooterIcons)
(adding in poweredby also)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
  
$wgFooterIcons = [
+
$wgFooterIcons['poweredby']['myicon'] = [
"src" => "$wgResourceBasePath/resources/assets/personal-images/become_a_patron_button@2x.png",
+
"src" => "$wgResourceBasePath/resources/assets/personal-images/become_a_patron_button2x.png",
    // you may also use a direct path to the source, e.g. "http://example.com/my/custom/path/to/MyCustomLogo.png"
 
 
"url" => "https://www.patreon.com/mustachianhacks",
 
"url" => "https://www.patreon.com/mustachianhacks",
 
"alt" => "Patreon page for donations",
 
"alt" => "Patreon page for donations",
// For HiDPI support, you can specify paths to larger versions of the icon.
 
"srcset" =>
 
"/path/to/1.5x_version.png 1.5x, " .
 
"/path/to/2x_version.png 2x",
 
// If you have a non-default sized icon you can specify the size yourself.
 
"height" => "31",
 
"width" => "88",
 
 
];
 
];

Latest revision as of 22:05, 1 December 2019

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

$wgFooterIcons['poweredby']['myicon'] = [
	"src" => "$wgResourceBasePath/resources/assets/personal-images/become_a_patron_button2x.png",
	"url" => "https://www.patreon.com/mustachianhacks",
	"alt" => "Patreon page for donations",
];