From f0ac0d62c03319e6ac01a04c485b02cd96836f6f Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Mon, 21 Mar 2022 15:54:57 -0500 Subject: [PATCH] Style: Eliminate illegal browser scrollbar hacks that harm accesability --- pep_sphinx_extensions/pep_theme/static/style.css | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pep_sphinx_extensions/pep_theme/static/style.css b/pep_sphinx_extensions/pep_theme/static/style.css index cff70cb70ba..85a96acdaeb 100644 --- a/pep_sphinx_extensions/pep_theme/static/style.css +++ b/pep_sphinx_extensions/pep_theme/static/style.css @@ -19,7 +19,6 @@ :root {color-scheme: light dark} html { overflow-y: scroll; - -webkit-font-smoothing: antialiased; margin: 0; line-height: 1.4; font-weight: normal; @@ -279,16 +278,11 @@ dl.footnote dd { /* Sidebar formatting */ #pep-sidebar { - overflow-y: scroll; + overflow-y: auto; position: sticky; top: 0; height: 100vh; - scrollbar-width: thin; /* CSS Standards, not *yet* widely supported */ - scrollbar-color: var(--colour-scrollbar) transparent; } -#pep-sidebar::-webkit-scrollbar {width: 6px} -#pep-sidebar::-webkit-scrollbar-track {background: transparent} -#pep-sidebar::-webkit-scrollbar-thumb {background: var(--colour-scrollbar)} #pep-sidebar > h2 { font-size: 1.4rem; }