Skip to content

Commit 11ffeed

Browse files
committed
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.
1 parent 59fa6bd commit 11ffeed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/librustdoc/html/static/rustdoc.css

+5
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,11 @@ a {
615615
.content .search-results td:first-child a {
616616
padding-right: 10px;
617617
}
618+
.content .search-results td:first-child a:after {
619+
clear: both;
620+
content: "";
621+
display: block;
622+
}
618623
.content .search-results td:first-child a span {
619624
float: left;
620625
}

0 commit comments

Comments
 (0)