Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make clearfix mixin available as a class (Closes #45)

  • Loading branch information...
commit fc12aca6f665eb323a66d07bd5ec3c2cc50b2707 1 parent ade34bc
@yabawock authored
View
6 test/cases/less_to_sass_spec.rb
@@ -10,6 +10,12 @@ class LessToSassSpec < Bootstrap::Sass::Rails::Spec
app_css.must_include '.input-block-level {'
end
+ it 'should include the clearfix helper classes' do
+ app_css.must_include '.clearfix { *zoom: 1; }'
+ app_css.must_include '.clearfix:before, .clearfix:after { display: table; content: ""; line-height: 0; }'
+ app_css.must_include '.clearfix:after { clear: both; }'
+ end
+
end
private
View
3  vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss
@@ -24,6 +24,9 @@
clear: both;
}
}
+.clearfix {
+ @include clearfix();
+}
// Webkit-style focus
// ------------------
Please sign in to comment.
Something went wrong with that request. Please try again.