1
Fork 0

rustdoc: Restore underline text decoration on hover for FQN in header

This causes the components of FQN's to behave similarly to other links
in the contents of rustdoc-styled pages.

I (and I hope others at least in part) have found the prior design to be
somewhat confusing, as it is not clear (upon hovering) that the various
parts of the FQN are actually links that the user can navigate to.

In short, this patch makes links in the FQN have an underline when the
user hovers over them, more clearly indicating that they can be used for
navigation.

Signed-off-by: Kristofer Rye <kristofer.rye@gmail.com>
This commit is contained in:
Kristofer Rye 2020-07-05 11:56:41 -05:00
parent 0cd7ff7ddf
commit 2f314268b8
No known key found for this signature in database
GPG key ID: 7B91DEA088C460CC

View file

@ -100,6 +100,9 @@ h1.fqn {
border-bottom: 1px dashed; border-bottom: 1px dashed;
margin-top: 0; margin-top: 0;
} }
h1.fqn > .in-band > a:hover {
text-decoration: underline;
}
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) { h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
border-bottom: 1px solid; border-bottom: 1px solid;
} }