Created
December 2, 2014 07:33
-
-
Save airen/954539ac0e20018bc96c to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
%clearfix { | |
zoom: 1; | |
&:before, | |
&:after { | |
content:""; | |
display: table; | |
} | |
&:after{ | |
overflow: hidden; | |
clear:both; | |
} | |
} | |
@mixin hasBFC($bfc:true){ | |
@if $bfc { | |
overflow:hidden; | |
} | |
@else { | |
@extend %clearfix; | |
} | |
} | |
.text{ | |
@include hasBFC; | |
} | |
.test{ | |
@include hasBFC(false); | |
} |
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
.test { | |
zoom: 1; | |
} | |
.test:before, .test:after { | |
content: ""; | |
display: table; | |
} | |
.test:after { | |
overflow: hidden; | |
clear: both; | |
} | |
.text { | |
overflow: hidden; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment