]> git.lizzy.rs Git - rust.git/commit
auto merge of #14878 : vtsatskin/rust/rustdoc-sidebar-click-targets, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 14 Jun 2014 04:46:46 +0000 (04:46 +0000)
committerbors <bors@rust-lang.org>
Sat, 14 Jun 2014 04:46:46 +0000 (04:46 +0000)
commit2c6caad1bab0660ce8b4797c10d5530964d6e8d9
treecdb605ab0b2e93fbfc2efc643ad64c18c42c0b7d
parent1cde9d8cbb8dca25d381304f999e38e478dc6ba2
parent0188bebbb703baa7d3cc9608196d9cbd7707a1e0
auto merge of #14878 : vtsatskin/rust/rustdoc-sidebar-click-targets, r=alexcrichton

There was feedback gathered by @bjz which request for larger click targets in the rustdoc sidebar. Here's my attempt at that.

My only concern with this patch is the removal of `<br>` between sidebar links. This may break formatting for text-only viewers of this documentation. If there is a large enough demographic of people that will be affected, perhaps we can try switching the structure of each sidebar block sidebar to an `<ol>` with each item as a `<li>`.

* 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