Last active
October 19, 2015 11:07
-
-
Save jkappers/3176955 to your computer and use it in GitHub Desktop.
Micro Optimized CSS for Phark an Gilder/Levin Image Replacement
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
/* `Utilities | |
/******************************/ | |
/* Gilder/Levin & Phark image replacement */ | |
a.ir, a.phark { cursor:pointer; text-decoration:none } | |
a.ir:active, a.phark:active { outline:0 } | |
.ir, .phark { display:block; position:relative; overflow:hidden } | |
.ir span { display:block; height:100%; width:100%; position:absolute; top:0; left:0; background:no-repeat 0 0 } | |
.phark{text-indent:-999em} |
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
<!-- phark --> | |
<a class="phark">Text</a> | |
<!-- gilder/levin --> | |
<a class="ir">Text<span></span></a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment