make-col-offset-mixin
All checks were successful
deploy / testbuild (push) Successful in 2m17s
deploy / Update templates on Mailgun (push) Has been skipped

This commit is contained in:
Untone 2024-10-08 22:53:58 +03:00
parent 8ba69a5f7f
commit bb483ab640

View File

@ -129,3 +129,8 @@ $container-padding-x: $grid-gutter-width * 0.5;
max-width: 100%; max-width: 100%;
} }
} }
@mixin make-col-offset($size, $columns: $grid-columns) {
$num: calc($size / $columns);
margin-left: if($num == 0, 0, calc(100% * $num));
}