From fbbbb012362a1c74fe722c7eb0d96619a73f0448 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Fri, 26 Jan 2024 13:11:25 +0800 Subject: [PATCH] [opt] add scroll-padding-top --- source/css/_common/html.styl | 1 + 1 file changed, 1 insertion(+) diff --git a/source/css/_common/html.styl b/source/css/_common/html.styl index 7f7a39b..a29896a 100644 --- a/source/css/_common/html.styl +++ b/source/css/_common/html.styl @@ -5,6 +5,7 @@ html font-size: $fs-root -webkit-text-size-adjust: 100% -ms-text-size-adjust: 100% + scroll-padding-top: 20px if hexo-config('style.smooth_scroll') scroll-behavior: smooth body