about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbinarycat <binarycat@envs.net>2025-01-14 12:25:25 -0600
committerbinarycat <binarycat@envs.net>2025-01-14 15:16:19 -0600
commit4f6902d1ef8c4fc1ef1453e426df435faebef78e (patch)
tree5b188d41795c8473d61cf8822d69be1ac277a9e7
parent2ae9916816a448fcaab3b2da461de754eda0055a (diff)
downloadrust-4f6902d1ef8c4fc1ef1453e426df435faebef78e.tar.gz
rust-4f6902d1ef8c4fc1ef1453e426df435faebef78e.zip
fix underlining of hovered intra-doc links.
fixes https://github.com/rust-lang/rust/issues/133484
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 27496381b2c..a1ab258ff30 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -942,6 +942,8 @@ rustdoc-toolbar {
 pre, .rustdoc.src .example-wrap, .example-wrap .src-line-numbers {
 	background-color: var(--code-block-background-color);
 	border-radius: var(--code-block-border-radius);
+	/* code blocks within links (such as in most intra-doc links) should be underlined */
+	text-decoration: inherit;
 }
 
 #main-content {