Skip to content

Instantly share code, notes, and snippets.

@MichaelArestad
Created February 24, 2014 21:21
Show Gist options
  • Save MichaelArestad/9197395 to your computer and use it in GitHub Desktop.
Save MichaelArestad/9197395 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.5)
// Compass (v1.0.0.alpha.18)
// ----
%clearfix {
&:before,
&:after {
content: " "; // 1
display: table; // 2
}
&:after {
clear: both;
}
}
.clearfix {
@extend %clearfix;
}
.something {
@extend %clearfix;
background: red;
}
.clearfix:before, .something:before, .clearfix:after, .something:after {
content: " ";
display: table;
}
.clearfix:after, .something:after {
clear: both;
}
.something {
background: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment