diff --git a/css/custom.css b/css/custom.css index adae11c199..f5fd902bb0 100644 --- a/css/custom.css +++ b/css/custom.css @@ -62,8 +62,13 @@ body .content-root { margin-right: auto; margin-left: auto; margin-top: 50px; - margin-bottom: 181px; + margin-bottom: 0; } + +.menubar.fixed.leaveroomforfooter { + margin-bottom: 183px; +} + .header-subnav li a:active { color: #f09 !important; } @@ -78,7 +83,7 @@ color: #f09 !important; padding: 0 !important; } -@media (min-width: 768px) { +@media (min-width: 720px) { .menubar { right: 794px; } @@ -173,7 +178,7 @@ color: #f09 !important; font-size: 14px; } -@media (max-width: 768px) { +@media (max-width: 720px) { .right { float: left; diff --git a/gatewayd.html b/gatewayd.html index 7f7fa0a66b..44dd219a98 100644 --- a/gatewayd.html +++ b/gatewayd.html @@ -66,9 +66,9 @@ mixpanel.init("132d42885e094171f34467fc54da6fab"); fetcher: Flatdoc.file('gatewayd.md') }); - + diff --git a/js/fixsidebarscroll.js b/js/fixsidebarscroll.js new file mode 100644 index 0000000000..042d1ba8a6 --- /dev/null +++ b/js/fixsidebarscroll.js @@ -0,0 +1,7 @@ +$(window).scroll(function() { + if($(window).scrollTop() + $(window).height() > $(document).height() - 183) { + $(".menubar.fixed").addClass("leaveroomforfooter"); + } else { + $(".menubar.fixed").removeClass("leaveroomforfooter"); + } +}); diff --git a/ripple-rest.html b/ripple-rest.html index c9f79760cd..e064970b63 100644 --- a/ripple-rest.html +++ b/ripple-rest.html @@ -67,8 +67,8 @@ mixpanel.init("132d42885e094171f34467fc54da6fab"); fetcher: Flatdoc.file('ripplerest_api.md') }); - + diff --git a/rippled-apis.html b/rippled-apis.html index 36e3a7efb8..b5cbab8b54 100644 --- a/rippled-apis.html +++ b/rippled-apis.html @@ -15,8 +15,8 @@ - + + @@ -73,9 +73,9 @@ mixpanel.init("132d42885e094171f34467fc54da6fab"); fetcher: Flatdoc.file('websocket_api.md') }); --> - + diff --git a/transactions.html b/transactions.html index 4be522995e..2b2e80bdf2 100644 --- a/transactions.html +++ b/transactions.html @@ -69,6 +69,7 @@ mixpanel.init("132d42885e094171f34467fc54da6fab"); + diff --git a/vendor/flatdoc/v/0.8.0/theme-white/style.css b/vendor/flatdoc/v/0.8.0/theme-white/style.css index ddff9f6611..63234c07c3 100644 --- a/vendor/flatdoc/v/0.8.0/theme-white/style.css +++ b/vendor/flatdoc/v/0.8.0/theme-white/style.css @@ -685,12 +685,12 @@ a.big.button:hover:visited { border-bottom: solid 1px #dfe2e7; } } -@media (max-width: 768px) /* Mobile and tablet */ { +@media (max-width: 990px) /* Mobile and tablet */ { .menubar { display: none; } } -@media (min-width: 768px) /* Desktop */ { +@media (min-width: 990px) /* Desktop */ { .content-root { padding-left: 230px; }