Last active
August 22, 2016 16:25
-
-
Save paulhhowells/a15afe207ac28397c16c95a8e2b371e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A better (Drupal friendly) float fix that does not hide overflow. | |
// Read more at: http://nicolasgallagher.com/micro-clearfix-hack/ | |
@mixin float-fix () { | |
// IE 6 & 7 | |
*zoom: 1; | |
&:before, | |
&:after { | |
// Space content avoids an Opera bug when contenteditable attribute is used elsewhere in the document. | |
content: " "; | |
// Use of `table` instead of `block` is necessary when using `:before` to contain the top margins of child elements. | |
display: table; | |
// Firefox 2. | |
visibility: hidden; | |
} | |
&:after { | |
clear: both; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment