]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Update clearfix mixin with flexbox fix 8152/head
authorMarco Kaul <marcokaul@googlemail.com>
Fri, 12 Feb 2016 23:21:11 +0000 (00:21 +0100)
committerMarco Kaul <marcokaul@googlemail.com>
Fri, 12 Feb 2016 23:21:11 +0000 (00:21 +0100)
See http://danisadesigner.com/blog/flexbox-clear-fix-pseudo-elements/

Fixes #8148

scss/util/_mixins.scss

index fcb0e916d9c5473d59c13f9b943ac1184d1d4966..19f4a0ad327b60a3cdc048b0951037ecdf9170fb 100644 (file)
 }
 
 /// Applies the micro clearfix hack popularized by Nicolas Gallagher. Include this mixin on a container if its children are all floated, to give the container a proper height.
+/// The clearfix is augmented with specific styles to prevent borders in flexbox environments
 /// @link http://nicolasgallagher.com/micro-clearfix-hack/ Micro Clearfix Hack
+/// @link http://danisadesigner.com/blog/flexbox-clear-fix-pseudo-elements/ Flexbox fix
 @mixin clearfix {
   &::before,
   &::after {
     content: ' ';
     display: table;
+    flex-basis: 0;
+    order: 1;
   }
 
   &::after {