Jump to content

User:Closed Limelike Curves/ColorfulButtons.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
$(".mw-logo").addClass("cdx-button")
$(".mw-logo-icon").addClass("vector-icon")

/* Ideally want to replace awkward background-cutout icons at some point. that way we can use an actual stroke outline instead of a wonky drop-shadow that disappears when you hover over the button.
*/
/*
$(":is(.vector-header-container, .mw-body-header, #vector-sticky-header) .cdx-button .vector-icon").each(function (index, element) {
		$(element).css({"background-image": $(element).css("mask-image"), "background-repeat": "no-repeat", "background-size": "cover"})
	}
);
*/