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 */
|
||||
|
||||
.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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue