From d7bcb40cdecaf2c8741814271af9bd1b13e18d19 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 27 Dec 2022 21:50:21 +0800 Subject: [PATCH] refactor: update deprecated syntax for SASS division --- _sass/addon/commons.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index c1e1ae9..9e1b1f1 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -816,7 +816,7 @@ $sidebar-display: "sidebar-display"; &:last-child { a { position: relative; - left: $cursor-width / 2; + left: calc($cursor-width / 2); width: 100%; } @@ -842,7 +842,7 @@ $sidebar-display: "sidebar-display"; @for $i from 1 through $tab-count { $offset: $tab-count - $i; - $top: -$offset * $tab-height + ($tab-height - $tab-cursor-height) / 2; + $top: -$offset * $tab-height + calc(($tab-height - $tab-cursor-height) / 2); @if $i < $tab-count { > li.active:nth-child(#{$i}),