From d1d15dd02542154ea01e80056607a00aaff2f5b1 Mon Sep 17 00:00:00 2001 From: scottb Date: Sat, 7 Apr 2018 16:37:54 -0700 Subject: [PATCH] Mobile CSS update - adds scrolling inertia (#38443) --- docs/docsite/_themes/sphinx_rtd_theme/static/css/theme.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docsite/_themes/sphinx_rtd_theme/static/css/theme.css b/docs/docsite/_themes/sphinx_rtd_theme/static/css/theme.css index cbd66b70e27..e20a3466eff 100644 --- a/docs/docsite/_themes/sphinx_rtd_theme/static/css/theme.css +++ b/docs/docsite/_themes/sphinx_rtd_theme/static/css/theme.css @@ -1690,7 +1690,7 @@ code.code-large,.rst-content tt.code-large{font-size:90%} } @media screen and (min-width: 768px){.wy-nav-content-wrap{margin-top: 0px;margin-left: 300px;width: calc(100% - 300px);float:left;background:#fcfcfc;min-height:100%} } -.wy-nav-content{padding:1.618em 3.236em;height:100%;margin:auto;overflow-x: hidden;overflow-y: scroll;position: fixed;width: inherit;padding-bottom: 50px} +.wy-nav-content{padding:1.618em 3.236em;height:100%;margin:auto;overflow-x: hidden;overflow-y: scroll;position: fixed;width: inherit;padding-bottom: 50px;-webkit-overflow-scrolling: touch} .wy-body-mask{position:fixed;width:100%;height:100%;background:rgba(0,0,0,0.2);display:none;z-index:499} .wy-body-mask.on{display:block} footer{color:gray} @@ -1715,7 +1715,7 @@ footer span.commit code,footer span.commit .rst-content tt,.rst-content footer s .wy-side-nav-search{width:auto} .wy-menu.wy-menu-vertical{width:auto} .wy-nav-content-wrap{margin-left:0;top:15px;} -.wy-nav-content-wrap .wy-nav-content{padding:1.618em} +.wy-nav-content-wrap .wy-nav-content{padding:1.618em;padding-bottom: 100px} .wy-nav-content-wrap.shift{position:fixed;min-width:100%;left:85%;top:0;height:100%;overflow:hidden} } @media screen and (min-width: 1100px){.wy-nav-content-wrap{background:rgba(0,0,0,0.05)}