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 */
.icon {
display:inline-block;
vertical-align:top;
width:20px;
height:20px;
background:transparent image-url("sprite.png") no-repeat 0 0;
text-indent:-9999px;
overflow:hidden;
display: inline-block;
vertical-align: top;
width: 20px;
height: 20px;
background: transparent image-url("sprite.png") no-repeat 0 0;
background-image: image-url("sprite.svg");
text-indent: -9999px;
overflow: hidden;
}
.icon.search { background-position: 0 0; }