mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
Add class to last paragraph that contains next and previous navigation links to add bigger margin
This commit is contained in:
parent
f862575feb
commit
98633de498
@ -163,6 +163,10 @@ pre {
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.nav-previous-next {
|
||||
margin-top: 60px;
|
||||
}
|
||||
|
||||
.left {
|
||||
float: left;
|
||||
}
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user