_clearfix.scss 456 B

12345678910111213141516171819202122232425
  1. @charset "UTF-8";
  2. /// Provides an easy way to include a clearfix for containing floats.
  3. ///
  4. /// @link http://cssmojo.com/latest_new_clearfix_so_far/
  5. ///
  6. /// @example scss - Usage
  7. /// .element {
  8. /// @include clearfix;
  9. /// }
  10. ///
  11. /// @example css - CSS Output
  12. /// .element::after {
  13. /// clear: both;
  14. /// content: "";
  15. /// display: table;
  16. /// }
  17. @mixin clearfix {
  18. &::after {
  19. clear: both;
  20. content: "";
  21. display: table;
  22. }
  23. }