Use SVG for sprites for better high DPI support

This commit is contained in:
Tom Hughes 2015-09-13 19:29:57 +01:00
parent d377e8b4f2
commit 0d0498d303

View file

@ -151,13 +151,14 @@ small, aside {
/* Rules for icons */ /* Rules for icons */
.icon { .icon {
display:inline-block; display: inline-block;
vertical-align:top; vertical-align: top;
width:20px; width: 20px;
height:20px; height: 20px;
background:transparent image-url("sprite.png") no-repeat 0 0; background: transparent image-url("sprite.png") no-repeat 0 0;
text-indent:-9999px; background-image: image-url("sprite.svg");
overflow:hidden; text-indent: -9999px;
overflow: hidden;
} }
.icon.search { background-position: 0 0; } .icon.search { background-position: 0 0; }