Revisions
-
Adam Stacoviak revised this gist
Sep 17, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,5 +4,5 @@ @media (-webkit-min-device-pixel-ratio: 2) & background-image: image-url($retina-name) -webkit-background-size: $width $height -
Adam Stacoviak revised this gist
Sep 17, 2011 . 3 changed files with 14 additions and 24 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,24 +0,0 @@ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ @mixin hires-graphic($file, $type, $width, $height) $file-name: $file + "." + $type $retina-name: $file + "-retina." + $type @media (-webkit-min-device-pixel-ratio: 2) & background-image: image-url($retina_name) -webkit-background-size: $width $height This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ .facebook display: block width: 20px height: 20px background-repeat: no-repeat @include hires-graphic('icon-facebook', 'png', 20px, 20px) -
jamesfinley created this gist
Aug 10, 2011 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ @mixin hires-graphic($file, $type, $width, $height) { $file_name: $file + '.' + $type; $retina_name: $file + '_2x.' + $type; @media (-webkit-min-device-pixel-ratio: 2) { & { background-image: url('../images/' + $retina_name); -webkit-background-size: $width $height; } } } /* Example Use: .facebook { display: block; width: 20px; height: 20px; background-repeat: no-repeat; @include hires-graphic('icon_facebook', 'png', 20px, 20px); } */