- commit
- 134bb8afc689a9890bac582e0ebd6c0507e05983
- parent
- e2ffcbe5f863c9caa4bca4de5f0b0a2f67d74722
- Author
- Tobias Bengfort <tobias.bengfort@gmx.net>
- Date
- 2016-07-06 06:25
add clearfix module
Diffstat
| A | sass/clearfix.scss | 17 | +++++++++++++++++ |
1 files changed, 17 insertions, 0 deletions
diff --git a/sass/clearfix.scss b/sass/clearfix.scss
@@ -0,0 +1,17 @@
-1 1 ////
-1 2 /// @group clearfix
-1 3 ////
-1 4
-1 5 /// Default clearfix ([source](http://www.quirksmode.org/blog/archives/2005/03/clearing_floats.html))
-1 6 @mixin cearfix {
-1 7 overflow: hidden;
-1 8 }
-1 9
-1 10 /// Alternative clearfix that does not use `overflow: hidden` ([source](http://nicolasgallagher.com/micro-clearfix-hack/))
-1 11 @mixin pie-clearfix {
-1 12 &:after {
-1 13 content: " ";
-1 14 display: block;
-1 15 clear: both;
-1 16 }
-1 17 }