FIX horizontal alignment shifts when vertical scroll bar appears

Common problem. 

Quite visible if (i) a page's content fits within the browser window's height when the table of contents dropdown is closed but (ii) the content no longer fits vertically when the table of contents dropdown is opened. When this happens, a vertical scroll bar appears in the browser and the page's horizontal alignment shifts by the scroll bar width.  

@frankmullenger I also noticed this in swipestripe docs :)
This commit is contained in:
David Alexander 2016-08-10 11:31:12 +12:00 committed by GitHub
parent d495a68681
commit 594b92063a
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ html {
padding-bottom: 40px;
-webkit-font-smoothing: antialiased;
box-sizing: border-box;
overflow-y: scroll;
}
*, *:before, *:after {