Last active
December 10, 2015 09:29
-
-
Save being-frank/4414351 to your computer and use it in GitHub Desktop.
A re-usable SCSS mixin that replaces the original -9999px image replacement hack.
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 characters
@mixin hide-text { | |
overflow: hidden; | |
text-indent: 100%; | |
white-space: nowrap; | |
} | |
body h1:first-child { | |
@include hide-text; | |
background: url('https://www.google.com/images/srpr/logo3w.png') no-repeat 50% top; | |
height: 95px; | |
width: 275px; | |
} | |
.hide-text { | |
@include hide-text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment