Permalink
Browse files

Image replacement updated to the "Kellum Method" (http://goo.gl/meG1Z)

  • Loading branch information...
Yann
Yann committed Mar 3, 2012
1 parent 7cc8ed5 commit 1b7ccad1a1821772fcdb419478108e253283a567
Showing with 2 additions and 2 deletions.
  1. +1 −1 DragCommands/Img replacement link.tmDragCommand
  2. +1 −1 DragCommands/Img replacement.tmDragCommand
@@ -12,7 +12,7 @@ echo -ne "\${1:#selector} a {\n display: block;\n"
sips -g pixelWidth "$TM_DROPPED_FILE"|awk '/pixelWidth/ { printf(" width: %dpx;", $2) }'
echo -ne "\n height: 0;\n font-size: 1em;\n"
sips -g pixelHeight "$TM_DROPPED_FILE"|awk '/pixelHeight/ { printf(" padding-top: %dpx;", $2) }'
-echo -ne "\n text-indent: -2000px;\n overflow: hidden;"
+echo -ne "\n text-indent: 100%;\n white-space: nowrap;\n overflow: hidden;"
echo -ne "\n background: url('\${2:$TM_DROPPED_FILE}') no-repeat;\n}\$0"</string>
<key>draggedFileExtensions</key>
<array>
@@ -9,7 +9,7 @@
sips -g pixelWidth "$TM_DROPPED_FILE"|awk '/pixelWidth/ { printf(" width: %dpx;", $2) }'
echo -ne "\n height: 0;\n font-size: 1em;\n"
sips -g pixelHeight "$TM_DROPPED_FILE"|awk '/pixelHeight/ { printf(" padding-top: %dpx;", $2) }'
-echo -ne "\n text-indent: -2000px;\n overflow: hidden;"
+echo -ne "\n text-indent: 100%;\n white-space: nowrap;\n overflow: hidden;"
echo -ne "\n background: url('\${2:$TM_DROPPED_FILE}') no-repeat;\n}\$0"</string>
<key>draggedFileExtensions</key>
<array>

0 comments on commit 1b7ccad

Please sign in to comment.