-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from assetgraph/retina
Handle background-size on sprite images
- Loading branch information
Showing
7 changed files
with
156 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style type="text/css"> | ||
div { | ||
width: 59px; | ||
height: 59px; | ||
} | ||
.regular { | ||
background-image: url(settings.png?sprite=default); | ||
} | ||
.retina { | ||
background-image: url(settings@2x.png?sprite=default); | ||
background-size: 59px 59px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div class="regular"></div> | ||
<div class="retina"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style type="text/css"> | ||
.person-avatar { | ||
-sprite-selector-for-group: people; | ||
width: 59px; | ||
height: 59px; | ||
background-size: 59px; | ||
} | ||
|
||
.regular { | ||
background-image: url(settings.png?sprite=people); | ||
} | ||
.retina { | ||
background-image: url(settings@2x.png?sprite=people); | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div class="person-avatar" style="background-image: url(settings.png?sprite=people)"></div> | ||
<div class="person-avatar" style="background-image: url(settings@2x.png?sprite=people)"></div> | ||
<div class="person-avatar regular"></div> | ||
<div class="person-avatar retina"></div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.