]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Update scss/foundation/mixins/_clearfix.scss 1107/head
authorHansRue <gottkaiser85@web.de>
Wed, 31 Oct 2012 22:10:40 +0000 (23:10 +0100)
committerHansRue <gottkaiser85@web.de>
Wed, 31 Oct 2012 22:10:40 +0000 (23:10 +0100)
Added space to clearfix to improve compatibility with the Opera Browser.
Same as in HTML5Boilerplate: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css

scss/foundation/mixins/_clearfix.scss

index 7833a7a63915a131c06178892eece9799ce1a505..7309ac4c9d37970e2e7827cef0883235d6162d76 100644 (file)
@@ -1,12 +1,12 @@
 // The micro clearfix http://nicolasgallagher.com/micro-clearfix-hack/
 
   @mixin clearfix() { *zoom:1;
-    &:before, &:after { content: ""; display: table; }
+    &:before, &:after { content: " "; display: table; }
     &:after { clear: both; }
   }
   
   @mixin mobileClearfix() {
-    @include respondTo(smallScreen) { &:before, &:after { content: ""; display: table; }
+    @include respondTo(smallScreen) { &:before, &:after { content: " "; display: table; }
       &:after { clear: both; }
       &:last-child { float: none; }
     }