css: Always show scroll bar to prevent shifted content #19

Merged
jkimmel merged 1 commits from fbl/docs:scrollbar into master 2023-03-01 21:47:49 +01:00

1 Commits

Author SHA1 Message Date
Fabian Bläse 7873366ba6 css: Add scrollbar-gutter property to prevent shifted content
01-env build environment Details
02-git-checkout git checkout Details
03-hugo-version hugo version Details
04-hugo-build hugo build Details
05-preview website preview Details
Some pages require a scroll bar, some do not. If the scroll bar is
hidden on a page that do not require it (default behavior of most
browsers), centered content is shifted to the right slightly.

Fix this behavior by using the scrollbar-gutter property, so the
renderer automatically reserves space for the scrollbar.
2023-03-01 21:41:50 +01:00