diff --git a/_config.yml b/_config.yml index 34809c6..e6ebedc 100644 --- a/_config.yml +++ b/_config.yml @@ -358,7 +358,7 @@ theme_color: body_scrollbar: # Place the scrollbar over the content. overlay: false - # Present the scrollbar even if the content is not overflowing. + # Reserving space for the scrollbar gutter even if the content is not overflowing. stable: false codeblock: diff --git a/source/css/_common/scaffolding/base.styl b/source/css/_common/scaffolding/base.styl index e4cc1b1..b757841 100644 --- a/source/css/_common/scaffolding/base.styl +++ b/source/css/_common/scaffolding/base.styl @@ -27,7 +27,7 @@ body { } if (hexo-config('body_scrollbar.stable')) { - overflow-y: scroll; + scrollbar-gutter: stable; } }