From a4a6cb7b91451defbc8dcc04d34f98688a7c02f5 Mon Sep 17 00:00:00 2001 From: Swissky <12152583+swisskyrepo@users.noreply.github.com> Date: Sun, 3 Dec 2023 23:14:33 +0100 Subject: [PATCH] CSS - Update style for Chrome --- docs/custom.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/custom.css b/docs/custom.css index 0545596..0e7b02c 100644 --- a/docs/custom.css +++ b/docs/custom.css @@ -10,4 +10,19 @@ .md-sidebar{ width: auto; } +} + +/* Fix padding Chrome browsers */ +@supports selector(::-webkit-scrollbar) { + .md-sidebar__scrollwrap { + scrollbar-gutter: auto + } + + [dir=ltr] .md-sidebar__inner { + padding-right: 0; + } + + [dir=rtl] .md-sidebar__inner { + padding-left: calc(100% - 11.5rem) + } } \ No newline at end of file