From ad45d890981dcbc2c73e6ddd162f4aa84c779bab Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Wed, 6 Nov 2024 21:53:32 +0800 Subject: [PATCH] :bug: Fix: reading progress not support safari --- assets/css/_partials/_widgets/_reading-progress.scss | 8 ++++++++ layouts/partials/init/index.html | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/css/_partials/_widgets/_reading-progress.scss b/assets/css/_partials/_widgets/_reading-progress.scss index 2961297b..24e2a849 100644 --- a/assets/css/_partials/_widgets/_reading-progress.scss +++ b/assets/css/_partials/_widgets/_reading-progress.scss @@ -26,4 +26,12 @@ from { transform: scaleX(1); } to { transform: scaleX(0); } } + + /** + * After the CSS property `animation-timeline: scroll()` exceeds 90% browser support in the future, this code can be removed + * See https://caniuse.com/mdn-css_properties_animation-timeline_scroll + */ + @supports not (animation-timeline: scroll()) { + display: none; + } } diff --git a/layouts/partials/init/index.html b/layouts/partials/init/index.html index e855d2ac..6ea27012 100644 --- a/layouts/partials/init/index.html +++ b/layouts/partials/init/index.html @@ -1,4 +1,4 @@ -{{- .Scratch.Set "version" "v0.3.15-fd15415b" -}} +{{- .Scratch.Set "version" "v0.3.15-261f7b66" -}} {{- .Scratch.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}