Skip to content

Commit f308468

Browse files
committed
Merge pull request #36 from brousalis/master
Updated the clearfix mixin
2 parents 6c75b81 + 80dd68f commit f308468

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

less/preboot.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,14 @@
348348
// 2. The use of `table` rather than `block` is only necessary if using
349349
// `:before` to contain the top-margins of child elements.
350350
.clearfix() {
351+
*zoom: 1;
351352
&:before,
352353
&:after {
353354
content: " "; // 1
354355
display: table; // 2
356+
// Fixes Opera/contenteditable bug:
357+
// http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
358+
line-height: 0;
355359
}
356360
&:after {
357361
clear: both;

0 commit comments

Comments
 (0)