Add class to last paragraph that contains next and previous navigation links to add bigger margin

This commit is contained in:
Mathieu David 2015-06-11 21:50:34 +02:00
parent f862575feb
commit 98633de498
2 changed files with 5 additions and 0 deletions

View File

@ -163,6 +163,10 @@ pre {
border-radius: 3px;
}
.nav-previous-next {
margin-top: 60px;
}
.left {
float: left;
}

View File

@ -54,6 +54,7 @@ document.addEventListener("DOMContentLoaded", function(event) {
for (var i = 0; i < toc.length; i++) {
if (toc[i].attributes['href'].value.split('/').pop() === href) {
var nav = document.createElement('p');
nav.className = 'nav-previous-next'
if (i > 0) {
var prevNode = toc[i-1].cloneNode(true);
prevNode.className = 'left';