Improve display of the separation between page items and siblings in the sidebar
This commit is contained in:
parent
a2ba9ef1ff
commit
9b637fa72e
3 changed files with 16 additions and 3 deletions
|
|
@ -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>");
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue