Debian Codegraph @

sass-spec/spec/libsass/bourbon/lib/addons/_clearfix.scss

raw
1 // Micro clearfix provides an easy way to contain floats without adding additional markup
2 //
3 // Example usage:
4 //
5 // // Contain all floats within .wrapper
6 // .wrapper {
7 // @include clearfix;
8 // .content,
9 // .sidebar {
10 // float : left;
11 // }
12 // }
13
14 @mixin clearfix {
15 *zoom: 1;
16
17 &:before,
18 &:after {
19 content: " ";
20 display: table;
21 }
22
23 &:after {
24 clear: both;
25 }
26 }
27
28 // Acknowledgements
29 // Micro clearfix: [Nicolas Gallagher](http://nicolasgallagher.com/micro-clearfix-hack/)