about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-10-08 07:55:19 +0000
committerbors <bors@rust-lang.org>2020-10-08 07:55:19 +0000
commit1565699830e59a6c3c9c4e911da0ee4ea97ae560 (patch)
treee7bbbcbd3b7df1a2133cf3cb4c7c1661e034a610
parent9c07010b7f378929c6f5b32cb7ab762bc64bfd06 (diff)
parent0e45ad890dc1dcbc1d19ce0647e5f3d07284e7b2 (diff)
downloadrust-1565699830e59a6c3c9c4e911da0ee4ea97ae560.tar.gz
rust-1565699830e59a6c3c9c4e911da0ee4ea97ae560.zip
Auto merge of #77644 - GuillaumeGomez:fix-tooltip-text-display, r=jyn514
Fix tooltip text display

Currently, when we hover the icon, the text doesn't show up:

![Screenshot from 2020-10-07 11-30-44](https://user-images.githubusercontent.com/3050060/95313768-cc402200-0890-11eb-95a4-a1ae8e38aee1.png)

The bug was spotted by `@Nemo157`

r? `@jyn514`
-rw-r--r--src/librustdoc/html/static/rustdoc.css4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 3f4bd2886b1..391526f0a30 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -1098,6 +1098,10 @@ h3 > .collapse-toggle, h4 > .collapse-toggle {
 	border-style: solid;
 }
 
+.tooltip:hover .tooltiptext {
+	display: inline;
+}
+
 .tooltip.compile_fail, .tooltip.should_panic, .tooltip.ignore {
 	font-weight: bold;
 	font-size: 20px;