From bb483ab640d499180736d107ee54caa60b14c877 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 8 Oct 2024 22:53:58 +0300 Subject: [PATCH] make-col-offset-mixin --- src/styles/_global.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/styles/_global.scss b/src/styles/_global.scss index dd684fd7..5cad55ba 100644 --- a/src/styles/_global.scss +++ b/src/styles/_global.scss @@ -129,3 +129,8 @@ $container-padding-x: $grid-gutter-width * 0.5; max-width: 100%; } } + +@mixin make-col-offset($size, $columns: $grid-columns) { + $num: calc($size / $columns); + margin-left: if($num == 0, 0, calc(100% * $num)); +}