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)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
  
$wgFooterIcons['poweredby']['myicon'] = [
+
$wgFooterIcons = [
 
"src" => "$wgResourceBasePath/resources/assets/personal-images/become_a_patron_button@2x.png",
 
"src" => "$wgResourceBasePath/resources/assets/personal-images/become_a_patron_button@2x.png",
 
     // you may also use a direct path to the source, e.g. "http://example.com/my/custom/path/to/MyCustomLogo.png"
 
     // you may also use a direct path to the source, e.g. "http://example.com/my/custom/path/to/MyCustomLogo.png"

Revision as of 19:18, 29 September 2019

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

$wgFooterIcons = [
	"src" => "$wgResourceBasePath/resources/assets/personal-images/become_a_patron_button@2x.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",
	"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",
];