Skip to content

Instantly share code, notes, and snippets.

@terkel
Last active September 25, 2015 06:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terkel/881065 to your computer and use it in GitHub Desktop.
Save terkel/881065 to your computer and use it in GitHub Desktop.
_clearfix.scss
// http://nicolasgallagher.com/micro-clearfix-hack/
$support-ie: 8 !default;
@mixin clearfix {
@if $support-ie and $support-ie != 0 and $support-ie < 8 {
*zoom: 1;
}
&:before,
&:after {
content: " ";
display: table;
}
&:after {
clear: both;
}
}
%clearfix {
@include clearfix;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment