Skip to content

Commit

Permalink
Prepar to remove deep nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
dns2utf8 authored and GuillaumeGomez committed May 22, 2021
1 parent 221cba3 commit d8de2b4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -783,15 +783,14 @@ a {
flex-flow: row wrap;
}

.search-results > a > div > div {
.search-results .result-name, .search-results > a > div > div:nth-child(2), .search-results .result-description {
width: 50%;
}

.result-name {
.search-results .result-name {
padding-right: 1em;
}

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

Expand Down Expand Up @@ -1753,10 +1752,10 @@ details.undocumented[open] > summary::before {
.search-results > a {
border-bottom: 1px solid #aaa9;
}
.search-results > a > div > div {
.search-results .result-name {
width: 100%;
}
.search-results > a > div > div:nth-child(2) {
.search-results > a > div > div:nth-child(2), .search-results .result-description {
padding-left: 2em;
}
}
Expand Down

0 comments on commit d8de2b4

Please sign in to comment.