Skip to content

Instantly share code, notes, and snippets.

@gpessia
Created October 4, 2012 09:16
Show Gist options
  • Save gpessia/3832453 to your computer and use it in GitHub Desktop.
Save gpessia/3832453 to your computer and use it in GitHub Desktop.
Cross Browser Opacity - Sublime Text Snippets
<snippet>
<content><![CDATA[
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:50})"; ${3:/* IE 8 */}
filter: alpha(opacity=${1:50}); ${3:/* IE 5-7 */}
-moz-opacity: ${2:0.5}; ${3:/* Netscape */}
-khtml-opacity: ${2:0.5}; ${3:/* Safari 1.x */}
opacity: ${2:0.5}; ${3:/* Good browsers */}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>opacity</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment