about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-04-14 13:26:49 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2021-08-05 23:08:28 +0200
commitb5c27b49d02d5b6538e40e19e0dd1365cd7632d5 (patch)
tree6e491edc20ec703445109498c67268c79344d414 /src/librustdoc/html
parent89bdc33781b36f6822c0c499fc9d15c41815103f (diff)
downloadrust-b5c27b49d02d5b6538e40e19e0dd1365cd7632d5.tar.gz
rust-b5c27b49d02d5b6538e40e19e0dd1365cd7632d5.zip
Underline source code links on hover
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 4e33eab5650..bbc48f49e63 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -450,6 +450,10 @@ nav.sub {
 	border-bottom-left-radius: 5px;
 }
 
+.example-wrap > pre.rust a:hover {
+	text-decoration: underline;
+}
+
 .rustdoc:not(.source) .example-wrap > pre:not(.line-number) {
 	width: 100%;
 	overflow-x: auto;