Created
February 11, 2014 15:10
-
-
Save robertmagnusson/8936636 to your computer and use it in GitHub Desktop.
Clearfix mixin
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 clearfix() { | |
&:before, | |
&:after { | |
content: ""; | |
display: table; | |
} | |
&:after { | |
clear: both; | |
} | |
} |
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
.article { | |
@include clearfix(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment