chore(deps): lock jekyll-sass-converter to v2.x on Linux-musl (#829)

Also, make the division formula backward compatible with `jekyll-sass-converter 2.x` (#848, #849)

Ref: https://github.com/jekyll/jekyll-sass-converter#migrate-from-2x-to-3x
This commit is contained in:
Cotes Chung 2023-01-12 05:30:24 +08:00
parent e8d20bf7b0
commit 808d3743e5
No known key found for this signature in database
GPG key ID: 0D9E54843167A808
2 changed files with 6 additions and 1 deletions

View file

@ -17,3 +17,8 @@ end
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
# Lock jekyll-sass-converter to 2.x on Linux-musl
if RUBY_PLATFORM =~ /linux-musl/
gem "jekyll-sass-converter", "~> 2.0"
end

View file

@ -841,7 +841,7 @@ $sidebar-display: "sidebar-display";
@for $i from 1 through $tab-count {
$offset: $tab-count - $i;
$top: -$offset * $tab-height + calc(($tab-height - $tab-cursor-height) / 2);
$top: calc(-#{$offset} * #{$tab-height} + (#{$tab-height} - #{$tab-cursor-height}) / 2);
@if $i < $tab-count {
> li.active:nth-child(#{$i}),