Last active
December 26, 2015 19:08
-
-
Save imlinus/7198783 to your computer and use it in GitHub Desktop.
ir (hide-text) mixin/placeholder
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
@mixin ir { | |
border: 0; | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
background-color: transparent; | |
} | |
%ir { | |
@include ir; | |
} | |
// usage | |
.logotype { | |
width: 100px; | |
height: 50px; | |
background-image: url('path/to/image.png'); | |
h1 { @extend %ir; } | |
} |
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
<div class="logotype"> | |
<h1>Company name</h1> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment