Created
February 16, 2013 17:49
-
-
Save benjamincharity/4967882 to your computer and use it in GitHub Desktop.
Micro clearfix hack SCSS mixin.
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
// Micro clearfix hack | |
// http://nicolasgallagher.com/micro-clearfix-hack/ | |
@mixin clear { | |
&::before, &::after { | |
content: "\0020"; | |
display: table; | |
} | |
&:after { clear: both; } | |
@if $ie7-support { | |
& { zoom: 1; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment