MediaWiki:Common.less/mixins.less

From Old School RuneScape Wiki
Jump to navigation Jump to search
/*
  Less mixins to be used from any skin.
*/

// for HiDPI screens; otherwise icons appear blurry
.pixelate() {

	@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
	    image-rendering: -moz-crisp-edges; // firefox doesn't support unprefixed
	    image-rendering: pixelated; // chrome only supports this value
	    image-rendering: crisp-edges; // this is what should be used; only safari supports it
	}

}