Use SVG for sprites for better high DPI support
This commit is contained in:
parent
d377e8b4f2
commit
0d0498d303
1 changed files with 8 additions and 7 deletions
|
@ -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; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue