Skip to content

Instantly share code, notes, and snippets.

@mobywhale-chan
Created January 18, 2015 05:11
Show Gist options
  • Save mobywhale-chan/f0cc7b59644cd3d80411 to your computer and use it in GitHub Desktop.
Save mobywhale-chan/f0cc7b59644cd3d80411 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="box">
Box
</div>
<div class="box-plain">
Box plain
</div>
<div class="box-fancy">
Box fancy
</div>
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
@mixin clearfix() {
&:before,
&:after {
content: "";
display: table;
}
&:after {
clear: both;
}
}
.row {
@include clearfix;
}
.nav {
@include clearfix;
}
.row:before, .row:after {
content: "";
display: table;
}
.row:after {
clear: both;
}
.nav:before, .nav:after {
content: "";
display: table;
}
.nav:after {
clear: both;
}
<div class="box">
Box
</div>
<div class="box-plain">
Box plain
</div>
<div class="box-fancy">
Box fancy
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment