Jump to content

User:Closed Limelike Curves/ColorfulButtons.js

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Closed Limelike Curves (talk | contribs) at 03:33, 15 February 2025 (Fix typo). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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"})
	}
);
*/