Last active
September 4, 2015 16:50
-
-
Save jwestbrook/45a967c02cbad2548875 to your computer and use it in GitHub Desktop.
Bootstrap 2.3.2 clearfix in mixins.less
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
//Fix the clearfix | |
.clearfix { | |
*zoom: 1; | |
&:before, | |
&:after { | |
display: table; | |
content: ""; | |
// Fixes Opera/contenteditable bug: | |
// http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952 | |
line-height: 0; | |
clear: both; | |
} | |
} |
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
//BEFORE | |
.clearfix { | |
*zoom: 1; | |
&:before, | |
&:after { | |
display: table; | |
content: ""; | |
// Fixes Opera/contenteditable bug: | |
// http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952 | |
line-height: 0; | |
} | |
&:after { | |
clear: both; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment