forked from phoedos/pmd
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
2c4958e462 |
@ -6,15 +6,6 @@ $( document ).ready(function() {
|
|||||||
|
|
||||||
$('#toc').toc({ minimumHeaders: 0, listType: 'ul', showSpeed: 0, headers: 'h2,h3,h4' });
|
$('#toc').toc({ minimumHeaders: 0, listType: 'ul', showSpeed: 0, headers: 'h2,h3,h4' });
|
||||||
|
|
||||||
/* this offset helps account for the space taken up by the floating toolbar. */
|
|
||||||
$('#toc').on('click', 'a', function() {
|
|
||||||
var target = $(this.getAttribute('href'))
|
|
||||||
, scroll_target = target.offset().top
|
|
||||||
|
|
||||||
$(window).scrollTop(scroll_target - 10);
|
|
||||||
return false
|
|
||||||
})
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -79,8 +79,8 @@ h4[id],
|
|||||||
h5[id],
|
h5[id],
|
||||||
h6[id],
|
h6[id],
|
||||||
dt[id]{
|
dt[id]{
|
||||||
padding-top: 60px;
|
padding-top: 20px;
|
||||||
margin-top: -40px
|
margin-top: 0px
|
||||||
}
|
}
|
||||||
|
|
||||||
body h1 {margin-top:40px;}
|
body h1 {margin-top:40px;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user