Skip to content

Commit d7bcb40

Browse files
committed
refactor: update deprecated syntax for SASS division
1 parent 09e4ad2 commit d7bcb40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_sass/addon/commons.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ $sidebar-display: "sidebar-display";
816816
&:last-child {
817817
a {
818818
position: relative;
819-
left: $cursor-width / 2;
819+
left: calc($cursor-width / 2);
820820
width: 100%;
821821
}
822822

@@ -842,7 +842,7 @@ $sidebar-display: "sidebar-display";
842842

843843
@for $i from 1 through $tab-count {
844844
$offset: $tab-count - $i;
845-
$top: -$offset * $tab-height + ($tab-height - $tab-cursor-height) / 2;
845+
$top: -$offset * $tab-height + calc(($tab-height - $tab-cursor-height) / 2);
846846

847847
@if $i < $tab-count {
848848
> li.active:nth-child(#{$i}),

0 commit comments

Comments
 (0)