1
Fork 0

rustdoc: Larger click areas for sidebar items

* Change links to display:block for click larger targets
* Remove linebreaks due to extra space
* Adjust margins so that element spacing stays the same
* Sidebar item hover background colour chosen from <pre> styling
This commit is contained in:
Valentin Tsatskin 2014-06-13 15:15:37 -07:00
parent e7f11f20e5
commit 0188bebbb7
3 changed files with 9 additions and 6 deletions

View file

@ -647,7 +647,6 @@
}
div.append($('<a>', {'href': '../' + crates[i] + '/index.html',
'class': klass}).text(crates[i]));
div.append($('<br>'));
}
sidebar.append(div);
}