mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-21 11:10:53 +00:00
Improve sidebar cursor position calculation (fix #338)
This commit is contained in:
parent
d5e08b05ab
commit
ab927e9954
@ -740,7 +740,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: -$offset * $tab-height + $tab-cursor-height / 2;
|
$top: -$offset * $tab-height + ($tab-height - $tab-cursor-height) / 2;
|
||||||
|
|
||||||
@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