Commit | Line | Data |
---|---|---|
2d3ca553 | 1 | @charset "UTF-8"; |
2 | ||
3 | /// Provides an easy way to include a clearfix for containing floats. | |
4 | /// | |
5 | /// @link https://goo.gl/yP5hiZ | |
6 | /// | |
7 | /// @example scss | |
8 | /// .element { | |
9 | /// @include clearfix; | |
10 | /// } | |
11 | /// | |
12 | /// // CSS Output | |
13 | /// .element::after { | |
14 | /// clear: both; | |
15 | /// content: ""; | |
16 | /// display: block; | |
17 | /// } | |
18 | ||
19 | @mixin clearfix { | |
20 | &::after { | |
21 | clear: both; | |
22 | content: ""; | |
23 | display: block; | |
24 | } | |
25 | } |