diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2020-02-07 07:23:06 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2020-02-07 07:23:06 +0100 |
commit | 49ebe44092d2033f548c901ea406619713583103 (patch) | |
tree | cddd0697aff861c892e7196da39dd5727776970e /docs/pkgdown.js | |
parent | 9a1e685a636f7632fc77c7375f9d42735be2decc (diff) |
Update Makefile, update FOCUS URL
Diffstat (limited to 'docs/pkgdown.js')
-rw-r--r-- | docs/pkgdown.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/docs/pkgdown.js b/docs/pkgdown.js index eb7e83d..087a762 100644 --- a/docs/pkgdown.js +++ b/docs/pkgdown.js @@ -2,14 +2,12 @@ (function($) { $(function() { - $("#sidebar") - .stick_in_parent({offset_top: 40}) - .on('sticky_kit:bottom', function(e) { - $(this).parent().css('position', 'static'); - }) - .on('sticky_kit:unbottom', function(e) { - $(this).parent().css('position', 'relative'); - }); + $('.navbar-fixed-top').headroom(); + + $('body').css('padding-top', $('.navbar').height() + 10); + $(window).resize(function(){ + $('body').css('padding-top', $('.navbar').height() + 10); + }); $('body').scrollspy({ target: '#sidebar', |