From 808d3743e525a8e6cb9cbb5d155c790f4bb61918 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 12 Jan 2023 05:30:24 +0800 Subject: [PATCH] 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 --- Gemfile | 5 +++++ _sass/addon/commons.scss | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 6438466..9a7bf74 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index a65915c..8ac6f7d 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -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}),