Skip to content

Commit 2f31426

Browse files
committed
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 <[email protected]>
1 parent 0cd7ff7 commit 2f31426

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustdoc/html/static/rustdoc.css

+3
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ h1.fqn {
100100
border-bottom: 1px dashed;
101101
margin-top: 0;
102102
}
103+
h1.fqn > .in-band > a:hover {
104+
text-decoration: underline;
105+
}
103106
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
104107
border-bottom: 1px solid;
105108
}

0 commit comments

Comments
 (0)