Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @mixin clearfix($before, $after){
- @if $before{
- &:before{
- content: '';
- clear: both;
- display: block;
- width: 100%;
- }
- }
- @if $after{
- &:after{
- content: '';
- clear: both;
- display: block;
- width: 100%;
- }
- }
- }
- .clearfix--after:after{
- @include clearfix(false, true)
- }
- .clearfix--before:before{
- @include clearfix(true, false)
- }
- .clearfix{
- @extend .clearfix--after;
- @extend .clearfix--before;
- }
- .clear{
- clear: both;
- display: block;
- width: 100%;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement