mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-08 00:27:58 +00:00
refactor: optimize tab cursor position calculation
This commit is contained in:
parent
dd339aea2b
commit
511df11546
@ -841,7 +841,7 @@ $sidebar-display: "sidebar-display";
|
|||||||
|
|
||||||
@for $i from 1 through $tab-count {
|
@for $i from 1 through $tab-count {
|
||||||
$offset: $tab-count - $i;
|
$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 {
|
@if $i < $tab-count {
|
||||||
> li.active:nth-child(#{$i}),
|
> li.active:nth-child(#{$i}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user