Skip to content

Commit

Permalink
Style: Eliminate illegal browser scrollbar hacks that harm accesability
Browse files Browse the repository at this point in the history
  • Loading branch information
CAM-Gerlach committed Mar 21, 2022
1 parent 38b3f8c commit f0ac0d6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pep_sphinx_extensions/pep_theme/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit f0ac0d6

Please sign in to comment.