* Update clearfix to use block instead of table display (also reorder properties for linting)
* update docs snippet for clearfix mixin—was apparently still using Less syntax and had old clearfix hack (even before the block change in this PR)
{% highlight scss %}
// Mixin itself
-.clearfix() {
- &:before,
- &:after {
- content: " ";
- display: table;
- }
- &:after {
+@mixin clearfix() {
+ &::after {
+ display: block;
+ content: "";
clear: both;
}
}
@mixin clearfix() {
&::after {
+ display: block;
content: "";
- display: table;
clear: both;
}
}