This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg> | |
<defs> | |
<pattern id="inner-grid" width="10" height="10" patternUnits="userSpaceOnUse"> | |
<rect width="100%" height="100%" fill="none" stroke="#ccc" stroke-width="0.5" /> | |
</pattern> | |
<pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"> | |
<rect width="100%" height="100%" fill="url(#inner-grid)" stroke="#ccc" stroke-width="1.5" /> | |
</pattern> | |
</defs> | |
<rect x="0" y="0" width="100%" height="100%" fill="url(#grid)"></rect> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* See https://stackoverflow.com/questions/14068103/disable-antialising-when-scaling-images */ | |
img.pixelperfect, | |
.pixelperfect img { | |
image-rendering: optimizeSpeed; /* STOP SMOOTHING, GIVE ME SPEED */ | |
image-rendering: -moz-crisp-edges; /* Firefox */ | |
image-rendering: -o-crisp-edges; /* Opera */ | |
image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */ | |
image-rendering: pixelated; /* Chrome */ | |
image-rendering: optimize-contrast; /* CSS3 Proposed */ | |
-ms-interpolation-mode: nearest-neighbor; /* IE8+ */ |