Skip to content

Instantly share code, notes, and snippets.

@MichaelArestad
Created July 28, 2014 03:39
Show Gist options
  • Select an option

  • Save MichaelArestad/5fd4efee5179eb0b5e39 to your computer and use it in GitHub Desktop.

Select an option

Save MichaelArestad/5fd4efee5179eb0b5e39 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
@mixin clearfix() {
&:before, &:after {
content: "";
display: table;
}
&:after {
clear: both;
}
}
%clearfix {
@include clearfix;
}
.clear {
@extend %clearfix;
}
.foo {
foo: bar;
}
.this-is-now-cleared-for-launch {
@extend %clearfix;
some-property: goes here;
}
.mixin-version {
@include clearfix;
}
.clear:before, .this-is-now-cleared-for-launch:before, .clear:after, .this-is-now-cleared-for-launch:after {
content: "";
display: table;
}
.clear:after, .this-is-now-cleared-for-launch:after {
clear: both;
}
.foo {
foo: bar;
}
.this-is-now-cleared-for-launch {
some-property: goes here;
}
.mixin-version:before, .mixin-version:after {
content: "";
display: table;
}
.mixin-version:after {
clear: both;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment