about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCarol (Nichols || Goulding) <carol.nichols@gmail.com>2018-08-03 18:29:49 -0400
committerCarol (Nichols || Goulding) <carol.nichols@gmail.com>2018-08-03 18:29:49 -0400
commit11ffeed1ed8bb1bb48b5655c3dcc61687835f548 (patch)
tree2aa19f605ac53c7aba314cb104eb85c72db4df8d
parent59fa6bd6c14eebd213884da08a33639b4c848bb3 (diff)
downloadrust-11ffeed1ed8bb1bb48b5655c3dcc61687835f548.tar.gz
rust-11ffeed1ed8bb1bb48b5655c3dcc61687835f548.zip
Make entire row of doc search results clickable
By adding empty `after` content that clears and is `display: block`.
Technique found here: https://stackoverflow.com/a/7817313/51683

Now any part of a documentation search result that is highlighted when
you hover over it should also be clickable.
-rw-r--r--src/librustdoc/html/static/rustdoc.css5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index b689e2fa385..089f60965be 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -615,6 +615,11 @@ a {
 .content .search-results td:first-child a {
 	padding-right: 10px;
 }
+.content .search-results td:first-child a:after {
+    clear: both;
+    content: "";
+    display: block;
+}
 .content .search-results td:first-child a span {
 	float: left;
 }