Last active
January 3, 2016 17:38
-
-
Save atelierbram/8496533 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
.container-with-floated-children:before, .container-with-floated-children:after { | |
content: " "; | |
display: table; | |
} | |
.container-with-floated-children:after { | |
clear: both; | |
} | |
br { | |
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
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
%clearfix { | |
&:before, | |
&:after { | |
content: " "; | |
display: table; | |
} | |
&:after { | |
clear: both; | |
} | |
} | |
// example of usage | |
.container-with-floated-children { | |
@extend %clearfix; | |
} | |
%clear { | |
clear: both; | |
} | |
br { | |
@extend %clear; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment