From 70e7da96311ddb45a462f44bcdcfe84ae0be9671 Mon Sep 17 00:00:00 2001 From: Joe Workman Date: Mon, 30 Aug 2021 16:44:51 -0700 Subject: [PATCH] fix: fix for xy-cell-offset for when var is passed The mixin fails if a CSS custom property is passed. --- scss/xy-grid/_position.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scss/xy-grid/_position.scss b/scss/xy-grid/_position.scss index b59e44a89..c7a753ed8 100644 --- a/scss/xy-grid/_position.scss +++ b/scss/xy-grid/_position.scss @@ -25,8 +25,8 @@ $offset: $size; @if ($gutter-type == 'margin') { - $gutter: rem-calc(xy-cell-gutters($gutters, $breakpoint) * 0.5); - $offset: if($gutter == 0, $size, calc(#{$size} + #{$gutter})); + $gutter: rem-calc(xy-cell-gutters($gutters, $breakpoint)); + $offset: if($gutter == 0, $size, calc(#{$size} + #{$gutter} / 2)); } @return $offset; } -- 2.47.2