Skip to content

Commit

Permalink
Make entire row of doc search results clickable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
carols10cents committed Aug 3, 2018
1 parent 59fa6bd commit 11ffeed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/librustdoc/html/static/rustdoc.css
Expand Up @@ -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;
}
Expand Down

0 comments on commit 11ffeed

Please sign in to comment.