A Year's in review of the independent DanTDM Wiki Learn More >, Thank you!

MediaWiki:Gadget-fixedWidthToggle.css: Difference between revisions

From DanTDM Wiki
Jump to navigation Jump to search
Adding support to toggle between full width & fixed width on Desktop
 
fixed toggle icon link
 
Line 10: Line 10:


#pt-fw-enable a {
#pt-fw-enable a {
background-image: url('/mediawiki/images/8/8d/Fixed_width_on.png');
background-image: url('/load.php?format=original&image=exitFullscreen&variant=invert&modules=oojs-ui.styles.icons-media&skin=vector');
}
}


#pt-fw-disable a {
#pt-fw-disable a {
background-image: url('/mediawiki/images/a/a3/Fixed_width_off.png');
background-image: url('/load.php?format=original&image=fullScreen&variant=invert&modules=oojs-ui.styles.icons-media&skin=vector');
}
}

Latest revision as of 20:03, 22 May 2026

/**Credits to Minecraft Wiki for code: https://minecraft.wiki/w/MediaWiki:Gadget-fixedWidthToggle.css**/
#pt-fw-disable a,
#pt-fw-enable a {
	width: 14px;
	height: 14px;
	background-size: 14px 14px;
	display: block;
	margin-bottom: 0;
}

#pt-fw-enable a {
	background-image: url('/load.php?format=original&image=exitFullscreen&variant=invert&modules=oojs-ui.styles.icons-media&skin=vector');
}

#pt-fw-disable a {
	background-image: url('/load.php?format=original&image=fullScreen&variant=invert&modules=oojs-ui.styles.icons-media&skin=vector');
}