aboutsummaryrefslogtreecommitdiff
path: root/docs/pkgdown.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/pkgdown.js')
-rw-r--r--docs/pkgdown.js15
1 files changed, 4 insertions, 11 deletions
diff --git a/docs/pkgdown.js b/docs/pkgdown.js
index eb7e83d..7e7048f 100644
--- a/docs/pkgdown.js
+++ b/docs/pkgdown.js
@@ -2,18 +2,11 @@
(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').scrollspy({
- target: '#sidebar',
- offset: 60
+ $('body').css('padding-top', $('.navbar').height() + 10);
+ $(window).resize(function(){
+ $('body').css('padding-top', $('.navbar').height() + 10);
});
$('[data-toggle="tooltip"]').tooltip();

Contact - Imprint