hacker.tours-website/themes/zen/assets/sass/mixins/clearfix/_clearfix.scss
2024-06-13 22:14:05 +02:00

20 lines
410 B
SCSS

// clearfix()
//
// Allows the bottom of an element to extend to the bottom of all floated
// children elements. @see http://nicolasgallagher.com/micro-clearfix-hack/
//
// We use the micro-clearfix, optimized for use in `@extend` where fewer `&` is
// better.
@mixin clearfix() {
&::before {
content: '';
display: table;
}
&::after {
content: '';
display: table;
clear: both;
}
}