From 11ffeed1ed8bb1bb48b5655c3dcc61687835f548 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Fri, 3 Aug 2018 18:29:49 -0400 Subject: [PATCH] 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. --- src/librustdoc/html/static/rustdoc.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index b689e2fa3854e..089f60965befc 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; }