Improve display of the separation between page items and siblings in the sidebar

This commit is contained in:
Guillaume Gomez 2021-05-31 12:11:05 +02:00
parent a2ba9ef1ff
commit 9b637fa72e
3 changed files with 16 additions and 3 deletions

View file

@ -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>");

View file

@ -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;