diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-05-31 12:11:05 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-05-31 15:20:45 +0200 |
| commit | 9b637fa72e4d6a3aebcbf92cc4e18b94a7bf31b7 (patch) | |
| tree | fa14777e94c92844e1aa72c15d4f325aff03be54 /src/librustdoc | |
| parent | a2ba9ef1ff363341bae9a9ced37f14fee68538ec (diff) | |
Improve display of the separation between page items and siblings in the sidebar
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 2 | ||||
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index a7f3d70e462..19cb3950f47 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -1738,7 +1738,7 @@ fn print_sidebar(cx: &Context<'_>, it: &clean::Item, buffer: &mut Buffer) { // to navigate the documentation (though slightly inefficiently). if !it.is_mod() { - buffer.write_str("<p class=\"location\">"); + buffer.write_str("<p class=\"location\">Other items in<br>"); for (i, name) in cx.current.iter().take(parentlen).enumerate() { if i > 0 { buffer.write_str("::<wbr>"); diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index f3866e211d9..da38052763d 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -304,9 +304,12 @@ nav.sub { border: none; } -.location a:first-child { +.location a:first-of-type { font-weight: 500; } +.location a:hover { + text-decoration: underline; +} .block { padding: 0; |
