Skip to content

Commit

Permalink
Fix search results display
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed May 21, 2021
1 parent fc81ad2 commit 5afa52b
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/librustdoc/html/static/rustdoc.css
Expand Up @@ -768,16 +768,29 @@ a {
display: block;
}

.search-results a {
.search-results > a {
/* A little margin ensures the browser's outlining of focused links has room to display. */
margin-left: 2px;
margin-right: 2px;
display: block;
}

.result-name {
.search-results > a > div {
display: flex;
}

.search-results > a > div > div {
min-width: 50%;
max-width: 50%;
width: 50%;
float: left;
}

.result-name {
padding-right: 10px;
}

.result-name > span {
display: inline-block;
}

tr.result span.primitive::after {
Expand Down

0 comments on commit 5afa52b

Please sign in to comment.