refactor: optimize tab cursor position calculation
This commit is contained in:
parent
dd339aea2b
commit
511df11546
1 changed files with 1 additions and 1 deletions
|
@ -841,7 +841,7 @@ $sidebar-display: "sidebar-display";
|
|||
|
||||
@for $i from 1 through $tab-count {
|
||||
$offset: $tab-count - $i;
|
||||
$top: calc(-#{$offset} * #{$tab-height} + (#{$tab-height} - #{$tab-cursor-height}) / 2);
|
||||
$top: (-$offset * $tab-height) + (($tab-height - $tab-cursor-height) * 0.5);
|
||||
|
||||
@if $i < $tab-count {
|
||||
> li.active:nth-child(#{$i}),
|
||||
|
|
Loading…
Reference in a new issue