From: Tom Hughes Date: Sun, 13 Sep 2015 18:29:57 +0000 (+0100) Subject: Use SVG for sprites for better high DPI support X-Git-Tag: live~4038 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/0d0498d303f36749cd48d8e6eadb1abafe3f828c Use SVG for sprites for better high DPI support --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 009082e28..9b795aeab 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -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; }