terry-staging #8
@@ -8,8 +8,12 @@ body,
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
/* Only clip horizontal overflow on <html>; this propagates to the viewport
|
||||
and keeps the window as the vertical scroller. Adding overflow-x to <body>
|
||||
(which has height:100%) would force its computed overflow-y to `auto`,
|
||||
turning body into its own scroll box so window.scrollY never moves — which
|
||||
breaks scroll-position features like the back-to-top button. */
|
||||
html {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user