Adding Micro Clearfix which is new and uses less CSS than PIE Clearfix
This commit is contained in:
parent
ef18040a0b
commit
cb6068c9a3
@ -29,3 +29,16 @@
|
||||
}
|
||||
@include has-layout;
|
||||
}
|
||||
|
||||
// An update to the PIE clearfix method that reduces the amount of CSS required
|
||||
// [A new micro clearfix hack](http://nicolasgallagher.com/micro-clearfix-hack/) (25 April 2011)
|
||||
@mixin micro-clearfix {
|
||||
&:before, &:after {
|
||||
content: "";
|
||||
display: table;
|
||||
}
|
||||
&:after {
|
||||
clear: both;
|
||||
}
|
||||
@include has-layout;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user